Skip to content

Commit

Permalink
arch: arm64: dts: enable ap6275s bluetooth for armsom sige3
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingfate committed Oct 27, 2024
1 parent c862c84 commit 2911d9b
Showing 1 changed file with 25 additions and 18 deletions.
43 changes: 25 additions & 18 deletions arch/arm64/boot/dts/rockchip/rk3568-armsom-sige3.dts
Original file line number Diff line number Diff line change
Expand Up @@ -246,18 +246,6 @@
pinctrl-0 = <&vcc5v0_otg_en>;
};

wireless_bluetooth: wireless-bluetooth {
compatible = "bluetooth-platdata";
//wifi-bt-power-toggle;
uart_rts_gpios = <&gpio2 RK_PB5 GPIO_ACTIVE_LOW>;
pinctrl-names = "default", "rts_gpio";
pinctrl-0 = <&uart1m0_rtsn>;
pinctrl-1 = <&uart1m0_rts_gpio>;
BT,power_gpio = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
//BT,reset_gpio = <&gpio3 RK_PC2 GPIO_ACTIVE_HIGH>;
//BT,wake_host_irq = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
};

wireless_wlan: wireless-wlan {
compatible = "wlan-platdata";
rockchip,grf = <&grf>;
Expand Down Expand Up @@ -759,6 +747,19 @@
};

&pinctrl {
bt {
bt_enable: bt-enable {
rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
};

bt_host_wake: bt-host-wake {
rockchip,pins = <2 RK_PC0 RK_FUNC_GPIO &pcfg_pull_down>;
};

bt_wake: bt-wake {
rockchip,pins = <2 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
};
};

headphone {
hp_det: hp-det {
Expand Down Expand Up @@ -828,12 +829,6 @@
rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_down>;
};
};

wireless-bluetooth {
uart1m0_rts_gpio: uart1m0-rts-gpio {
rockchip,pins = <2 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
};

/*
Expand Down Expand Up @@ -1013,6 +1008,18 @@
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn>;
pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn &uart1m0_rtsn>;
uart-has-rtscts;
bluetooth {
compatible = "brcm,bcm43438-bt";
device-wakeup-gpios = <&gpio2 RK_PC1 0>;
host-wakeup-gpios = <&gpio2 RK_PC0 0>;
shutdown-gpios = <&gpio2 RK_PB7 0>;
pinctrl-names = "default";
pinctrl-0 = <&bt_host_wake &bt_wake &bt_enable>;
vbat-supply = <&vcc3v3_sys>;
vddio-supply = <&vcc_1v8>;
};
};

&usb2phy0 {
Expand Down

0 comments on commit 2911d9b

Please sign in to comment.