Skip to content

Commit

Permalink
arm64: dts: qcom: msm8916: Move WCN compatible to boards
Browse files Browse the repository at this point in the history
On MSM8916 the wireless connectivity functionality (WiFi/Bluetooth) is
split into the digital part inside the SoC and the analog RF part inside
a supplementary WCN36xx chip. For MSM8916, three different options
exist:

  - WCN3620  (WLAN 802.11 b/g/n 2.4 GHz + Bluetooth)
  - WCN3660B (WLAN 802.11 a/b/g/n 2.4/5 GHz + Bluetooth)
  - WCN3680B (WLAN 802.11ac 2.4/5 GHz + Bluetooth)

Choosing one of these is up to the board vendor. This means that the
compatible belongs into the board-specific DT part so people porting
new boards pay attention to set the correct compatible.

Right now msm8916.dtsi sets "qcom,wcn3620" as default compatible,
which does not work at all for boards that have WCN3660B or WCN3680B.

Remove the default compatible from msm8196.dtsi and move it to the board
DT as follows:

  - Boards with only &pronto { status = "okay"; } used the default
    "qcom,wcn3620" so far. They now set this explicitly for &wcnss_iris.
  - Boards with &pronto { ... iris { compatible = "qcom,wcn3660b"; }};
    already had an override that just moves to &wcnss_iris now.
  - For msm8916-samsung-a2015-common.dtsi the WCN compatible differs for
    boards making use of it (a3u: wcn3620, a5u: wcn3660b, e2015: wcn3620)
    so the definitions move to the board-specific DT part.

Since this requires touching all the board DTs, use this as a chance to
name the WCNSS-related labels consistently, so everything is grouped
properly when sorted alphabetically.

No functional change, just clean-up for more clarity & easier porting.
Aside from ordering the generated DTBs are identical.

Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230309091452.1011776-1-stephan.gerhold@kernkonzept.com
  • Loading branch information
stephan-gh authored and andersson committed Apr 4, 2023
1 parent 1554413 commit 3244442
Show file tree
Hide file tree
Showing 19 changed files with 146 additions and 90 deletions.
15 changes: 9 additions & 6 deletions arch/arm64/boot/dts/qcom/apq8016-sbc.dts
Original file line number Diff line number Diff line change
Expand Up @@ -325,12 +325,6 @@
linux,code = <KEY_VOLUMEDOWN>;
};

&pronto {
status = "okay";

firmware-name = "qcom/apq8016/wcnss.mbn";
};

&sdhc_1 {
status = "okay";

Expand Down Expand Up @@ -411,10 +405,19 @@
qcom,mbhc-vthreshold-high = <75 150 237 450 500>;
};

&wcnss {
status = "okay";
firmware-name = "qcom/apq8016/wcnss.mbn";
};

&wcnss_ctrl {
firmware-name = "qcom/apq8016/WCNSS_qcom_wlan_nv_sbc.bin";
};

&wcnss_iris {
compatible = "qcom,wcn3620";
};

/* Enable CoreSight */
&cti0 { status = "okay"; };
&cti1 { status = "okay"; };
Expand Down
12 changes: 8 additions & 4 deletions arch/arm64/boot/dts/qcom/msm8916-acer-a1-724.dts
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,6 @@
status = "okay";
};

&pronto {
status = "okay";
};

&sdhc_1 {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
Expand Down Expand Up @@ -149,6 +145,14 @@
extcon = <&usb_id>;
};

&wcnss {
status = "okay";
};

&wcnss_iris {
compatible = "qcom,wcn3620";
};

&smd_rpm_regulators {
vdd_l1_l2_l3-supply = <&pm8916_s3>;
vdd_l4_l5_l6-supply = <&pm8916_s4>;
Expand Down
12 changes: 8 additions & 4 deletions arch/arm64/boot/dts/qcom/msm8916-alcatel-idol347.dts
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,6 @@
status = "okay";
};

&pronto {
status = "okay";
};

&sdhc_1 {
status = "okay";

Expand Down Expand Up @@ -191,6 +187,14 @@
extcon = <&usb_id>;
};

&wcnss {
status = "okay";
};

&wcnss_iris {
compatible = "qcom,wcn3620";
};

&smd_rpm_regulators {
vdd_l1_l2_l3-supply = <&pm8916_s3>;
vdd_l4_l5_l6-supply = <&pm8916_s4>;
Expand Down
12 changes: 8 additions & 4 deletions arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@
status = "okay";
};

&pronto {
status = "okay";
};

&sdhc_1 {
status = "okay";

Expand Down Expand Up @@ -159,6 +155,14 @@
extcon = <&usb_id>;
};

&wcnss {
status = "okay";
};

&wcnss_iris {
compatible = "qcom,wcn3620";
};

&smd_rpm_regulators {
vdd_l1_l2_l3-supply = <&pm8916_s3>;
vdd_l4_l5_l6-supply = <&pm8916_s4>;
Expand Down
12 changes: 8 additions & 4 deletions arch/arm64/boot/dts/qcom/msm8916-gplus-fl8005a.dts
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,6 @@
status = "okay";
};

&pronto {
status = "okay";
};

&sdhc_1 {
pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
Expand Down Expand Up @@ -149,6 +145,14 @@
extcon = <&usb_id>;
};

&wcnss {
status = "okay";
};

&wcnss_iris {
compatible = "qcom,wcn3620";
};

&smd_rpm_regulators {
vdd_l1_l2_l3-supply = <&pm8916_s3>;
vdd_l4_l5_l6-supply = <&pm8916_s4>;
Expand Down
12 changes: 8 additions & 4 deletions arch/arm64/boot/dts/qcom/msm8916-huawei-g7.dts
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,6 @@
status = "okay";
};

