Skip to content

Commit e228443

Browse files
gmarullcfriedt
authored andcommitted
dts: bindings: pinctrl: sifli,sf32lb52-pinmux: add port/offset cells
So we can reference later to any of the PAD_XX_YY registers from e.g. GPIO nodes, where we need to write pad configs like pull-ups. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent 8e2e62a commit e228443

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

dts/arm/sifli/sf32lb52x.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
reg = <0x50003000 0x34>, <0x50003034 0xb4>;
8989
reg-names = "pad_sa", "pad_pa";
9090
clocks = <&rcc_clk SF32LB52X_CLOCK_PINMUX1>;
91+
#sifli,pinmux-cells = <2>;
9192
sifli,cfg = <&cfg>;
9293
status = "disabled";
9394
};

dts/bindings/pinctrl/sifli,sf32lb52x-pinmux.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,14 @@ properties:
9191
sifli,cfg:
9292
required: true
9393

94+
"#sifli,pinmux-cells":
95+
type: int
96+
const: 2
97+
98+
sifli,pinmux-cells:
99+
- port
100+
- offset
101+
94102
child-binding:
95103
child-binding:
96104
include:

0 commit comments

Comments
 (0)