Skip to content

Commit ac434f2

Browse files
hal-fenggregkh
authored andcommitted
dt-bindings: serial: snps-dw-apb-uart: Add one more reset signal for StarFive JH7110 SoC
The UART of StarFive JH7110 has two reset signals. Both of them are necessary for JH7110 to initialize UART. Signed-off-by: Hal Feng <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent bf14c18 commit ac434f2

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,20 @@ allOf:
1313
- $ref: serial.yaml#
1414
- $ref: rs485.yaml#
1515

16+
- if:
17+
properties:
18+
compatible:
19+
contains:
20+
const: starfive,jh7110-uart
21+
then:
22+
properties:
23+
resets:
24+
minItems: 2
25+
else:
26+
properties:
27+
resets:
28+
maxItems: 1
29+
1630
properties:
1731
compatible:
1832
oneOf:
@@ -48,6 +62,7 @@ properties:
4862
- enum:
4963
- starfive,jh7100-hsuart
5064
- starfive,jh7100-uart
65+
- starfive,jh7110-uart
5166
- const: snps,dw-apb-uart
5267
- const: snps,dw-apb-uart
5368

@@ -82,7 +97,8 @@ properties:
8297
type: boolean
8398

8499
resets:
85-
maxItems: 1
100+
minItems: 1
101+
maxItems: 2
86102

87103
reg-shift: true
88104

0 commit comments

Comments
 (0)