xref: /freebsd/sys/contrib/device-tree/src/arm/ti/omap/omap3-lilly-dbb056.dts (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (C) 2014 Christoph Fritz <chf.fritzc@googlemail.com>
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot/dts-v1/;
6*f126890aSEmmanuel Vadot
7*f126890aSEmmanuel Vadot#include "omap3-lilly-a83x.dtsi"
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadot/ {
10*f126890aSEmmanuel Vadot	model = "INCOstartec LILLY-DBB056 (DM3730)";
11*f126890aSEmmanuel Vadot	compatible = "incostartec,omap3-lilly-dbb056", "incostartec,omap3-lilly-a83x", "ti,omap3630", "ti,omap3";
12*f126890aSEmmanuel Vadot};
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot&twl {
15*f126890aSEmmanuel Vadot	vaux2: regulator-vaux2 {
16*f126890aSEmmanuel Vadot		compatible = "ti,twl4030-vaux2";
17*f126890aSEmmanuel Vadot		regulator-min-microvolt = <2800000>;
18*f126890aSEmmanuel Vadot		regulator-max-microvolt = <2800000>;
19*f126890aSEmmanuel Vadot		regulator-always-on;
20*f126890aSEmmanuel Vadot	};
21*f126890aSEmmanuel Vadot};
22*f126890aSEmmanuel Vadot
23*f126890aSEmmanuel Vadot&omap3_pmx_core {
24*f126890aSEmmanuel Vadot	pinctrl-names = "default";
25*f126890aSEmmanuel Vadot	pinctrl-0 = <&lcd_pins>;
26*f126890aSEmmanuel Vadot
27*f126890aSEmmanuel Vadot	lan9117_pins: lan9117-pins {
28*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
29*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2114, PIN_INPUT | MUX_MODE4)   /* cam_fld.gpio_98 */
30*f126890aSEmmanuel Vadot		>;
31*f126890aSEmmanuel Vadot	};
32*f126890aSEmmanuel Vadot
33*f126890aSEmmanuel Vadot	gpio4_pins: gpio4-pins {
34*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
35*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x212e, PIN_INPUT | MUX_MODE4)   /* cam_xclkb.gpio_111 -> sja1000 IRQ */
36*f126890aSEmmanuel Vadot		>;
37*f126890aSEmmanuel Vadot	};
38*f126890aSEmmanuel Vadot
39*f126890aSEmmanuel Vadot	gpio5_pins: gpio5-pins {
40*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
41*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x218c, PIN_OUTPUT | PIN_OFF_OUTPUT_HIGH | MUX_MODE4)   /* mcbsp1_clk.gpio_156 -> enable DSS */
42*f126890aSEmmanuel Vadot		>;
43*f126890aSEmmanuel Vadot	};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot	lcd_pins: lcd-pins {
46*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
47*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0)   /* dss_pclk.dss_pclk */
48*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0)   /* dss_hsync.dss_hsync */
49*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0)   /* dss_vsync.dss_vsync */
50*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0)   /* dss_acbias.dss_acbias */
51*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0)   /* dss_data0.dss_data0 */
52*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0)   /* dss_data1.dss_data1 */
53*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0)   /* dss_data2.dss_data2 */
54*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0)   /* dss_data3.dss_data3 */
55*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0)   /* dss_data4.dss_data4 */
56*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0)   /* dss_data5.dss_data5 */
57*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0)   /* dss_data6.dss_data6 */
58*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0)   /* dss_data7.dss_data7 */
59*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0)   /* dss_data8.dss_data8 */
60*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0)   /* dss_data9.dss_data9 */
61*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0)   /* dss_data10.dss_data10 */
62*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0)   /* dss_data11.dss_data11 */
63*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0)   /* dss_data12.dss_data12 */
64*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0)   /* dss_data13.dss_data13 */
65*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0)   /* dss_data14.dss_data14 */
66*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0)   /* dss_data15.dss_data15 */
67*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0)   /* dss_data16.dss_data16 */
68*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0)   /* dss_data17.dss_data17 */
69*f126890aSEmmanuel Vadot		>;
70*f126890aSEmmanuel Vadot	};
71*f126890aSEmmanuel Vadot
72*f126890aSEmmanuel Vadot	mmc2_pins: mmc2-pins {
73*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
74*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0)   /* sdmmc2_clk.sdmmc2_clk */
75*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0)   /* sdmmc2_cmd.sdmmc2_cmd */
76*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0)   /* sdmmc2_dat0.sdmmc2_dat0 */
77*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0)   /* sdmmc2_dat1.sdmmc2_dat1 */
78*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0)   /* sdmmc2_dat2.sdmmc2_dat2 */
79*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0)   /* sdmmc2_dat3.sdmmc2_dat3 */
80*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2164, PIN_OUTPUT | MUX_MODE1)   /* sdmmc2_dat4.sdmmc2_dir_dat0 */
81*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2166, PIN_OUTPUT | MUX_MODE1)   /* sdmmc2_dat5.sdmmc2_dir_dat1 */
82*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2168, PIN_OUTPUT | MUX_MODE1)   /* sdmmc2_dat6.sdmmc2_dir_cmd */
83*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT | MUX_MODE1)    /* sdmmc2_dat7.sdmmc2_clkin */
84*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x219a, PIN_INPUT_PULLUP | MUX_MODE4)   /* uart3_cts_rctx.gpio_163 -> wp */
85*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x219c, PIN_INPUT_PULLUP | MUX_MODE4)   /* uart3_rts_sd.gpio_164 -> cd */
86*f126890aSEmmanuel Vadot		>;
87*f126890aSEmmanuel Vadot	};
88*f126890aSEmmanuel Vadot
89*f126890aSEmmanuel Vadot	spi1_pins: spi1-pins {
90*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
91*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21c8, PIN_INPUT | MUX_MODE0)   /* mcspi1_clk.mcspi1_clk */
92*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21ca, PIN_INPUT | MUX_MODE0)   /* mcspi1_simo.mcspi1_simo */
93*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21cc, PIN_INPUT | MUX_MODE0)   /* mcspi1_somi.mcspi1_somi */
94*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x21ce, PIN_INPUT_PULLDOWN | MUX_MODE0)   /* mcspi1_cs0.mcspi1_cs0 */
95*f126890aSEmmanuel Vadot		>;
96*f126890aSEmmanuel Vadot	};
97*f126890aSEmmanuel Vadot};
98*f126890aSEmmanuel Vadot
99*f126890aSEmmanuel Vadot&gpio4 {
100*f126890aSEmmanuel Vadot	pinctrl-names = "default";
101*f126890aSEmmanuel Vadot	pinctrl-0 = <&gpio4_pins>;
102*f126890aSEmmanuel Vadot};
103*f126890aSEmmanuel Vadot
104*f126890aSEmmanuel Vadot&gpio5 {
105*f126890aSEmmanuel Vadot	pinctrl-names = "default";
106*f126890aSEmmanuel Vadot	pinctrl-0 = <&gpio5_pins>;
107*f126890aSEmmanuel Vadot};
108*f126890aSEmmanuel Vadot
109*f126890aSEmmanuel Vadot&mmc2 {
110*f126890aSEmmanuel Vadot	status = "okay";
111*f126890aSEmmanuel Vadot	bus-width = <4>;
112*f126890aSEmmanuel Vadot	vmmc-supply = <&vmmc1>;
113*f126890aSEmmanuel Vadot	cd-gpios = <&gpio6 4 GPIO_ACTIVE_HIGH>;   /* gpio_164 */
114*f126890aSEmmanuel Vadot	wp-gpios = <&gpio6 3 GPIO_ACTIVE_HIGH>;   /* gpio_163 */
115*f126890aSEmmanuel Vadot	pinctrl-names = "default";
116*f126890aSEmmanuel Vadot	pinctrl-0 = <&mmc2_pins>;
117*f126890aSEmmanuel Vadot	ti,dual-volt;
118*f126890aSEmmanuel Vadot};
119*f126890aSEmmanuel Vadot
120*f126890aSEmmanuel Vadot&mcspi1 {
121*f126890aSEmmanuel Vadot	status = "okay";
122*f126890aSEmmanuel Vadot	pinctrl-names = "default";
123*f126890aSEmmanuel Vadot	pinctrl-0 = <&spi1_pins>;
124*f126890aSEmmanuel Vadot};
125*f126890aSEmmanuel Vadot
126*f126890aSEmmanuel Vadot&gpmc {
127*f126890aSEmmanuel Vadot	ranges = <0 0 0x30000000 0x1000000>,   /* nand assigned by COM a83x */
128*f126890aSEmmanuel Vadot		<4 0 0x20000000 0x01000000>,
129*f126890aSEmmanuel Vadot		<7 0 0x15000000 0x01000000>;   /* eth assigend by COM a83x */
130*f126890aSEmmanuel Vadot
131*f126890aSEmmanuel Vadot	ethernet@4,0 {
132*f126890aSEmmanuel Vadot		compatible = "smsc,lan9117", "smsc,lan9115";
133*f126890aSEmmanuel Vadot		bank-width = <2>;
134*f126890aSEmmanuel Vadot		gpmc,mux-add-data = <2>;
135*f126890aSEmmanuel Vadot		gpmc,cs-on-ns = <10>;
136*f126890aSEmmanuel Vadot		gpmc,cs-rd-off-ns = <65>;
137*f126890aSEmmanuel Vadot		gpmc,cs-wr-off-ns = <65>;
138*f126890aSEmmanuel Vadot		gpmc,adv-on-ns = <0>;
139*f126890aSEmmanuel Vadot		gpmc,adv-rd-off-ns = <10>;
140*f126890aSEmmanuel Vadot		gpmc,adv-wr-off-ns = <10>;
141*f126890aSEmmanuel Vadot		gpmc,oe-on-ns = <10>;
142*f126890aSEmmanuel Vadot		gpmc,oe-off-ns = <65>;
143*f126890aSEmmanuel Vadot		gpmc,we-on-ns = <10>;
144*f126890aSEmmanuel Vadot		gpmc,we-off-ns = <65>;
145*f126890aSEmmanuel Vadot		gpmc,rd-cycle-ns = <100>;
146*f126890aSEmmanuel Vadot		gpmc,wr-cycle-ns = <100>;
147*f126890aSEmmanuel Vadot		gpmc,access-ns = <60>;
148*f126890aSEmmanuel Vadot		gpmc,page-burst-access-ns = <5>;
149*f126890aSEmmanuel Vadot		gpmc,bus-turnaround-ns = <0>;
150*f126890aSEmmanuel Vadot		gpmc,cycle2cycle-delay-ns = <75>;
151*f126890aSEmmanuel Vadot		gpmc,wr-data-mux-bus-ns = <15>;
152*f126890aSEmmanuel Vadot		gpmc,wr-access-ns = <75>;
153*f126890aSEmmanuel Vadot		gpmc,cycle2cycle-samecsen;
154*f126890aSEmmanuel Vadot		gpmc,cycle2cycle-diffcsen;
155*f126890aSEmmanuel Vadot		vddvario-supply = <&reg_vcc3>;
156*f126890aSEmmanuel Vadot		vdd33a-supply = <&reg_vcc3>;
157*f126890aSEmmanuel Vadot		reg-io-width = <4>;
158*f126890aSEmmanuel Vadot		interrupt-parent = <&gpio4>;
159*f126890aSEmmanuel Vadot		interrupts = <2 0x2>;
160*f126890aSEmmanuel Vadot		reg = <4 0 0xff>;
161*f126890aSEmmanuel Vadot		pinctrl-names = "default";
162*f126890aSEmmanuel Vadot		pinctrl-0 = <&lan9117_pins>;
163*f126890aSEmmanuel Vadot		phy-mode = "mii";
164*f126890aSEmmanuel Vadot		smsc,force-internal-phy;
165*f126890aSEmmanuel Vadot	};
166*f126890aSEmmanuel Vadot};
167