Re: [PATCH] arm64: dts: qcom: msm8916: Move WCN compatible to boards

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/03/2023 09:14, Stephan Gerhold wrote:
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@xxxxxxxxxxxxxxx>

Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux