Commit 596e7636 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Greg Kroah-Hartman
Browse files

staging: hikey9xx: hisilicon, hisi-spmi-controller.yaml fix bindings

parent 93e3ef23
Loading
Loading
Loading
Loading
+16 −3
Original line number Diff line number Diff line
@@ -26,6 +26,12 @@ properties:
  reg:
    maxItems: 1

  "#address-cells":
    const: 2

  "#size-cells":
    const: 0

  spmi-channel:
    description: |
      number of the Kirin 970 SPMI channel where the SPMI devices are connected.
@@ -34,6 +40,8 @@ required:
  - compatible
  - reg
  - spmi-channel
  - "#address-cells"
  - "#size-cells"

patternProperties:
  "^pmic@[0-9a-f]$":
@@ -43,6 +51,8 @@ patternProperties:
      are documented at
      drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml.

additionalProperties: false

examples:
  - |
    bus {
@@ -51,11 +61,14 @@ examples:

      spmi: spmi@fff24000 {
        compatible = "hisilicon,kirin970-spmi-controller";
        #address-cells = <2>;
        #size-cells = <0>;
        status = "ok";
        reg = <0x0 0xfff24000 0x0 0x1000>;
        spmi-channel = <2>;

        pmic@0 {
          reg = <0 0>;
          /* pmic properties */
        };
      };