ARM: dts: aspeed: mtjade: Add the gpio-hog
authorChanh Nguyen <chanh@os.amperecomputing.com>
Thu, 5 Oct 2023 03:55:21 +0000 (10:55 +0700)
committerJoel Stanley <joel@jms.id.au>
Fri, 13 Oct 2023 04:29:03 +0000 (14:59 +1030)
Add the GPIOR5 as a gpio-hog with output high so that can
power the OCP card once the BMC booting.

Add the GPIOAC5 as a gpio-hog with output high to notice
the BMC state.

Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20231005035525.19036-4-chanh@os.amperecomputing.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed/aspeed-bmc-ampere-mtjade.dts

index c87be43..8ab5f30 100644 (file)
                output-high;
                line-name = "i2c4-o-en";
        };
+
+       ocp-aux-pwren-hog {
+               gpio-hog;
+               gpios = <ASPEED_GPIO(R, 3) GPIO_ACTIVE_HIGH>;
+               output-high;
+               line-name = "ocp-aux-pwren";
+       };
+
+       bmc-ready {
+               gpio-hog;
+               gpios = <ASPEED_GPIO(AC, 5) GPIO_ACTIVE_HIGH>;
+               output-high;
+               line-name = "bmc-ready";
+       };
 };