Commit ac434f28 authored by Hal Feng's avatar Hal Feng Committed by Greg Kroah-Hartman
Browse files

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: default avatarHal Feng <hal.feng@starfivetech.com>
Reviewed-by: default avatarConor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240604084729.57239-2-hal.feng@starfivetech.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bf14c18a
Loading
Loading
Loading
Loading
+17 −1
Original line number Diff line number Diff line
@@ -13,6 +13,20 @@ allOf:
  - $ref: serial.yaml#
  - $ref: rs485.yaml#

  - if:
      properties:
        compatible:
          contains:
            const: starfive,jh7110-uart
    then:
      properties:
        resets:
          minItems: 2
    else:
      properties:
        resets:
          maxItems: 1

properties:
  compatible:
    oneOf:
@@ -48,6 +62,7 @@ properties:
          - enum:
              - starfive,jh7100-hsuart
              - starfive,jh7100-uart
              - starfive,jh7110-uart
          - const: snps,dw-apb-uart
      - const: snps,dw-apb-uart

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

  resets:
    maxItems: 1
    minItems: 1
    maxItems: 2

  reg-shift: true