Skip to content

Commit 3c0c7b1

Browse files
Chunyan ZhangBartosz Golaszewski
authored andcommitted
dt-bindings: gpio: Add compatible string for Unisoc UMS512
UMS512 use the same GPIO and EIC controller with SC9860. Signed-off-by: Chunyan Zhang <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent bf26a47 commit 3c0c7b1

File tree

2 files changed

+33
-7
lines changed

2 files changed

+33
-7
lines changed

Documentation/devicetree/bindings/gpio/sprd,gpio-eic.yaml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,33 @@ description: |
4242
4343
properties:
4444
compatible:
45-
enum:
46-
- sprd,sc9860-eic-debounce
47-
- sprd,sc9860-eic-latch
48-
- sprd,sc9860-eic-async
49-
- sprd,sc9860-eic-sync
50-
- sprd,sc2731-eic
45+
oneOf:
46+
- enum:
47+
- sprd,sc9860-eic-debounce
48+
- sprd,sc9860-eic-latch
49+
- sprd,sc9860-eic-async
50+
- sprd,sc9860-eic-sync
51+
- sprd,sc2731-eic
52+
- items:
53+
- enum:
54+
- sprd,ums512-eic-debounce
55+
- const: sprd,sc9860-eic-debounce
56+
- items:
57+
- enum:
58+
- sprd,ums512-eic-latch
59+
- const: sprd,sc9860-eic-latch
60+
- items:
61+
- enum:
62+
- sprd,ums512-eic-async
63+
- const: sprd,sc9860-eic-async
64+
- items:
65+
- enum:
66+
- sprd,ums512-eic-sync
67+
- const: sprd,sc9860-eic-sync
68+
- items:
69+
- enum:
70+
- sprd,sc2730-eic
71+
- const: sprd,sc2731-eic
5172

5273
reg:
5374
minItems: 1

Documentation/devicetree/bindings/gpio/sprd,gpio.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ description: |
1919
2020
properties:
2121
compatible:
22-
const: sprd,sc9860-gpio
22+
oneOf:
23+
- const: sprd,sc9860-gpio
24+
- items:
25+
- enum:
26+
- sprd,ums512-gpio
27+
- const: sprd,sc9860-gpio
2328

2429
reg:
2530
maxItems: 1

0 commit comments

Comments
 (0)