forked from Openwrt-EcoNet/openwrt
Replace downstream files by patches, either backports of those which have already applied or pending patches tracked on patchwork. This is done to make future maintainance more easy. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
75 lines
1.7 KiB
Diff
75 lines
1.7 KiB
Diff
From dde7d741329616025e4cfa350eb3935b495ae140 Mon Sep 17 00:00:00 2001
|
|
From: Frank Wunderlich <frank-w@public-files.de>
|
|
Date: Tue, 17 Dec 2024 10:12:32 +0100
|
|
Subject: [PATCH 20/32] arm64: dts: mediatek: mt7988a-bpi-r4: Add PCA9545 I2C
|
|
Mux
|
|
|
|
Bananapi R4 uses an i2c multiplexer for SFP slots, rtc and eeprom.
|
|
Add its node to the right i2c controller.
|
|
|
|
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-19-linux@fw-web.de
|
|
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
|
|
---
|
|
.../dts/mediatek/mt7988a-bananapi-bpi-r4.dts | 41 +++++++++++++++++++
|
|
1 file changed, 41 insertions(+)
|
|
|
|
--- a/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts
|
|
+++ b/arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4.dts
|
|
@@ -2,6 +2,8 @@
|
|
|
|
/dts-v1/;
|
|
|
|
+#include <dt-bindings/gpio/gpio.h>
|
|
+
|
|
#include "mt7988a.dtsi"
|
|
|
|
/ {
|
|
@@ -70,6 +72,45 @@
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c2_1_pins>;
|
|
status = "okay";
|
|
+
|
|
+ pca9545: i2c-mux@70 {
|
|
+ compatible = "nxp,pca9545";
|
|
+ reg = <0x70>;
|
|
+ reset-gpios = <&pio 5 GPIO_ACTIVE_LOW>;
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+
|
|
+ i2c@0 {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ reg = <0>;
|
|
+
|
|
+ pcf8563: rtc@51 {
|
|
+ compatible = "nxp,pcf8563";
|
|
+ reg = <0x51>;
|
|
+ #clock-cells = <0>;
|
|
+ };
|
|
+
|
|
+ eeprom@57 {
|
|
+ compatible = "atmel,24c02";
|
|
+ reg = <0x57>;
|
|
+ size = <256>;
|
|
+ };
|
|
+
|
|
+ };
|
|
+
|
|
+ i2c_sfp1: i2c@1 {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ reg = <1>;
|
|
+ };
|
|
+
|
|
+ i2c_sfp2: i2c@2 {
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ reg = <2>;
|
|
+ };
|
|
+ };
|
|
};
|
|
|
|
&pio {
|