Revise Meta(Facebook) Harma BMC(AST2600)
Subsystems (2)
v2 cover Revise Meta(Facebook) Harma BMC(AST2600)
Summary:
Revise linux device tree entry related to Meta(Facebook) Harma specific devices connected to BMC(AST2600) SoC.
Based on:
https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts
commit-id: cb3f397b17bbda3f2998eff9e54b040c8fa85cc9
v1 -> v2
- Patch 0001: ARM: dts: aspeed: harma: add E1.S power monitor
- Patch 0002: ARM: dts: aspeed: harma: add fan board I/O expander
- Patch 0003: ARM: dts: aspeed: harma: add ADC128D818 for voltage monitoring
- Patch 0004: ARM: dts: aspeed: Harma: revise gpio bride pin for battery
- Patch 0005: ARM: dts: aspeed: harma: add mmc health
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: add E1.S power monitor
ARM: dts: aspeed: harma: add fan board I/O expander
ARM: dts: aspeed: harma: add ADC128D818 for voltage monitoring
ARM: dts: aspeed: Harma: revise gpio bride pin for battery
ARM: dts: aspeed: harma: add mmc health
.../dts/aspeed/aspeed-bmc-facebook-harma.dts | 85 ++++++++++++++++++- 1 file changed, 83 insertions(+), 2 deletions(-)
Signature · 1 line
2.25.1
PATCH v2 1/5 ARM: dts: aspeed: harma: add E1.S power monitor
Add the E1.S power monitor device node to the Harma device tree to enable power monitoring functionality for E1.S drives.
--- .../arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +11 -0
@@ -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>; + }; }; }; };
Signature · 1 line
2.25.1
PATCH v2 2/5 ARM: dts: aspeed: harma: add fan board I/O expander
In reply to Peter YinAdd GPIO I/O expander node for the fan board to detect and monitor fan board status.
--- .../dts/aspeed/aspeed-bmc-facebook-harma.dts | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +38 -0
@@ -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 {
Signature · 1 line
2.25.1
PATCH v2 3/5 ARM: dts: aspeed: harma: add ADC128D818 for voltage monitoring
In reply to Peter YinAdd the ADC128D818 device to I2C bus 29 to support voltage monitoring on the Harma platform. This enables accurate measurement of system voltages through the onboard ADC.
--- .../boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +13 -0
@@ -529,6 +529,19 @@ eeprom@54 { compatible = "atmel,24c64"; reg = <0x54>; }; + + adc@1d { + compatible = "ti,adc128d818"; + reg = <0x1d>; + ti,mode = /bits/ 8 <1>; + }; + + adc@1f { + compatible = "ti,adc128d818"; + reg = <0x1f>; + ti,mode = /bits/ 8 <1>; + }; + }; imux30: i2c@2 { #address-cells = <1>;
Signature · 1 line
2.25.1
PATCH v2 4/5 ARM: dts: aspeed: Harma: revise gpio bride pin for battery
In reply to Peter YinUpdate the GPIO bridge pin configuration for the battery circuit on the Harma platform to reflect the correct hardware design.
--- arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +2 -2
@@ -643,7 +643,7 @@ &gpio0 { /*T0-T7*/ "","","","","","","","", /*U0-U7*/ "","","","","","","led-identify-gate","", /*V0-V7*/ "","","","", - "rtc-battery-voltage-read-enable","", + "","", "","", /*W0-W7*/ "","","","","","","","", /*X0-X7*/ "","","","","","","","",
@@ -728,7 +728,7 @@ &sgpiom0 { "presence-cmm","ac-control-n", /*G0-G3 line 96-103*/ "FM_CPU_CORETYPE2","", - "FM_CPU_CORETYPE1","", + "FM_CPU_CORETYPE1","rtc-battery-voltage-read-enable", "FM_CPU_CORETYPE0","", "FM_BOARD_REV_ID5","", /*G4-G7 line 104-111*/
Signature · 1 line
2.25.1
PATCH v2 5/5 ARM: dts: aspeed: harma: add mmc health
In reply to Peter YinAdd a GPIO expander node at address 0x13 on i2c11 bus to monitor MMC health status via a dedicated GPIO line.
--- .../dts/aspeed/aspeed-bmc-facebook-harma.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts +19 -0
@@ -454,6 +454,25 @@ eeprom@52 { &i2c11 { status = "okay"; + gpio@13 { + compatible = "nxp,pca9555"; + reg = <0x13>; + gpio-controller; + #gpio-cells = <2>; + interrupt-parent = <&sgpiom0>; + interrupts = <222 IRQ_TYPE_LEVEL_LOW>; + + gpio-line-names = + "","", + "","", + "","", + "","health-mmc", + "","", + "","", + "","", + "",""; + }; + gpio@30 { compatible = "nxp,pca9555"; reg = <0x30>;
Signature · 1 line
2.25.1
Andrew Jeffery
maintainerQuoted 9 lines · Peter Yin
Summary:
Revise linux device tree entry related to Meta(Facebook) Harma specific devices connected to BMC(AST2600) SoC.Based on:
https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-harma.dts
commit-id:cb3f397b17bbda3f2998eff9e54b040c8fa85cc9[...]
Thanks, I've applied this to be picked up through the BMC tree.
Signature · 1 line
Andrew Jeffery <[email protected]>