[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240426-dev-mule-i2c-mux-v1-4-045a482f6ffb@theobroma-systems.com>
Date: Fri, 26 Apr 2024 18:49:35 +0200
From: Farouk Bouabid <farouk.bouabid@...obroma-systems.com>
To: Wolfram Sang <wsa+renesas@...g-engineering.com>,
Peter Rosin <peda@...ntia.se>, Andi Shyti <andi.shyti@...nel.org>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
Quentin Schulz <quentin.schulz@...obroma-systems.com>,
Heiko Stuebner <heiko@...ech.de>
Cc: linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org,
Farouk Bouabid <farouk.bouabid@...obroma-systems.com>
Subject: [PATCH 4/7] arm64: dts: rockchip: add mule i2c mux (0x18) on
rk3399-puma
Mule emulates an i2c mux (address 0x18). The amc6821 is exposed behind
this bus.
Add the mux node and amc6821 as a default device.
Signed-off-by: Farouk Bouabid <farouk.bouabid@...obroma-systems.com>
---
arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 20 +++++++++++++++++---
1 file changed, 17 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
index c08e69391c01..e7313be24c1a 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
@@ -10,6 +10,7 @@
/ {
aliases {
ethernet0 = &gmac;
+ i2c10 = &i2c10;
mmc0 = &sdhci;
};
@@ -357,10 +358,23 @@ &i2c7 {
status = "okay";
clock-frequency = <400000>;
- fan: fan@18 {
- compatible = "ti,amc6821";
+ i2c-mux@18 {
+ compatible = "tsd,mule-i2c-mux";
reg = <0x18>;
- #cooling-cells = <2>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ i2c10: i2c@0 {
+ reg = <0x0>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ fan: fan@18 {
+ compatible = "ti,amc6821";
+ reg = <0x18>;
+ #cooling-cells = <2>;
+ };
+ };
};
rtc_twi: rtc@6f {
--
2.34.1
Powered by blists - more mailing lists