xref: /freebsd/sys/contrib/device-tree/src/arm/ti/omap/logicpd-som-lv-baseboard.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot
3*f126890aSEmmanuel Vadot/ {
4*f126890aSEmmanuel Vadot	gpio_keys {
5*f126890aSEmmanuel Vadot		compatible = "gpio-keys";
6*f126890aSEmmanuel Vadot		pinctrl-names = "default";
7*f126890aSEmmanuel Vadot		pinctrl-0 = <&gpio_key_pins>;
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadot		sysboot2 {
10*f126890aSEmmanuel Vadot			label = "gpio3";
11*f126890aSEmmanuel Vadot			gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;	/* gpio_111 / uP_GPIO_3 */
12*f126890aSEmmanuel Vadot			linux,code = <BTN_0>;
13*f126890aSEmmanuel Vadot			wakeup-source;
14*f126890aSEmmanuel Vadot		};
15*f126890aSEmmanuel Vadot	};
16*f126890aSEmmanuel Vadot
17*f126890aSEmmanuel Vadot	sound {
18*f126890aSEmmanuel Vadot		compatible = "ti,omap-twl4030";
19*f126890aSEmmanuel Vadot		ti,model = "omap3logic";
20*f126890aSEmmanuel Vadot		ti,mcbsp = <&mcbsp2>;
21*f126890aSEmmanuel Vadot	};
22*f126890aSEmmanuel Vadot
23*f126890aSEmmanuel Vadot	leds {
24*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
25*f126890aSEmmanuel Vadot		pinctrl-names = "default";
26*f126890aSEmmanuel Vadot		pinctrl-0 = <&led_pins &led_pins_wkup>;
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot		led1 {
29*f126890aSEmmanuel Vadot			label = "led1";
30*f126890aSEmmanuel Vadot			gpios = <&gpio5 5 GPIO_ACTIVE_LOW>;	/* gpio133 */
31*f126890aSEmmanuel Vadot			linux,default-trigger = "cpu0";
32*f126890aSEmmanuel Vadot		};
33*f126890aSEmmanuel Vadot
34*f126890aSEmmanuel Vadot		led2 {
35*f126890aSEmmanuel Vadot			label = "led2";
36*f126890aSEmmanuel Vadot			gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;	/* gpio11 */
37*f126890aSEmmanuel Vadot			linux,default-trigger = "none";
38*f126890aSEmmanuel Vadot		};
39*f126890aSEmmanuel Vadot	};
40*f126890aSEmmanuel Vadot};
41*f126890aSEmmanuel Vadot
42*f126890aSEmmanuel Vadot&vaux1 {
43*f126890aSEmmanuel Vadot	regulator-min-microvolt = <3000000>;
44*f126890aSEmmanuel Vadot	regulator-max-microvolt = <3000000>;
45*f126890aSEmmanuel Vadot};
46*f126890aSEmmanuel Vadot
47*f126890aSEmmanuel Vadot&vaux4 {
48*f126890aSEmmanuel Vadot	regulator-min-microvolt = <1800000>;
49*f126890aSEmmanuel Vadot	regulator-max-microvolt = <1800000>;
50*f126890aSEmmanuel Vadot};
51*f126890aSEmmanuel Vadot
52*f126890aSEmmanuel Vadot&mcbsp2 {
53*f126890aSEmmanuel Vadot	status = "okay";
54*f126890aSEmmanuel Vadot	pinctrl-names = "default";
55*f126890aSEmmanuel Vadot	pinctrl-0 = <&mcbsp2_pins>;
56*f126890aSEmmanuel Vadot};
57*f126890aSEmmanuel Vadot
58*f126890aSEmmanuel Vadot&charger {
59*f126890aSEmmanuel Vadot	ti,bb-uvolt = <3200000>;
60*f126890aSEmmanuel Vadot	ti,bb-uamp = <150>;
61*f126890aSEmmanuel Vadot};
62*f126890aSEmmanuel Vadot
63*f126890aSEmmanuel Vadot&gpmc {
64*f126890aSEmmanuel Vadot	ranges = <0 0 0x30000000 0x1000000	/* CS0: 16MB for NAND */
65*f126890aSEmmanuel Vadot		  1 0 0x2c000000 0x1000000	/* CS1: 16MB for LAN9221 */
66*f126890aSEmmanuel Vadot		  2 0 0x10000000 0x2000000>;    /* CS2: 32MB for NOR */
67*f126890aSEmmanuel Vadot
68*f126890aSEmmanuel Vadot	ethernet@gpmc {
69*f126890aSEmmanuel Vadot		pinctrl-names = "default";
70*f126890aSEmmanuel Vadot		pinctrl-0 = <&lan9221_pins>;
71*f126890aSEmmanuel Vadot		interrupt-parent = <&gpio5>;
72*f126890aSEmmanuel Vadot		interrupts = <24 IRQ_TYPE_LEVEL_LOW>;		/* gpio_152 */
73*f126890aSEmmanuel Vadot		reg = <1 0 0xff>;
74*f126890aSEmmanuel Vadot	};
75*f126890aSEmmanuel Vadot};
76*f126890aSEmmanuel Vadot
77*f126890aSEmmanuel Vadot&vpll2 {
78*f126890aSEmmanuel Vadot	regulator-always-on;
79*f126890aSEmmanuel Vadot};
80*f126890aSEmmanuel Vadot
81*f126890aSEmmanuel Vadot&dss {
82*f126890aSEmmanuel Vadot	status = "okay";
83*f126890aSEmmanuel Vadot	vdds_dsi-supply = <&vpll2>;
84*f126890aSEmmanuel Vadot	vdda_video-supply = <&video_reg>;
85*f126890aSEmmanuel Vadot	pinctrl-names = "default";
86*f126890aSEmmanuel Vadot	pinctrl-0 = <&dss_dpi_pins1>;
87*f126890aSEmmanuel Vadot	port {
88*f126890aSEmmanuel Vadot		dpi_out: endpoint {
89*f126890aSEmmanuel Vadot			remote-endpoint = <&lcd_in>;
90*f126890aSEmmanuel Vadot			data-lines = <16>;
91*f126890aSEmmanuel Vadot		};
92*f126890aSEmmanuel Vadot	};
93*f126890aSEmmanuel Vadot};
94*f126890aSEmmanuel Vadot
95*f126890aSEmmanuel Vadot/ {
96*f126890aSEmmanuel Vadot	aliases {
97*f126890aSEmmanuel Vadot		display0 = &lcd0;
98*f126890aSEmmanuel Vadot	};
99*f126890aSEmmanuel Vadot
100*f126890aSEmmanuel Vadot	video_reg: video_reg {
101*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
102*f126890aSEmmanuel Vadot		regulator-name = "fixed-supply";
103*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
104*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
105*f126890aSEmmanuel Vadot	};
106*f126890aSEmmanuel Vadot
107*f126890aSEmmanuel Vadot	lcd0: display {
108*f126890aSEmmanuel Vadot		/* This isn't the exact LCD, but the timings meet spec */
109*f126890aSEmmanuel Vadot		compatible = "logicpd,type28";
110*f126890aSEmmanuel Vadot		pinctrl-names = "default";
111*f126890aSEmmanuel Vadot		pinctrl-0 = <&lcd_enable_pin>;
112*f126890aSEmmanuel Vadot		backlight = <&bl>;
113*f126890aSEmmanuel Vadot		enable-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>;
114*f126890aSEmmanuel Vadot		port {
115*f126890aSEmmanuel Vadot			lcd_in: endpoint {
116*f126890aSEmmanuel Vadot				remote-endpoint = <&dpi_out>;
117*f126890aSEmmanuel Vadot			};
118*f126890aSEmmanuel Vadot		};
119*f126890aSEmmanuel Vadot	};
120*f126890aSEmmanuel Vadot
121*f126890aSEmmanuel Vadot	bl: backlight {
122*f126890aSEmmanuel Vadot		compatible = "pwm-backlight";
123*f126890aSEmmanuel Vadot		pinctrl-names = "default";
124*f126890aSEmmanuel Vadot		pinctrl-0 = <&backlight_pins>;
125*f126890aSEmmanuel Vadot		pwms = <&twl_pwm 0 5000000>;
126*f126890aSEmmanuel Vadot		brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
127*f126890aSEmmanuel Vadot		default-brightness-level = <7>;
128*f126890aSEmmanuel Vadot		enable-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>; /* gpio_8 */
129*f126890aSEmmanuel Vadot	};
130*f126890aSEmmanuel Vadot};
131*f126890aSEmmanuel Vadot
132*f126890aSEmmanuel Vadot&mmc1 {
133*f126890aSEmmanuel Vadot	interrupts-extended = <&intc 83 &omap3_pmx_core 0x11a>;
134*f126890aSEmmanuel Vadot	pinctrl-names = "default";
135*f126890aSEmmanuel Vadot	pinctrl-0 = <&mmc1_pins>;
136*f126890aSEmmanuel Vadot	wp-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;		/* gpio_126 */
137*f126890aSEmmanuel Vadot	cd-gpios = <&gpio4 14 GPIO_ACTIVE_LOW>;			/* gpio_110 */
138*f126890aSEmmanuel Vadot	vmmc-supply = <&vmmc1>;
139*f126890aSEmmanuel Vadot	bus-width = <4>;
140*f126890aSEmmanuel Vadot	cap-power-off-card;
141*f126890aSEmmanuel Vadot};
142*f126890aSEmmanuel Vadot
143*f126890aSEmmanuel Vadot&omap3_pmx_core {
144*f126890aSEmmanuel Vadot	gpio_key_pins: gpio-key-pins {
145*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
146*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x212e, PIN_INPUT_PULLUP | MUX_MODE4)	/* cam_xclkb.gpio_111 / uP_GPIO_3*/
147*f126890aSEmmanuel Vadot		>;
148*f126890aSEmmanuel Vadot	};
149*f126890aSEmmanuel Vadot
150*f126890aSEmmanuel Vadot	led_pins: led-pins {
151*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
152*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x215e, PIN_OUTPUT_PULLUP | MUX_MODE4)	/* sdmmc2_dat1.gpio_133 / uP_GPIO_0 */
153*f126890aSEmmanuel Vadot		>;
154*f126890aSEmmanuel Vadot	};
155*f126890aSEmmanuel Vadot
156*f126890aSEmmanuel Vadot	lan9221_pins: lan9221-pins {
157*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
158*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2184, PIN_INPUT_PULLUP | MUX_MODE4)	/* mcbsp4_clkx.gpio_152 */
159*f126890aSEmmanuel Vadot		>;
160*f126890aSEmmanuel Vadot	};
161*f126890aSEmmanuel Vadot
162*f126890aSEmmanuel Vadot	mmc1_pins: mmc1-pins {
163*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
164*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2144, PIN_OUTPUT | MUX_MODE0)	/* sdmmc1_clk.sdmmc1_clk */
165*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT | MUX_MODE0)	/* sdmmc1_cmd.sdmmc1_cmd */
166*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat0.sdmmc1_dat0 */
167*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat1.sdmmc1_dat1 */
168*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat2.sdmmc1_dat2 */
169*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT | MUX_MODE0)	/* sdmmc1_dat3.sdmmc1_dat3 */
170*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x2132, PIN_INPUT_PULLUP | MUX_MODE4)	/* cam_strobe.gpio_126 */
171*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x212c, PIN_INPUT_PULLUP | MUX_MODE4)	/* cam_d11.gpio_110 */
172*f126890aSEmmanuel Vadot		>;
173*f126890aSEmmanuel Vadot	};
174*f126890aSEmmanuel Vadot
175*f126890aSEmmanuel Vadot	lcd_enable_pin: lcd-enable-pins {
176*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
177*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x218a, PIN_OUTPUT | PIN_OFF_OUTPUT_LOW | MUX_MODE4)       /* mcbsp4_fs.gpio_155 */
178*f126890aSEmmanuel Vadot		>;
179*f126890aSEmmanuel Vadot	};
180*f126890aSEmmanuel Vadot
181*f126890aSEmmanuel Vadot	dss_dpi_pins1: dss-dpi1-pins {
182*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
183*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_pclk.dss_pclk */
184*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_hsync.dss_hsync */
185*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_vsync.dss_vsync */
186*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_acbias.dss_acbias */
187*f126890aSEmmanuel Vadot
188*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data0.dss_data0 */
189*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data1.dss_data1 */
190*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data2.dss_data2 */
191*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data3.dss_data3 */
192*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data4.dss_data4 */
193*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data5.dss_data5 */
194*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data6.dss_data6 */
195*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data7.dss_data7 */
196*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data8.dss_data8 */
197*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data9.dss_data9 */
198*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data10.dss_data10 */
199*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data11.dss_data11 */
200*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data12.dss_data12 */
201*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data13.dss_data13 */
202*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data14.dss_data14 */
203*f126890aSEmmanuel Vadot			OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT_PULLDOWN | PIN_OFF_OUTPUT_LOW | MUX_MODE0)   /* dss_data15.dss_data15 */
204*f126890aSEmmanuel Vadot		>;
205*f126890aSEmmanuel Vadot	};
206*f126890aSEmmanuel Vadot};
207*f126890aSEmmanuel Vadot
208*f126890aSEmmanuel Vadot&omap3_pmx_wkup {
209*f126890aSEmmanuel Vadot	led_pins_wkup: led-wkup-pins {
210*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
211*f126890aSEmmanuel Vadot			OMAP3_WKUP_IOPAD(0x2a24, PIN_OUTPUT_PULLUP | MUX_MODE4)	/* jtag_emu0.gpio_11 / uP_GPIO_1 */
212*f126890aSEmmanuel Vadot		>;
213*f126890aSEmmanuel Vadot	};
214*f126890aSEmmanuel Vadot
215*f126890aSEmmanuel Vadot	backlight_pins: backlight-pins {
216*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
217*f126890aSEmmanuel Vadot			OMAP3_WKUP_IOPAD(0x2a16, PIN_OUTPUT | PIN_OFF_OUTPUT_LOW | MUX_MODE4)       /* sys_boot6.gpio_8 */
218*f126890aSEmmanuel Vadot		>;
219*f126890aSEmmanuel Vadot	};
220*f126890aSEmmanuel Vadot};
221*f126890aSEmmanuel Vadot
222*f126890aSEmmanuel Vadot
223*f126890aSEmmanuel Vadot&uart1 {
224*f126890aSEmmanuel Vadot	interrupts-extended = <&intc 72 &omap3_pmx_core OMAP3_UART1_RX>;
225*f126890aSEmmanuel Vadot};
226*f126890aSEmmanuel Vadot
227*f126890aSEmmanuel Vadot/* Wired to the tps65950 on the SOM, only the USB connector is on the devkit */
228*f126890aSEmmanuel Vadot&usb_otg_hs {
229*f126890aSEmmanuel Vadot	pinctrl-names = "default";
230*f126890aSEmmanuel Vadot	pinctrl-0 = <&hsusb_otg_pins>;
231*f126890aSEmmanuel Vadot	interface-type = <0>;
232*f126890aSEmmanuel Vadot	usb-phy = <&usb2_phy>;
233*f126890aSEmmanuel Vadot	phys = <&usb2_phy>;
234*f126890aSEmmanuel Vadot	phy-names = "usb2-phy";
235*f126890aSEmmanuel Vadot	mode = <3>;
236*f126890aSEmmanuel Vadot	power = <50>;
237*f126890aSEmmanuel Vadot};
238