Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Common support for omap3 EVM boards
0004  */
0005 
0006 #include <dt-bindings/input/input.h>
0007 #include "omap-gpmc-smsc911x.dtsi"
0008 
0009 / {
0010         cpus {
0011                 cpu@0 {
0012                         cpu0-supply = <&vcc>;
0013                 };
0014         };
0015 
0016         /* HS USB Port 2 Power */
0017         hsusb2_power: hsusb2_power_reg {
0018                 compatible = "regulator-fixed";
0019                 regulator-name = "hsusb2_vbus";
0020                 regulator-min-microvolt = <3300000>;
0021                 regulator-max-microvolt = <3300000>;
0022                 gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>; /* gpio_22 */
0023                 startup-delay-us = <70000>;
0024                 enable-active-high;
0025         };
0026 
0027         /* HS USB Host PHY on PORT 2 */
0028         hsusb2_phy: hsusb2_phy {
0029                 compatible = "usb-nop-xceiv";
0030                 reset-gpios = <&gpio1 21 GPIO_ACTIVE_LOW>; /* gpio_21 */
0031                 vcc-supply = <&hsusb2_power>;
0032                 #phy-cells = <0>;
0033         };
0034 
0035         leds {
0036                 compatible = "gpio-leds";
0037                 ledb {
0038                         label = "omap3evm::ledb";
0039                         gpios = <&twl_gpio 19 GPIO_ACTIVE_HIGH>; /* LEDB */
0040                         linux,default-trigger = "default-on";
0041                 };
0042         };
0043 
0044         wl12xx_vmmc: wl12xx_vmmc {
0045                 compatible = "regulator-fixed";
0046                 regulator-name = "vwl1271";
0047                 regulator-min-microvolt = <1800000>;
0048                 regulator-max-microvolt = <1800000>;
0049                 gpio = <&gpio5 22 GPIO_ACTIVE_HIGH>;    /* gpio150 */
0050                 startup-delay-us = <70000>;
0051                 enable-active-high;
0052                 vin-supply = <&vmmc2>;
0053         };
0054 };
0055 
0056 &i2c1 {
0057         clock-frequency = <2600000>;
0058 
0059         twl: twl@48 {
0060                 reg = <0x48>;
0061                 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
0062                 interrupt-parent = <&intc>;
0063         };
0064 };
0065 
0066 #include "twl4030.dtsi"
0067 #include "twl4030_omap3.dtsi"
0068 #include "omap3-panel-sharp-ls037v7dw01.dtsi"
0069 
0070 &backlight0 {
0071         gpios = <&twl_gpio 18 GPIO_ACTIVE_LOW>;
0072 };
0073 
0074 &twl {
0075         twl_power: power {
0076                 compatible = "ti,twl4030-power-omap3-evm", "ti,twl4030-power-idle";
0077                 ti,use_poweroff;
0078         };
0079 };
0080 
0081 &i2c2 {
0082         clock-frequency = <400000>;
0083 };
0084 
0085 &i2c3 {
0086         clock-frequency = <400000>;
0087 
0088         /*
0089          * TVP5146 Video decoder-in for analog input support.
0090          */
0091         tvp5146@5c {
0092                 compatible = "ti,tvp5146m2";
0093                 reg = <0x5c>;
0094         };
0095 };
0096 
0097 &lcd_3v3 {
0098         gpio = <&gpio5 25 GPIO_ACTIVE_LOW>;     /* gpio153 */
0099 };
0100 
0101 &lcd0 {
0102         enable-gpios = <&gpio5 24 GPIO_ACTIVE_HIGH>;    /* gpio152, lcd INI */
0103         reset-gpios = <&gpio5 27 GPIO_ACTIVE_HIGH>;     /* gpio155, lcd RESB */
0104         mode-gpios = <&gpio5 26 GPIO_ACTIVE_HIGH        /* gpio154, lcd MO */
0105                       &gpio1 2 GPIO_ACTIVE_HIGH         /* gpio2, lcd LR */
0106                       &gpio1 3 GPIO_ACTIVE_HIGH>;       /* gpio3, lcd UD */
0107 };
0108 
0109 &mcspi1 {
0110         tsc2046@0 {
0111                 interrupt-parent = <&gpio6>;
0112                 interrupts = <15 0>;            /* gpio175 */
0113                 pendown-gpio = <&gpio6 15 GPIO_ACTIVE_HIGH>;
0114         };
0115 };
0116 
0117 &mmc1 {
0118         interrupts-extended = <&intc 83 &omap3_pmx_core 0x11a>;
0119         vmmc-supply = <&vmmc1>;
0120         vqmmc-supply = <&vsim>;
0121         bus-width = <8>;
0122 };
0123 
0124 &mmc2 {
0125         interrupts-extended = <&intc 86 &omap3_pmx_core 0x12e>;
0126         vmmc-supply = <&wl12xx_vmmc>;
0127         non-removable;
0128         bus-width = <4>;
0129         cap-power-off-card;
0130 
0131         #address-cells = <1>;
0132         #size-cells = <0>;
0133         wlcore: wlcore@2 {
0134                 compatible = "ti,wl1271";
0135                 reg = <2>;
0136                 /* gpio_149 with uart1_rts pad as wakeirq */
0137                 interrupts-extended = <&gpio5 21 IRQ_TYPE_EDGE_RISING>,
0138                                       <&omap3_pmx_core 0x14e>;
0139                 interrupt-names = "irq", "wakeup";
0140                 ref-clock-frequency = <38400000>;
0141         };
0142 };
0143 
0144 &twl_gpio {
0145         ti,use-leds;
0146 };
0147 
0148 &twl_keypad {
0149         linux,keymap = <
0150                         MATRIX_KEY(2, 2, KEY_1)
0151                         MATRIX_KEY(1, 1, KEY_2)
0152                         MATRIX_KEY(0, 0, KEY_3)
0153                         MATRIX_KEY(3, 2, KEY_4)
0154                         MATRIX_KEY(2, 1, KEY_5)
0155                         MATRIX_KEY(1, 0, KEY_6)
0156                         MATRIX_KEY(1, 3, KEY_7)
0157                         MATRIX_KEY(3, 1, KEY_8)
0158                         MATRIX_KEY(2, 0, KEY_9)
0159                         MATRIX_KEY(2, 3, KEY_KPASTERISK)
0160                         MATRIX_KEY(0, 2, KEY_0)
0161                         MATRIX_KEY(3, 0, KEY_KPDOT)
0162                         /* s4 not wired */
0163                         MATRIX_KEY(1, 2, KEY_BACKSPACE)
0164                         MATRIX_KEY(0, 1, KEY_ENTER)
0165                         >;
0166 };
0167 
0168 &usbhshost {
0169         port2-mode = "ehci-phy";
0170 };
0171 
0172 &usbhsehci {
0173         phys = <0 &hsusb2_phy>;
0174 };
0175 
0176 &usb_otg_hs {
0177         interface-type = <0>;
0178         usb-phy = <&usb2_phy>;
0179         phys = <&usb2_phy>;
0180         phy-names = "usb2-phy";
0181         mode = <3>;
0182         power = <50>;
0183 };
0184 
0185 &gpmc {
0186         ethernet@gpmc {
0187                 interrupt-parent = <&gpio6>;
0188                 interrupts = <16 8>;
0189                 reg = <5 0 0xff>;
0190         };
0191 };
0192 
0193 &vaux2 {
0194         regulator-name = "usb_1v8";
0195         regulator-min-microvolt = <1800000>;
0196         regulator-max-microvolt = <1800000>;
0197         regulator-always-on;
0198 };