1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/i2c/renesas 4 $id: http://devicetree.org/schemas/i2c/renesas,rzv2m.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Renesas RZ/V2M I2C Bus Interface 7 title: Renesas RZ/V2M I2C Bus Interface 8 8 9 maintainers: 9 maintainers: 10 - Fabrizio Castro <fabrizio.castro.jz@renesas 10 - Fabrizio Castro <fabrizio.castro.jz@renesas.com> 11 11 12 allOf: 12 allOf: 13 - $ref: /schemas/i2c/i2c-controller.yaml# 13 - $ref: /schemas/i2c/i2c-controller.yaml# 14 14 15 properties: 15 properties: 16 compatible: 16 compatible: 17 items: 17 items: 18 - enum: 18 - enum: 19 - renesas,r9a09g011-i2c # RZ/V2M 19 - renesas,r9a09g011-i2c # RZ/V2M 20 - const: renesas,rzv2m-i2c 20 - const: renesas,rzv2m-i2c 21 21 22 reg: 22 reg: 23 maxItems: 1 23 maxItems: 1 24 24 25 interrupts: 25 interrupts: 26 items: 26 items: 27 - description: Data transmission/recepti 27 - description: Data transmission/reception interrupt 28 - description: Status interrupt 28 - description: Status interrupt 29 29 30 interrupt-names: 30 interrupt-names: 31 items: 31 items: 32 - const: tia 32 - const: tia 33 - const: tis 33 - const: tis 34 34 35 clock-frequency: 35 clock-frequency: 36 default: 100000 36 default: 100000 37 enum: [ 100000, 400000 ] 37 enum: [ 100000, 400000 ] 38 description: 38 description: 39 Desired I2C bus clock frequency in Hz. 39 Desired I2C bus clock frequency in Hz. 40 40 41 clocks: 41 clocks: 42 maxItems: 1 42 maxItems: 1 43 43 44 power-domains: 44 power-domains: 45 maxItems: 1 45 maxItems: 1 46 46 47 resets: 47 resets: 48 maxItems: 1 48 maxItems: 1 49 49 50 required: 50 required: 51 - compatible 51 - compatible 52 - reg 52 - reg 53 - interrupts 53 - interrupts 54 - interrupt-names 54 - interrupt-names 55 - clocks 55 - clocks 56 - power-domains 56 - power-domains 57 - resets 57 - resets 58 - '#address-cells' 58 - '#address-cells' 59 - '#size-cells' 59 - '#size-cells' 60 60 61 unevaluatedProperties: false 61 unevaluatedProperties: false 62 62 63 examples: 63 examples: 64 - | 64 - | 65 #include <dt-bindings/clock/r9a09g011-cpg. 65 #include <dt-bindings/clock/r9a09g011-cpg.h> 66 #include <dt-bindings/interrupt-controller 66 #include <dt-bindings/interrupt-controller/arm-gic.h> 67 67 68 i2c0: i2c@a4030000 { 68 i2c0: i2c@a4030000 { 69 compatible = "renesas,r9a09g011-i2c", 69 compatible = "renesas,r9a09g011-i2c", "renesas,rzv2m-i2c"; 70 reg = <0xa4030000 0x80>; 70 reg = <0xa4030000 0x80>; 71 interrupts = <GIC_SPI 232 IRQ_TYPE_EDG 71 interrupts = <GIC_SPI 232 IRQ_TYPE_EDGE_RISING>, 72 <GIC_SPI 236 IRQ_TYPE_EDG 72 <GIC_SPI 236 IRQ_TYPE_EDGE_RISING>; 73 interrupt-names = "tia", "tis"; 73 interrupt-names = "tia", "tis"; 74 clocks = <&cpg CPG_MOD R9A09G011_IIC_P 74 clocks = <&cpg CPG_MOD R9A09G011_IIC_PCLK0>; 75 resets = <&cpg R9A09G011_IIC_GPA_PRESE 75 resets = <&cpg R9A09G011_IIC_GPA_PRESETN>; 76 power-domains = <&cpg>; 76 power-domains = <&cpg>; 77 clock-frequency = <100000>; 77 clock-frequency = <100000>; 78 #address-cells = <1>; 78 #address-cells = <1>; 79 #size-cells = <0>; 79 #size-cells = <0>; 80 }; 80 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.