Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | |
| 3 | #include <dt-bindings/input/input.h> |
| 4 | #include "tegra30-apalis.dtsi" |
| 5 | |
| 6 | / { |
| 7 | model = "Toradex Apalis T30 on Apalis Evaluation Board"; |
Marcel Ziswiler | ae171be | 2014-07-25 12:40:03 -0600 | [diff] [blame] | 8 | compatible = "toradex,apalis_t30-eval", "toradex,apalis_t30", "nvidia,tegra30"; |
Marcel Ziswiler | 6d0a067 | 2014-06-10 00:52:46 +0200 | [diff] [blame] | 9 | |
| 10 | aliases { |
| 11 | rtc0 = "/i2c@7000c000/rtc@68"; |
| 12 | rtc1 = "/i2c@7000d000/tps65911@2d"; |
| 13 | rtc2 = "/rtc@7000e000"; |
| 14 | }; |
| 15 | |
| 16 | pcie-controller@00003000 { |
| 17 | status = "okay"; |
| 18 | |
| 19 | pci@1,0 { |
| 20 | status = "okay"; |
| 21 | }; |
| 22 | |
| 23 | pci@2,0 { |
| 24 | status = "okay"; |
| 25 | }; |
| 26 | |
| 27 | pci@3,0 { |
| 28 | status = "okay"; |
| 29 | }; |
| 30 | }; |
| 31 | |
| 32 | host1x@50000000 { |
| 33 | dc@54200000 { |
| 34 | rgb { |
| 35 | status = "okay"; |
| 36 | nvidia,panel = <&panel>; |
| 37 | }; |
| 38 | }; |
| 39 | hdmi@54280000 { |
| 40 | status = "okay"; |
| 41 | }; |
| 42 | }; |
| 43 | |
| 44 | serial@70006000 { |
| 45 | status = "okay"; |
| 46 | }; |
| 47 | |
| 48 | serial@70006040 { |
| 49 | compatible = "nvidia,tegra30-hsuart"; |
| 50 | status = "okay"; |
| 51 | }; |
| 52 | |
| 53 | serial@70006200 { |
| 54 | compatible = "nvidia,tegra30-hsuart"; |
| 55 | status = "okay"; |
| 56 | }; |
| 57 | |
| 58 | serial@70006300 { |
| 59 | compatible = "nvidia,tegra30-hsuart"; |
| 60 | status = "okay"; |
| 61 | }; |
| 62 | |
| 63 | pwm@7000a000 { |
| 64 | status = "okay"; |
| 65 | }; |
| 66 | |
| 67 | /* |
| 68 | * GEN1_I2C: I2C1_SDA/SCL on MXM3 pin 209/211 (e.g. RTC on carrier |
| 69 | * board) |
| 70 | */ |
| 71 | i2c@7000c000 { |
| 72 | status = "okay"; |
| 73 | clock-frequency = <100000>; |
| 74 | |
| 75 | pcie-switch@58 { |
| 76 | compatible = "plx,pex8605"; |
| 77 | reg = <0x58>; |
| 78 | }; |
| 79 | |
| 80 | /* M41T0M6 real time clock on carrier board */ |
| 81 | rtc@68 { |
| 82 | compatible = "st,m41t00"; |
| 83 | reg = <0x68>; |
| 84 | }; |
| 85 | }; |
| 86 | |
| 87 | /* GEN2_I2C: unused */ |
| 88 | |
| 89 | /* |
| 90 | * CAM_I2C: I2C3_SDA/SCL on MXM3 pin 201/203 (e.g. camera sensor on |
| 91 | * carrier board) |
| 92 | */ |
| 93 | cami2c: i2c@7000c500 { |
| 94 | status = "okay"; |
| 95 | clock-frequency = <400000>; |
| 96 | }; |
| 97 | |
| 98 | /* DDC: I2C2_SDA/SCL on MXM3 pin 205/207 (e.g. display EDID) */ |
| 99 | hdmiddc: i2c@7000c700 { |
| 100 | status = "okay"; |
| 101 | }; |
| 102 | |
| 103 | /* SPI1: Apalis SPI1 */ |
| 104 | spi@7000d400 { |
| 105 | status = "okay"; |
| 106 | spi-max-frequency = <25000000>; |
| 107 | spidev0: spidev@1 { |
| 108 | compatible = "spidev"; |
| 109 | reg = <1>; |
| 110 | spi-max-frequency = <25000000>; |
| 111 | }; |
| 112 | }; |
| 113 | |
| 114 | /* SPI5: Apalis SPI2 */ |
| 115 | spi@7000dc00 { |
| 116 | status = "okay"; |
| 117 | spi-max-frequency = <25000000>; |
| 118 | spidev1: spidev@2 { |
| 119 | compatible = "spidev"; |
| 120 | reg = <2>; |
| 121 | spi-max-frequency = <25000000>; |
| 122 | }; |
| 123 | }; |
| 124 | |
| 125 | sd1: sdhci@78000000 { |
| 126 | status = "okay"; |
| 127 | bus-width = <4>; |
| 128 | /* SD1_CD# */ |
| 129 | cd-gpios = <&gpio TEGRA_GPIO(CC, 5) GPIO_ACTIVE_LOW>; |
| 130 | no-1-8-v; |
| 131 | }; |
| 132 | |
| 133 | mmc1: sdhci@78000400 { |
| 134 | status = "okay"; |
| 135 | bus-width = <8>; |
| 136 | /* MMC1_CD# */ |
| 137 | cd-gpios = <&gpio TEGRA_GPIO(V, 3) GPIO_ACTIVE_LOW>; |
| 138 | no-1-8-v; |
| 139 | }; |
| 140 | |
| 141 | /* EHCI instance 0: USB1_DP/N -> USBO1_DP/N */ |
| 142 | usb@7d000000 { |
| 143 | status = "okay"; |
| 144 | }; |
| 145 | |
| 146 | usb-phy@7d000000 { |
| 147 | status = "okay"; |
| 148 | vbus-supply = <&usbo1_vbus_reg>; |
| 149 | }; |
| 150 | |
| 151 | /* EHCI instance 1: USB2_DP/N -> USBH2_DP/N */ |
| 152 | usb@7d004000 { |
| 153 | status = "okay"; |
| 154 | }; |
| 155 | |
| 156 | usb-phy@7d004000 { |
| 157 | status = "okay"; |
| 158 | vbus-supply = <&usbh_vbus_reg>; |
| 159 | }; |
| 160 | |
| 161 | /* EHCI instance 2: USB3_DP/N -> USBH3_DP/N */ |
| 162 | usb@7d008000 { |
| 163 | status = "okay"; |
| 164 | }; |
| 165 | |
| 166 | usb-phy@7d008000 { |
| 167 | status = "okay"; |
| 168 | vbus-supply = <&usbh_vbus_reg>; |
| 169 | }; |
| 170 | |
| 171 | backlight: backlight { |
| 172 | compatible = "pwm-backlight"; |
| 173 | |
| 174 | /* PWM0 */ |
| 175 | pwms = <&pwm 0 5000000>; |
| 176 | brightness-levels = <255 231 223 207 191 159 127 0>; |
| 177 | default-brightness-level = <6>; |
| 178 | /* BKL1_ON */ |
| 179 | enable-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>; |
| 180 | }; |
| 181 | |
| 182 | gpio-keys { |
| 183 | compatible = "gpio-keys"; |
| 184 | |
| 185 | power { |
| 186 | label = "Power"; |
| 187 | gpios = <&gpio TEGRA_GPIO(V, 1) GPIO_ACTIVE_LOW>; |
| 188 | linux,code = <KEY_POWER>; |
| 189 | debounce-interval = <10>; |
| 190 | gpio-key,wakeup; |
| 191 | }; |
| 192 | }; |
| 193 | |
| 194 | panel: panel { |
| 195 | /* |
| 196 | * edt,et057090dhu: EDT 5.7" LCD TFT |
| 197 | * edt,et070080dh6: EDT 7.0" LCD TFT |
| 198 | */ |
| 199 | compatible = "edt,et057090dhu", "simple-panel"; |
| 200 | |
| 201 | backlight = <&backlight>; |
| 202 | }; |
| 203 | |
| 204 | pwmleds { |
| 205 | compatible = "pwm-leds"; |
| 206 | |
| 207 | pwm1 { |
| 208 | label = "PWM1"; |
| 209 | pwms = <&pwm 3 19600>; |
| 210 | max-brightness = <255>; |
| 211 | }; |
| 212 | |
| 213 | pwm2 { |
| 214 | label = "PWM2"; |
| 215 | pwms = <&pwm 2 19600>; |
| 216 | max-brightness = <255>; |
| 217 | }; |
| 218 | |
| 219 | pwm3 { |
| 220 | label = "PWM3"; |
| 221 | pwms = <&pwm 1 19600>; |
| 222 | max-brightness = <255>; |
| 223 | }; |
| 224 | }; |
| 225 | |
| 226 | regulators { |
| 227 | sys_5v0_reg: regulator@1 { |
| 228 | compatible = "regulator-fixed"; |
| 229 | reg = <1>; |
| 230 | regulator-name = "5v0"; |
| 231 | regulator-min-microvolt = <5000000>; |
| 232 | regulator-max-microvolt = <5000000>; |
| 233 | regulator-always-on; |
| 234 | }; |
| 235 | |
| 236 | /* USBO1_EN */ |
| 237 | usbo1_vbus_reg: regulator@2 { |
| 238 | compatible = "regulator-fixed"; |
| 239 | reg = <2>; |
| 240 | regulator-name = "usbo1_vbus"; |
| 241 | regulator-min-microvolt = <5000000>; |
| 242 | regulator-max-microvolt = <5000000>; |
| 243 | gpio = <&gpio TEGRA_GPIO(T, 5) GPIO_ACTIVE_HIGH>; |
| 244 | enable-active-high; |
| 245 | vin-supply = <&sys_5v0_reg>; |
| 246 | }; |
| 247 | |
| 248 | /* USBH_EN */ |
| 249 | usbh_vbus_reg: regulator@3 { |
| 250 | compatible = "regulator-fixed"; |
| 251 | reg = <3>; |
| 252 | regulator-name = "usbh_vbus"; |
| 253 | regulator-min-microvolt = <5000000>; |
| 254 | regulator-max-microvolt = <5000000>; |
| 255 | gpio = <&gpio TEGRA_GPIO(DD, 1) GPIO_ACTIVE_HIGH>; |
| 256 | enable-active-high; |
| 257 | vin-supply = <&sys_5v0_reg>; |
| 258 | }; |
| 259 | }; |
| 260 | }; |