15956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25956d97fSEmmanuel Vadot%YAML 1.2 35956d97fSEmmanuel Vadot--- 45956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/i2c/renesas,riic.yaml# 55956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65956d97fSEmmanuel Vadot 75956d97fSEmmanuel Vadottitle: Renesas RZ/A and RZ/G2L I2C Bus Interface (RIIC) 85956d97fSEmmanuel Vadot 95956d97fSEmmanuel Vadotmaintainers: 105956d97fSEmmanuel Vadot - Chris Brandt <chris.brandt@renesas.com> 115956d97fSEmmanuel Vadot - Wolfram Sang <wsa+renesas@sang-engineering.com> 125956d97fSEmmanuel Vadot 135956d97fSEmmanuel VadotallOf: 145956d97fSEmmanuel Vadot - $ref: /schemas/i2c/i2c-controller.yaml# 155956d97fSEmmanuel Vadot 165956d97fSEmmanuel Vadotproperties: 175956d97fSEmmanuel Vadot compatible: 185956d97fSEmmanuel Vadot items: 195956d97fSEmmanuel Vadot - enum: 205956d97fSEmmanuel Vadot - renesas,riic-r7s72100 # RZ/A1H 215956d97fSEmmanuel Vadot - renesas,riic-r7s9210 # RZ/A2M 22*8bab661aSEmmanuel Vadot - renesas,riic-r9a07g043 # RZ/G2UL and RZ/Five 235956d97fSEmmanuel Vadot - renesas,riic-r9a07g044 # RZ/G2{L,LC} 24c9ccf3a3SEmmanuel Vadot - renesas,riic-r9a07g054 # RZ/V2L 255956d97fSEmmanuel Vadot - const: renesas,riic-rz # RZ/A or RZ/G2L 265956d97fSEmmanuel Vadot 275956d97fSEmmanuel Vadot reg: 285956d97fSEmmanuel Vadot maxItems: 1 295956d97fSEmmanuel Vadot 305956d97fSEmmanuel Vadot interrupts: 315956d97fSEmmanuel Vadot items: 32354d7675SEmmanuel Vadot - description: Transmit End Interrupt 33354d7675SEmmanuel Vadot - description: Receive Data Full Interrupt 34354d7675SEmmanuel Vadot - description: Transmit Data Empty Interrupt 35354d7675SEmmanuel Vadot - description: Stop Condition Detection Interrupt 36354d7675SEmmanuel Vadot - description: Start Condition Detection Interrupt 37354d7675SEmmanuel Vadot - description: NACK Reception Interrupt 38354d7675SEmmanuel Vadot - description: Arbitration-Lost Interrupt 39354d7675SEmmanuel Vadot - description: Timeout Interrupt 40354d7675SEmmanuel Vadot 41354d7675SEmmanuel Vadot interrupt-names: 42354d7675SEmmanuel Vadot items: 43354d7675SEmmanuel Vadot - const: tei 44354d7675SEmmanuel Vadot - const: ri 45354d7675SEmmanuel Vadot - const: ti 46354d7675SEmmanuel Vadot - const: spi 47354d7675SEmmanuel Vadot - const: sti 48354d7675SEmmanuel Vadot - const: naki 49354d7675SEmmanuel Vadot - const: ali 50354d7675SEmmanuel Vadot - const: tmoi 515956d97fSEmmanuel Vadot 525956d97fSEmmanuel Vadot clock-frequency: 535956d97fSEmmanuel Vadot description: 545956d97fSEmmanuel Vadot Desired I2C bus clock frequency in Hz. The absence of this property 555956d97fSEmmanuel Vadot indicates the default frequency 100 kHz. 565956d97fSEmmanuel Vadot 575956d97fSEmmanuel Vadot clocks: 585956d97fSEmmanuel Vadot maxItems: 1 595956d97fSEmmanuel Vadot 605956d97fSEmmanuel Vadot power-domains: 615956d97fSEmmanuel Vadot maxItems: 1 625956d97fSEmmanuel Vadot 63b97ee269SEmmanuel Vadot resets: 64b97ee269SEmmanuel Vadot maxItems: 1 65b97ee269SEmmanuel Vadot 665956d97fSEmmanuel Vadotrequired: 675956d97fSEmmanuel Vadot - compatible 685956d97fSEmmanuel Vadot - reg 695956d97fSEmmanuel Vadot - interrupts 70354d7675SEmmanuel Vadot - interrupt-names 715956d97fSEmmanuel Vadot - clocks 725956d97fSEmmanuel Vadot - clock-frequency 735956d97fSEmmanuel Vadot - power-domains 745956d97fSEmmanuel Vadot - '#address-cells' 755956d97fSEmmanuel Vadot - '#size-cells' 765956d97fSEmmanuel Vadot 775956d97fSEmmanuel Vadotif: 785956d97fSEmmanuel Vadot properties: 795956d97fSEmmanuel Vadot compatible: 805956d97fSEmmanuel Vadot contains: 815956d97fSEmmanuel Vadot enum: 82d5b0e70fSEmmanuel Vadot - renesas,riic-r9a07g043 835956d97fSEmmanuel Vadot - renesas,riic-r9a07g044 84c9ccf3a3SEmmanuel Vadot - renesas,riic-r9a07g054 855956d97fSEmmanuel Vadotthen: 865956d97fSEmmanuel Vadot required: 875956d97fSEmmanuel Vadot - resets 885956d97fSEmmanuel Vadot 895956d97fSEmmanuel VadotunevaluatedProperties: false 905956d97fSEmmanuel Vadot 915956d97fSEmmanuel Vadotexamples: 925956d97fSEmmanuel Vadot - | 935956d97fSEmmanuel Vadot #include <dt-bindings/clock/r7s72100-clock.h> 945956d97fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 955956d97fSEmmanuel Vadot 965956d97fSEmmanuel Vadot i2c0: i2c@fcfee000 { 975956d97fSEmmanuel Vadot compatible = "renesas,riic-r7s72100", "renesas,riic-rz"; 985956d97fSEmmanuel Vadot reg = <0xfcfee000 0x44>; 995956d97fSEmmanuel Vadot interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>, 1005956d97fSEmmanuel Vadot <GIC_SPI 158 IRQ_TYPE_EDGE_RISING>, 1015956d97fSEmmanuel Vadot <GIC_SPI 159 IRQ_TYPE_EDGE_RISING>, 1025956d97fSEmmanuel Vadot <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>, 1035956d97fSEmmanuel Vadot <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>, 1045956d97fSEmmanuel Vadot <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>, 1055956d97fSEmmanuel Vadot <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>, 1065956d97fSEmmanuel Vadot <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>; 107354d7675SEmmanuel Vadot interrupt-names = "tei", "ri", "ti", "spi", "sti", "naki", "ali", 108354d7675SEmmanuel Vadot "tmoi"; 1095956d97fSEmmanuel Vadot clocks = <&mstp9_clks R7S72100_CLK_I2C0>; 1105956d97fSEmmanuel Vadot clock-frequency = <100000>; 1115956d97fSEmmanuel Vadot power-domains = <&cpg_clocks>; 1125956d97fSEmmanuel Vadot #address-cells = <1>; 1135956d97fSEmmanuel Vadot #size-cells = <0>; 1145956d97fSEmmanuel Vadot }; 115