Commit a95ab3d2 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Andi Shyti
Browse files

dt-bindings: i2c: ti,omap4: reference i2c-controller.yaml schema



Reference the core I2C controller schema to properly define common
properties.  This allows to drop several (now redundant) properties.

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarConor Dooley <conor.dooley@microchip.com>
Signed-off-by: default avatarAndi Shyti <andi.shyti@kernel.org>
parent 502ebea6
Loading
Loading
Loading
Loading
+23 −35
Original line number Diff line number Diff line
@@ -37,16 +37,8 @@ properties:
  clock-names:
    const: fck

  clock-frequency: true

  power-domains: true

  "#address-cells":
    const: 1

  "#size-cells":
    const: 0

  ti,hwmods:
    description:
      Must be "i2c<n>", n being the instance number (1-based).
@@ -55,21 +47,15 @@ properties:
    $ref: /schemas/types.yaml#/definitions/string
    deprecated: true

# subnode's properties
patternProperties:
  "@[0-9a-f]+$":
    type: object
    description:
      Flash device uses the below defined properties in the subnode.

required:
  - compatible
  - reg
  - interrupts

additionalProperties: false
allOf:
  - $ref: /schemas/i2c/i2c-controller.yaml#

if:
  - if:
      properties:
        compatible:
          enum:
@@ -88,6 +74,8 @@ else:
      properties:
        ti,hwmods: false

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>