Commit 8cb9c36b authored by Anand Moon's avatar Anand Moon Committed by Greg Kroah-Hartman
Browse files

dt-bindings: usb: vialab,vl817: Cleanup compatible, reset-gpios and required



Cleanup by removing unneeded quotes from refs and
add maxItems to reset-gpios and fix the required list.

Fixes: 31360c28 ("dt-bindings: usb: Add binding for Via lab VL817 hub controller")
Signed-off-by: default avatarAnand Moon <linux.amoon@gmail.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230130084744.2539-5-linux.amoon@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ff826648
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -14,29 +14,32 @@ allOf:

properties:
  compatible:
    items:
      - enum:
    enum:
      - usb2109,2817
      - usb2109,817

  reg: true

  reset-gpios:
    description: GPIO controlling the RESET# pin.
    maxItems: 1
    description:
      GPIO controlling the RESET# pin.

  vdd-supply:
    description:
      phandle to the regulator that provides power to the hub.

  peer-hub:
    $ref: '/schemas/types.yaml#/definitions/phandle'
    $ref: /schemas/types.yaml#/definitions/phandle
    description:
      phandle to the peer hub on the controller.

required:
  - peer-hub
  - compatible
  - reg
  - reset-gpios
  - vdd-supply
  - peer-hub

additionalProperties: false

@@ -45,7 +48,6 @@ examples:
    #include <dt-bindings/gpio/gpio.h>

    usb {
        dr_mode = "host";
        #address-cells = <1>;
        #size-cells = <0>;