Skip to content

Commit 6e12a52

Browse files
jamiegibbonsBartosz Golaszewski
authored andcommitted
dt-bindings: gpio: mpfs: add coreGPIO support
The GPIO controllers on PolarFire SoC were based on the "soft" IP CoreGPIO, but the inp/outp registers are at different offsets. Add compatible to allow for support of both sets of offsets. The soft core will not always have interrupts wired up, so only enforce them for the "hard" core on PolarFire SoC. Signed-off-by: Jamie Gibbons <jamie.gibbons@microchip.com> Signed-off-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
1 parent 4cece76 commit 6e12a52

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ properties:
1414
items:
1515
- enum:
1616
- microchip,mpfs-gpio
17+
- microchip,coregpio-rtl-v3
1718

1819
reg:
1920
maxItems: 1
@@ -62,12 +63,21 @@ patternProperties:
6263
- gpio-hog
6364
- gpios
6465

66+
allOf:
67+
- if:
68+
properties:
69+
compatible:
70+
contains:
71+
const: microchip,mpfs-gpio
72+
then:
73+
required:
74+
- interrupts
75+
- "#interrupt-cells"
76+
- interrupt-controller
77+
6578
required:
6679
- compatible
6780
- reg
68-
- interrupts
69-
- "#interrupt-cells"
70-
- interrupt-controller
7181
- "#gpio-cells"
7282
- gpio-controller
7383
- clocks

0 commit comments

Comments
 (0)