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