Skip to content

Commit

Permalink
add: omap4-panda-es-b3.dts
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Nelson <[email protected]>
  • Loading branch information
RobertCNelson committed Mar 3, 2023
1 parent e006f5a commit 9e6fc97
Show file tree
Hide file tree
Showing 6 changed files with 184 additions and 10 deletions.
12 changes: 12 additions & 0 deletions src/arm/omap4-panda-a4.dts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@
#include "omap443x.dtsi"
#include "omap4-panda-common.dtsi"

&emif1 {
cs1-used;
device-handle = <&elpida_ECB240ABACN>;
status = "okay";
};

&emif2 {
cs1-used;
device-handle = <&elpida_ECB240ABACN>;
status = "okay";
};

/* Pandaboard Rev A4+ have external pullups on SCL & SDA */
&dss_hdmi_pins {
pinctrl-single,pins = <
Expand Down
10 changes: 0 additions & 10 deletions src/arm/omap4-panda-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -501,16 +501,6 @@
};
};

&emif1 {
cs1-used;
device-handle = <&elpida_ECB240ABACN>;
};

&emif2 {
cs1-used;
device-handle = <&elpida_ECB240ABACN>;
};

&mcbsp1 {
pinctrl-names = "default";
pinctrl-0 = <&mcbsp1_pins>;
Expand Down
114 changes: 114 additions & 0 deletions src/arm/omap4-panda-es-b3.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
*/
/dts-v1/;

#include "omap4460.dtsi"
#include "omap4-panda-common.dtsi"

/ {
model = "TI OMAP4 PandaBoard-ES-B3";
compatible = "ti,omap4-panda-es", "ti,omap4-panda", "ti,omap4460", "ti,omap4430", "ti,omap4";
};

/* Audio routing is differnet between PandaBoard4430 and PandaBoardES */
&sound {
ti,model = "PandaBoardES";

/* Audio routing */
ti,audio-routing =
"Headset Stereophone", "HSOL",
"Headset Stereophone", "HSOR",
"Ext Spk", "HFL",
"Ext Spk", "HFR",
"Line Out", "AUXL",
"Line Out", "AUXR",
"AFML", "Line In",
"AFMR", "Line In";
};

/* PandaboardES has external pullups on SCL & SDA */
&dss_hdmi_pins {
pinctrl-single,pins = <
OMAP4_IOPAD(0x09a, PIN_INPUT | MUX_MODE0) /* hdmi_cec.hdmi_cec */
OMAP4_IOPAD(0x09c, PIN_INPUT | MUX_MODE0) /* hdmi_scl.hdmi_scl */
OMAP4_IOPAD(0x09e, PIN_INPUT | MUX_MODE0) /* hdmi_sda.hdmi_sda */
>;
};

&omap4_pmx_core {
led_gpio_pins: gpio_led_pmx {
pinctrl-single,pins = <
OMAP4_IOPAD(0x0f6, PIN_OUTPUT | MUX_MODE3) /* gpio_110 */
>;
};

button_pins: pinmux_button_pins {
pinctrl-single,pins = <
OMAP4_IOPAD(0x0fc, PIN_INPUT_PULLUP | MUX_MODE3) /* gpio_113 */
>;
};

bt_pins: pinmux_bt_pins {
pinctrl-single,pins = <
OMAP4_IOPAD(0x06c, PIN_OUTPUT | MUX_MODE3) /* gpmc_a22.gpio_46 - BTEN */
OMAP4_IOPAD(0x072, PIN_OUTPUT_PULLUP | MUX_MODE3) /* gpmc_a25.gpio_49 - BTWAKEUP */
>;
};

uart2_pins: pinmux_uart2_pins {
pinctrl-single,pins = <
OMAP4_IOPAD(0x118, PIN_INPUT_PULLUP | MUX_MODE0) /* uart2_cts.uart2_cts - HCI */
OMAP4_IOPAD(0x11a, PIN_OUTPUT | MUX_MODE0) /* uart2_rts.uart2_rts */
OMAP4_IOPAD(0x11c, PIN_INPUT_PULLUP | MUX_MODE0) /* uart2_rx.uart2_rx */
OMAP4_IOPAD(0x11e, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
>;
};
};

&led_wkgpio_pins {
pinctrl-single,pins = <
OMAP4_IOPAD(0x05c, PIN_OUTPUT | MUX_MODE3) /* gpio_wk8 */
>;
};

&leds {
pinctrl-0 = <
&led_gpio_pins
&led_wkgpio_pins
>;

heartbeat {
gpios = <&gpio4 14 GPIO_ACTIVE_HIGH>;
};
mmc {
gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
};
};

&gpio_keys {
buttonS2 {
gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* gpio_113 */
};
};

&gpio1_target {
ti,no-reset-on-init;
};

&wl12xx_gpio {
pinctrl-single,pins = <
OMAP4_IOPAD(0x066, PIN_OUTPUT | MUX_MODE3) /* gpmc_a19.gpio_43 */
OMAP4_IOPAD(0x070, PIN_OUTPUT_PULLUP | MUX_MODE3) /* gpmc_a24.gpio_48 */
>;
};

&uart2 {
pinctrl-names = "default";
pinctrl-0 = <&uart2_pins &bt_pins>;
bluetooth: tiwi {
compatible = "ti,wl1271-st";
enable-gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>; /* GPIO_46 */
};
};
44 changes: 44 additions & 0 deletions src/arm/omap4-panda-es.dts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@
compatible = "ti,omap4-panda-es", "ti,omap4-panda", "ti,omap4460", "ti,omap4430", "ti,omap4";
};

&emif1 {
cs1-used;
device-handle = <&elpida_ECB240ABACN>;
status = "okay";
};

&emif2 {
cs1-used;
device-handle = <&elpida_ECB240ABACN>;
status = "okay";
};

/* Audio routing is differnet between PandaBoard4430 and PandaBoardES */
&sound {
ti,model = "PandaBoardES";
Expand Down Expand Up @@ -49,6 +61,22 @@
OMAP4_IOPAD(0x0fc, PIN_INPUT_PULLUP | MUX_MODE3) /* gpio_113 */
>;
};

bt_pins: pinmux_bt_pins {
pinctrl-single,pins = <
OMAP4_IOPAD(0x06c, PIN_OUTPUT | MUX_MODE3) /* gpmc_a22.gpio_46 - BTEN */
OMAP4_IOPAD(0x072, PIN_OUTPUT_PULLUP | MUX_MODE3) /* gpmc_a25.gpio_49 - BTWAKEUP */
>;
};

uart2_pins: pinmux_uart2_pins {
pinctrl-single,pins = <
OMAP4_IOPAD(0x118, PIN_INPUT_PULLUP | MUX_MODE0) /* uart2_cts.uart2_cts - HCI */
OMAP4_IOPAD(0x11a, PIN_OUTPUT | MUX_MODE0) /* uart2_rts.uart2_rts */
OMAP4_IOPAD(0x11c, PIN_INPUT_PULLUP | MUX_MODE0) /* uart2_rx.uart2_rx */
OMAP4_IOPAD(0x11e, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
>;
};
};

&led_wkgpio_pins {
Expand Down Expand Up @@ -80,3 +108,19 @@
&gpio1_target {
ti,no-reset-on-init;
};

&wl12xx_gpio {
pinctrl-single,pins = <
OMAP4_IOPAD(0x066, PIN_OUTPUT | MUX_MODE3) /* gpmc_a19.gpio_43 */
OMAP4_IOPAD(0x070, PIN_OUTPUT_PULLUP | MUX_MODE3) /* gpmc_a24.gpio_48 */
>;
};

&uart2 {
pinctrl-names = "default";
pinctrl-0 = <&uart2_pins &bt_pins>;
bluetooth: tiwi {
compatible = "ti,wl1271-st";
enable-gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>; /* GPIO_46 */
};
};
12 changes: 12 additions & 0 deletions src/arm/omap4-panda.dts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,15 @@
model = "TI OMAP4 PandaBoard";
compatible = "ti,omap4-panda", "ti,omap4430", "ti,omap4";
};

&emif1 {
cs1-used;
device-handle = <&elpida_ECB240ABACN>;
status = "okay";
};

&emif2 {
cs1-used;
device-handle = <&elpida_ECB240ABACN>;
status = "okay";
};
2 changes: 2 additions & 0 deletions src/arm/omap4-sdp.dts
Original file line number Diff line number Diff line change
Expand Up @@ -521,11 +521,13 @@
&emif1 {
cs1-used;
device-handle = <&elpida_ECB240ABACN>;
status = "okay";
};

&emif2 {
cs1-used;
device-handle = <&elpida_ECB240ABACN>;
status = "okay";
};

&keypad {
Expand Down

0 comments on commit 9e6fc97

Please sign in to comment.