]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: sunxi: h3/h5: Add r_i2c I2C controller
authorOndrej Jirman <megous@megous.com>
Tue, 6 Feb 2018 04:48:59 +0000 (12:48 +0800)
committerChen-Yu Tsai <wens@csie.org>
Fri, 20 Apr 2018 06:39:12 +0000 (14:39 +0800)
Allwinner H3/H5 SoCs have an I2C controller at PL GPIO bank.

Add support for it in the device tree.

Signed-off-by: Ondrej Jirman <megous@megous.com>
[Icenowy: Change to use r_ccu and change pinmux node name]
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm/boot/dts/sunxi-h3-h5.dtsi

index 92b8fa96e73741029668009e52bec4bcae9de3cf..c3bff1105e5da6169972888fb70327f2ff8e7c81 100644 (file)
                        status = "disabled";
                };
 
+               r_i2c: i2c@1f02400 {
+                       compatible = "allwinner,sun6i-a31-i2c";
+                       reg = <0x01f02400 0x400>;
+                       interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&r_i2c_pins>;
+                       clocks = <&r_ccu CLK_APB0_I2C>;
+                       resets = <&r_ccu RST_APB0_I2C>;
+                       status = "disabled";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+               };
+
                r_pio: pinctrl@1f02c00 {
                        compatible = "allwinner,sun8i-h3-r-pinctrl";
                        reg = <0x01f02c00 0x400>;