]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: sun50i-a64: Add i2c2 pins
authorOndrej Jirman <megous@megous.com>
Thu, 27 Feb 2020 01:26:48 +0000 (02:26 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 27 Feb 2020 13:02:45 +0000 (14:02 +0100)
PinePhone needs I2C2 pins description. Add it, and make it default
for i2c2, since it's the only possiblilty.

Signed-off-by: Ondrej Jirman <megous@megous.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi

index 72b1b34879c6d5e1db45e0a52ca94ddd147c77da..990de71ca048a2b0607fcb0aa31ee9ac0e362304 100644 (file)
                                function = "i2c1";
                        };
 
+                       i2c2_pins: i2c2-pins {
+                               pins = "PE14", "PE15";
+                               function = "i2c2";
+                       };
+
                        /omit-if-no-ref/
                        lcd_rgb666_pins: lcd-rgb666-pins {
                                pins = "PD0", "PD1", "PD2", "PD3", "PD4",
                        interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&ccu CLK_BUS_I2C2>;
                        resets = <&ccu RST_BUS_I2C2>;
+                       pinctrl-names = "default";
+                       pinctrl-0 = <&i2c2_pins>;
                        status = "disabled";
                        #address-cells = <1>;
                        #size-cells = <0>;
                };
 
-
                spi0: spi@1c68000 {
                        compatible = "allwinner,sun8i-h3-spi";
                        reg = <0x01c68000 0x1000>;