Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Andi Shyti
a95ab3d2 502ebea6

+20 -32
+20 -32
Documentation/devicetree/bindings/i2c/ti,omap4-i2c.yaml
··· 37 37 clock-names: 38 38 const: fck 39 39 40 - clock-frequency: true 41 - 42 40 power-domains: true 43 - 44 - "#address-cells": 45 - const: 1 46 - 47 - "#size-cells": 48 - const: 0 49 41 50 42 ti,hwmods: 51 43 description: ··· 47 55 $ref: /schemas/types.yaml#/definitions/string 48 56 deprecated: true 49 57 50 - # subnode's properties 51 - patternProperties: 52 - "@[0-9a-f]+$": 53 - type: object 54 - description: 55 - Flash device uses the below defined properties in the subnode. 56 - 57 58 required: 58 59 - compatible 59 60 - reg 60 61 - interrupts 61 62 62 - additionalProperties: false 63 + allOf: 64 + - $ref: /schemas/i2c/i2c-controller.yaml# 63 65 64 - if: 65 - properties: 66 - compatible: 67 - enum: 68 - - ti,omap2420-i2c 69 - - ti,omap2430-i2c 70 - - ti,omap3-i2c 71 - - ti,omap4-i2c 66 + - if: 67 + properties: 68 + compatible: 69 + enum: 70 + - ti,omap2420-i2c 71 + - ti,omap2430-i2c 72 + - ti,omap3-i2c 73 + - ti,omap4-i2c 72 74 73 - then: 74 - properties: 75 - ti,hwmods: 76 - items: 77 - - pattern: "^i2c([1-9])$" 75 + then: 76 + properties: 77 + ti,hwmods: 78 + items: 79 + - pattern: "^i2c([1-9])$" 78 80 79 - else: 80 - properties: 81 - ti,hwmods: false 81 + else: 82 + properties: 83 + ti,hwmods: false 84 + 85 + unevaluatedProperties: false 82 86 83 87 examples: 84 88 - |