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