ARM: dts: rainier: Configure ball Y23 as GPIOP7 for MCLR_VPP
authorAndrew Jeffery <andrew@aj.id.au>
Tue, 5 May 2020 07:27:42 +0000 (16:57 +0930)
committerJoel Stanley <joel@jms.id.au>
Mon, 20 Jul 2020 04:58:19 +0000 (14:28 +0930)
GPIOP7 is used in the Rainier design to manage the state of a
microcontroller elsewhere in the system but its ball, Y23, is the
driver of the heartbeat LED on the ast2600-evb and the SoC defaults Y23
at power-on to the pulse-train behaviour used to drive the LED. This
causes much confusion for the micro in the Rainier system, so hog the
line as early as possible.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts

index 2f57d8d..ac7cc96 100644 (file)
        /*AA0-AA7*/     "","","","","","","","",
        /*AB0-AB7*/     "","","","","","","","",
        /*AC0-AC7*/     "","","","","","","","";
+
+       pin_mclr_vpp {
+               gpio-hog;
+               gpios = <ASPEED_GPIO(P, 7) GPIO_OPEN_DRAIN>;
+               output-high;
+               line-name = "mclr_vpp";
+       };
 };
 
 &emmc_controller {