[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240108135421.684263-7-tmaimon77@gmail.com>
Date: Mon, 8 Jan 2024 15:54:19 +0200
From: Tomer Maimon <tmaimon77@...il.com>
To: <mturquette@...libre.com>, <sboyd@...nel.org>, <robh+dt@...nel.org>,
<krzysztof.kozlowski+dt@...aro.org>, <tali.perry1@...il.com>,
<joel@....id.au>, <venture@...gle.com>, <yuenn@...gle.com>,
<benjaminfair@...gle.com>
CC: <openbmc@...ts.ozlabs.org>, <linux-clk@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <devicetree@...r.kernel.org>, Tomer Maimon
<tmaimon77@...il.com>
Subject: [PATCH v22 6/8] dt-bindings: clock: npcm845: replace reg with syscon property
Replace reg with syscon property since the clock registers handle the
reset registers as well.
Signed-off-by: Tomer Maimon <tmaimon77@...il.com>
---
.../bindings/clock/nuvoton,npcm845-clk.yaml | 22 +++++++++----------
1 file changed, 10 insertions(+), 12 deletions(-)
diff --git a/Documentation/devicetree/bindings/clock/nuvoton,npcm845-clk.yaml b/Documentation/devicetree/bindings/clock/nuvoton,npcm845-clk.yaml
index 0b642bfce292..c6bf05c163b4 100644
--- a/Documentation/devicetree/bindings/clock/nuvoton,npcm845-clk.yaml
+++ b/Documentation/devicetree/bindings/clock/nuvoton,npcm845-clk.yaml
@@ -18,8 +18,9 @@ properties:
enum:
- nuvoton,npcm845-clk
- reg:
- maxItems: 1
+ nuvoton,sysclk:
+ $ref: /schemas/types.yaml#/definitions/phandle
+ description: phandle to access clock registers.
clocks:
items:
@@ -37,7 +38,7 @@ properties:
required:
- compatible
- - reg
+ - nuvoton,sysclk
- clocks
- clock-names
- '#clock-cells'
@@ -52,14 +53,11 @@ examples:
clock-frequency = <25000000>;
};
- ahb {
- #address-cells = <2>;
- #size-cells = <2>;
-
- clock-controller@...01000 {
- compatible = "nuvoton,npcm845-clk";
- reg = <0x0 0xf0801000 0x0 0x1000>;
- #clock-cells = <1>;
- };
+ clk: clock-controller {
+ compatible = "nuvoton,npcm845-clk";
+ nuvoton,sysclk = <&clk_rst>;
+ #clock-cells = <1>;
+ clocks = <&refclk>;
+ clock-names = "refclk";
};
...
--
2.34.1
Powered by blists - more mailing lists