arm: dts: overlays: add Pi 5 variants for w1-gpio overlays

Make use of the latency-busting read-poll feature on Pi 5 only.

Signed-off-by: Jonathan Bell <jonathan@raspberrypi.com>
This commit is contained in:
Jonathan Bell
2024-01-22 16:21:04 +00:00
committed by Dom Cobley
parent 2fe145bd54
commit 3e29fe26d7
5 changed files with 61 additions and 0 deletions

View File

@@ -310,7 +310,9 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
vga666.dtbo \
vl805.dtbo \
w1-gpio.dtbo \
w1-gpio-pi5.dtbo \
w1-gpio-pullup.dtbo \
w1-gpio-pullup-pi5.dtbo \
w5500.dtbo \
watterott-display.dtbo \
waveshare-can-fd-hat-mode-a.dtbo \

View File

@@ -5056,6 +5056,10 @@ Params: gpiopin GPIO for I/O (default "4")
pullup Now enabled by default (ignored)
Name: w1-gpio-pi5
Info: See w1-gpio (this is the Pi 5 version)
Name: w1-gpio-pullup
Info: Configures the w1-gpio Onewire interface module.
Use this overlay if you *do* need a GPIO to drive an external pullup.
@@ -5065,6 +5069,10 @@ Params: gpiopin GPIO for I/O (default "4")
pullup Now enabled by default (ignored)
Name: w1-gpio-pullup-pi5
Info: See w1-gpio-pullup (this is the Pi 5 version)
Name: w5500
Info: Overlay for the Wiznet W5500 Ethernet Controller on SPI0
Load: dtoverlay=w5500,<param>=<val>

View File

@@ -470,4 +470,25 @@
vl805 {
bcm2711;
};
w1-gpio {
bcm2835;
bcm2711;
bcm2712 = "w1-gpio-pi5";
};
w1-gpio-pi5 {
bcm2712;
};
w1-gpio-pullup {
bcm2835;
bcm2711;
bcm2712 = "w1-gpio-pullup-pi5";
};
w1-gpio-pullup-pi5 {
bcm2712;
};
};

View File

@@ -0,0 +1,15 @@
/dts-v1/;
/plugin/;
#include "w1-gpio-overlay.dts"
/ {
compatible = "brcm,bcm2712";
fragment@2 {
target = <&w1>;
__overlay__ {
raspberrypi,delay-needs-poll;
};
};
};

View File

@@ -0,0 +1,15 @@
/dts-v1/;
/plugin/;
#include "w1-gpio-pullup-overlay.dts"
/ {
compatible = "brcm,bcm2712";
fragment@2 {
target = <&w1>;
__overlay__ {
raspberrypi,delay-needs-poll;
};
};
};