Skip to content

Commit 0a2e0d5

Browse files
committed
FROMGIT: dt-bindings: can: microchip,mcp251xfd: allow gpio-hog child nodes
The MCP251XFD can expose two pins as GPIOs. The binding already declares gpio-controller and #gpio-cells for the device. Whitelist GPIO hog child nodes using patternProperties so boards can set default GPIO states at boot via DT, consistent with other GPIO controllers (e.g. microchip,mpfs-gpio). Signed-off-by: Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://lore.kernel.org/all/20260108125200.2803112-2-viken.dadhaniya@oss.qualcomm.com/
1 parent a05f0b0 commit 0a2e0d5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Documentation/devicetree/bindings/net/can/microchip,mcp251xfd.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ properties:
5454
"#gpio-cells":
5555
const: 2
5656

57+
patternProperties:
58+
"^.+-hog(-[0-9]+)?$":
59+
type: object
60+
required:
61+
- gpio-hog
62+
5763
required:
5864
- compatible
5965
- reg

0 commit comments

Comments
 (0)