Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: phy: qcom,usb-snps-femto-v2: use fallback compatibles

Document SoC-specific compatibles with generic fallback (e.g.
qcom,usb-snps-hs-7nm-phy) already used in DTSI. Add SoC-specific
compatibles for PHY on SDX55 and SDX65.

This disallows usage of the qcom,usb-snps-hs-5nm-phy and
qcom,usb-snps-hs-7nm-phy generic compatibles alone. Do not touch
remaining two compatibles - qcom,usb-snps-femto-v2-phy and
qcom,sc8180x-usb-hs-phy - because there are no upstream users, so not
sure what was the intention for them.

This fixes warnings like:

sa8295p-adp.dtb: phy@88e5000: compatible: 'oneOf' conditional failed, one must be fixed:
['qcom,sc8280xp-usb-hs-phy', 'qcom,usb-snps-hs-5nm-phy'] is too long
'qcom,sc8280xp-usb-hs-phy' is not one of ['qcom,sm8150-usb-hs-phy', 'qcom,sm8250-usb-hs-phy', 'qcom,sm8350-usb-hs-phy', 'qcom,sm8450-usb-hs-phy']
'qcom,usb-snps-hs-7nm-phy' was expected

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20221223161835.112079-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Vinod Koul
9160fb7c 50133cd3

+20 -13
+20 -13
Documentation/devicetree/bindings/phy/qcom,usb-snps-femto-v2.yaml
··· 14 14 15 15 properties: 16 16 compatible: 17 - enum: 18 - - qcom,usb-snps-hs-5nm-phy 19 - - qcom,usb-snps-hs-7nm-phy 20 - - qcom,sc7280-usb-hs-phy 21 - - qcom,sc8180x-usb-hs-phy 22 - - qcom,sc8280xp-usb-hs-phy 23 - - qcom,sm6375-usb-hs-phy 24 - - qcom,sm8150-usb-hs-phy 25 - - qcom,sm8250-usb-hs-phy 26 - - qcom,sm8350-usb-hs-phy 27 - - qcom,sm8450-usb-hs-phy 28 - - qcom,usb-snps-femto-v2-phy 17 + oneOf: 18 + - enum: 19 + - qcom,sc8180x-usb-hs-phy 20 + - qcom,usb-snps-femto-v2-phy 21 + - items: 22 + - enum: 23 + - qcom,sc8280xp-usb-hs-phy 24 + - const: qcom,usb-snps-hs-5nm-phy 25 + - items: 26 + - enum: 27 + - qcom,sc7280-usb-hs-phy 28 + - qcom,sdx55-usb-hs-phy 29 + - qcom,sdx65-usb-hs-phy 30 + - qcom,sm6375-usb-hs-phy 31 + - qcom,sm8150-usb-hs-phy 32 + - qcom,sm8250-usb-hs-phy 33 + - qcom,sm8350-usb-hs-phy 34 + - qcom,sm8450-usb-hs-phy 35 + - const: qcom,usb-snps-hs-7nm-phy 29 36 30 37 reg: 31 38 maxItems: 1 ··· 167 160 #include <dt-bindings/clock/qcom,rpmh.h> 168 161 #include <dt-bindings/clock/qcom,gcc-sm8150.h> 169 162 phy@88e2000 { 170 - compatible = "qcom,sm8150-usb-hs-phy"; 163 + compatible = "qcom,sm8150-usb-hs-phy", "qcom,usb-snps-hs-7nm-phy"; 171 164 reg = <0x088e2000 0x400>; 172 165 #phy-cells = <0>; 173 166