0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * Copyright (C) 2015-2016 Paul Kocialkowski <contact@paulk.fr>
0004 */
0005 /dts-v1/;
0006
0007 #include "omap36xx.dtsi"
0008 #include <dt-bindings/input/input.h>
0009
0010 / {
0011 model = "LG Optimus Black";
0012 compatible = "lg,omap3-sniper", "ti,omap3630", "ti,omap36xx", "ti,omap3";
0013
0014 cpus {
0015 cpu@0 {
0016 cpu0-supply = <&vcc>;
0017 };
0018 };
0019
0020 memory@80000000 {
0021 device_type = "memory";
0022 reg = <0x80000000 0x20000000>; /* 512 MB */
0023 };
0024 };
0025
0026 &omap3_pmx_core {
0027 pinctrl-names = "default";
0028
0029 uart3_pins: pinmux_uart3_pins {
0030 pinctrl-single,pins = <
0031 OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0) /* uart3_rx_irrx */
0032 OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx */
0033 >;
0034 };
0035
0036 dp3t_sel_pins: pinmux_dp3t_sel_pins {
0037 pinctrl-single,pins = <
0038 OMAP3_CORE1_IOPAD(0x2196, PIN_OUTPUT | MUX_MODE4) /* gpio_161 */
0039 OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4) /* gpio_162 */
0040 >;
0041 };
0042
0043 i2c1_pins: pinmux_i2c1_pins {
0044 pinctrl-single,pins = <
0045 OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0) /* i2c1_scl */
0046 OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0) /* i2c1_sda */
0047 >;
0048 };
0049
0050 i2c2_pins: pinmux_i2c2_pins {
0051 pinctrl-single,pins = <
0052 OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT | MUX_MODE0) /* i2c2_scl */
0053 OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT | MUX_MODE0) /* i2c2_sda */
0054 >;
0055 };
0056
0057 i2c3_pins: pinmux_i2c3_pins {
0058 pinctrl-single,pins = <
0059 OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT | MUX_MODE0) /* i2c3_scl */
0060 OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT | MUX_MODE0) /* i2c3_sda */
0061 >;
0062 };
0063
0064 lp8720_en_pin: pinmux_lp8720_en_pin {
0065 pinctrl-single,pins = <
0066 OMAP3_CORE1_IOPAD(0x2080, PIN_OUTPUT | MUX_MODE4) /* gpio_37 */
0067 >;
0068 };
0069
0070 mmc1_pins: pinmux_mmc1_pins {
0071 pinctrl-single,pins = <
0072 OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT | MUX_MODE0) /* sdmmc1_clk */
0073 OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT | MUX_MODE0) /* sdmmc1_cmd */
0074 OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat0 */
0075 OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat1 */
0076 OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat2 */
0077 OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT | MUX_MODE0) /* sdmmc1_dat3 */
0078 >;
0079 };
0080
0081 mmc2_pins: pinmux_mmc2_pins {
0082 pinctrl-single,pins = <
0083 OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT | MUX_MODE0) /* sdmmc2_clk */
0084 OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT | MUX_MODE0) /* sdmmc2_cmd */
0085 OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT | MUX_MODE0) /* sdmmc2_dat0 */
0086 OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT | MUX_MODE0) /* sdmmc2_dat1 */
0087 OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT | MUX_MODE0) /* sdmmc2_dat2 */
0088 OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT | MUX_MODE0) /* sdmmc2_dat3 */
0089 OMAP3_CORE1_IOPAD(0x2164, PIN_INPUT | MUX_MODE0) /* sdmmc2_dat4 */
0090 OMAP3_CORE1_IOPAD(0x2166, PIN_INPUT | MUX_MODE0) /* sdmmc2_dat5 */
0091 OMAP3_CORE1_IOPAD(0x2168, PIN_INPUT | MUX_MODE0) /* sdmmc2_dat6 */
0092 OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT | MUX_MODE0) /* sdmmc2_dat7 */
0093 >;
0094 };
0095
0096 usb_otg_hs_pins: pinmux_usb_otg_hs_pins {
0097 pinctrl-single,pins = <
0098 OMAP3_CORE1_IOPAD(0x21a2, PIN_INPUT | MUX_MODE0) /* hsusb0_clk */
0099 OMAP3_CORE1_IOPAD(0x21a4, PIN_OUTPUT | MUX_MODE0) /* hsusb0_stp */
0100 OMAP3_CORE1_IOPAD(0x21a6, PIN_INPUT | MUX_MODE0) /* hsusb0_dir */
0101 OMAP3_CORE1_IOPAD(0x21a8, PIN_INPUT | MUX_MODE0) /* hsusb0_nxt */
0102 OMAP3_CORE1_IOPAD(0x21aa, PIN_INPUT | MUX_MODE0) /* hsusb0_data0 */
0103 OMAP3_CORE1_IOPAD(0x21ac, PIN_INPUT | MUX_MODE0) /* hsusb0_data1 */
0104 OMAP3_CORE1_IOPAD(0x21ae, PIN_INPUT | MUX_MODE0) /* hsusb0_data2 */
0105 OMAP3_CORE1_IOPAD(0x21b0, PIN_INPUT | MUX_MODE0) /* hsusb0_data3 */
0106 OMAP3_CORE1_IOPAD(0x21b2, PIN_INPUT | MUX_MODE0) /* hsusb0_data4 */
0107 OMAP3_CORE1_IOPAD(0x21b4, PIN_INPUT | MUX_MODE0) /* hsusb0_data5 */
0108 OMAP3_CORE1_IOPAD(0x21b6, PIN_INPUT | MUX_MODE0) /* hsusb0_data6 */
0109 OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT | MUX_MODE0) /* hsusb0_data7 */
0110 >;
0111 };
0112 };
0113
0114 &omap3_pmx_wkup {
0115 pinctrl-names = "default";
0116
0117 mmc1_cd_pin: pinmux_mmc1_cd_pin {
0118 pinctrl-single,pins = <
0119 OMAP3_WKUP_IOPAD(0x2a1a, PIN_INPUT | MUX_MODE4) /* gpio_10 */
0120 >;
0121 };
0122 };
0123
0124 &gpio2 {
0125 ti,no-reset-on-init;
0126 };
0127
0128 &gpio5 {
0129 ti,no-reset-on-init;
0130 };
0131
0132 &gpio6 {
0133 ti,no-reset-on-init;
0134 };
0135
0136 &uart3 {
0137 pinctrl-names = "default";
0138 pinctrl-0 = <&uart3_pins &dp3t_sel_pins>;
0139
0140 interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
0141 };
0142
0143 &i2c1 {
0144 pinctrl-names = "default";
0145 pinctrl-0 = <&i2c1_pins>;
0146
0147 clock-frequency = <2600000>;
0148
0149 twl: twl@48 {
0150 reg = <0x48>;
0151 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
0152 interrupt-parent = <&intc>;
0153
0154 power {
0155 compatible = "ti,twl4030-power";
0156 ti,use_poweroff;
0157 };
0158 };
0159 };
0160
0161 &i2c2 {
0162 pinctrl-names = "default";
0163 pinctrl-0 = <&i2c2_pins>;
0164
0165 clock-frequency = <400000>;
0166 };
0167
0168 &i2c3 {
0169 pinctrl-names = "default";
0170 pinctrl-0 = <&i2c3_pins>;
0171
0172 clock-frequency = <400000>;
0173
0174 lp8720@7d {
0175 pinctrl-names = "default";
0176 pinctrl-0 = <&lp8720_en_pin>;
0177
0178 compatible = "ti,lp8720";
0179 reg = <0x7d>;
0180
0181 enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; /* gpio_37 */
0182
0183 lp8720_ldo1: ldo1 {
0184 regulator-min-microvolt = <3000000>;
0185 regulator-max-microvolt = <3000000>;
0186 };
0187 };
0188 };
0189
0190 &mmc1 {
0191 pinctrl-names = "default";
0192 pinctrl-0 = <&mmc1_pins &mmc1_cd_pin>;
0193
0194 vmmc-supply = <&lp8720_ldo1>;
0195 cd-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; /* gpio 10 */
0196 bus-width = <4>;
0197 };
0198
0199 &mmc2 {
0200 pinctrl-names = "default";
0201 pinctrl-0 = <&mmc2_pins>;
0202
0203 vmmc-supply = <&vmmc2>;
0204 ti,non-removable;
0205 bus-width = <8>;
0206 };
0207
0208 &mmc3 {
0209 status = "disabled";
0210 };
0211
0212 &usb_otg_hs {
0213 pinctrl-names = "default";
0214 pinctrl-0 = <&usb_otg_hs_pins>;
0215
0216 interface-type = <0>;
0217 usb-phy = <&usb2_phy>;
0218 phys = <&usb2_phy>;
0219 phy-names = "usb2-phy";
0220 mode = <3>;
0221 power = <50>;
0222 };
0223
0224 #include "twl4030.dtsi"
0225 #include "twl4030_omap3.dtsi"
0226
0227 &twl_keypad {
0228 linux,keymap = <
0229 MATRIX_KEY(0x00, 0x00, KEY_VOLUMEUP)
0230 MATRIX_KEY(0x01, 0x00, KEY_VOLUMEDOWN)
0231 MATRIX_KEY(0x02, 0x00, KEY_SELECT)
0232 >;
0233 };
0234
0235 /*
0236 * The TWL4030 VAUX2 and VDAC regulators power sensors that are slaves on I2C3.
0237 * When not powered, these sensors cause the I2C3 clock to stay low at all times,
0238 * making it impossible to reach other devices on I2C3.
0239 */
0240
0241 &vaux2 {
0242 regulator-min-microvolt = <2800000>;
0243 regulator-max-microvolt = <2800000>;
0244 regulator-always-on;
0245 };
0246
0247 &vdac {
0248 regulator-min-microvolt = <1800000>;
0249 regulator-max-microvolt = <1800000>;
0250 regulator-always-on;
0251 };