Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Copyright (C) 2014 Joachim Eastwood <manabian@gmail.com>
0004  * Copyright (C) 2012 Variscite Ltd. - https://www.variscite.com
0005  */
0006 #include "omap4460.dtsi"
0007 #include "omap4-mcpdm.dtsi"
0008 
0009 / {
0010         model = "Variscite VAR-SOM-OM44";
0011         compatible = "variscite,var-som-om44", "ti,omap4460", "ti,omap4";
0012 
0013         memory@80000000 {
0014                 device_type = "memory";
0015                 reg = <0x80000000 0x40000000>; /* 1 GB */
0016         };
0017 
0018         sound: sound {
0019                 compatible = "ti,abe-twl6040";
0020                 ti,model = "VAR-SOM-OM44";
0021 
0022                 ti,mclk-freq = <38400000>;
0023                 ti,mcpdm = <&mcpdm>;
0024                 ti,twl6040 = <&twl6040>;
0025 
0026                 /* Audio routing */
0027                 ti,audio-routing =
0028                         "Headset Stereophone", "HSOL",
0029                         "Headset Stereophone", "HSOR",
0030                         "AFML", "Line In",
0031                         "AFMR", "Line In";
0032         };
0033 
0034         /* HS USB Host PHY on PORT 1 */
0035         hsusb1_phy: hsusb1_phy {
0036                 compatible = "usb-nop-xceiv";
0037                 pinctrl-names = "default";
0038                 pinctrl-0 = <
0039                         &hsusbb1_phy_clk_pins
0040                         &hsusbb1_phy_rst_pins
0041                 >;
0042 
0043                 reset-gpios = <&gpio6 17 GPIO_ACTIVE_LOW>; /* gpio 177 */
0044                 vcc-supply = <&vbat>;
0045                 #phy-cells = <0>;
0046 
0047                 clocks = <&auxclk3_ck>;
0048                 clock-names = "main_clk";
0049                 clock-frequency = <19200000>;
0050         };
0051 
0052         vbat: fixedregulator-vbat {
0053                 compatible = "regulator-fixed";
0054                 regulator-name = "VBAT";
0055                 regulator-min-microvolt = <3300000>;
0056                 regulator-max-microvolt = <3300000>;
0057                 regulator-always-on;
0058                 regulator-boot-on;
0059         };
0060 };
0061 
0062 &omap4_pmx_core {
0063         pinctrl-names = "default";
0064         pinctrl-0 = <
0065                         &hsusbb1_pins
0066         >;
0067 
0068         twl6040_pins: pinmux_twl6040_pins {
0069                 pinctrl-single,pins = <
0070                         OMAP4_IOPAD(0x19c, PIN_OUTPUT | MUX_MODE3)              /* fref_clk2_out.gpio_182 */
0071                         OMAP4_IOPAD(0x1a0, PIN_INPUT | MUX_MODE0)               /* sys_nirq2.sys_nirq2 */
0072                 >;
0073         };
0074 
0075         tsc2004_pins: pinmux_tsc2004_pins {
0076                 pinctrl-single,pins = <
0077                         OMAP4_IOPAD(0x090, PIN_INPUT | MUX_MODE3)               /* gpmc_ncs4.gpio_101 (irq) */
0078                         OMAP4_IOPAD(0x092, PIN_OUTPUT | MUX_MODE3)              /* gpmc_ncs5.gpio_102 (rst) */
0079                 >;
0080         };
0081 
0082         uart3_pins: pinmux_uart3_pins {
0083                 pinctrl-single,pins = <
0084                         OMAP4_IOPAD(0x140, PIN_INPUT_PULLUP | MUX_MODE0)        /* uart3_cts_rctx.uart3_cts_rctx */
0085                         OMAP4_IOPAD(0x142, PIN_OUTPUT | MUX_MODE0)              /* uart3_rts_sd.uart3_rts_sd */
0086                         OMAP4_IOPAD(0x144, PIN_INPUT | MUX_MODE0)               /* uart3_rx_irrx.uart3_rx_irrx */
0087                         OMAP4_IOPAD(0x146, PIN_OUTPUT | MUX_MODE0)              /* uart3_tx_irtx.uart3_tx_irtx */
0088                 >;
0089         };
0090 
0091         hsusbb1_pins: pinmux_hsusbb1_pins {
0092                 pinctrl-single,pins = <
0093                         OMAP4_IOPAD(0x0c2, PIN_INPUT_PULLDOWN | MUX_MODE4)      /* usbb1_ulpitll_clk.usbb1_ulpiphy_clk */
0094                         OMAP4_IOPAD(0x0c4, PIN_OUTPUT | MUX_MODE4)              /* usbb1_ulpitll_stp.usbb1_ulpiphy_stp */
0095                         OMAP4_IOPAD(0x0c6, PIN_INPUT_PULLDOWN | MUX_MODE4)      /* usbb1_ulpitll_dir.usbb1_ulpiphy_dir */
0096                         OMAP4_IOPAD(0x0c8, PIN_INPUT_PULLDOWN | MUX_MODE4)      /* usbb1_ulpitll_nxt.usbb1_ulpiphy_nxt */
0097                         OMAP4_IOPAD(0x0ca, PIN_INPUT_PULLDOWN | MUX_MODE4)      /* usbb1_ulpitll_dat0.usbb1_ulpiphy_dat0 */
0098                         OMAP4_IOPAD(0x0cc, PIN_INPUT_PULLDOWN | MUX_MODE4)      /* usbb1_ulpitll_dat1.usbb1_ulpiphy_dat1 */
0099                         OMAP4_IOPAD(0x0ce, PIN_INPUT_PULLDOWN | MUX_MODE4)      /* usbb1_ulpitll_dat2.usbb1_ulpiphy_dat2 */
0100                         OMAP4_IOPAD(0x0d0, PIN_INPUT_PULLDOWN | MUX_MODE4)      /* usbb1_ulpitll_dat3.usbb1_ulpiphy_dat3 */
0101                         OMAP4_IOPAD(0x0d2, PIN_INPUT_PULLDOWN | MUX_MODE4)      /* usbb1_ulpitll_dat4.usbb1_ulpiphy_dat4 */
0102                         OMAP4_IOPAD(0x0d4, PIN_INPUT_PULLDOWN | MUX_MODE4)      /* usbb1_ulpitll_dat5.usbb1_ulpiphy_dat5 */
0103                         OMAP4_IOPAD(0x0d6, PIN_INPUT_PULLDOWN | MUX_MODE4)      /* usbb1_ulpitll_dat6.usbb1_ulpiphy_dat6 */
0104                         OMAP4_IOPAD(0x0d8, PIN_INPUT_PULLDOWN | MUX_MODE4)      /* usbb1_ulpitll_dat7.usbb1_ulpiphy_dat7 */
0105                 >;
0106         };
0107 
0108         hsusbb1_phy_rst_pins: pinmux_hsusbb1_phy_rst_pins {
0109                 pinctrl-single,pins = <
0110                         OMAP4_IOPAD(0x18c, PIN_OUTPUT | MUX_MODE3)              /* kpd_row2.gpio_177 */
0111                 >;
0112         };
0113 
0114         i2c1_pins: pinmux_i2c1_pins {
0115                 pinctrl-single,pins = <
0116                         OMAP4_IOPAD(0x122, PIN_INPUT_PULLUP | MUX_MODE0)        /* i2c1_scl */
0117                         OMAP4_IOPAD(0x124, PIN_INPUT_PULLUP | MUX_MODE0)        /* i2c1_sda */
0118                 >;
0119         };
0120 
0121         i2c3_pins: pinmux_i2c3_pins {
0122                 pinctrl-single,pins = <
0123                         OMAP4_IOPAD(0x12a, PIN_INPUT_PULLUP | MUX_MODE0)        /* i2c3_scl */
0124                         OMAP4_IOPAD(0x12c, PIN_INPUT_PULLUP | MUX_MODE0)        /* i2c3_sda */
0125                 >;
0126         };
0127 
0128         mmc1_pins: pinmux_mmc1_pins {
0129                 pinctrl-single,pins = <
0130                         OMAP4_IOPAD(0x0e2, PIN_INPUT_PULLUP | MUX_MODE0)        /* sdmmc1_clk.sdmmc1_clk */
0131                         OMAP4_IOPAD(0x0e4, PIN_INPUT_PULLUP | MUX_MODE0)        /* sdmmc1_cmd.sdmmc1_cmd */
0132                         OMAP4_IOPAD(0x0e6, PIN_INPUT_PULLUP | MUX_MODE0)        /* sdmmc1_dat0.sdmmc1_dat0 */
0133                         OMAP4_IOPAD(0x0e8, PIN_INPUT_PULLUP | MUX_MODE0)        /* sdmmc1_dat1.sdmmc1_dat1 */
0134                         OMAP4_IOPAD(0x0ea, PIN_INPUT_PULLUP | MUX_MODE0)        /* sdmmc1_dat2.sdmmc1_dat2 */
0135                         OMAP4_IOPAD(0x0ec, PIN_INPUT_PULLUP | MUX_MODE0)        /* sdmmc1_dat3.sdmmc1_dat3 */
0136                 >;
0137         };
0138 };
0139 
0140 &omap4_pmx_wkup {
0141         pinctrl-names = "default";
0142         pinctrl-0 = <
0143                 &hsusbb1_hub_rst_pins
0144                 &lan7500_rst_pins
0145         >;
0146 
0147         hsusbb1_phy_clk_pins: pinmux_hsusbb1_phy_clk_pins {
0148                 pinctrl-single,pins = <
0149                         OMAP4_IOPAD(0x058, PIN_OUTPUT | MUX_MODE0)      /* fref_clk3_out */
0150                 >;
0151         };
0152 
0153         hsusbb1_hub_rst_pins: pinmux_hsusbb1_hub_rst_pins {
0154                 pinctrl-single,pins = <
0155                         OMAP4_IOPAD(0x042, PIN_OUTPUT | MUX_MODE3)      /* gpio_wk1 */
0156                 >;
0157         };
0158 
0159         lan7500_rst_pins: pinmux_lan7500_rst_pins {
0160                 pinctrl-single,pins = <
0161                         OMAP4_IOPAD(0x040, PIN_OUTPUT | MUX_MODE3)      /* gpio_wk0 */
0162                 >;
0163         };
0164 };
0165 
0166 &i2c1 {
0167         pinctrl-names = "default";
0168         pinctrl-0 = <&i2c1_pins>;
0169         status = "okay";
0170 
0171         clock-frequency = <400000>;
0172 
0173         twl: twl@48 {
0174                 reg = <0x48>;
0175                 /* SPI = 0, IRQ# = 7, 4 = active high level-sensitive */
0176                 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_1N cascaded to gic */
0177         };
0178 
0179         twl6040: twl@4b {
0180                 compatible = "ti,twl6040";
0181                 #clock-cells = <0>;
0182                 reg = <0x4b>;
0183 
0184                 pinctrl-names = "default";
0185                 pinctrl-0 = <&twl6040_pins>;
0186 
0187                 /* SPI = 0, IRQ# = 119, 4 = active high level-sensitive */
0188                 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; /* IRQ_SYS_2N cascaded to gic */
0189                 ti,audpwron-gpio = <&gpio6 22 GPIO_ACTIVE_HIGH>; /* gpio 182 */
0190 
0191                 vio-supply = <&v1v8>;
0192                 v2v1-supply = <&v2v1>;
0193                 enable-active-high;
0194         };
0195 };
0196 
0197 #include "twl6030.dtsi"
0198 #include "twl6030_omap4.dtsi"
0199 
0200 &vusim {
0201         regulator-min-microvolt = <3000000>;
0202         regulator-max-microvolt = <3000000>;
0203         regulator-always-on;
0204 };
0205 
0206 &i2c2 {
0207         status = "disabled";
0208 };
0209 
0210 &i2c3 {
0211         pinctrl-names = "default";
0212         pinctrl-0 = <&i2c3_pins>;
0213         status = "okay";
0214 
0215         clock-frequency = <400000>;
0216 
0217         touchscreen: tsc2004@48 {
0218                 compatible = "ti,tsc2004";
0219                 reg = <0x48>;
0220                 pinctrl-names = "default";
0221                 pinctrl-0 = <&tsc2004_pins>;
0222                 interrupt-parent = <&gpio4>;
0223                 interrupts = <5 IRQ_TYPE_LEVEL_LOW>; /* gpio 101 */
0224                 status = "disabled";
0225         };
0226 
0227         tmp105@49 {
0228                 compatible = "ti,tmp105";
0229                 reg = <0x49>;
0230         };
0231 
0232         eeprom@50 {
0233                 compatible = "microchip,24c32", "atmel,24c32";
0234                 reg = <0x50>;
0235         };
0236 };
0237 
0238 &i2c4 {
0239         status = "disabled";
0240 };
0241 
0242 &gpmc {
0243         status = "disabled";
0244 };
0245 
0246 &mcspi1 {
0247         status = "disabled";
0248 };
0249 
0250 &mcspi2 {
0251         status = "disabled";
0252 };
0253 
0254 &mcspi3 {
0255         status = "disabled";
0256 };
0257 
0258 &mcspi4 {
0259         status = "disabled";
0260 };
0261 
0262 &mmc1 {
0263         pinctrl-names = "default";
0264         pinctrl-0 = <&mmc1_pins>;
0265         vmmc-supply = <&vmmc>;
0266         bus-width = <4>;
0267         ti,non-removable;
0268         status = "okay";
0269 };
0270 
0271 &mmc2 {
0272         status = "disabled";
0273 };
0274 
0275 &mmc3 {
0276         status = "disabled";
0277 };
0278 
0279 &mmc4 {
0280         status = "disabled";
0281 };
0282 
0283 &mmc5 {
0284         status = "disabled";
0285 };
0286 
0287 &uart1 {
0288         status = "disabled";
0289 };
0290 
0291 &uart2 {
0292         status = "disabled";
0293 };
0294 
0295 &uart3 {
0296         pinctrl-names = "default";
0297         pinctrl-0 = <&uart3_pins>;
0298         status = "okay";
0299 };
0300 
0301 &uart4 {
0302         status = "disabled";
0303 };
0304 
0305 &keypad {
0306         status = "disabled";
0307 };
0308 
0309 &twl_usb_comparator {
0310         usb-supply = <&vusb>;
0311 };
0312 
0313 &usb_otg_hs {
0314         interface-type = <1>;
0315         mode = <3>;
0316         power = <50>;
0317 };
0318 
0319 &usbhshost {
0320         port1-mode = "ehci-phy";
0321 };
0322 
0323 &usbhsehci {
0324         phys = <&hsusb1_phy>;
0325 };