* [PATCH v1 0/5] Revise Meta(Facebook) Harma BMC(AST2600)
@ 2024-11-11 9:43 Peter Yin
2024-11-11 9:43 ` [PATCH v1 1/5] ARM: dts: aspeed: Harma: Revise node name Peter Yin
` (4 more replies)
0 siblings, 5 replies; 8+ messages in thread
From: Peter Yin @ 2024-11-11 9:43 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley,
Andrew Jeffery, devicetree, linux-arm-kernel, linux-aspeed,
linux-kernel
Summary:
Revise linux device tree entry related to Meta(Facebook) Harma
specific devices connected to BMC(AST2600) SoC.
Base on:
https://github.com/openbmc/linux/blob/dev-6.6/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts
Base on:
https://lore.kernel.org/all/14e1a0f581417d4228aea8c2569598d42b4bd334.camel@codeconstruct.com.au/
v1
- Patch 0001 - Harma: Revise node name
- Patch 0002 - Harma: Add retimer device
- Patch 0003 - Harma: Revise GPIO line name
- Patch 0004 - Harma: add e1s power monitor
- Patch 0005 - Harma: fan board io-expander
Peter Yin (5):
ARM: dts: aspeed: Harma: Revise node name
ARM: dts: aspeed: Harma: Add retimer device
ARM: dts: aspeed: Harma: Revise GPIO line name
ARM: dts: aspeed: Harma: add e1s power monitor
ARM: dts: aspeed: Harma: fan board io-expander
.../dts/aspeed/aspeed-bmc-facebook-harma.dts | 121 ++++++++++++++----
1 file changed, 97 insertions(+), 24 deletions(-)
--
2.25.1
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH v1 1/5] ARM: dts: aspeed: Harma: Revise node name 2024-11-11 9:43 [PATCH v1 0/5] Revise Meta(Facebook) Harma BMC(AST2600) Peter Yin @ 2024-11-11 9:43 ` Peter Yin 2024-11-11 9:43 ` [PATCH v1 2/5] ARM: dts: aspeed: Harma: Add retimer device Peter Yin ` (3 subsequent siblings) 4 siblings, 0 replies; 8+ messages in thread From: Peter Yin @ 2024-11-11 9:43 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley, Andrew Jeffery, devicetree, linux-arm-kernel, linux-aspeed, linux-kernel Revise max31790 and delta_brick node name. Signed-off-by: Peter Yin <peteryin.openbmc@gmail.com> --- arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts index d175e37c45c1..ccb45ca840cd 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts @@ -183,7 +183,7 @@ &kcs3 { &i2c0 { status = "okay"; - max31790@5e{ + pwm@5e{ compatible = "max31790"; reg = <0x5e>; #address-cells = <1>; @@ -238,7 +238,7 @@ eeprom@50 { &i2c2 { status = "okay"; - max31790@5e{ + pwm@5e{ compatible = "max31790"; reg = <0x5e>; #address-cells = <1>; @@ -311,7 +311,7 @@ eeprom@52 { reg = <0x52>; }; - delta_brick@69 { + power-monitor@69 { compatible = "pmbus"; reg = <0x69>; }; -- 2.25.1 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v1 2/5] ARM: dts: aspeed: Harma: Add retimer device 2024-11-11 9:43 [PATCH v1 0/5] Revise Meta(Facebook) Harma BMC(AST2600) Peter Yin 2024-11-11 9:43 ` [PATCH v1 1/5] ARM: dts: aspeed: Harma: Revise node name Peter Yin @ 2024-11-11 9:43 ` Peter Yin 2024-11-11 9:43 ` [PATCH v1 3/5] ARM: dts: aspeed: Harma: Revise GPIO line name Peter Yin ` (2 subsequent siblings) 4 siblings, 0 replies; 8+ messages in thread From: Peter Yin @ 2024-11-11 9:43 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley, Andrew Jeffery, devicetree, linux-arm-kernel, linux-aspeed, linux-kernel Add pt5161l device in i2c bus12 and bus21. Signed-off-by: Peter Yin <peteryin.openbmc@gmail.com> --- arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts index ccb45ca840cd..fd85d5e34a55 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts @@ -299,6 +299,10 @@ imux21: i2c@1 { #address-cells = <1>; #size-cells = <0>; reg = <1>; + retimer@24 { + compatible = "asteralabs,pt5161l"; + reg = <0x24>; + }; }; }; }; @@ -429,6 +433,10 @@ eeprom@52 { &i2c12 { status = "okay"; + retimer@24 { + compatible = "asteralabs,pt5161l"; + reg = <0x24>; + }; }; &i2c13 { -- 2.25.1 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v1 3/5] ARM: dts: aspeed: Harma: Revise GPIO line name 2024-11-11 9:43 [PATCH v1 0/5] Revise Meta(Facebook) Harma BMC(AST2600) Peter Yin 2024-11-11 9:43 ` [PATCH v1 1/5] ARM: dts: aspeed: Harma: Revise node name Peter Yin 2024-11-11 9:43 ` [PATCH v1 2/5] ARM: dts: aspeed: Harma: Add retimer device Peter Yin @ 2024-11-11 9:43 ` Peter Yin 2024-11-11 23:53 ` Andrew Jeffery 2024-11-11 9:43 ` [PATCH v1 4/5] ARM: dts: aspeed: Harma: add e1s power monitor Peter Yin 2024-11-11 9:43 ` [PATCH v1 5/5] ARM: dts: aspeed: Harma: fan board io-expander Peter Yin 4 siblings, 1 reply; 8+ messages in thread From: Peter Yin @ 2024-11-11 9:43 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley, Andrew Jeffery, devicetree, linux-arm-kernel, linux-aspeed, linux-kernel Add: "ac-power-button", "asic0-card-type-detection0-n" "asic0-card-type-detection1-n" "asic0-card-type-detection2-n" "cpu0-prochot-alert", "cpu0-thermtrip-alert", "irq-uv-detect-alert", "irq-hsc-alert", "uart-switch-button" "uart-switch-lsb" "uart-switch-msb" "leakage-detect-alert", "power-card-enable", "power-fault-n", "power-hsc-good", "power-chassis-good" "presence-post-card", "presence-cmm" "pvdd11-ocp-alert" "reset-control-cmos-clear" "reset-cause-pcie", "reset-cause-platrst", "P0_I3C_APML_ALERT_L", Rename: "power-cpu-good" to "host0-ready", "host-ready-n" to "post-end-n Signed-off-by: Peter Yin <peteryin.openbmc@gmail.com> --- .../dts/aspeed/aspeed-bmc-facebook-harma.dts | 58 ++++++++++++------- 1 file changed, 37 insertions(+), 21 deletions(-) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts index fd85d5e34a55..ce1731bdc1af 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts @@ -416,12 +416,6 @@ gpio@31 { reg = <0x31>; gpio-controller; #gpio-cells = <2>; - - gpio-line-names = - "","","","", - "","","presence-cmm","", - "","","","", - "","","",""; }; // Aegis FRU @@ -559,7 +553,8 @@ &gpio0 { /*A0-A7*/ "","","","","","","","", /*B0-B7*/ "","","","", "bmc-spi-mux-select-0","led-identify","","", - /*C0-C7*/ "","","","","","","","", + /*C0-C7*/ "reset-cause-platrst","","","","", + "power-hsc-good","power-chassis-good","", /*D0-D7*/ "","","sol-uart-select","","","","","", /*E0-E7*/ "","","","","","","","", /*F0-F7*/ "","","","","","","","", @@ -568,7 +563,8 @@ &gpio0 { /*I0-I7*/ "","","","","","","","", /*J0-J7*/ "","","","","","","","", /*K0-K7*/ "","","","","","","","", - /*L0-L7*/ "","","","","","","","", + /*L0-L7*/ "","","","", + "leakage-detect-alert","","","", /*M0-M7*/ "","","","","","","","", /*N0-N7*/ "led-postcode-0","led-postcode-1", "led-postcode-2","led-postcode-3", @@ -577,18 +573,29 @@ &gpio0 { /*O0-O7*/ "","","","","","","","", /*P0-P7*/ "power-button","power-host-control", "reset-button","","led-power","","","", - /*Q0-Q7*/ "","","","","","power-chassis-control","","", + /*Q0-Q7*/ + "","","","", + "","power-chassis-control","","uart-switch-button", /*R0-R7*/ "","","","","","","","", /*S0-S7*/ "","","","","","","","", /*T0-T7*/ "","","","","","","","", /*U0-U7*/ "","","","","","","led-identify-gate","", /*V0-V7*/ "","","","", "rtc-battery-voltage-read-enable","", - "power-chassis-good","", + "","", /*W0-W7*/ "","","","","","","","", /*X0-X7*/ "","","","","","","","", /*Y0-Y7*/ "","","","","","","","", - /*Z0-Z7*/ "","","","","","","",""; + /*Z0-Z7*/ "","","","","","","presence-post-card",""; +}; + +&gpio1 { + gpio-line-names = + /*18A0-18A7*/ "ac-power-button","","","","","","","", + /*18B0-18B7*/ "","","","","","","","", + /*18C0-18C7*/ "","","","","","","","", + /*18D0-18D7*/ "","","","","","","","", + /*18E0-18E3*/ "","","","","","","",""; }; &sgpiom0 { @@ -636,10 +643,10 @@ &sgpiom0 { "","reset-control-cpu0-p1-mux", "","reset-control-e1s-mux", "power-host-good","reset-control-mb-mux", - "power-cpu-good","reset-control-smb-e1s-0", + "host0-ready","reset-control-smb-e1s-0", /*E0-E3 line 64-71*/ "","reset-control-smb-e1s-1", - "host-ready-n","reset-control-srst", + "post-end-n","reset-control-srst", "presence-e1s-0","reset-control-usb-hub", "","reset-control", /*E4-E7 line 72-79*/ @@ -656,7 +663,7 @@ &sgpiom0 { "presence-asic-modules-0","rt-cpu0-p1-force-enable", "presence-asic-modules-1","bios-debug-msg-disable", "","uart-control-buffer-select", - "","ac-control-n", + "presence-cmm","ac-control-n", /*G0-G3 line 96-103*/ "FM_CPU_CORETYPE2","", "FM_CPU_CORETYPE1","", @@ -668,7 +675,7 @@ &sgpiom0 { "FM_BOARD_REV_ID2","", "FM_BOARD_REV_ID1","", /*H0-H3 line 112-119*/ - "FM_BOARD_REV_ID0","", + "FM_BOARD_REV_ID0","reset-control-cmos-clear", "","","","","","", /*H4-H7 line 120-127*/ "","", @@ -683,22 +690,31 @@ &sgpiom0 { /*I4-I7 line 136-143*/ "","","","","","","","", /*J0-J3 line 144-151*/ - "","","","","","","","", + "","","power-card-enable","","","","","", /*J4-J7 line 152-159*/ "SLOT_ID_BCB_0","", "SLOT_ID_BCB_1","", "SLOT_ID_BCB_2","", "SLOT_ID_BCB_3","", /*K0-K3 line 160-167*/ - "","","","","","","","", + "","","","","","","P0_I3C_APML_ALERT_L","", /*K4-K7 line 168-175*/ - "","","","","","","","", + "","","","","","","irq-uv-detect-alert","", /*L0-L3 line 176-183*/ - "","","","","","","","", + "irq-hsc-alert","", + "cpu0-prochot-alert","", + "cpu0-thermtrip-alert","", + "reset-cause-pcie","", /*L4-L7 line 184-191*/ - "","","","","","","","", + "pvdd11-ocp-alert","", + "power-fault-n","", + "asic0-card-type-detection0-n","", + "asic0-card-type-detection1-n","", /*M0-M3 line 192-199*/ - "","","","","","","","", + "asic0-card-type-detection2-n","", + "uart-switch-lsb","", + "uart-switch-msb","", + "","", /*M4-M7 line 200-207*/ "","","","","","","","", /*N0-N3 line 208-215*/ -- 2.25.1 ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v1 3/5] ARM: dts: aspeed: Harma: Revise GPIO line name 2024-11-11 9:43 ` [PATCH v1 3/5] ARM: dts: aspeed: Harma: Revise GPIO line name Peter Yin @ 2024-11-11 23:53 ` Andrew Jeffery 2024-11-12 9:45 ` Peter Yin 0 siblings, 1 reply; 8+ messages in thread From: Andrew Jeffery @ 2024-11-11 23:53 UTC (permalink / raw) To: Peter Yin, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley, devicetree, linux-arm-kernel, linux-aspeed, linux-kernel Hi Peter, On Mon, 2024-11-11 at 17:43 +0800, Peter Yin wrote: > Add: > "ac-power-button", > "asic0-card-type-detection0-n" > "asic0-card-type-detection1-n" > "asic0-card-type-detection2-n" > > "cpu0-prochot-alert", > "cpu0-thermtrip-alert", > > "irq-uv-detect-alert", > "irq-hsc-alert", > > "uart-switch-button" > "uart-switch-lsb" > "uart-switch-msb" > > "leakage-detect-alert", > > "power-card-enable", > "power-fault-n", > "power-hsc-good", > "power-chassis-good" > "presence-post-card", > "presence-cmm" > "pvdd11-ocp-alert" > > "reset-control-cmos-clear" > "reset-cause-pcie", > "reset-cause-platrst", > > "P0_I3C_APML_ALERT_L", Rather than list the identifiers that are already contained in the patch, can you please discuss what functionality these identifiers enable, how different functions are related, and why this must all be done in one patch? > > Rename: > "power-cpu-good" to "host0-ready", > "host-ready-n" to "post-end-n On the other-hand, explicitly calling out these changes is helpful, but please also discuss the motivation and impact. Andrew ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v1 3/5] ARM: dts: aspeed: Harma: Revise GPIO line name 2024-11-11 23:53 ` Andrew Jeffery @ 2024-11-12 9:45 ` Peter Yin 0 siblings, 0 replies; 8+ messages in thread From: Peter Yin @ 2024-11-12 9:45 UTC (permalink / raw) To: Andrew Jeffery Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley, devicetree, linux-arm-kernel, linux-aspeed, linux-kernel On Tue, Nov 12, 2024 at 7:53 AM Andrew Jeffery <andrew@codeconstruct.com.au> wrote: > > Hi Peter, > > On Mon, 2024-11-11 at 17:43 +0800, Peter Yin wrote: > > Add: > > "ac-power-button", > > "asic0-card-type-detection0-n" > > "asic0-card-type-detection1-n" > > "asic0-card-type-detection2-n" > > > > "cpu0-prochot-alert", > > "cpu0-thermtrip-alert", > > > > "irq-uv-detect-alert", > > "irq-hsc-alert", > > > > "uart-switch-button" > > "uart-switch-lsb" > > "uart-switch-msb" > > > > "leakage-detect-alert", > > > > "power-card-enable", > > "power-fault-n", > > "power-hsc-good", > > "power-chassis-good" > > "presence-post-card", > > "presence-cmm" > > "pvdd11-ocp-alert" > > > > "reset-control-cmos-clear" > > "reset-cause-pcie", > > "reset-cause-platrst", > > > > "P0_I3C_APML_ALERT_L", > > Rather than list the identifiers that are already contained in the > patch, can you please discuss what functionality these identifiers > enable, how different functions are related, and why this must all be > done in one patch? > > > > > Rename: > > "power-cpu-good" to "host0-ready", > > "host-ready-n" to "post-end-n > > On the other-hand, explicitly calling out these changes is helpful, but > please also discuss the motivation and impact. > > Andrew Hi Andrew, Understood, I'll include comments in the next version. Harma will be moving into the DVT2 stage, and many of the new GPIO lines weren't defined in the POC stage, so I'll add this to the one page. Thanks, Peter. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v1 4/5] ARM: dts: aspeed: Harma: add e1s power monitor 2024-11-11 9:43 [PATCH v1 0/5] Revise Meta(Facebook) Harma BMC(AST2600) Peter Yin ` (2 preceding siblings ...) 2024-11-11 9:43 ` [PATCH v1 3/5] ARM: dts: aspeed: Harma: Revise GPIO line name Peter Yin @ 2024-11-11 9:43 ` Peter Yin 2024-11-11 9:43 ` [PATCH v1 5/5] ARM: dts: aspeed: Harma: fan board io-expander Peter Yin 4 siblings, 0 replies; 8+ messages in thread From: Peter Yin @ 2024-11-11 9:43 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley, Andrew Jeffery, devicetree, linux-arm-kernel, linux-aspeed, linux-kernel Add E1S power monitor device. Signed-off-by: Peter Yin <peteryin.openbmc@gmail.com> --- .../arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts index ce1731bdc1af..9d7e7208562b 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts @@ -354,11 +354,22 @@ imux22: i2c@0 { #address-cells = <1>; #size-cells = <0>; reg = <0>; + + power-monitor@45 { + compatible = "ti,ina230"; + reg = <0x45>; + }; + }; imux23: i2c@1 { #address-cells = <1>; #size-cells = <0>; reg = <1>; + + power-monitor@45 { + compatible = "ti,ina230"; + reg = <0x45>; + }; }; }; }; -- 2.25.1 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH v1 5/5] ARM: dts: aspeed: Harma: fan board io-expander 2024-11-11 9:43 [PATCH v1 0/5] Revise Meta(Facebook) Harma BMC(AST2600) Peter Yin ` (3 preceding siblings ...) 2024-11-11 9:43 ` [PATCH v1 4/5] ARM: dts: aspeed: Harma: add e1s power monitor Peter Yin @ 2024-11-11 9:43 ` Peter Yin 4 siblings, 0 replies; 8+ messages in thread From: Peter Yin @ 2024-11-11 9:43 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley, Andrew Jeffery, devicetree, linux-arm-kernel, linux-aspeed, linux-kernel Add fan board gpio io-expander to check fan board status. Signed-off-by: Peter Yin <peteryin.openbmc@gmail.com> --- .../dts/aspeed/aspeed-bmc-facebook-harma.dts | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts index 9d7e7208562b..58eba5fb6262 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts @@ -218,6 +218,25 @@ temperature-sensor@4b { compatible = "ti,tmp75"; reg = <0x4b>; }; + + gpio@12 { + compatible = "nxp,pca9555"; + reg = <0x12>; + gpio-controller; + #gpio-cells = <2>; + interrupt-parent = <&sgpiom0>; + interrupts = <116 IRQ_TYPE_LEVEL_LOW>; + + gpio-line-names = + "","", + "","", + "","", + "","", + "","", + "","", + "","fcb1-activate", + "",""; + }; }; &i2c1 { @@ -273,6 +292,25 @@ temperature-sensor@4b { compatible = "ti,tmp75"; reg = <0x4b>; }; + + gpio@12 { + compatible = "nxp,pca9555"; + reg = <0x12>; + gpio-controller; + #gpio-cells = <2>; + interrupt-parent = <&sgpiom0>; + interrupts = <114 IRQ_TYPE_LEVEL_LOW>; + + gpio-line-names = + "","", + "","", + "","", + "","", + "","", + "","", + "","fcb0-activate", + "",""; + }; }; &i2c3 { -- 2.25.1 ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-11-12 9:46 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2024-11-11 9:43 [PATCH v1 0/5] Revise Meta(Facebook) Harma BMC(AST2600) Peter Yin 2024-11-11 9:43 ` [PATCH v1 1/5] ARM: dts: aspeed: Harma: Revise node name Peter Yin 2024-11-11 9:43 ` [PATCH v1 2/5] ARM: dts: aspeed: Harma: Add retimer device Peter Yin 2024-11-11 9:43 ` [PATCH v1 3/5] ARM: dts: aspeed: Harma: Revise GPIO line name Peter Yin 2024-11-11 23:53 ` Andrew Jeffery 2024-11-12 9:45 ` Peter Yin 2024-11-11 9:43 ` [PATCH v1 4/5] ARM: dts: aspeed: Harma: add e1s power monitor Peter Yin 2024-11-11 9:43 ` [PATCH v1 5/5] ARM: dts: aspeed: Harma: fan board io-expander Peter Yin
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®