dt-bindings: clock: rockchip: add clk-out
Subsystems (3)
PATCH 1/2 dt-bindings: clock: rockchip: add clk-out
Document the Rockchip clock output/input switch, a single GRF- controlled gate used for signals such as the SAI MCLK output.
--- .../bindings/clock/rockchip,clk-out.yaml | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/rockchip,clk-out.yaml
Documentation/devicetree/bindings/clock/rockchip,clk-out.yaml new file +81 -0
@@ -0,0 +1,81 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/rockchip,clk-out.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip Clock Output/Input Switch + +maintainers: + - Heiko Stuebner <[email protected]> + +description: | + Some Rockchip SoCs route a clock between an internal clock and a pin + through a GRF bit, for example the SAI MCLK input/output switch. This + driver exposes that single bit as a gate clock. + +properties: + compatible: + const: rockchip,clk-out + + reg: + maxItems: 1 + + "#clock-cells": + const: 0 + + clocks: + maxItems: 1 + description: Parent clock. + + power-domains: + maxItems: 1 + + clock-output-names: + maxItems: 1 + + rockchip,bit-shift: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Bit position of the output enable in the register. + + rockchip,bit-set-to-disable: + type: boolean + description: | + By default the clock is enabled by setting the bit at + rockchip,bit-shift. When this property is present the polarity is + inverted: setting the bit disables the clock and clearing it + enables the clock. + +required: + - compatible + - reg + - clocks + - "#clock-cells" + - clock-output-names + - rockchip,bit-shift + +additionalProperties: false + +examples: + - | + clkout_parent: clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <12288000>; + }; + + clkout: clock@ff910004 { + compatible = "rockchip,clk-out"; + reg = <0xff910004 0x4>; + clocks = <&clkout_parent>; + #clock-cells = <0>; + clock-output-names = "mclk_sai0_to_io"; + rockchip,bit-shift = <8>; + }; + + audio-codec { + clocks = <&clkout>; + clock-names = "mclk"; + }; + +...
Signature · 1 line
2.47.3
Quoted 6 lines · ZhuXiangyu
Document the Rockchip clock output/input switch, a single GRF- controlled gate used for signals such as the SAI MCLK output.
Signed-off-by ZhuXiangyu <[email protected]>--- .../bindings/clock/rockchip,clk-out.yaml | 81 +++++++++++++++++++
Please follow carefully submitting patches document, including how to sign your work and how to send it correctly threaded. There are numerous guides already, so just follow them.
Quoted 18 lines
1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/rockchip,clk-out.yamlDocumentation/devicetree/bindings/clock/rockchip,clk-out.yaml new file +9
-0@@ -0,0 +1,81 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/rockchip,clk-out.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip Clock Output/Input Switch + +maintainers:
Documentation/devicetree/bindings/clock/rockchip,clk-out.yaml line 19
Quoted 10 lines
Documentation/devicetree/bindings/clock/rockchip,clk-out.yaml new file +10
-0+ - Heiko Stuebner <[email protected]> + +description: | + Some Rockchip SoCs route a clock between an internal clock and a pin + through a GRF bit, for example the SAI MCLK input/output switch. This + driver exposes that single bit as a gate clock. + +properties: + compatible: + const: rockchip,clk-out
Generic compatibles are not allowed. Do NOT send us downstream code, it's not acceptable.
Not doing detailed review as it does not follow basic rules. Please go through for example DTS101 slides.
Documentation/devicetree/bindings/clock/rockchip,clk-out.yaml line 29
Quoted 10 lines
Documentation/devicetree/bindings/clock/rockchip,clk-out.yaml new file +10
-0+ + reg: + maxItems: 1 + + "#clock-cells": + const: 0 + + clocks: + maxItems: 1 + description: Parent clock.
Drop description.
Documentation/devicetree/bindings/clock/rockchip,clk-out.yaml line 39
Quoted 10 lines
Documentation/devicetree/bindings/clock/rockchip,clk-out.yaml new file +10
-0+ + power-domains: + maxItems: 1 + + clock-output-names: + maxItems: 1 + + rockchip,bit-shift: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Bit position of the output enable in the register.
Nope
Documentation/devicetree/bindings/clock/rockchip,clk-out.yaml line 47
Quoted 8 lines
Documentation/devicetree/bindings/clock/rockchip,clk-out.yaml new file +8
-0+ + rockchip,bit-set-to-disable: + type: boolean + description: | + By default the clock is enabled by setting the bit at + rockchip,bit-shift. When this property is present the polarity is + inverted: setting the bit disables the clock and clearing it + enables the clock.
Nope
Quoted 8 lines
Documentation/devicetree/bindings/clock/rockchip,clk-out.yaml new file +8
-0+ +required: + - compatible + - reg + - clocks + - "#clock-cells" + - clock-output-names + - rockchip,bit-shift
Documentation/devicetree/bindings/clock/rockchip,clk-out.yaml line 65
Quoted 10 lines
Documentation/devicetree/bindings/clock/rockchip,clk-out.yaml new file +10
-0+ +additionalProperties: false + +examples: + - | + clkout_parent: clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <12288000>; + };
Drop node, redundant.
Documentation/devicetree/bindings/clock/rockchip,clk-out.yaml line 78
Quoted 13 lines
Documentation/devicetree/bindings/clock/rockchip,clk-out.yaml new file +13
-0+ + clkout: clock@ff910004 { + compatible = "rockchip,clk-out"; + reg = <0xff910004 0x4>; + clocks = <&clkout_parent>; + #clock-cells = <0>; + clock-output-names = "mclk_sai0_to_io"; + rockchip,bit-shift = <8>; + }; + + audio-codec { + clocks = <&clkout>; + clock-names = "mclk";
Drop node, redundant.
Best regards,
Krzysztof
Heiko Stübner
maintainerAm Samstag, 21. November 2026, 12:02:37 Mitteleuropäische Normalzeit schrieb Krzysztof Kozlowski:
Quoted 45 lines · ZhuXiangyu
Quoted 6 lines
Document the Rockchip clock output/input switch, a single GRF- controlled gate used for signals such as the SAI MCLK output.
Signed-off-by ZhuXiangyu <[email protected]>--- .../bindings/clock/rockchip,clk-out.yaml | 81 +++++++++++++++++++Please follow carefully submitting patches document, including how to sign your work and how to send it correctly threaded. There are numerous guides already, so just follow them.
Quoted 18 lines
1 file changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/rockchip,clk-out.yamlDocumentation/devicetree/bindings/clock/rockchip,clk-out.yaml new file +9
-0@@ -0,0 +1,81 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/rockchip,clk-out.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip Clock Output/Input Switch + +maintainers:Documentation/devicetree/bindings/clock/rockchip,clk-out.yaml line 19
Quoted 10 lines
Documentation/devicetree/bindings/clock/rockchip,clk-out.yaml new file +10
-0+ - Heiko Stuebner <[email protected]> + +description: | + Some Rockchip SoCs route a clock between an internal clock and a pin + through a GRF bit, for example the SAI MCLK input/output switch. This + driver exposes that single bit as a gate clock. + +properties: + compatible: + const: rockchip,clk-outGeneric compatibles are not allowed. Do NOT send us downstream code, it's not acceptable.
Quoted 2 lines
Not doing detailed review as it does not follow basic rules. Please go through for example DTS101 slides.
this whole implementation is bogous, but it seems the submitter found the correct way to do this in [0] .
But of course the submitter still fails to follow basic styles there. Broken threading and especially not stating that the new one superseded this one.
And of course yet another patch bomb in the span of minutes accross so many different subsystems - which I guess is not a human doing it.
@ZhuXiangyu: even if you're an LLM and new to the process, don't flood the lists - especially not before you get the process right.
[0] https://lore.kernel.org/linux-rockchip/[email protected]
_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip