Stefan Agner | 446e9c6 | 2014-05-14 23:45:58 +0200 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | |
| 3 | #include "tegra30-colibri.dtsi" |
| 4 | |
| 5 | / { |
| 6 | model = "Toradex Colibri T30 on Colibri Evaluation Board"; |
| 7 | compatible = "toradex,colibri_t30-eval-v3", "toradex,colibri_t30", "nvidia,tegra30"; |
| 8 | |
| 9 | aliases { |
| 10 | rtc0 = "/i2c@7000c000/rtc@68"; |
| 11 | rtc1 = "/i2c@7000d000/tps65911@2d"; |
| 12 | rtc2 = "/rtc@7000e000"; |
| 13 | }; |
| 14 | |
| 15 | host1x@50000000 { |
| 16 | dc@54200000 { |
| 17 | rgb { |
| 18 | status = "okay"; |
| 19 | nvidia,panel = <&panel>; |
| 20 | }; |
| 21 | }; |
| 22 | hdmi@54280000 { |
| 23 | status = "okay"; |
| 24 | }; |
| 25 | }; |
| 26 | |
| 27 | serial@70006000 { |
| 28 | status = "okay"; |
| 29 | }; |
| 30 | |
| 31 | serial@70006040 { |
| 32 | compatible = "nvidia,tegra30-hsuart"; |
| 33 | status = "okay"; |
| 34 | }; |
| 35 | |
| 36 | serial@70006300 { |
| 37 | compatible = "nvidia,tegra30-hsuart"; |
| 38 | status = "okay"; |
| 39 | }; |
| 40 | |
| 41 | pwm@7000a000 { |
| 42 | status = "okay"; |
| 43 | }; |
| 44 | |
| 45 | /* |
| 46 | * GEN1_I2C: I2C_SDA/SCL on SODIMM pin 194/196 (e.g. RTC on carrier |
| 47 | * board) |
| 48 | */ |
| 49 | i2c@7000c000 { |
| 50 | status = "okay"; |
| 51 | clock-frequency = <100000>; |
| 52 | |
| 53 | /* M41T0M6 real time clock on carrier board */ |
| 54 | rtc@68 { |
| 55 | compatible = "stm,m41t00"; |
| 56 | reg = <0x68>; |
| 57 | }; |
| 58 | }; |
| 59 | |
| 60 | /* DDC_CLOCK/DATA on X3 pin 15/16 (e.g. display EDID) */ |
| 61 | hdmiddc: i2c@7000c700 { |
| 62 | status = "okay"; |
| 63 | }; |
| 64 | |
| 65 | /* SPI1: Colibri SSP */ |
| 66 | spi@7000d400 { |
| 67 | status = "okay"; |
| 68 | spi-max-frequency = <25000000>; |
| 69 | can0: can@0 { |
| 70 | compatible = "microchip,mcp2515"; |
| 71 | reg = <0>; |
| 72 | clocks = <&clk16m>; |
| 73 | interrupt-parent = <&gpio>; |
| 74 | interrupts = <TEGRA_GPIO(S, 0) GPIO_ACTIVE_LOW>; |
| 75 | spi-max-frequency = <10000000>; |
| 76 | }; |
| 77 | spidev0: spi@1 { |
| 78 | compatible = "spidev"; |
| 79 | reg = <1>; |
| 80 | spi-max-frequency = <25000000>; |
| 81 | }; |
| 82 | }; |
| 83 | |
| 84 | sdhci@78000200 { |
| 85 | status = "okay"; |
| 86 | bus-width = <4>; |
| 87 | cd-gpios = <&gpio TEGRA_GPIO(C, 7) GPIO_ACTIVE_LOW>; |
| 88 | no-1-8-v; |
| 89 | }; |
| 90 | |
| 91 | /* EHCI instance 0: USB1_DP/N -> USBC_P/N */ |
| 92 | usb@7d000000 { |
| 93 | status = "okay"; |
| 94 | }; |
| 95 | |
| 96 | usb-phy@7d000000 { |
| 97 | status = "okay"; |
| 98 | dr_mode = "otg"; |
| 99 | vbus-supply = <&usbc_vbus_reg>; |
| 100 | }; |
| 101 | |
| 102 | /* EHCI instance 2: USB3_DP/N -> USBH_P/N */ |
| 103 | usb@7d008000 { |
| 104 | status = "okay"; |
| 105 | }; |
| 106 | |
| 107 | usb-phy@7d008000 { |
| 108 | status = "okay"; |
| 109 | vbus-supply = <&usbh_vbus_reg>; |
| 110 | }; |
| 111 | |
| 112 | backlight: backlight { |
| 113 | compatible = "pwm-backlight"; |
| 114 | |
| 115 | /* PWM<A> */ |
| 116 | pwms = <&pwm 0 5000000>; |
| 117 | brightness-levels = <255 128 64 32 16 8 4 0>; |
| 118 | default-brightness-level = <6>; |
| 119 | /* BL_ON */ |
| 120 | enable-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>; |
| 121 | }; |
| 122 | |
| 123 | clocks { |
| 124 | clk16m: clk@1 { |
| 125 | compatible = "fixed-clock"; |
| 126 | reg=<1>; |
| 127 | #clock-cells = <0>; |
| 128 | clock-frequency = <16000000>; |
| 129 | clock-output-names = "clk16m"; |
| 130 | }; |
| 131 | }; |
| 132 | |
| 133 | gpio-keys { |
| 134 | compatible = "gpio-keys"; |
| 135 | |
| 136 | power { |
| 137 | label = "Power"; |
| 138 | gpios = <&gpio TEGRA_GPIO(V, 1) GPIO_ACTIVE_HIGH>; |
| 139 | linux,code = <KEY_POWER>; |
| 140 | debounce-interval = <10>; |
| 141 | gpio-key,wakeup; |
| 142 | }; |
| 143 | }; |
| 144 | |
| 145 | panel: panel { |
| 146 | /* |
| 147 | * edt,et057090dhu: EDT 5.7" LCD TFT |
| 148 | * edt,et070080dh6: EDT 7.0" LCD TFT |
| 149 | */ |
| 150 | compatible = "edt,et057090dhu", "simple-panel"; |
| 151 | |
| 152 | backlight = <&backlight>; |
| 153 | }; |
| 154 | |
| 155 | pwmleds { |
| 156 | compatible = "pwm-leds"; |
| 157 | |
| 158 | pwmb { |
| 159 | label = "PWM<B>"; |
| 160 | pwms = <&pwm 1 19600>; |
| 161 | max-brightness = <255>; |
| 162 | }; |
| 163 | pwmc { |
| 164 | label = "PWM<C>"; |
| 165 | pwms = <&pwm 2 19600>; |
| 166 | max-brightness = <255>; |
| 167 | }; |
| 168 | pwmd { |
| 169 | label = "PWM<D>"; |
| 170 | pwms = <&pwm 3 19600>; |
| 171 | max-brightness = <255>; |
| 172 | }; |
| 173 | }; |
| 174 | |
| 175 | regulators { |
| 176 | sys_5v0_reg: regulator@1 { |
| 177 | compatible = "regulator-fixed"; |
| 178 | reg = <1>; |
| 179 | regulator-name = "5v0"; |
| 180 | regulator-min-microvolt = <5000000>; |
| 181 | regulator-max-microvolt = <5000000>; |
| 182 | regulator-always-on; |
| 183 | }; |
| 184 | |
| 185 | usbc_vbus_reg: regulator@2 { |
| 186 | compatible = "regulator-fixed"; |
| 187 | reg = <2>; |
| 188 | regulator-name = "usbc_vbus"; |
| 189 | regulator-min-microvolt = <5000000>; |
| 190 | regulator-max-microvolt = <5000000>; |
| 191 | vin-supply = <&sys_5v0_reg>; |
| 192 | }; |
| 193 | |
| 194 | /* USBH_PEN */ |
| 195 | usbh_vbus_reg: regulator@3 { |
| 196 | compatible = "regulator-fixed"; |
| 197 | reg = <3>; |
| 198 | regulator-name = "usbh_vbus"; |
| 199 | regulator-min-microvolt = <5000000>; |
| 200 | regulator-max-microvolt = <5000000>; |
| 201 | gpio = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>; |
| 202 | vin-supply = <&sys_5v0_reg>; |
| 203 | }; |
| 204 | }; |
| 205 | }; |