Skip to content

Commit 1b40307

Browse files
MrVansudeep-holla
authored andcommitted
dt-bindings: firmware: Support SCMI pinctrl protocol
Add SCMI v3.2 pinctrl protocol bindings with an example. Reviewed-by: Rob Herring <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Reviewed-by: Dhruva Gole <[email protected]> Signed-off-by: Peng Fan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sudeep Holla <[email protected]>
1 parent 4869b5c commit 1b40307

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

Documentation/devicetree/bindings/firmware/arm,scmi.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,37 @@ properties:
247247
reg:
248248
const: 0x18
249249

250+
protocol@19:
251+
type: object
252+
allOf:
253+
- $ref: '#/$defs/protocol-node'
254+
- $ref: /schemas/pinctrl/pinctrl.yaml
255+
256+
unevaluatedProperties: false
257+
258+
properties:
259+
reg:
260+
const: 0x19
261+
262+
patternProperties:
263+
'-pins$':
264+
type: object
265+
allOf:
266+
- $ref: /schemas/pinctrl/pincfg-node.yaml#
267+
- $ref: /schemas/pinctrl/pinmux-node.yaml#
268+
unevaluatedProperties: false
269+
270+
description:
271+
A pin multiplexing sub-node describes how to configure a
272+
set of pins in some desired function.
273+
A single sub-node may define several pin configurations.
274+
This sub-node is using the default pinctrl bindings to configure
275+
pin multiplexing and using SCMI protocol to apply a specified
276+
configuration.
277+
278+
required:
279+
- reg
280+
250281
additionalProperties: false
251282

252283
$defs:
@@ -401,6 +432,25 @@ examples:
401432
scmi_powercap: protocol@18 {
402433
reg = <0x18>;
403434
};
435+
436+
scmi_pinctrl: protocol@19 {
437+
reg = <0x19>;
438+
439+
i2c2-pins {
440+
groups = "g_i2c2_a", "g_i2c2_b";
441+
function = "f_i2c2";
442+
};
443+
444+
mdio-pins {
445+
groups = "g_avb_mdio";
446+
drive-strength = <24>;
447+
};
448+
449+
keys_pins: keys-pins {
450+
pins = "gpio_5_17", "gpio_5_20", "gpio_5_22", "gpio_2_1";
451+
bias-pull-up;
452+
};
453+
};
404454
};
405455
};
406456

0 commit comments

Comments
 (0)