Skip to content

Commit f45c4eb

Browse files
nbuchwitzpelwell
authored andcommitted
dts: bcm2711-rpi-cm4s: add enable_eeprom dtparam for onboard bootloader EEPROM
Add a GPIO hog on GPIO 57 (active high, output-low) to enable the onboard bootloader EEPROM on CM4S. The hog is disabled by default and can be activated via dtparam=enable_eeprom=on in config.txt. Signed-off-by: Nicolai Buchwitz <nb@tipi-net.de>
1 parent a1e9e9e commit f45c4eb

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

arch/arm/boot/dts/broadcom/bcm2711-rpi-cm4s.dts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,13 @@
255255
brcm,pins = <>;
256256
brcm,function = <>;
257257
};
258+
259+
enable_eeprom_hog: enable_eeprom_hog {
260+
gpio-hog;
261+
gpios = <57 GPIO_ACTIVE_HIGH>;
262+
output-low;
263+
status = "disabled";
264+
};
258265
};
259266

260267
/* Permanently disable HDMI1 */
@@ -301,5 +308,7 @@ i2c_csi_dsi0: &i2c0 {
301308
act_led_gpio = <&led_act>,"gpios:4";
302309
act_led_activelow = <&led_act>,"gpios:8";
303310
act_led_trigger = <&led_act>,"linux,default-trigger";
311+
312+
enable_eeprom = <&enable_eeprom_hog>,"status";
304313
};
305314
};

arch/arm/boot/dts/overlays/README

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,10 @@ Params:
236236
compatible devices (default "on"). See also
237237
"tx_lpi_timer". Pi3B+ only.
238238

239+
enable_eeprom Set to "on" to enable the onboard bootloader
240+
EEPROM by driving GPIO 57 low
241+
(default "off"). CM4S only.
242+
239243
eth_downshift_after Set the number of auto-negotiation failures
240244
after which the 1000Mbps modes are disabled.
241245
Legal values are 2, 3, 4, 5 and 0, where

0 commit comments

Comments
 (0)