Skip to content

Commit c665043

Browse files
dlan17Linus Walleij
authored andcommitted
dt-bindings: pinctrl: spacemit: add clock and reset property
SpacemiT K1 SoC's pinctrl controller requires two clocks in order to work properly, also has one reset line from hardware perspective. Signed-off-by: Yixun Lan <dlan@gentoo.org> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/20250416-02-k1-pinctrl-clk-v2-1-2b5fcbd4183c@gentoo.org Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 829d06b commit c665043

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Documentation/devicetree/bindings/pinctrl/spacemit,k1-pinctrl.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ properties:
1717
items:
1818
- description: pinctrl io memory base
1919

20+
clocks:
21+
items:
22+
- description: Functional Clock
23+
- description: Bus Clock
24+
25+
clock-names:
26+
items:
27+
- const: func
28+
- const: bus
29+
30+
resets:
31+
maxItems: 1
32+
2033
patternProperties:
2134
'-cfg$':
2235
type: object
@@ -94,6 +107,8 @@ patternProperties:
94107
required:
95108
- compatible
96109
- reg
110+
- clocks
111+
- clock-names
97112

98113
additionalProperties: false
99114

@@ -108,6 +123,9 @@ examples:
108123
pinctrl@d401e000 {
109124
compatible = "spacemit,k1-pinctrl";
110125
reg = <0x0 0xd401e000 0x0 0x400>;
126+
clocks = <&syscon_apbc 42>,
127+
<&syscon_apbc 94>;
128+
clock-names = "func", "bus";
111129
112130
uart0_2_cfg: uart0-2-cfg {
113131
uart0-2-pins {

0 commit comments

Comments
 (0)