]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
dt-bindings: arm: hisilicon,cpuctrl: Merge "hisilicon,hix5hd2-clock" into parent...
authorRob Herring <robh@kernel.org>
Fri, 7 Jul 2023 21:07:00 +0000 (15:07 -0600)
committerStephen Boyd <sboyd@kernel.org>
Wed, 19 Jul 2023 19:46:23 +0000 (12:46 -0700)
The "hisilicon,hix5hd2-clock" is simple enough to just add it into its
parent node binding, "hisilicon,cpuctrl".

This fixes a warning that "hisilicon,hix5hd2-clock" is missing a schema.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230707210700.869060-1-robh@kernel.org
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Documentation/devicetree/bindings/arm/hisilicon/controller/cpuctrl.yaml
Documentation/devicetree/bindings/clock/hix5hd2-clock.txt [deleted file]

index 528dad4cde3cd19e98048f26881228ddcc1f51a6..4fc208d3995e1b2e94594cd9a14efa3b47f2b431 100644 (file)
@@ -29,6 +29,26 @@ properties:
 
   ranges: true
 
+patternProperties:
+  "^clock@[0-9a-f]+$":
+    type: object
+    additionalProperties: false
+
+    properties:
+      compatible:
+        const: hisilicon,hix5hd2-clock
+
+      reg:
+        maxItems: 1
+
+      "#clock-cells":
+        const: 1
+
+    required:
+      - compatible
+      - reg
+      - "#clock-cells"
+
 required:
   - compatible
   - reg
diff --git a/Documentation/devicetree/bindings/clock/hix5hd2-clock.txt b/Documentation/devicetree/bindings/clock/hix5hd2-clock.txt
deleted file mode 100644 (file)
index 4733e58..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-* Hisilicon Hix5hd2 Clock Controller
-
-The hix5hd2 clock controller generates and supplies clock to various
-controllers within the hix5hd2 SoC.
-
-Required Properties:
-
-- compatible: should be "hisilicon,hix5hd2-clock"
-- reg: Address and length of the register set
-- #clock-cells: Should be <1>
-
-Each clock is assigned an identifier and client nodes use this identifier
-to specify the clock which they consume.
-
-All these identifier could be found in <dt-bindings/clock/hix5hd2-clock.h>.
-
-Examples:
-       clock: clock@f8a22000 {
-               compatible = "hisilicon,hix5hd2-clock";
-               reg = <0xf8a22000 0x1000>;
-               #clock-cells = <1>;
-       };
-
-       uart0: uart@f8b00000 {
-               compatible = "arm,pl011", "arm,primecell";
-               reg = <0xf8b00000 0x1000>;
-               interrupts = <0 49 4>;
-               clocks = <&clock HIX5HD2_FIXED_83M>;
-               clock-names = "apb_pclk";
-       };