1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2016 Texas Instruments Incorporated - https://www.ti.com/
8 * http://www.ti.com/tool/tmdsice3359
13 #include "am33xx.dtsi"
16 model = "TI AM3359 ICE-V2";
17 compatible = "ti,am3359-icev2", "ti,am33xx";
20 device_type = "memory";
21 reg = <0x80000000 0x10000000>; /* 256 MB */
28 vbat: fixedregulator0 {
29 compatible = "regulator-fixed";
30 regulator-name = "vbat";
31 regulator-min-microvolt = <5000000>;
32 regulator-max-microvolt = <5000000>;
36 vtt_fixed: fixedregulator1 {
37 compatible = "regulator-fixed";
38 regulator-name = "vtt";
39 regulator-min-microvolt = <1500000>;
40 regulator-max-microvolt = <1500000>;
41 gpio = <&gpio0 18 GPIO_ACTIVE_HIGH>;
49 compatible = "gpio-leds";
52 gpios = <&tpic2810 0 GPIO_ACTIVE_HIGH>;
53 default-state = "off";
58 gpios = <&tpic2810 1 GPIO_ACTIVE_HIGH>;
59 default-state = "off";
64 gpios = <&tpic2810 2 GPIO_ACTIVE_HIGH>;
65 default-state = "off";
70 gpios = <&tpic2810 3 GPIO_ACTIVE_HIGH>;
71 default-state = "off";
76 gpios = <&tpic2810 4 GPIO_ACTIVE_HIGH>;
77 default-state = "off";
82 gpios = <&tpic2810 5 GPIO_ACTIVE_HIGH>;
83 default-state = "off";
88 gpios = <&tpic2810 6 GPIO_ACTIVE_HIGH>;
89 default-state = "off";
94 gpios = <&tpic2810 7 GPIO_ACTIVE_HIGH>;
95 default-state = "off";
99 /* Tricolor status LEDs */
101 compatible = "gpio-leds";
102 pinctrl-names = "default";
103 pinctrl-0 = <&user_leds>;
106 label = "status0:red:cpu0";
107 gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
108 default-state = "off";
109 linux,default-trigger = "cpu0";
113 label = "status0:green:usr";
114 gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
115 default-state = "off";
119 label = "status0:yellow:usr";
120 gpios = <&gpio3 9 GPIO_ACTIVE_HIGH>;
121 default-state = "off";
125 label = "status1:red:mmc0";
126 gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>;
127 default-state = "off";
128 linux,default-trigger = "mmc0";
132 label = "status1:green:usr";
133 gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
134 default-state = "off";
138 label = "status1:yellow:usr";
139 gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
140 default-state = "off";
144 compatible = "gpio-decoder";
145 gpios = <&pca9536 3 GPIO_ACTIVE_HIGH>,
146 <&pca9536 2 GPIO_ACTIVE_HIGH>,
147 <&pca9536 1 GPIO_ACTIVE_HIGH>,
148 <&pca9536 0 GPIO_ACTIVE_HIGH>;
149 linux,axis = <0>; /* ABS_X */
150 decoder-max-value = <9>;
155 user_leds: user_leds {
156 pinctrl-single,pins = <
157 AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_OUTPUT, MUX_MODE7) /* (J18) gmii1_txd3.gpio0[16] */
158 AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_OUTPUT, MUX_MODE7) /* (K15) gmii1_txd2.gpio0[17] */
159 AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR0, PIN_OUTPUT, MUX_MODE7) /* (A15) xdma_event_intr0.gpio0[19] */
160 AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR1, PIN_OUTPUT, MUX_MODE7) /* (D14) xdma_event_intr1.gpio0[20] */
161 AM33XX_PADCONF(AM335X_PIN_GPMC_CSN1, PIN_OUTPUT, MUX_MODE7) /* (U9) gpmc_csn1.gpio1[30] */
162 AM33XX_PADCONF(AM335X_PIN_MII1_TX_CLK, PIN_OUTPUT, MUX_MODE7) /* (K18) gmii1_txclk.gpio3[9] */
166 mmc0_pins_default: mmc0_pins_default {
167 pinctrl-single,pins = <
168 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT3, PIN_INPUT_PULLUP, MUX_MODE0)
169 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT2, PIN_INPUT_PULLUP, MUX_MODE0)
170 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT1, PIN_INPUT_PULLUP, MUX_MODE0)
171 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT0, PIN_INPUT_PULLUP, MUX_MODE0)
172 AM33XX_PADCONF(AM335X_PIN_MMC0_CLK, PIN_INPUT_PULLUP, MUX_MODE0)
173 AM33XX_PADCONF(AM335X_PIN_MMC0_CMD, PIN_INPUT_PULLUP, MUX_MODE0)
177 i2c0_pins_default: i2c0_pins_default {
178 pinctrl-single,pins = <
179 AM33XX_PADCONF(AM335X_PIN_I2C0_SDA, PIN_INPUT, MUX_MODE0)
180 AM33XX_PADCONF(AM335X_PIN_I2C0_SCL, PIN_INPUT, MUX_MODE0)
184 spi0_pins_default: spi0_pins_default {
185 pinctrl-single,pins = <
186 AM33XX_PADCONF(AM335X_PIN_SPI0_SCLK, PIN_INPUT_PULLUP, MUX_MODE0)
187 AM33XX_PADCONF(AM335X_PIN_SPI0_D0, PIN_INPUT_PULLUP, MUX_MODE0)
188 AM33XX_PADCONF(AM335X_PIN_SPI0_D1, PIN_INPUT_PULLUP, MUX_MODE0)
189 AM33XX_PADCONF(AM335X_PIN_SPI0_CS0, PIN_INPUT_PULLUP, MUX_MODE0)
190 AM33XX_PADCONF(AM335X_PIN_SPI0_CS1, PIN_INPUT_PULLUP, MUX_MODE0)
191 AM33XX_PADCONF(AM335X_PIN_MCASP0_ACLKR, PIN_INPUT_PULLUP, MUX_MODE7) /* (B12) mcasp0_aclkr.gpio3[18] */
195 uart3_pins_default: uart3_pins_default {
196 pinctrl-single,pins = <
197 AM33XX_PADCONF(AM335X_PIN_MII1_RXD3, PIN_INPUT_PULLUP, MUX_MODE1) /* (L17) gmii1_rxd3.uart3_rxd */
198 AM33XX_PADCONF(AM335X_PIN_MII1_RXD2, PIN_OUTPUT_PULLUP, MUX_MODE1) /* (L16) gmii1_rxd2.uart3_txd */
202 cpsw_default: cpsw_default {
203 pinctrl-single,pins = <
204 /* Slave 1, RMII mode */
205 AM33XX_PADCONF(AM335X_PIN_MII1_CRS, PIN_INPUT_PULLUP, MUX_MODE1) /* mii1_crs.rmii1_crs_dv */
206 AM33XX_PADCONF(AM335X_PIN_RMII1_REF_CLK, PIN_INPUT_PULLUP, MUX_MODE0)
207 AM33XX_PADCONF(AM335X_PIN_MII1_RXD0, PIN_INPUT_PULLUP, MUX_MODE1)
208 AM33XX_PADCONF(AM335X_PIN_MII1_RXD1, PIN_INPUT_PULLUP, MUX_MODE1)
209 AM33XX_PADCONF(AM335X_PIN_MII1_RX_ER, PIN_INPUT_PULLUP, MUX_MODE1) /* mii1_rxerr.rmii1_rxerr */
210 AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULLDOWN, MUX_MODE1) /* mii1_txd0.rmii1_txd0 */
211 AM33XX_PADCONF(AM335X_PIN_MII1_TXD1, PIN_OUTPUT_PULLDOWN, MUX_MODE1) /* mii1_txd1.rmii1_txd1 */
212 AM33XX_PADCONF(AM335X_PIN_MII1_TX_EN, PIN_OUTPUT_PULLDOWN, MUX_MODE1) /* mii1_txen.rmii1_txen */
213 /* Slave 2, RMII mode */
214 AM33XX_PADCONF(AM335X_PIN_GPMC_WAIT0, PIN_INPUT_PULLUP, MUX_MODE3) /* gpmc_wait0.rmii2_crs_dv */
215 AM33XX_PADCONF(AM335X_PIN_MII1_COL, PIN_INPUT_PULLUP, MUX_MODE1) /* mii1_col.rmii2_refclk */
216 AM33XX_PADCONF(AM335X_PIN_GPMC_A11, PIN_INPUT_PULLUP, MUX_MODE3) /* gpmc_a11.rmii2_rxd0 */
217 AM33XX_PADCONF(AM335X_PIN_GPMC_A10, PIN_INPUT_PULLUP, MUX_MODE3) /* gpmc_a10.rmii2_rxd1 */
218 AM33XX_PADCONF(AM335X_PIN_GPMC_WPN, PIN_INPUT_PULLUP, MUX_MODE3) /* gpmc_wpn.rmii2_rxerr */
219 AM33XX_PADCONF(AM335X_PIN_GPMC_A5, PIN_OUTPUT_PULLDOWN, MUX_MODE3) /* gpmc_a5.rmii2_txd0 */
220 AM33XX_PADCONF(AM335X_PIN_GPMC_A4, PIN_OUTPUT_PULLDOWN, MUX_MODE3) /* gpmc_a4.rmii2_txd1 */
221 AM33XX_PADCONF(AM335X_PIN_GPMC_A0, PIN_OUTPUT_PULLDOWN, MUX_MODE3) /* gpmc_a0.rmii2_txen */
225 cpsw_sleep: cpsw_sleep {
226 pinctrl-single,pins = <
227 /* Slave 1 reset value */
228 AM33XX_PADCONF(AM335X_PIN_MII1_CRS, PIN_INPUT_PULLDOWN, MUX_MODE7)
229 AM33XX_PADCONF(AM335X_PIN_RMII1_REF_CLK, PIN_INPUT_PULLDOWN, MUX_MODE7)
230 AM33XX_PADCONF(AM335X_PIN_MII1_RXD0, PIN_INPUT_PULLDOWN, MUX_MODE7)
231 AM33XX_PADCONF(AM335X_PIN_MII1_RXD1, PIN_INPUT_PULLDOWN, MUX_MODE7)
232 AM33XX_PADCONF(AM335X_PIN_MII1_RX_ER, PIN_INPUT_PULLDOWN, MUX_MODE7)
233 AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_INPUT_PULLDOWN, MUX_MODE7)
234 AM33XX_PADCONF(AM335X_PIN_MII1_TXD1, PIN_INPUT_PULLDOWN, MUX_MODE7)
235 AM33XX_PADCONF(AM335X_PIN_MII1_TX_EN, PIN_INPUT_PULLDOWN, MUX_MODE7)
237 /* Slave 2 reset value */
238 AM33XX_PADCONF(AM335X_PIN_GPMC_WAIT0, PIN_INPUT_PULLDOWN, MUX_MODE7)
239 AM33XX_PADCONF(AM335X_PIN_MII1_COL, PIN_INPUT_PULLDOWN, MUX_MODE7)
240 AM33XX_PADCONF(AM335X_PIN_GPMC_A11, PIN_INPUT_PULLDOWN, MUX_MODE7)
241 AM33XX_PADCONF(AM335X_PIN_GPMC_A10, PIN_INPUT_PULLDOWN, MUX_MODE7)
242 AM33XX_PADCONF(AM335X_PIN_GPMC_WPN, PIN_INPUT_PULLDOWN, MUX_MODE7)
243 AM33XX_PADCONF(AM335X_PIN_GPMC_A5, PIN_INPUT_PULLDOWN, MUX_MODE7)
244 AM33XX_PADCONF(AM335X_PIN_GPMC_A4, PIN_INPUT_PULLDOWN, MUX_MODE7)
245 AM33XX_PADCONF(AM335X_PIN_GPMC_A0, PIN_INPUT_PULLDOWN, MUX_MODE7)
249 davinci_mdio_default: davinci_mdio_default {
250 pinctrl-single,pins = <
252 AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT_PULLUP | SLEWCTRL_FAST, MUX_MODE0)
253 AM33XX_PADCONF(AM335X_PIN_MDC, PIN_OUTPUT_PULLUP, MUX_MODE0)
257 davinci_mdio_sleep: davinci_mdio_sleep {
258 pinctrl-single,pins = <
259 /* MDIO reset value */
260 AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT_PULLDOWN, MUX_MODE7)
261 AM33XX_PADCONF(AM335X_PIN_MDC, PIN_INPUT_PULLDOWN, MUX_MODE7)
267 pinctrl-names = "default";
268 pinctrl-0 = <&i2c0_pins_default>;
271 clock-frequency = <400000>;
273 tps: power-controller@2d {
278 compatible = "ti,tpic2810";
285 compatible = "ti,pca9536";
291 /* osd9616p0899-10 */
293 compatible = "solomon,ssd1306fb-i2c";
295 solomon,height = <16>;
296 solomon,width = <96>;
299 solomon,page-offset = <0>;
300 solomon,prechargep1 = <2>;
301 solomon,prechargep2 = <13>;
307 pinctrl-names = "default";
308 pinctrl-0 = <&spi0_pins_default>;
311 compatible = "pisosr-gpio";
315 load-gpios = <&gpio3 18 GPIO_ACTIVE_LOW>;
318 spi-max-frequency = <1000000>;
323 #address-cells = <1>;
325 compatible = "winbond,w25q64", "jedec,spi-nor";
326 spi-max-frequency = <80000000>;
331 label = "u-boot-spl";
338 reg = <0x80000 0x100000>;
343 label = "u-boot-env";
344 reg = <0x180000 0x20000>;
350 reg = <0x1A0000 0x660000>;
359 ti,adc-channels = <1 2 3 4 5 6 7>;
363 #include "tps65910.dtsi"
366 vcc1-supply = <&vbat>;
367 vcc2-supply = <&vbat>;
368 vcc3-supply = <&vbat>;
369 vcc4-supply = <&vbat>;
370 vcc5-supply = <&vbat>;
371 vcc6-supply = <&vbat>;
372 vcc7-supply = <&vbat>;
373 vccio-supply = <&vbat>;
376 vrtc_reg: regulator@0 {
380 vio_reg: regulator@1 {
384 vdd1_reg: regulator@2 {
385 regulator-name = "vdd_mpu";
386 regulator-min-microvolt = <912500>;
387 regulator-max-microvolt = <1326000>;
392 vdd2_reg: regulator@3 {
393 regulator-name = "vdd_core";
394 regulator-min-microvolt = <912500>;
395 regulator-max-microvolt = <1144000>;
400 vdd3_reg: regulator@4 {
404 vdig1_reg: regulator@5 {
408 vdig2_reg: regulator@6 {
412 vpll_reg: regulator@7 {
416 vdac_reg: regulator@8 {
420 vaux1_reg: regulator@9 {
424 vaux2_reg: regulator@10 {
428 vaux33_reg: regulator@11 {
432 vmmc_reg: regulator@12 {
433 regulator-min-microvolt = <1800000>;
434 regulator-max-microvolt = <3300000>;
442 vmmc-supply = <&vmmc_reg>;
444 pinctrl-names = "default";
445 pinctrl-0 = <&mmc0_pins_default>;
449 /* Do not idle the GPIO used for holding the VTT regulator */
455 pinctrl-names = "default";
456 pinctrl-0 = <&uart3_pins_default>;
463 gpios = <4 GPIO_ACTIVE_HIGH>;
465 line-name = "PR1_MII_CTRL";
470 gpios = <10 GPIO_ACTIVE_HIGH>;
471 /* ETH1 mux: Low for MII-PRU, high for RMII-CPSW */
473 line-name = "MUX_MII_CTL1";
478 phy-handle = <ðphy0>;
480 dual_emac_res_vlan = <1>;
484 phy-handle = <ðphy1>;
486 dual_emac_res_vlan = <2>;
490 pinctrl-names = "default", "sleep";
491 pinctrl-0 = <&cpsw_default>;
492 pinctrl-1 = <&cpsw_sleep>;
498 pinctrl-names = "default", "sleep";
499 pinctrl-0 = <&davinci_mdio_default>;
500 pinctrl-1 = <&davinci_mdio_sleep>;
502 reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
503 reset-delay-us = <2>; /* PHY datasheet states 1uS min */
505 ethphy0: ethernet-phy@1 {
509 ethphy1: ethernet-phy@3 {