Skip to content

Commit

Permalink
am335x-bonegreen-gateway.dts: use fixup for ble
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
  • Loading branch information
RobertCNelson committed Dec 23, 2021
1 parent 3d2b9f5 commit c7f7ee1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 14 deletions.
23 changes: 16 additions & 7 deletions src/arm/am335x-bonegreen-gateway.dts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
chosen {
base_dtb = "am335x-bonegreen-gateway.dts";
base_dtb_timestamp = __TIMESTAMP__;
wl1835_bt = "S3-texas-300000";
};

wlan_en_reg: fixedregulator@2 {
Expand All @@ -38,7 +39,8 @@

leds {
pinctrl-names = "default";
pinctrl-0 = <&user_leds_s0>;
//pinctrl-0 = <&user_leds_s0>;
pinctrl-0 = <&user_leds_s0 &bt_pins>;

compatible = "gpio-leds";

Expand Down Expand Up @@ -76,6 +78,12 @@
linux,default-trigger = "netdev";
default-state = "off";
};

wl18xx_bt_en: led7 {
label = "wl18xx_bt_en";
gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};
};

Expand Down Expand Up @@ -110,7 +118,7 @@

bt_pins: pinmux_bt_pins {
pinctrl-single,pins = <
AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULLUP, MUX_MODE7) /* gmii1_txd0.gpio0_28 - BT_EN */
AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* gmii1_txd0.gpio0_28 - BT_EN */
>;
};

Expand Down Expand Up @@ -191,13 +199,14 @@

&uart3 {
pinctrl-names = "default";
pinctrl-0 = <&uart3_pins &bt_pins>;
pinctrl-0 = <&uart3_pins>;
//pinctrl-0 = <&uart3_pins &bt_pins>;
status = "okay";

bluetooth {
compatible = "ti,wl1835-st";
enable-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
};
//bluetooth {
// compatible = "ti,wl1835-st";
// enable-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
//};
};

&i2c0 {
Expand Down
23 changes: 16 additions & 7 deletions src/arm/overlays/BB-BBGG-WL1835-00A0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
&{/chosen} {
overlays {
BB-BBGG-WL1835-00A0.kernel = __TIMESTAMP__;
wl1835_bt = "S3-texas-300000";
};
};

Expand All @@ -42,7 +43,8 @@

leds {
pinctrl-names = "default";
pinctrl-0 = <&user_leds_s0>;
//pinctrl-0 = <&user_leds_s0>;
pinctrl-0 = <&user_leds_s0 &bt_pins>;

compatible = "gpio-leds";

Expand Down Expand Up @@ -80,6 +82,12 @@
linux,default-trigger = "netdev";
default-state = "off";
};

wl18xx_bt_en: led7 {
label = "wl18xx_bt_en";
gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
default-state = "off";
};
};
};

Expand All @@ -99,7 +107,7 @@

bt_pins: pinmux_bt_pins {
pinctrl-single,pins = <
AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULLUP, MUX_MODE7) /* gmii1_txd0.gpio0_28 - BT_EN */
AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* gmii1_txd0.gpio0_28 - BT_EN */
>;
};

Expand Down Expand Up @@ -180,13 +188,14 @@

&uart3 {
pinctrl-names = "default";
pinctrl-0 = <&uart3_pins &bt_pins>;
pinctrl-0 = <&uart3_pins>;
//pinctrl-0 = <&uart3_pins &bt_pins>;
status = "okay";

bluetooth {
compatible = "ti,wl1835-st";
enable-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
};
//bluetooth {
// compatible = "ti,wl1835-st";
// enable-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
//};
};

&i2c0 {
Expand Down

0 comments on commit c7f7ee1

Please sign in to comment.