Add I2C mux on BUS 14 for yosemite4
Subsystems (2)
cover Add I2C mux on BUS 14 for yosemite4
- v1
- Add i2c-mux for ADC monitor on Spider Board.
- Revise adc128d818 adc mode on Fan Boards.
- Change the address of Fan IC on fan boards.
- Remove led gpio pca9552 on fan boards.
- Add i2c mux for for two fan boards.
Ricky CX Wu (5):
ARM: dts: aspeed: yosemite4: Add i2c-mux for two fan boards
ARM: dts: aspeed: yosemite4: remove led gpio pca9552 on fan boards
ARM: dts: aspeed: yosemite4: Change the address of Fan IC on fan
boards
ARM: dts: aspeed: yosemite4: Revise adc128d818 adc mode on Fan Boards
ARM: dts: aspeed: yosemite4: Add i2c-mux for ADC monitor on Spider
Board
.../aspeed/aspeed-bmc-facebook-yosemite4.dts | 131 ++++++++---------- 1 file changed, 55 insertions(+), 76 deletions(-)
Signature · 1 line
2.25.1
PATCH 1/5 ARM: dts: aspeed: yosemite4: Add i2c-mux for two fan boards
From: Ricky CX Wu <[email protected]>
Change the address of the I2C mux for two fan boards to 0x74 according to schematic.
--- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 81 ++++++++++--------- 1 file changed, 44 insertions(+), 37 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +44 -37
@@ -17,6 +17,9 @@ aliases { serial6 = &uart7; serial7 = &uart8; serial8 = &uart9; + + i2c30 = &imux30; + i2c31 = &imux31; }; chosen {
@@ -380,6 +383,8 @@ ipmb at 10 { }; &i2c14 { + #address-cells = <1>; + #size-cells = <0>; status = "okay"; bus-frequency = <400000>; adc at 1d {
@@ -440,20 +445,50 @@ eeprom at 51 { reg = <0x51>; }; - i2c-mux at 71 { - compatible = "nxp,pca9846"; + i2c-mux at 73 { + compatible = "nxp,pca9544"; #address-cells = <1>; #size-cells = <0>; idle-state = <0>; i2c-mux-idle-disconnect; - reg = <0x71>; + reg = <0x73>; i2c at 0 { #address-cells = <1>; #size-cells = <0>; reg = <0>; + adc at 35 { + compatible = "maxim,max11617"; + reg = <0x35>; + }; + }; + + i2c at 1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + + adc at 35 { + compatible = "maxim,max11617"; + reg = <0x35>; + }; + }; + }; + + i2c-mux at 74 { + compatible = "nxp,pca9546"; + reg = <0x74>; + #address-cells = <1>; + #size-cells = <0>; + i2c-mux-idle-disconnect; + + imux30: i2c at 0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + adc at 1f { compatible = "ti,adc128d818"; reg = <0x1f>;
@@ -470,6 +505,8 @@ pwm at 20{ gpio at 22{ compatible = "ti,tca6424"; reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; }; pwm at 23{
@@ -499,10 +536,10 @@ gpio at 61 { }; }; - i2c at 1 { + imux31: i2c at 1 { + reg = <1>; #address-cells = <1>; #size-cells = <0>; - reg = <0>; adc at 1f { compatible = "ti,adc128d818";
@@ -520,6 +557,8 @@ pwm at 20{ gpio at 22{ compatible = "ti,tca6424"; reg = <0x22>; + gpio-controller; + #gpio-cells = <2>; }; pwm at 23{
@@ -549,38 +588,6 @@ gpio at 61 { }; }; }; - - i2c-mux at 73 { - compatible = "nxp,pca9544"; - #address-cells = <1>; - #size-cells = <0>; - - idle-state = <0>; - i2c-mux-idle-disconnect; - reg = <0x73>; - - i2c at 0 { - #address-cells = <1>; - #size-cells = <0>; - reg = <0>; - - adc at 35 { - compatible = "maxim,max11617"; - reg = <0x35>; - }; - }; - - i2c at 1 { - #address-cells = <1>; - #size-cells = <0>; - reg = <0>; - - adc at 35 { - compatible = "maxim,max11617"; - reg = <0x35>; - }; - }; - }; }; &i2c15 {
Signature · 1 line
2.25.1
PATCH 2/5 ARM: dts: aspeed: yosemite4: remove led gpio pca9552 on fan boards
In reply to Delphine CC ChiuFrom: Ricky CX Wu <[email protected]>
Remove led gpio contorller: pca9552 on fan boards since there is no binding document for pca9552 currently.
--- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 18 ------------------ 1 file changed, 18 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +0 -18
@@ -525,15 +525,6 @@ eeprom at 52 { compatible = "atmel,24c128"; reg = <0x52>; }; - - gpio at 61 { - compatible = "nxp,pca9552"; - reg = <0x61>; - #address-cells = <1>; - #size-cells = <0>; - gpio-controller; - #gpio-cells = <2>; - }; }; imux31: i2c at 1 {
@@ -577,15 +568,6 @@ eeprom at 52 { compatible = "atmel,24c128"; reg = <0x52>; }; - - gpio at 61 { - compatible = "nxp,pca9552"; - reg = <0x61>; - #address-cells = <1>; - #size-cells = <0>; - gpio-controller; - #gpio-cells = <2>; - }; }; }; };
Signature · 1 line
2.25.1
Andrew Jeffery
maintainerRe: [PATCH v1 2/5] ARM: dts: aspeed: yosemite4: remove led gpio pca9552 on fan boards
Quoted 4 lines · Delphine CC Chiu
From: Ricky CX Wu <[email protected]>
Remove led gpio contorller: pca9552 on fan boards since there is no binding document for pca9552 currently.
That's not true, there is, just it's not converted to dt-schema:
So the nodes can stay, though they probably generate warnings. The right way to fix this is to convert the binding document.
Andrew
Quoted 43 lines
Signed-off-by Ricky CX Wu <[email protected]>Signed-off-by Delphine CC Chiu <[email protected]>--- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 18 ------------------ 1 file changed, 18 deletions(-)arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +0
-18@@ -525,15 +525,6 @@ eeprom at 52 { compatible = "atmel,24c128"; reg = <0x52>; }; - - gpio at 61 { - compatible = "nxp,pca9552"; - reg = <0x61>; - #address-cells = <1>; - #size-cells = <0>; - gpio-controller; - #gpio-cells = <2>; - }; }; imux31: i2c at 1 {@@ -577,15 +568,6 @@ eeprom at 52 { compatible = "atmel,24c128"; reg = <0x52>; }; - - gpio at 61 { - compatible = "nxp,pca9552"; - reg = <0x61>; - #address-cells = <1>; - #size-cells = <0>; - gpio-controller; - #gpio-cells = <2>; - }; }; }; };
RE: [PATCH v1 2/5] ARM: dts: aspeed: yosemite4: remove led gpio pca9552 on fan boards
Quoted 32 lines
-----Original Message-----
From: Andrew Jeffery <[email protected]>
Sent: Friday, September 27, 2024 1:43 PM
To: Delphine_CC_Chiu/WYHQ/Wiwynn <[email protected]>; patrick at stwcx.xyz; Rob Herring <[email protected]>; Krzysztof Kozlowski <[email protected]>; Conor Dooley <[email protected]>; Joel Stanley <[email protected]>
Cc: Ricky CX Wu <[email protected]>;
devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux-aspeed at lists.ozlabs.org; linux-kernel at vger.kernel.org
Subject: Re: [PATCH v1 2/5] ARM: dts: aspeed: yosemite4: remove led gpio pca9552 on fan boards[External Sender]
[External Sender]
Quoted 4 lines · Delphine CC Chiu
From: Ricky CX Wu <[email protected]>
Remove led gpio contorller: pca9552 on fan boards since there is no binding document for pca9552 currently.
That's not true, there is, just it's not converted to dt-schema:
https://urldefense.com/v3/__https://git.kernel.org/pub/scm/linux/kernel/git/t
orvalds/linux.git/tree/Documentation/devicetree/bindings/leds/leds-pca955x.t xt?h=v6.11__;!!J63qqgXj!KJlZXg_GnpgYEsfLwrxkUEqwfsHkt_41jTnC09yd5VPAqT raqktY5p-KwUNQ3xPEbdockSD-knzTeOrQ8ijruq3-Q4c$
Quoted 5 lines
So the nodes can stay, though they probably generate warnings. The right way to fix this is to convert the binding document.
Andrew
Hi Andrew,
Thanks for your suggestions.
I'll remain the nodes and provide the binding document in another patch.
Regards,
Ricky
PATCH 3/5 ARM: dts: aspeed: yosemite4: Change the address of Fan IC on fan boards
In reply to Delphine CC ChiuFrom: Ricky CX Wu <[email protected]>
Change the address of Fan IC: Max31790 on fan boards according to schematic.
--- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +8 -16
@@ -496,10 +496,8 @@ adc at 1f { }; pwm at 20{ - compatible = "max31790"; + compatible = "maxim,max31790"; reg = <0x20>; - #address-cells = <1>; - #size-cells = <0>; }; gpio at 22{
@@ -509,11 +507,9 @@ gpio at 22{ #gpio-cells = <2>; }; - pwm at 23{ - compatible = "max31790"; - reg = <0x23>; - #address-cells = <1>; - #size-cells = <0>; + pwm at 2f{ + compatible = "maxim,max31790"; + reg = <0x2f>; }; adc at 33 {
@@ -539,10 +535,8 @@ adc at 1f { }; pwm at 20{ - compatible = "max31790"; + compatible = "maxim,max31790"; reg = <0x20>; - #address-cells = <1>; - #size-cells = <0>; }; gpio at 22{
@@ -552,11 +546,9 @@ gpio at 22{ #gpio-cells = <2>; }; - pwm at 23{ - compatible = "max31790"; - reg = <0x23>; - #address-cells = <1>; - #size-cells = <0>; + pwm at 2f{ + compatible = "maxim,max31790"; + reg = <0x2f>; }; adc at 33 {
Signature · 1 line
2.25.1
Andrew Jeffery
maintainerRe: [PATCH v1 3/5] ARM: dts: aspeed: yosemite4: Change the address of Fan IC on fan boards
Quoted 16 lines · Delphine CC Chiu
From: Ricky CX Wu <[email protected]>
Change the address of Fan IC: Max31790 on fan boards according to schematic.
Signed-off-by Ricky CX Wu <[email protected]>Signed-off-by Delphine CC Chiu <[email protected]>--- .../aspeed/aspeed-bmc-facebook-yosemite4.dts | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-)arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +0
-0
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts adc at 1f { · line 499
Quoted 5 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +1
-1@@ -496,10 +496,8 @@ adc at 1f { }; pwm at 20{ - compatible = "max31790"; + compatible = "maxim,max31790";
This isn't changing the address, it's fixing the compatible string. Please make this a separate patch with an appropriate Fixes: tag.
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts adc at 1f { · line 502
Quoted 3 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +0
-2reg = <0x20>; - #address-cells = <1>; - #size-cells = <0>;
Maybe put this in the same patch as the compatible fix though, if it's correct.
Quoted 19 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +3
-5}; gpio at 22{@@ -509,11 +507,9 @@ gpio at 22{ #gpio-cells = <2>; }; - pwm at 23{ - compatible = "max31790"; - reg = <0x23>; - #address-cells = <1>; - #size-cells = <0>; + pwm at 2f{ + compatible = "maxim,max31790"; + reg = <0x2f>; }; adc at 33 {
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts adc at 1f { · line 545
Quoted 8 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +1
-3@@ -539,10 +535,8 @@ adc at 1f { }; pwm at 20{ - compatible = "max31790"; + compatible = "maxim,max31790"; reg = <0x20>; - #address-cells = <1>; - #size-cells = <0>;
As above for this diff hunk too.
Andrew
Quoted 18 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +3
-5}; gpio at 22{@@ -552,11 +546,9 @@ gpio at 22{ #gpio-cells = <2>; }; - pwm at 23{ - compatible = "max31790"; - reg = <0x23>; - #address-cells = <1>; - #size-cells = <0>; + pwm at 2f{ + compatible = "maxim,max31790"; + reg = <0x2f>; }; adc at 33 {
PATCH 4/5 ARM: dts: aspeed: yosemite4: Revise adc128d818 adc mode on Fan Boards
In reply to Delphine CC ChiuFrom: Ricky CX Wu <[email protected]>
Revise adc128d818 adc mode on Fan Boards according to schematic.
--- arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +2 -2
@@ -492,7 +492,7 @@ imux30: i2c at 0 { adc at 1f { compatible = "ti,adc128d818"; reg = <0x1f>; - ti,mode = /bits/ 8 <2>; + ti,mode = /bits/ 8 <1>; }; pwm at 20{
@@ -531,7 +531,7 @@ imux31: i2c at 1 { adc at 1f { compatible = "ti,adc128d818"; reg = <0x1f>; - ti,mode = /bits/ 8 <2>; + ti,mode = /bits/ 8 <1>; }; pwm at 20{
Signature · 1 line
2.25.1
PATCH 5/5 ARM: dts: aspeed: yosemite4: Add i2c-mux for ADC monitor on Spider Board
In reply to Delphine CC ChiuFrom: Ricky CX Wu <[email protected]>
Add I2C mux for ADC monitor on Spider Board.
--- .../dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +7 -9
@@ -20,6 +20,8 @@ aliases { i2c30 = &imux30; i2c31 = &imux31; + i2c32 = &imux32; + i2c33 = &imux33; }; chosen {
@@ -447,29 +449,25 @@ eeprom at 51 { i2c-mux at 73 { compatible = "nxp,pca9544"; + reg = <0x73>; #address-cells = <1>; #size-cells = <0>; - - idle-state = <0>; i2c-mux-idle-disconnect; - reg = <0x73>; - i2c at 0 { + imux32: i2c at 0 { + reg = <0>; #address-cells = <1>; #size-cells = <0>; - reg = <0>; - adc at 35 { compatible = "maxim,max11617"; reg = <0x35>; }; }; - i2c at 1 { + imux33: i2c at 1 { + reg = <1>; #address-cells = <1>; #size-cells = <0>; - reg = <0>; - adc at 35 { compatible = "maxim,max11617"; reg = <0x35>;
Signature · 1 line
2.25.1