Skip to content

Commit 8cdbf11

Browse files
committed
am335x-bonegreen-gateway.dts: use fixup for ble
Signed-off-by: Robert Nelson <[email protected]>
1 parent ffcabc2 commit 8cdbf11

File tree

2 files changed

+32
-14
lines changed

2 files changed

+32
-14
lines changed

src/arm/am335x-bonegreen-gateway.dts

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
chosen {
2323
base_dtb = "am335x-bonegreen-gateway.dts";
2424
base_dtb_timestamp = __TIMESTAMP__;
25+
wl1835_bt = "S3-texas-300000";
2526
};
2627

2728
wlan_en_reg: fixedregulator@2 {
@@ -38,7 +39,8 @@
3839

3940
leds {
4041
pinctrl-names = "default";
41-
pinctrl-0 = <&user_leds_s0>;
42+
//pinctrl-0 = <&user_leds_s0>;
43+
pinctrl-0 = <&user_leds_s0 &bt_pins>;
4244

4345
compatible = "gpio-leds";
4446

@@ -76,6 +78,12 @@
7678
linux,default-trigger = "netdev";
7779
default-state = "off";
7880
};
81+
82+
wl18xx_bt_en: led7 {
83+
label = "wl18xx_bt_en";
84+
gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
85+
default-state = "off";
86+
};
7987
};
8088
};
8189

@@ -110,7 +118,7 @@
110118

111119
bt_pins: pinmux_bt_pins {
112120
pinctrl-single,pins = <
113-
AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULLUP, MUX_MODE7) /* gmii1_txd0.gpio0_28 - BT_EN */
121+
AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* gmii1_txd0.gpio0_28 - BT_EN */
114122
>;
115123
};
116124

@@ -192,13 +200,14 @@
192200

193201
&uart3 {
194202
pinctrl-names = "default";
195-
pinctrl-0 = <&uart3_pins &bt_pins>;
203+
pinctrl-0 = <&uart3_pins>;
204+
//pinctrl-0 = <&uart3_pins &bt_pins>;
196205
status = "okay";
197206

198-
bluetooth {
199-
compatible = "ti,wl1835-st";
200-
enable-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
201-
};
207+
//bluetooth {
208+
// compatible = "ti,wl1835-st";
209+
// enable-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
210+
//};
202211
};
203212

204213
&i2c0 {

src/arm/overlays/BB-BBGG-WL1835-00A0.dts

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
&{/chosen} {
1717
overlays {
1818
BB-BBGG-WL1835-00A0.kernel = __TIMESTAMP__;
19+
wl1835_bt = "S3-texas-300000";
1920
};
2021
};
2122

@@ -42,7 +43,8 @@
4243

4344
leds {
4445
pinctrl-names = "default";
45-
pinctrl-0 = <&user_leds_s0>;
46+
//pinctrl-0 = <&user_leds_s0>;
47+
pinctrl-0 = <&user_leds_s0 &bt_pins>;
4648

4749
compatible = "gpio-leds";
4850

@@ -80,6 +82,12 @@
8082
linux,default-trigger = "netdev";
8183
default-state = "off";
8284
};
85+
86+
wl18xx_bt_en: led7 {
87+
label = "wl18xx_bt_en";
88+
gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
89+
default-state = "off";
90+
};
8391
};
8492
};
8593

@@ -99,7 +107,7 @@
99107

100108
bt_pins: pinmux_bt_pins {
101109
pinctrl-single,pins = <
102-
AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULLUP, MUX_MODE7) /* gmii1_txd0.gpio0_28 - BT_EN */
110+
AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* gmii1_txd0.gpio0_28 - BT_EN */
103111
>;
104112
};
105113

@@ -181,13 +189,14 @@
181189

182190
&uart3 {
183191
pinctrl-names = "default";
184-
pinctrl-0 = <&uart3_pins &bt_pins>;
192+
pinctrl-0 = <&uart3_pins>;
193+
//pinctrl-0 = <&uart3_pins &bt_pins>;
185194
status = "okay";
186195

187-
bluetooth {
188-
compatible = "ti,wl1835-st";
189-
enable-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
190-
};
196+
//bluetooth {
197+
// compatible = "ti,wl1835-st";
198+
// enable-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
199+
//};
191200
};
192201

193202
&i2c0 {

0 commit comments

Comments
 (0)