Thomas Gleixner | fcaf203 | 2019-05-27 08:55:08 +0200 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
Marek Vasut | 160d5f2 | 2012-11-18 22:08:29 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2012 Marek Vasut <marex@denx.de> |
Marek Vasut | 160d5f2 | 2012-11-18 22:08:29 +0100 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
Lothar Waßmann | bc3875f | 2013-09-19 08:59:48 +0200 | [diff] [blame] | 7 | #include "imx28.dtsi" |
Marek Vasut | 160d5f2 | 2012-11-18 22:08:29 +0100 | [diff] [blame] | 8 | |
| 9 | / { |
| 10 | model = "SchulerControl GmbH, SC SPS 1"; |
| 11 | compatible = "schulercontrol,imx28-sps1", "fsl,imx28"; |
| 12 | |
Marco Franchi | ad00e08 | 2018-01-24 11:22:14 -0200 | [diff] [blame] | 13 | memory@40000000 { |
Fabio Estevam | 32018d1 | 2018-11-26 10:08:56 -0200 | [diff] [blame] | 14 | device_type = "memory"; |
Marek Vasut | 160d5f2 | 2012-11-18 22:08:29 +0100 | [diff] [blame] | 15 | reg = <0x40000000 0x08000000>; |
| 16 | }; |
| 17 | |
| 18 | apb@80000000 { |
| 19 | apbh@80000000 { |
| 20 | pinctrl@80018000 { |
| 21 | pinctrl-names = "default"; |
| 22 | pinctrl-0 = <&hog_pins_a>; |
| 23 | |
| 24 | hog_pins_a: hog-gpios@0 { |
| 25 | reg = <0>; |
| 26 | fsl,pinmux-ids = < |
Lothar Waßmann | bc3875f | 2013-09-19 08:59:48 +0200 | [diff] [blame] | 27 | MX28_PAD_GPMI_D00__GPIO_0_0 |
| 28 | MX28_PAD_GPMI_D03__GPIO_0_3 |
| 29 | MX28_PAD_GPMI_D06__GPIO_0_6 |
Marek Vasut | 160d5f2 | 2012-11-18 22:08:29 +0100 | [diff] [blame] | 30 | >; |
Lothar Waßmann | 4191c34 | 2013-09-22 14:02:59 +0800 | [diff] [blame] | 31 | fsl,drive-strength = <MXS_DRIVE_4mA>; |
| 32 | fsl,voltage = <MXS_VOLTAGE_HIGH>; |
| 33 | fsl,pull-up = <MXS_PULL_DISABLE>; |
Marek Vasut | 160d5f2 | 2012-11-18 22:08:29 +0100 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | }; |
| 37 | |
Rob Herring | 5a2ecf0 | 2018-09-13 13:12:29 -0500 | [diff] [blame] | 38 | ssp0: spi@80010000 { |
Marek Vasut | 160d5f2 | 2012-11-18 22:08:29 +0100 | [diff] [blame] | 39 | compatible = "fsl,imx28-mmc"; |
| 40 | pinctrl-names = "default"; |
| 41 | pinctrl-0 = <&mmc0_4bit_pins_a>; |
| 42 | bus-width = <4>; |
| 43 | status = "okay"; |
| 44 | }; |
| 45 | |
Rob Herring | 5a2ecf0 | 2018-09-13 13:12:29 -0500 | [diff] [blame] | 46 | ssp2: spi@80014000 { |
Marek Vasut | 160d5f2 | 2012-11-18 22:08:29 +0100 | [diff] [blame] | 47 | #address-cells = <1>; |
| 48 | #size-cells = <0>; |
| 49 | compatible = "fsl,imx28-spi"; |
| 50 | pinctrl-names = "default"; |
| 51 | pinctrl-0 = <&spi2_pins_a>; |
| 52 | status = "okay"; |
| 53 | |
| 54 | flash: m25p80@0 { |
| 55 | #address-cells = <1>; |
| 56 | #size-cells = <1>; |
| 57 | compatible = "everspin,mr25h256", "mr25h256"; |
| 58 | spi-max-frequency = <40000000>; |
| 59 | reg = <0>; |
| 60 | }; |
| 61 | }; |
| 62 | }; |
| 63 | |
| 64 | apbx@80040000 { |
| 65 | i2c0: i2c@80058000 { |
| 66 | pinctrl-names = "default"; |
| 67 | pinctrl-0 = <&i2c0_pins_a>; |
Marek Vasut | 160d5f2 | 2012-11-18 22:08:29 +0100 | [diff] [blame] | 68 | status = "okay"; |
| 69 | |
| 70 | rtc: rtc@51 { |
| 71 | compatible = "nxp,pcf8563"; |
| 72 | reg = <0x51>; |
| 73 | }; |
| 74 | |
| 75 | eeprom: eeprom@52 { |
| 76 | compatible = "atmel,24c64"; |
| 77 | reg = <0x52>; |
| 78 | pagesize = <32>; |
| 79 | }; |
| 80 | }; |
| 81 | |
| 82 | duart: serial@80074000 { |
| 83 | pinctrl-names = "default"; |
| 84 | pinctrl-0 = <&duart_pins_a>; |
| 85 | status = "okay"; |
| 86 | }; |
| 87 | |
| 88 | usbphy0: usbphy@8007c000 { |
| 89 | status = "okay"; |
| 90 | }; |
| 91 | |
| 92 | auart0: serial@8006a000 { |
| 93 | pinctrl-names = "default"; |
| 94 | pinctrl-0 = <&auart0_pins_a>; |
| 95 | status = "okay"; |
| 96 | }; |
| 97 | }; |
| 98 | }; |
| 99 | |
| 100 | ahb@80080000 { |
| 101 | usb0: usb@80080000 { |
| 102 | vbus-supply = <®_usb0_vbus>; |
| 103 | pinctrl-names = "default"; |
Michael Grzeschik | c8e42bc | 2013-12-06 15:56:40 +0100 | [diff] [blame] | 104 | pinctrl-0 = <&usb0_pins_b>; |
Marek Vasut | 160d5f2 | 2012-11-18 22:08:29 +0100 | [diff] [blame] | 105 | status = "okay"; |
| 106 | }; |
| 107 | |
| 108 | mac0: ethernet@800f0000 { |
| 109 | phy-mode = "rmii"; |
| 110 | pinctrl-names = "default"; |
| 111 | pinctrl-0 = <&mac0_pins_a>; |
| 112 | status = "okay"; |
| 113 | }; |
| 114 | |
| 115 | mac1: ethernet@800f4000 { |
| 116 | phy-mode = "rmii"; |
| 117 | pinctrl-names = "default"; |
| 118 | pinctrl-0 = <&mac1_pins_a>; |
| 119 | status = "okay"; |
| 120 | }; |
| 121 | }; |
| 122 | |
| 123 | regulators { |
| 124 | compatible = "simple-bus"; |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 125 | #address-cells = <1>; |
| 126 | #size-cells = <0>; |
Marek Vasut | 160d5f2 | 2012-11-18 22:08:29 +0100 | [diff] [blame] | 127 | |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 128 | reg_usb0_vbus: regulator@0 { |
Marek Vasut | 160d5f2 | 2012-11-18 22:08:29 +0100 | [diff] [blame] | 129 | compatible = "regulator-fixed"; |
Shawn Guo | 352d318 | 2014-02-07 23:18:30 +0800 | [diff] [blame] | 130 | reg = <0>; |
Marek Vasut | 160d5f2 | 2012-11-18 22:08:29 +0100 | [diff] [blame] | 131 | regulator-name = "usb0_vbus"; |
| 132 | regulator-min-microvolt = <5000000>; |
| 133 | regulator-max-microvolt = <5000000>; |
| 134 | gpio = <&gpio3 9 0>; |
| 135 | }; |
| 136 | }; |
| 137 | |
| 138 | leds { |
| 139 | #address-cells = <1>; |
| 140 | #size-cells = <0>; |
| 141 | compatible = "gpio-leds"; |
| 142 | status = "okay"; |
| 143 | |
| 144 | led@1 { |
| 145 | label = "sps1-1:yellow:user"; |
| 146 | gpios = <&gpio0 6 0>; |
| 147 | linux,default-trigger = "heartbeat"; |
| 148 | reg = <0>; |
| 149 | }; |
| 150 | |
| 151 | led@2 { |
| 152 | label = "sps1-2:red:user"; |
| 153 | gpios = <&gpio0 3 0>; |
| 154 | linux,default-trigger = "heartbeat"; |
| 155 | reg = <1>; |
| 156 | }; |
| 157 | |
| 158 | led@3 { |
| 159 | label = "sps1-3:red:user"; |
| 160 | gpios = <&gpio0 0 0>; |
| 161 | default-trigger = "heartbeat"; |
| 162 | reg = <2>; |
| 163 | }; |
| 164 | |
| 165 | }; |
| 166 | }; |