Skip to content

Commit c7f7ee1

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

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

@@ -191,13 +199,14 @@
191199

192200
&uart3 {
193201
pinctrl-names = "default";
194-
pinctrl-0 = <&uart3_pins &bt_pins>;
202+
pinctrl-0 = <&uart3_pins>;
203+
//pinctrl-0 = <&uart3_pins &bt_pins>;
195204
status = "okay";
196205

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

203212
&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

@@ -180,13 +188,14 @@
180188

181189
&uart3 {
182190
pinctrl-names = "default";
183-
pinctrl-0 = <&uart3_pins &bt_pins>;
191+
pinctrl-0 = <&uart3_pins>;
192+
//pinctrl-0 = <&uart3_pins &bt_pins>;
184193
status = "okay";
185194

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

192201
&i2c0 {

0 commit comments

Comments
 (0)