&pronto {
status = "okay";
};

&sdhc_1 {
status = "okay";

Expand Down Expand Up @@ -312,6 +308,14 @@
qcom,hphl-jack-type-normally-open;
};

&wcnss {
status = "okay";
};

&wcnss_iris {
compatible = "qcom,wcn3620";
};

&smd_rpm_regulators {
vdd_l1_l2_l3-supply = <&pm8916_s3>;
vdd_l4_l5_l6-supply = <&pm8916_s4>;
Expand Down
12 changes: 8 additions & 4 deletions arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,6 @@
status = "okay";
};

&pronto {
status = "okay";
};

&sdhc_1 {
status = "okay";

Expand Down Expand Up @@ -263,6 +259,14 @@
extcon = <&pm8916_usbin>;
};

&wcnss {
status = "okay";
};

&wcnss_iris {
compatible = "qcom,wcn3620";
};

&smd_rpm_regulators {
vdd_l1_l2_l3-supply = <&pm8916_s3>;
vdd_l4_l5_l6-supply = <&pm8916_s4>;
Expand Down
12 changes: 8 additions & 4 deletions arch/arm64/boot/dts/qcom/msm8916-longcheer-l8910.dts
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@
status = "okay";
};

&pronto {
status = "okay";
};

&sdhc_1 {
status = "okay";

Expand Down Expand Up @@ -130,6 +126,14 @@
extcon = <&usb_id>;
};

&wcnss {
status = "okay";
};

&wcnss_iris {
compatible = "qcom,wcn3620";
};

&smd_rpm_regulators {
vdd_l1_l2_l3-supply = <&pm8916_s3>;
vdd_l4_l5_l6-supply = <&pm8916_s4>;
Expand Down
22 changes: 11 additions & 11 deletions arch/arm64/boot/dts/qcom/msm8916-pm8916.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,6 @@
pll-supply = <&pm8916_l7>;
};

&pronto {
vddpx-supply = <&pm8916_l7>;

iris {
vddxo-supply = <&pm8916_l7>;
vddrfa-supply = <&pm8916_s3>;
vddpa-supply = <&pm8916_l9>;
vdddig-supply = <&pm8916_l5>;
};
};

&sdhc_1 {
vmmc-supply = <&pm8916_l8>;
vqmmc-supply = <&pm8916_l5>;
Expand All @@ -46,6 +35,17 @@
v3p3-supply = <&pm8916_l13>;
};

&wcnss {
vddpx-supply = <&pm8916_l7>;
};

&wcnss_iris {
vddxo-supply = <&pm8916_l7>;
vddrfa-supply = <&pm8916_s3>;
vddpa-supply = <&pm8916_l9>;
vdddig-supply = <&pm8916_l5>;
};

&rpm_requests {
smd_rpm_regulators: regulators {
compatible = "qcom,rpm-pm8916-regulators";
Expand Down
4 changes: 0 additions & 4 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-a2015-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,6 @@
linux,code = <KEY_VOLUMEDOWN>;
};

&pronto {
status = "okay";
};

&sdhc_1 {
status = "okay";

Expand Down
8 changes: 8 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-a3u-eur.dts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@
status = "okay";
};

&wcnss {
status = "okay";
};

&wcnss_iris {
compatible = "qcom,wcn3620";
};

&msmgpio {
panel_vdd3_default: panel-vdd3-default-state {
pins = "gpio9";
Expand Down
14 changes: 8 additions & 6 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-a5u-eur.dts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@
status = "okay";
};

&pronto {
iris {
compatible = "qcom,wcn3660b";
};
};

&touchkey {
vcc-supply = <&reg_touch_key>;
vdd-supply = <&reg_touch_key>;
Expand All @@ -69,6 +63,14 @@
status = "okay";
};

&wcnss {
status = "okay";
};

&wcnss_iris {
compatible = "qcom,wcn3660b";
};

&msmgpio {
tkey_en_default: tkey-en-default-state {
pins = "gpio97";
Expand Down
8 changes: 8 additions & 0 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-e2015-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@
vdd-supply = <&reg_touch_key>;
};

&wcnss {
status = "okay";
};

&wcnss_iris {
compatible = "qcom,wcn3620";
};

&msmgpio {
tkey_en_default: tkey-en-default-state {
pins = "gpio97";
Expand Down
16 changes: 8 additions & 8 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-gt5-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,6 @@
status = "okay";
};

&pronto {
status = "okay";

iris {
compatible = "qcom,wcn3660b";
};
};

&sdhc_1 {
pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>;
pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
Expand Down Expand Up @@ -162,6 +154,14 @@
extcon = <&pm8916_usbin>;
};

&wcnss {
status = "okay";
};

&wcnss_iris {
compatible = "qcom,wcn3660b";
};

&smd_rpm_regulators {
vdd_l1_l2_l3-supply = <&pm8916_s3>;
vdd_l4_l5_l6-supply = <&pm8916_s4>;
Expand Down
12 changes: 8 additions & 4 deletions arch/arm64/boot/dts/qcom/msm8916-samsung-j5-common.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@
linux,code = <KEY_VOLUMEDOWN>;
};

&pronto {
status = "okay";
};

&sdhc_1 {
status = "okay";

Expand Down Expand Up @@ -124,6 +120,14 @@
extcon = <&muic>;
};

&wcnss {
status = "okay";
};

&wcnss_iris {
compatible = "qcom,wcn3620";
};

&smd_rpm_regulators {
vdd_l1_l2_l3-supply = <&pm8916_s3>;
vdd_l4_l5_l6-supply = <&pm8916_s4>;
Expand Down
Loading

0 comments on commit 3244442

Please sign in to comment.