]> git.baikalelectronics.ru Git - kernel.git/commitdiff
dt-bindings: net: Fix unevaluatedProperties warnings in examples
authorRob Herring <robh@kernel.org>
Thu, 26 May 2022 01:41:48 +0000 (20:41 -0500)
committerRob Herring <robh@kernel.org>
Wed, 1 Jun 2022 02:25:11 +0000 (21:25 -0500)
The 'unevaluatedProperties' schema checks is not fully working and doesn't
catch some cases where there's a $ref to another schema. A fix is pending,
but results in new warnings in examples. Fix the warnings by removing
spurious properties or adding missing properties to the schema.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20220526014149.2872762-1-robh@kernel.org
Documentation/devicetree/bindings/net/cdns,macb.yaml
Documentation/devicetree/bindings/net/mediatek,net.yaml
Documentation/devicetree/bindings/net/mediatek-dwmac.yaml
Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml

index 337cec4d85ca5846201ca4634e618555fa25328c..86fc31c2d91b2d28aa48a07e7a498f8f1344b7e3 100644 (file)
@@ -191,7 +191,6 @@ examples:
                     clock-names = "pclk", "hclk", "tx_clk", "rx_clk", "tsu_clk";
                     #address-cells = <1>;
                     #size-cells = <0>;
-                    #stream-id-cells = <1>;
                     iommus = <&smmu 0x875>;
                     power-domains = <&zynqmp_firmware PD_ETH_1>;
                     resets = <&zynqmp_reset ZYNQMP_RESET_GEM1>;
index 699164dd1295c00d1b53a4d569ee54789cf07799..f5564ecddb6261a22c246edbdd6308b1b898f4e7 100644 (file)
@@ -27,6 +27,9 @@ properties:
   reg:
     maxItems: 1
 
+  clocks: true
+  clock-names: true
+
   interrupts:
     minItems: 3
     maxItems: 4
index 9019446833223ca4c21b7c746287783c4abc4824..61b2fb9e141bf6e32c1c0707b17fbdf57e037f83 100644 (file)
@@ -58,6 +58,9 @@ properties:
       - const: rmii_internal
       - const: mac_cg
 
+  power-domains:
+    maxItems: 1
+
   mediatek,pericfg:
     $ref: /schemas/types.yaml#/definitions/phandle
     description:
index 249967d8d75094cec45bb23d5639db917d546d56..5a12dc32288a83efd3cb6d6e59dfa72960207162 100644 (file)
@@ -51,7 +51,7 @@ properties:
     description:
       Specify the consys reset for mt7986.
 
-  reset-name:
+  reset-names:
     const: consys
 
   mediatek,infracfg: