Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
0004  */
0005 /dts-v1/;
0006 
0007 #include "omap4460.dtsi"
0008 #include "omap4-panda-common.dtsi"
0009 
0010 / {
0011         model = "TI OMAP4 PandaBoard-ES";
0012         compatible = "ti,omap4-panda-es", "ti,omap4-panda", "ti,omap4460", "ti,omap4430", "ti,omap4";
0013 };
0014 
0015 /* Audio routing is differnet between PandaBoard4430 and PandaBoardES */
0016 &sound {
0017         ti,model = "PandaBoardES";
0018 
0019         /* Audio routing */
0020         ti,audio-routing =
0021                 "Headset Stereophone", "HSOL",
0022                 "Headset Stereophone", "HSOR",
0023                 "Ext Spk", "HFL",
0024                 "Ext Spk", "HFR",
0025                 "Line Out", "AUXL",
0026                 "Line Out", "AUXR",
0027                 "AFML", "Line In",
0028                 "AFMR", "Line In";
0029 };
0030 
0031 /* PandaboardES has external pullups on SCL & SDA */
0032 &dss_hdmi_pins {
0033         pinctrl-single,pins = <
0034                 OMAP4_IOPAD(0x09a, PIN_INPUT | MUX_MODE0)               /* hdmi_cec.hdmi_cec */
0035                 OMAP4_IOPAD(0x09c, PIN_INPUT | MUX_MODE0)               /* hdmi_scl.hdmi_scl */
0036                 OMAP4_IOPAD(0x09e, PIN_INPUT | MUX_MODE0)               /* hdmi_sda.hdmi_sda */
0037                 >;
0038 };
0039 
0040 &omap4_pmx_core {
0041         led_gpio_pins: gpio_led_pmx {
0042                 pinctrl-single,pins = <
0043                         OMAP4_IOPAD(0x0f6, PIN_OUTPUT | MUX_MODE3)      /* gpio_110 */
0044                 >;
0045         };
0046 
0047         button_pins: pinmux_button_pins {
0048                 pinctrl-single,pins = <
0049                         OMAP4_IOPAD(0x0fc, PIN_INPUT_PULLUP | MUX_MODE3) /* gpio_113 */
0050                 >;
0051         };
0052 
0053         bt_pins: pinmux_bt_pins {
0054                 pinctrl-single,pins = <
0055                         OMAP4_IOPAD(0x06c, PIN_OUTPUT | MUX_MODE3)              /* gpmc_a22.gpio_46 - BTEN */
0056                         OMAP4_IOPAD(0x072, PIN_OUTPUT_PULLUP | MUX_MODE3)       /* gpmc_a25.gpio_49 - BTWAKEUP */
0057                 >;
0058         };
0059 
0060         uart2_pins: pinmux_uart2_pins {
0061                 pinctrl-single,pins = <
0062                         OMAP4_IOPAD(0x118, PIN_INPUT_PULLUP | MUX_MODE0)        /* uart2_cts.uart2_cts - HCI */
0063                         OMAP4_IOPAD(0x11a, PIN_OUTPUT | MUX_MODE0)              /* uart2_rts.uart2_rts */
0064                         OMAP4_IOPAD(0x11c, PIN_INPUT_PULLUP | MUX_MODE0)        /* uart2_rx.uart2_rx */
0065                         OMAP4_IOPAD(0x11e, PIN_OUTPUT | MUX_MODE0)              /* uart2_tx.uart2_tx */
0066                 >;
0067         };
0068 };
0069 
0070 &led_wkgpio_pins {
0071         pinctrl-single,pins = <
0072                 OMAP4_IOPAD(0x05c, PIN_OUTPUT | MUX_MODE3)      /* gpio_wk8 */
0073         >;
0074 };
0075 
0076 &leds {
0077         pinctrl-0 = <
0078                 &led_gpio_pins
0079                 &led_wkgpio_pins
0080         >;
0081 
0082         heartbeat {
0083                 gpios = <&gpio4 14 GPIO_ACTIVE_HIGH>;
0084         };
0085         mmc {
0086                 gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
0087         };
0088 };
0089 
0090 &gpio_keys {
0091         buttonS2 {
0092                 gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* gpio_113 */
0093         };
0094 };
0095 
0096 &gpio1_target {
0097          ti,no-reset-on-init;
0098 };
0099 
0100 &wl12xx_gpio {
0101         pinctrl-single,pins = <
0102                 OMAP4_IOPAD(0x066, PIN_OUTPUT | MUX_MODE3)              /* gpmc_a19.gpio_43 */
0103                 OMAP4_IOPAD(0x070, PIN_OUTPUT_PULLUP | MUX_MODE3)       /* gpmc_a24.gpio_48 */
0104         >;
0105 };
0106 
0107 &uart2 {
0108         pinctrl-names = "default";
0109         pinctrl-0 = <&uart2_pins &bt_pins>;
0110         bluetooth: tiwi {
0111                 compatible = "ti,wl1271-st";
0112                 enable-gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;    /* GPIO_46 */
0113         };
0114 };