Skip to content

Commit 9e6fc97

Browse files
committed
add: omap4-panda-es-b3.dts
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
1 parent e006f5a commit 9e6fc97

File tree

6 files changed

+184
-10
lines changed

6 files changed

+184
-10
lines changed

src/arm/omap4-panda-a4.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@
77
#include "omap443x.dtsi"
88
#include "omap4-panda-common.dtsi"
99

10+
&emif1 {
11+
cs1-used;
12+
device-handle = <&elpida_ECB240ABACN>;
13+
status = "okay";
14+
};
15+
16+
&emif2 {
17+
cs1-used;
18+
device-handle = <&elpida_ECB240ABACN>;
19+
status = "okay";
20+
};
21+
1022
/* Pandaboard Rev A4+ have external pullups on SCL & SDA */
1123
&dss_hdmi_pins {
1224
pinctrl-single,pins = <

src/arm/omap4-panda-common.dtsi

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -501,16 +501,6 @@
501501
};
502502
};
503503

504-
&emif1 {
505-
cs1-used;
506-
device-handle = <&elpida_ECB240ABACN>;
507-
};
508-
509-
&emif2 {
510-
cs1-used;
511-
device-handle = <&elpida_ECB240ABACN>;
512-
};
513-
514504
&mcbsp1 {
515505
pinctrl-names = "default";
516506
pinctrl-0 = <&mcbsp1_pins>;

src/arm/omap4-panda-es-b3.dts

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
// SPDX-License-Identifier: GPL-2.0-only
2+
/*
3+
* Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
4+
*/
5+
/dts-v1/;
6+
7+
#include "omap4460.dtsi"
8+
#include "omap4-panda-common.dtsi"
9+
10+
/ {
11+
model = "TI OMAP4 PandaBoard-ES-B3";
12+
compatible = "ti,omap4-panda-es", "ti,omap4-panda", "ti,omap4460", "ti,omap4430", "ti,omap4";
13+
};
14+
15+
/* Audio routing is differnet between PandaBoard4430 and PandaBoardES */
16+
&sound {
17+
ti,model = "PandaBoardES";
18+
19+
/* Audio routing */
20+
ti,audio-routing =
21+
"Headset Stereophone", "HSOL",
22+
"Headset Stereophone", "HSOR",
23+
"Ext Spk", "HFL",
24+
"Ext Spk", "HFR",
25+
"Line Out", "AUXL",
26+
"Line Out", "AUXR",
27+
"AFML", "Line In",
28+
"AFMR", "Line In";
29+
};
30+
31+
/* PandaboardES has external pullups on SCL & SDA */
32+
&dss_hdmi_pins {
33+
pinctrl-single,pins = <
34+
OMAP4_IOPAD(0x09a, PIN_INPUT | MUX_MODE0) /* hdmi_cec.hdmi_cec */
35+
OMAP4_IOPAD(0x09c, PIN_INPUT | MUX_MODE0) /* hdmi_scl.hdmi_scl */
36+
OMAP4_IOPAD(0x09e, PIN_INPUT | MUX_MODE0) /* hdmi_sda.hdmi_sda */
37+
>;
38+
};
39+
40+
&omap4_pmx_core {
41+
led_gpio_pins: gpio_led_pmx {
42+
pinctrl-single,pins = <
43+
OMAP4_IOPAD(0x0f6, PIN_OUTPUT | MUX_MODE3) /* gpio_110 */
44+
>;
45+
};
46+
47+
button_pins: pinmux_button_pins {
48+
pinctrl-single,pins = <
49+
OMAP4_IOPAD(0x0fc, PIN_INPUT_PULLUP | MUX_MODE3) /* gpio_113 */
50+
>;
51+
};
52+
53+
bt_pins: pinmux_bt_pins {
54+
pinctrl-single,pins = <
55+
OMAP4_IOPAD(0x06c, PIN_OUTPUT | MUX_MODE3) /* gpmc_a22.gpio_46 - BTEN */
56+
OMAP4_IOPAD(0x072, PIN_OUTPUT_PULLUP | MUX_MODE3) /* gpmc_a25.gpio_49 - BTWAKEUP */
57+
>;
58+
};
59+
60+
uart2_pins: pinmux_uart2_pins {
61+
pinctrl-single,pins = <
62+
OMAP4_IOPAD(0x118, PIN_INPUT_PULLUP | MUX_MODE0) /* uart2_cts.uart2_cts - HCI */
63+
OMAP4_IOPAD(0x11a, PIN_OUTPUT | MUX_MODE0) /* uart2_rts.uart2_rts */
64+
OMAP4_IOPAD(0x11c, PIN_INPUT_PULLUP | MUX_MODE0) /* uart2_rx.uart2_rx */
65+
OMAP4_IOPAD(0x11e, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
66+
>;
67+
};
68+
};
69+
70+
&led_wkgpio_pins {
71+
pinctrl-single,pins = <
72+
OMAP4_IOPAD(0x05c, PIN_OUTPUT | MUX_MODE3) /* gpio_wk8 */
73+
>;
74+
};
75+
76+
&leds {
77+
pinctrl-0 = <
78+
&led_gpio_pins
79+
&led_wkgpio_pins
80+
>;
81+
82+
heartbeat {
83+
gpios = <&gpio4 14 GPIO_ACTIVE_HIGH>;
84+
};
85+
mmc {
86+
gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
87+
};
88+
};
89+
90+
&gpio_keys {
91+
buttonS2 {
92+
gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* gpio_113 */
93+
};
94+
};
95+
96+
&gpio1_target {
97+
ti,no-reset-on-init;
98+
};
99+
100+
&wl12xx_gpio {
101+
pinctrl-single,pins = <
102+
OMAP4_IOPAD(0x066, PIN_OUTPUT | MUX_MODE3) /* gpmc_a19.gpio_43 */
103+
OMAP4_IOPAD(0x070, PIN_OUTPUT_PULLUP | MUX_MODE3) /* gpmc_a24.gpio_48 */
104+
>;
105+
};
106+
107+
&uart2 {
108+
pinctrl-names = "default";
109+
pinctrl-0 = <&uart2_pins &bt_pins>;
110+
bluetooth: tiwi {
111+
compatible = "ti,wl1271-st";
112+
enable-gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>; /* GPIO_46 */
113+
};
114+
};

src/arm/omap4-panda-es.dts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@
1212
compatible = "ti,omap4-panda-es", "ti,omap4-panda", "ti,omap4460", "ti,omap4430", "ti,omap4";
1313
};
1414

15+
&emif1 {
16+
cs1-used;
17+
device-handle = <&elpida_ECB240ABACN>;
18+
status = "okay";
19+
};
20+
21+
&emif2 {
22+
cs1-used;
23+
device-handle = <&elpida_ECB240ABACN>;
24+
status = "okay";
25+
};
26+
1527
/* Audio routing is differnet between PandaBoard4430 and PandaBoardES */
1628
&sound {
1729
ti,model = "PandaBoardES";
@@ -49,6 +61,22 @@
4961
OMAP4_IOPAD(0x0fc, PIN_INPUT_PULLUP | MUX_MODE3) /* gpio_113 */
5062
>;
5163
};
64+
65+
bt_pins: pinmux_bt_pins {
66+
pinctrl-single,pins = <
67+
OMAP4_IOPAD(0x06c, PIN_OUTPUT | MUX_MODE3) /* gpmc_a22.gpio_46 - BTEN */
68+
OMAP4_IOPAD(0x072, PIN_OUTPUT_PULLUP | MUX_MODE3) /* gpmc_a25.gpio_49 - BTWAKEUP */
69+
>;
70+
};
71+
72+
uart2_pins: pinmux_uart2_pins {
73+
pinctrl-single,pins = <
74+
OMAP4_IOPAD(0x118, PIN_INPUT_PULLUP | MUX_MODE0) /* uart2_cts.uart2_cts - HCI */
75+
OMAP4_IOPAD(0x11a, PIN_OUTPUT | MUX_MODE0) /* uart2_rts.uart2_rts */
76+
OMAP4_IOPAD(0x11c, PIN_INPUT_PULLUP | MUX_MODE0) /* uart2_rx.uart2_rx */
77+
OMAP4_IOPAD(0x11e, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
78+
>;
79+
};
5280
};
5381

5482
&led_wkgpio_pins {
@@ -80,3 +108,19 @@
80108
&gpio1_target {
81109
ti,no-reset-on-init;
82110
};
111+
112+
&wl12xx_gpio {
113+
pinctrl-single,pins = <
114+
OMAP4_IOPAD(0x066, PIN_OUTPUT | MUX_MODE3) /* gpmc_a19.gpio_43 */
115+
OMAP4_IOPAD(0x070, PIN_OUTPUT_PULLUP | MUX_MODE3) /* gpmc_a24.gpio_48 */
116+
>;
117+
};
118+
119+
&uart2 {
120+
pinctrl-names = "default";
121+
pinctrl-0 = <&uart2_pins &bt_pins>;
122+
bluetooth: tiwi {
123+
compatible = "ti,wl1271-st";
124+
enable-gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>; /* GPIO_46 */
125+
};
126+
};

src/arm/omap4-panda.dts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,15 @@
1111
model = "TI OMAP4 PandaBoard";
1212
compatible = "ti,omap4-panda", "ti,omap4430", "ti,omap4";
1313
};
14+
15+
&emif1 {
16+
cs1-used;
17+
device-handle = <&elpida_ECB240ABACN>;
18+
status = "okay";
19+
};
20+
21+
&emif2 {
22+
cs1-used;
23+
device-handle = <&elpida_ECB240ABACN>;
24+
status = "okay";
25+
};

src/arm/omap4-sdp.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,11 +521,13 @@
521521
&emif1 {
522522
cs1-used;
523523
device-handle = <&elpida_ECB240ABACN>;
524+
status = "okay";
524525
};
525526

526527
&emif2 {
527528
cs1-used;
528529
device-handle = <&elpida_ECB240ABACN>;
530+
status = "okay";
529531
};
530532

531533
&keypad {

0 commit comments

Comments
 (0)