1 From af5a803bf212e077e5fb7a1d4cf6be02f74a74ca Mon Sep 17 00:00:00 2001
2 From: Jagan Teki <jagan@amarulasolutions.com>
3 Date: Wed, 25 Jan 2023 21:40:23 +0530
4 Subject: [PATCH] arm64: dts: rockchip: rk3566: Enable WiFi, BT support for
7 Radxa Compute Module 3 has an onboard AW_CM256SM WiFi/BT module.
9 Add nodes for enabling it.
11 Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
12 Link: https://lore.kernel.org/r/20230125161023.12115-2-jagan@amarulasolutions.com
13 Signed-off-by: Heiko Stuebner <heiko@sntech.de>
15 .../boot/dts/rockchip/rk3566-radxa-cm3.dtsi | 80 +++++++++++++++++++
16 1 file changed, 80 insertions(+)
18 --- a/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3.dtsi
19 +++ b/arch/arm64/boot/dts/rockchip/rk3566-radxa-cm3.dtsi
21 regulator-max-microvolt = <1800000>;
22 vin-supply = <&vcc_1v8_p>;
25 + sdio_pwrseq: pwrseq-sdio {
26 + compatible = "mmc-pwrseq-simple";
27 + clocks = <&rk817 1>;
28 + clock-names = "ext_clock";
29 + pinctrl-names = "default";
30 + pinctrl-0 = <&wifi_reg_on_h>;
31 + reset-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_LOW>;
41 + bt_host_wake_h: bt-host-wake-h {
42 + rockchip,pins = <2 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
45 + bt_reg_on_h: bt-reg-on-h {
46 + rockchip,pins = <2 RK_PC0 RK_FUNC_GPIO &pcfg_pull_none>;
49 + bt_wake_host_h: bt-wake-host-h {
50 + rockchip,pins = <2 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
55 pmic_int_l: pmic-int-l {
56 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>;
58 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
63 + wifi_reg_on_h: wifi-reg-on-h {
64 + rockchip,pins = <2 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>;
67 + wifi_host_wake_h: wifi-host-wake-h {
68 + rockchip,pins = <2 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>;
79 + #address-cells = <1>;
85 + keep-power-in-suspend;
86 + mmc-pwrseq = <&sdio_pwrseq>;
88 + pinctrl-names = "default";
89 + pinctrl-0 = <&sdmmc1_bus4 &sdmmc1_clk &sdmmc1_cmd>;
91 + vmmc-supply = <&vcc_3v3>;
92 + vqmmc-supply = <&vcc_1v8>;
96 + compatible = "brcm,bcm43455-fmac";
98 + interrupt-parent = <&gpio2>;
99 + interrupts = <RK_PC1 IRQ_TYPE_LEVEL_HIGH>;
100 + interrupt-names = "host-wake";
101 + pinctrl-names = "default";
102 + pinctrl-0 = <&wifi_host_wake_h>;
108 max-frequency = <200000000>;
114 + pinctrl-names = "default";
115 + pinctrl-0 = <&uart1m0_ctsn &uart1m0_rtsn &uart1m0_xfer>;
119 + compatible = "brcm,bcm4345c5";
120 + clocks = <&rk817 1>;
121 + clock-names = "lpo";
122 + device-wakeup-gpios = <&gpio2 RK_PB2 GPIO_ACTIVE_HIGH>;
123 + host-wakeup-gpios = <&gpio2 RK_PB1 GPIO_ACTIVE_HIGH>;
124 + reset-gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_LOW>;
125 + pinctrl-names = "default";
126 + pinctrl-0 = <&bt_host_wake_h &bt_reg_on_h &bt_wake_host_h>;
127 + vbat-supply = <&vcc_3v3>;
128 + vddio-supply = <&vcc_1v8>;