Skip to content

Commit a915e05

Browse files
aailletcfriedt
authored andcommitted
dts: arm: rcar_gen3_cr7: Add I2C support to DTS
Add I2C bus initial support to Renesas R-Car SoC series. Both I2C2 & I2C4 buses are supported on R-Car H3 board. Signed-off-by: Aymeric Aillet <[email protected]>
1 parent 573d77c commit a915e05

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

boards/arm/rcar_h3ulcb/rcar_h3ulcb_cr7.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,11 @@
5757
&scif1 {
5858
status = "okay";
5959
};
60+
61+
&i2c2 {
62+
status = "okay";
63+
};
64+
65+
&i2c4 {
66+
status = "okay";
67+
};

dts/arm/renesas/gen3/rcar_gen3_cr7.dtsi

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <dt-bindings/interrupt-controller/arm-gic.h>
1010
#include <dt-bindings/clock/renesas_rcar_cpg.h>
1111
#include <dt-bindings/gpio/gpio.h>
12+
#include <dt-bindings/i2c/i2c.h>
1213

1314
/ {
1415
cpus {
@@ -104,6 +105,34 @@
104105
label = "can0";
105106
};
106107

108+
i2c2: i2c@e6510000 {
109+
compatible = "renesas,rcar-i2c";
110+
clock-frequency = <I2C_BITRATE_STANDARD>;
111+
#address-cells = <1>;
112+
#size-cells = <0>;
113+
reg = <0xe6510000 0x40>;
114+
interrupt-parent = <&gic>;
115+
interrupts = <GIC_SPI 286 IRQ_TYPE_LEVEL
116+
IRQ_DEFAULT_PRIORITY>;
117+
clocks = <&cpg CPG_MOD 929>;
118+
status = "disabled";
119+
label = "i2c2";
120+
};
121+
122+
i2c4: i2c@e66d8000 {
123+
compatible = "renesas,rcar-i2c";
124+
clock-frequency = <I2C_BITRATE_STANDARD>;
125+
#address-cells = <1>;
126+
#size-cells = <0>;
127+
reg = <0xe66d8000 0x40>;
128+
interrupt-parent = <&gic>;
129+
interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL
130+
IRQ_DEFAULT_PRIORITY>;
131+
clocks = <&cpg CPG_MOD 927>;
132+
status = "disabled";
133+
label = "i2c4";
134+
};
135+
107136
scif1: serial@e6e68000 {
108137
compatible = "renesas,rcar-scif";
109138
reg = <0xe6e68000 0x64>;

0 commit comments

Comments
 (0)