Skip to content

Commit 485ed13

Browse files
committed
overlays: Give a deprecation warning for dwc-otg
The overlay deprecation feature does not give any advance warnings, just a more user-friendly error message; it's more termination than deprecation. Abuse the overlay rename feature to cause a warning message to be displayed when dwc-otg is loaded: dtwarn: overlay 'dwc-otg' has been renamed 'dwc-otg-deprecated' Signed-off-by: Phil Elwell <[email protected]>
1 parent 822a50e commit 485ed13

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
6060
dpi18cpadhi.dtbo \
6161
dpi24.dtbo \
6262
draws.dtbo \
63-
dwc-otg.dtbo \
63+
dwc-otg-deprecated.dtbo \
6464
dwc2.dtbo \
6565
edt-ft5406.dtbo \
6666
enc28j60.dtbo \

arch/arm/boot/dts/overlays/README

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,10 +1246,13 @@ Params: draws_adc_ch4_gain Sets the full scale resolution of the ADCs
12461246

12471247

12481248
Name: dwc-otg
1249-
Info: Selects the dwc_otg USB controller driver which has fiq support. This
1250-
is the default on all except the Pi Zero which defaults to dwc2.
1251-
Load: dtoverlay=dwc-otg
1252-
Params: <None>
1249+
Info: The dwc-otg has been deprecated.
1250+
Load: <Deprecated>
1251+
1252+
1253+
Name: dwc-otg-deprecated
1254+
Info: The dwc-otg has been deprecated.
1255+
Load: <Deprecated>
12531256

12541257

12551258
Name: dwc2

arch/arm/boot/dts/overlays/overlay_map.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@
5353
bcm2712;
5454
};
5555

56+
dwc-otg {
57+
renamed = "dwc-otg-deprecated";
58+
};
59+
5660
hifiberry-adc8x {
5761
bcm2712;
5862
};

0 commit comments

Comments
 (0)