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

dt-bindings: i2c: nxp,pnx-i2c: Convert to dtschema

Convert the NXP PNX I2C Controller bindings to DT schema.
Keep only one example in DT schema to remove redundancy.

Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Animesh Agarwal <animeshagarwal28@gmail.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>

authored by

Animesh Agarwal and committed by
Andi Shyti
51c87f0e dd5a440a

+46 -34
-34
Documentation/devicetree/bindings/i2c/i2c-pnx.txt
··· 1 - * NXP PNX I2C Controller 2 - 3 - Required properties: 4 - 5 - - reg: Offset and length of the register set for the device 6 - - compatible: should be "nxp,pnx-i2c" 7 - - interrupts: configure one interrupt line 8 - - #address-cells: always 1 (for i2c addresses) 9 - - #size-cells: always 0 10 - 11 - Optional properties: 12 - 13 - - clock-frequency: desired I2C bus clock frequency in Hz, Default: 100000 Hz 14 - 15 - Examples: 16 - 17 - i2c1: i2c@400a0000 { 18 - compatible = "nxp,pnx-i2c"; 19 - reg = <0x400a0000 0x100>; 20 - interrupt-parent = <&mic>; 21 - interrupts = <51 0>; 22 - #address-cells = <1>; 23 - #size-cells = <0>; 24 - }; 25 - 26 - i2c2: i2c@400a8000 { 27 - compatible = "nxp,pnx-i2c"; 28 - reg = <0x400a8000 0x100>; 29 - interrupt-parent = <&mic>; 30 - interrupts = <50 0>; 31 - #address-cells = <1>; 32 - #size-cells = <0>; 33 - clock-frequency = <100000>; 34 - };
+46
Documentation/devicetree/bindings/i2c/nxp,pnx-i2c.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/i2c/nxp,pnx-i2c.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NXP PNX I2C Controller 8 + 9 + maintainers: 10 + - Animesh Agarwal <animeshagarwal28@gmail.com> 11 + 12 + allOf: 13 + - $ref: /schemas/i2c/i2c-controller.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: nxp,pnx-i2c 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + clock-frequency: 26 + default: 100000 27 + 28 + required: 29 + - compatible 30 + - reg 31 + - interrupts 32 + - "#address-cells" 33 + - "#size-cells" 34 + 35 + unevaluatedProperties: false 36 + 37 + examples: 38 + - | 39 + i2c@400a0000 { 40 + compatible = "nxp,pnx-i2c"; 41 + reg = <0x400a0000 0x100>; 42 + interrupt-parent = <&mic>; 43 + interrupts = <51 0>; 44 + #address-cells = <1>; 45 + #size-cells = <0>; 46 + };