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

dt-bindings: i2c: renesas,iic-emev2: Convert to json-schema

Convert the Renesas EMMA Mobile EV2 IIC Interface (IIC) Device Tree
binding documentation to json-schema.

Document missing properties.
Update the example to match reality.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>

authored by

Geert Uytterhoeven and committed by
Wolfram Sang
6221a934 524f6fdf

+55 -23
-22
Documentation/devicetree/bindings/i2c/renesas,iic-emev2.txt
··· 1 - Device tree configuration for Renesas EMEV2 IIC controller 2 - 3 - Required properties: 4 - - compatible : "renesas,iic-emev2" 5 - - reg : address start and address range size of device 6 - - interrupts : specifier for the IIC controller interrupt 7 - - clocks : phandle to the IP core SCLK 8 - - clock-names : must be "sclk" 9 - - #address-cells : should be <1> 10 - - #size-cells : should be <0> 11 - 12 - Example: 13 - 14 - iic0: i2c@e0070000 { 15 - #address-cells = <1>; 16 - #size-cells = <0>; 17 - compatible = "renesas,iic-emev2"; 18 - reg = <0xe0070000 0x28>; 19 - interrupts = <0 32 IRQ_TYPE_EDGE_RISING>; 20 - clocks = <&iic0_sclk>; 21 - clock-names = "sclk"; 22 - };
+54
Documentation/devicetree/bindings/i2c/renesas,iic-emev2.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/renesas,iic-emev2.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Renesas EMMA Mobile EV2 IIC Interface 8 + 9 + maintainers: 10 + - Wolfram Sang <wsa+renesas@sang-engineering.com> 11 + 12 + allOf: 13 + - $ref: /schemas/i2c/i2c-controller.yaml# 14 + 15 + properties: 16 + compatible: 17 + const: renesas,iic-emev2 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + interrupts: 23 + maxItems: 1 24 + 25 + clocks: 26 + maxItems: 1 27 + 28 + clock-names: 29 + const: sclk 30 + 31 + required: 32 + - compatible 33 + - reg 34 + - interrupts 35 + - clocks 36 + - clock-names 37 + - '#address-cells' 38 + - '#size-cells' 39 + 40 + unevaluatedProperties: false 41 + 42 + examples: 43 + - | 44 + #include <dt-bindings/interrupt-controller/arm-gic.h> 45 + 46 + iic0: i2c@e0070000 { 47 + #address-cells = <1>; 48 + #size-cells = <0>; 49 + compatible = "renesas,iic-emev2"; 50 + reg = <0xe0070000 0x28>; 51 + interrupts = <GIC_SPI 32 IRQ_TYPE_EDGE_RISING>; 52 + clocks = <&iic0_sclk>; 53 + clock-names = "sclk"; 54 + };
+1 -1
MAINTAINERS
··· 15575 15575 RENESAS EMEV2 I2C DRIVER 15576 15576 M: Wolfram Sang <wsa+renesas@sang-engineering.com> 15577 15577 S: Supported 15578 - F: Documentation/devicetree/bindings/i2c/renesas,iic-emev2.txt 15578 + F: Documentation/devicetree/bindings/i2c/renesas,iic-emev2.yaml 15579 15579 F: drivers/i2c/busses/i2c-emev2.c 15580 15580 15581 15581 RENESAS ETHERNET DRIVERS