[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <223892d0-9b1b-9459-dec1-574875f7c1c6@linaro.org>
Date: Thu, 6 Apr 2023 19:15:25 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Konrad Dybcio <konrad.dybcio@...aro.org>,
Kalle Valo <kvalo@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Andy Gross <agross@...nel.org>,
Bjorn Andersson <andersson@...nel.org>
Cc: Marijn Suijten <marijn.suijten@...ainline.org>,
ath10k@...ts.infradead.org, linux-wireless@...r.kernel.org,
netdev@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-msm@...r.kernel.org
Subject: Re: [PATCH v3 1/2] dt-bindings: net: Convert ATH10K to YAML
On 06/04/2023 14:55, Konrad Dybcio wrote:
> Convert the ATH10K bindings to YAML.
>
> Dropped properties that are absent at the current state of mainline:
> - qcom,msi_addr
> - qcom,msi_base
>
> qcom,coexist-support and qcom,coexist-gpio-pin do very little and should
> be reconsidered on the driver side, especially the latter one.
>
> Somewhat based on the ath11k bindings.
> + - reg
> +
> +additionalProperties: false
> +
> +allOf:
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - qcom,ipq4019-wifi
> + then:
> + properties:
> + interrupts:
> + minItems: 17
> + maxItems: 17
> +
> + interrupt-names:
> + minItems: 17
Drop minItems (the number of items is defined by listing them below, as
you did).
> + items:
> + - const: msi0
> + - const: msi1
> + - const: msi2
> + - const: msi3
> + - const: msi4
> + - const: msi5
> + - const: msi6
> + - const: msi7
> + - const: msi8
> + - const: msi9
> + - const: msi10
> + - const: msi11
> + - const: msi12
> + - const: msi13
> + - const: msi14
> + - const: msi15
> + - const: legacy
> +
> + clocks:
> + items:
> + - description: Wi-Fi command clock
> + - description: Wi-Fi reference clock
> + - description: Wi-Fi RTC clock
> +
> + clock-names:
> + items:
> + - const: wifi_wcss_cmd
> + - const: wifi_wcss_ref
> + - const: wifi_wcss_rtc
> +
> + required:
> + - clocks
> + - clock-names
> + - interrupts
> + - interrupt-names
> + - resets
> + - reset-names
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - qcom,wcn3990-wifi
> +
> + then:
> + properties:
> + clocks:
> + minItems: 1
> + items:
> + - description: XO reference clock
> + - description: Qualcomm Debug Subsystem clock
> +
> + clock-names:
> + minItems: 1
> + items:
> + - const: cxo_ref_clk_pin
> + - const: qdss
> +
> + interrupts:
> + items:
> + - description: CE0
> + - description: CE1
> + - description: CE2
> + - description: CE3
> + - description: CE4
> + - description: CE5
> + - description: CE6
> + - description: CE7
> + - description: CE8
> + - description: CE9
> + - description: CE10
> + - description: CE11
What about interrupt-names here? If they are not expected, then just
interrupt-names: false
Best regards,
Krzysztof
Powered by blists - more mailing lists