dt-bindings: clock: Convert TI Palmas Clock to DT schema
Subsystems (2)
PATCH 1/1 dt-bindings: clock: Convert TI Palmas Clock to DT schema
Convert the Texas Instruments Palmas 32KHz clock bindings to DT schema.
During the conversion, the node name in the example was updated from 'palmas_clk32k@0' to 'clock-controller'. The old example contained a unit address without a 'reg' property, which causes dtc compilation warnings.
--- .../clock/clk-palmas-clk32kg-clocks.txt | 35 ------------ .../bindings/clock/ti,palmas-clk32kg.yaml | 56 +++++++++++++++++++ 2 files changed, 56 insertions(+), 35 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/clk-palmas-clk32kg-clocks.txt create mode 100644 Documentation/devicetree/bindings/clock/ti,palmas-clk32kg.yaml
Documentation/devicetree/bindings/clock/clk-palmas-clk32kg-clocks.txt deleted +0 -35
@@ -1,35 +0,0 @@ -* Palmas 32KHz clocks * - -Palmas device has two clock output pins for 32KHz, KG and KG_AUDIO. - -This binding uses the common clock binding ./clock-bindings.txt. - -Required properties: -- compatible : "ti,palmas-clk32kg" for clk32kg clock - "ti,palmas-clk32kgaudio" for clk32kgaudio clock -- #clock-cells : shall be set to 0. - -Optional property: -- ti,external-sleep-control: The external enable input pins controlled the - enable/disable of clocks. The external enable input pins ENABLE1, - ENABLE2 and NSLEEP. The valid values for the external pins are: - PALMAS_EXT_CONTROL_PIN_ENABLE1 for ENABLE1 pin - PALMAS_EXT_CONTROL_PIN_ENABLE2 for ENABLE2 pin - PALMAS_EXT_CONTROL_PIN_NSLEEP for NSLEEP pin - Option 0 or missing this property means the clock is enabled/disabled - via register access and these pins do not have any control. - The macros of external control pins for DTS is defined at - dt-bindings/mfd/palmas.h - -Example: - #include <dt-bindings/mfd/palmas.h> - ... - palmas: tps65913@58 { - ... - clk32kg: palmas_clk32k@0 { - compatible = "ti,palmas-clk32kg"; - #clock-cells = <0>; - ti,external-sleep-control = <PALMAS_EXT_CONTROL_PIN_NSLEEP>; - }; - ... - };
Documentation/devicetree/bindings/clock/ti,palmas-clk32kg.yaml new file +56 -0
56 lines not on this page · raw message
Signature · 1 line
2.43.0
Quoted 8 lines · Eduard Bostina
Convert the Texas Instruments Palmas 32KHz clock bindings to DT schema.
During the conversion, the node name in the example was updated from 'palmas_clk32k@0' to 'clock-controller'. The old example contained a unit address without a 'reg' property, which causes dtc compilation warnings.
Quoted 8 lines
Signed-off-by Eduard Bostina <[email protected]>--- .../clock/clk-palmas-clk32kg-clocks.txt | 35 ------------ .../bindings/clock/ti,palmas-clk32kg.yaml | 56 +++++++++++++++++++ 2 files changed, 56 insertions(+), 35 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/clk-palmas-clk32kg-clocks.txt create mode 100644 Documentation/devicetree/bindings/clock/ti,palmas-clk32kg.yaml
Brian Masney
AppliedQuoted 1 line · Eduard Bostina
dt-bindings: clock: Convert TI Palmas Clock to DT schema
Applied, thanks!
[1/1] dt-bindings: clock: Convert TI Palmas Clock to DT schema
commit: e44caef8848790e3515c7c32bd3460e948613092
Best regards,
Signature · 1 line
Brian Masney <[email protected]>