]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: mediatek: mt7988a-bpi-r4: Enable I2C controllers
authorFrank Wunderlich <frank-w@public-files.de>
Tue, 17 Dec 2024 09:12:31 +0000 (10:12 +0100)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 7 Jan 2025 12:11:47 +0000 (13:11 +0100)
Enable the I2C0, I2C2 controllers found on the BananaPi R4 board.
Both controllers are not accessible from user and having fixed spare
devices. I2C0 have a pmic connected, I2C2 is used with I2C-multiplexer
for e.g. SFP cages.
The missing I2C1 is connected to GPIO header which can have either GPIO
mode or I2C mode.

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20241217091238.16032-18-linux@fw-web.de
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts
arch/arm64/boot/dts/mediatek/mt7988a.dtsi

index 46117df7d44c9ffd7105ed3c6fa108a8b83ad3aa..3d165f7b29dc5783caef6c0bec56caf67e0adea9 100644 (file)
        };
 };
 
+&i2c0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c0_pins>;
+       status = "okay";
+};
+
+&i2c2 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c2_1_pins>;
+       status = "okay";
+};
+
 &pio {
        mdio0_pins: mdio0-pins {
                mux {
index 59a1ffc2edfc6a8cc3b2f0f055c973676fd1dbb6..c0a49f68834a48a1da9695e03360dbe43b93919d 100644 (file)
                        status = "disabled";
                };
 
-               i2c@11003000 {
+               i2c0: i2c@11003000 {
                        compatible = "mediatek,mt7981-i2c";
                        reg = <0 0x11003000 0 0x1000>,
                              <0 0x10217080 0 0x80>;
                        status = "disabled";
                };
 
-               i2c@11004000 {
+               i2c1: i2c@11004000 {
                        compatible = "mediatek,mt7981-i2c";
                        reg = <0 0x11004000 0 0x1000>,
                              <0 0x10217100 0 0x80>;
                        status = "disabled";
                };
 
-               i2c@11005000 {
+               i2c2: i2c@11005000 {
                        compatible = "mediatek,mt7981-i2c";
                        reg = <0 0x11005000 0 0x1000>,
                              <0 0x10217180 0 0x80>;