* [PATCH 0/2] Update the device tree for Mt.Mitchell's BMC platform @ 2024-09-05 6:35 Chanh Nguyen 2024-09-05 6:35 ` [PATCH 1/2] ARM: dts: aspeed: mtmitchell: Add I2C FAN controllers Chanh Nguyen 2024-09-05 6:35 ` [PATCH 2/2] ARM: dts: aspeed: mtmitchell: Add gpio line names for io expanders Chanh Nguyen 0 siblings, 2 replies; 4+ messages in thread From: Chanh Nguyen @ 2024-09-05 6:35 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley, Andrew Jeffery, devicetree, linux-arm-kernel, linux-aspeed, linux-kernel, OpenBMC Maillist, Open Source Submission Cc: Phong Vo, Thang Nguyen, Quan Nguyen, Khanh Pham, Chanh Nguyen Updates the device tree to support some features on Ampere's Mt.Mitchell BMC. Chanh Nguyen (2): ARM: dts: aspeed: mtmitchell: Add I2C FAN controllers ARM: dts: aspeed: mtmitchell: Add gpio line names for io expanders .../aspeed/aspeed-bmc-ampere-mtmitchell.dts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) -- 2.43.0 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] ARM: dts: aspeed: mtmitchell: Add I2C FAN controllers 2024-09-05 6:35 [PATCH 0/2] Update the device tree for Mt.Mitchell's BMC platform Chanh Nguyen @ 2024-09-05 6:35 ` Chanh Nguyen 2024-09-12 4:34 ` Andrew Jeffery 2024-09-05 6:35 ` [PATCH 2/2] ARM: dts: aspeed: mtmitchell: Add gpio line names for io expanders Chanh Nguyen 1 sibling, 1 reply; 4+ messages in thread From: Chanh Nguyen @ 2024-09-05 6:35 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley, Andrew Jeffery, devicetree, linux-arm-kernel, linux-aspeed, linux-kernel, OpenBMC Maillist, Open Source Submission Cc: Phong Vo, Thang Nguyen, Quan Nguyen, Khanh Pham, Chanh Nguyen Add the MAX31790 nodes as i2c fan controllers. Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com> --- .../boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts index 0295f5adcfbc..da181f9ae820 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts @@ -684,6 +684,16 @@ bmc-ocp0-en-hog { line-name = "bmc-ocp0-en-n"; }; }; + + fan-controller0@20 { + compatible = "maxim,max31790"; + reg = <0x20>; + }; + + fan-controller1@2f { + compatible = "maxim,max31790"; + reg = <0x2f>; + }; }; &i2c9 { -- 2.43.0 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] ARM: dts: aspeed: mtmitchell: Add I2C FAN controllers 2024-09-05 6:35 ` [PATCH 1/2] ARM: dts: aspeed: mtmitchell: Add I2C FAN controllers Chanh Nguyen @ 2024-09-12 4:34 ` Andrew Jeffery 0 siblings, 0 replies; 4+ messages in thread From: Andrew Jeffery @ 2024-09-12 4:34 UTC (permalink / raw) To: Chanh Nguyen, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley, Andrew Jeffery, devicetree, linux-arm-kernel, linux-aspeed, linux-kernel, OpenBMC Maillist, Open Source Submission Cc: Thang Nguyen, Phong Vo, Khanh Pham, Quan Nguyen On Thu, 2024-09-05 at 06:35 +0000, Chanh Nguyen wrote: > Add the MAX31790 nodes as i2c fan controllers. > > Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com> > --- > .../boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts > index 0295f5adcfbc..da181f9ae820 100644 > --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts > +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts > @@ -684,6 +684,16 @@ bmc-ocp0-en-hog { > line-name = "bmc-ocp0-en-n"; > }; > }; > + > + fan-controller0@20 { > + compatible = "maxim,max31790"; > + reg = <0x20>; > + }; > + > + fan-controller1@2f { > + compatible = "maxim,max31790"; > + reg = <0x2f>; > + }; > }; This generates some warnings based on v6.11-rc1: Executing: ./scripts/checkpatch.pl --strict -g HEAD WARNING: DT compatible string "maxim,max31790" appears un-documented -- check ./Documentation/devicetree/bindings/ #25: FILE: arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts:689: + compatible = "maxim,max31790"; WARNING: DT compatible string "maxim,max31790" appears un-documented -- check ./Documentation/devicetree/bindings/ #30: FILE: arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts:694: + compatible = "maxim,max31790"; total: 0 errors, 2 warnings, 0 checks, 16 lines checked However, Guenter's applied the binding here: https://lore.kernel.org/all/3382f952-daae-43ff-bb85-fa4820ecbc5f@roeck-us.net/ `make CHECK_DTBS=y aspeed/aspeed-bmc-ampere-mtmitchell.dtb` didn't turn up anything interesting after merging in hwmon-next, so I've applied these to be integrated via the BMC tree. Andrew ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 2/2] ARM: dts: aspeed: mtmitchell: Add gpio line names for io expanders 2024-09-05 6:35 [PATCH 0/2] Update the device tree for Mt.Mitchell's BMC platform Chanh Nguyen 2024-09-05 6:35 ` [PATCH 1/2] ARM: dts: aspeed: mtmitchell: Add I2C FAN controllers Chanh Nguyen @ 2024-09-05 6:35 ` Chanh Nguyen 1 sibling, 0 replies; 4+ messages in thread From: Chanh Nguyen @ 2024-09-05 6:35 UTC (permalink / raw) To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Joel Stanley, Andrew Jeffery, devicetree, linux-arm-kernel, linux-aspeed, linux-kernel, OpenBMC Maillist, Open Source Submission Cc: Phong Vo, Thang Nguyen, Quan Nguyen, Khanh Pham, Chanh Nguyen Add below gpio line names to io expanders for more platform features. - ext-vref-sel - presence-hdd-bp5-n - presence-hdd-bp6-n - bmc-ocp0-en-n - bmc-ocp1-en-n - bmc-riser-en-n - gpi0, gpi1 Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com> --- arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts index da181f9ae820..2b336aa0146d 100644 --- a/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts +++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtmitchell.dts @@ -677,6 +677,12 @@ gpio@77 { #size-cells = <0>; #gpio-cells = <2>; + gpio-line-names = + "ext-vref-sel","","presence-hdd-bp5-n","presence-hdd-bp6-n", + "","bmc-riser-en-n","bmc-ocp1-en-n","bmc-ocp0-en-n", + "","","","", + "","","",""; + bmc-ocp0-en-hog { gpio-hog; gpios = <7 GPIO_ACTIVE_LOW>; @@ -968,7 +974,7 @@ gpio_expander1: gpio-expander@22 { "fan-fault","psu-fault", "","", "","", - "","", + "gpi0","gpi1", "","", "","", "","", -- 2.43.0 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-09-12 4:34 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2024-09-05 6:35 [PATCH 0/2] Update the device tree for Mt.Mitchell's BMC platform Chanh Nguyen 2024-09-05 6:35 ` [PATCH 1/2] ARM: dts: aspeed: mtmitchell: Add I2C FAN controllers Chanh Nguyen 2024-09-12 4:34 ` Andrew Jeffery 2024-09-05 6:35 ` [PATCH 2/2] ARM: dts: aspeed: mtmitchell: Add gpio line names for io expanders Chanh Nguyen
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®