diff options
author | Vahe Grigoryan <vahe.grigoryan@theobroma-systems.com> | 2023-12-14 13:28:00 +0100 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2023-12-15 21:17:36 +0100 |
commit | 39d95566231d483a1c89e74cbcadc4394bfd53ef (patch) | |
tree | 34261a5fa2269445587cab2ffbbaa5820af89696 /arch | |
parent | 9050aefab15b2da2c7d65d794ca445919ae4c235 (diff) | |
download | linux-stable-39d95566231d483a1c89e74cbcadc4394bfd53ef.tar.gz linux-stable-39d95566231d483a1c89e74cbcadc4394bfd53ef.tar.bz2 linux-stable-39d95566231d483a1c89e74cbcadc4394bfd53ef.zip |
arm64: dts: rockchip: expose BIOS Disable feedback pin on rk3399-puma
The Puma SoM allows to select in hardware directly which storage
medium to try for loading the bootloader, either SPI-NOR followed
by eMMC followed by SD card, or SD card only.
This signal is exposed on the Q7 connector and allows carrierboards
to control it however they want.
This feedback pin allows to know in which state the SoM currently
is and provided the current state isn't modified until next reboot,
know from which storage medium the bootloader could be loaded from
next time.
Signed-off-by: Vahe Grigoryan <vahe.grigoryan@theobroma-systems.com>
Link: https://lore.kernel.org/r/20231214122801.3144180-2-vahe.grigoryan@theobroma-systems.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi index 574a775ca880..c08e69391c01 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi @@ -120,6 +120,20 @@ drive-impedance-ohm = <33>; }; +&gpio0 { + /* + * The BIOS_DISABLE hog is a feedback pin for the actual status of the + * signal. This usually represents the state of a switch on the baseboard. + * The pin has a 10k pull-up resistor connected, so no pull-up setting is needed. + */ + bios-disable-hog { + gpios = <RK_PB0 GPIO_ACTIVE_HIGH>; + gpio-hog; + input; + line-name = "bios_disable"; + }; +}; + &gmac { assigned-clocks = <&cru SCLK_RMII_SRC>; assigned-clock-parents = <&clkin_gmac>; |