Skip to content

Commit 3a56ded

Browse files
gmarullcfriedt
authored andcommitted
dts: bindings: gpio: add sifli,sf32lb-gpio-parent
SiFli SF32LB SoCs have a single GPIO controller block which manages all pins (> 32). However, Zephyr API expects ports to have up to 32 pins. So in order to make things compatible, we introduce a Zephyrism in devicetree: a parent node with common properties (e.g. IRQ, RCC clock, etc.) and children nodes for each 32 pin block. See upcoming devicetree definition for more details. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent e228443 commit 3a56ded

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright (c) 2025 Core Devices LLC
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: SF32LB GPIO (parent)
5+
6+
compatible: "sifli,sf32lb-gpio-parent"
7+
8+
include: base.yaml
9+
10+
properties:
11+
reg:
12+
required: true
13+
14+
ranges:
15+
type: array
16+
required: true
17+
18+
"#address-cells":
19+
const: 1
20+
21+
"#size-cells":
22+
const: 1
23+
24+
clocks:
25+
required: true
26+
27+
interrupts:
28+
required: true

0 commit comments

Comments
 (0)