Skip to content

Commit 1b018a3

Browse files
committed
included i2c0 in sun8i-v3s dts files
1 parent 02e613e commit 1b018a3

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

arch/arm/dts/sun8i-v3s-funkey.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@
5757
};
5858
};
5959

60+
&i2c0 {
61+
status = "okay";
62+
};
63+
6064
&mmc0 {
6165
pinctrl-0 = <&mmc0_pins_a>;
6266
pinctrl-names = "default";

arch/arm/dts/sun8i-v3s.dtsi

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,11 @@
208208
interrupt-controller;
209209
#interrupt-cells = <3>;
210210

211+
i2c0_pins: i2c0 {
212+
pins = "PB6", "PB7";
213+
function = "i2c0";
214+
};
215+
211216
uart0_pins_a: uart0@0 {
212217
pins = "PB8", "PB9";
213218
function = "uart0";
@@ -270,6 +275,30 @@
270275
status = "disabled";
271276
};
272277

278+
i2c0: i2c@01c2ac00 {
279+
compatible = "allwinner,sun6i-a31-i2c";
280+
reg = <0x01c2ac00 0x400>;
281+
interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
282+
clocks = <&ccu CLK_BUS_I2C0>;
283+
resets = <&ccu RST_BUS_I2C0>;
284+
pinctrl-names = "default";
285+
pinctrl-0 = <&i2c0_pins>;
286+
status = "disabled";
287+
#address-cells = <1>;
288+
#size-cells = <0>;
289+
};
290+
291+
i2c1: i2c@01c2b000 {
292+
compatible = "allwinner,sun6i-a31-i2c";
293+
reg = <0x01c2b000 0x400>;
294+
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
295+
clocks = <&ccu CLK_BUS_I2C1>;
296+
resets = <&ccu RST_BUS_I2C1>;
297+
status = "disabled";
298+
#address-cells = <1>;
299+
#size-cells = <0>;
300+
};
301+
273302
gic: interrupt-controller@01c81000 {
274303
compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
275304
reg = <0x01c81000 0x1000>,

0 commit comments

Comments
 (0)