path: root/configs/platform-v7a/patches/barebox-2021.02.0/of-base-probe-simple-pm-bus-children-as-well.patch
diff options
authorUwe Kleine-König <>2021-03-14 16:47:46 +0100
committerRobert Schwebel <>2021-03-15 09:42:33 +0100
commit61be023775ab1ccef072bd8116f0ccf740bf8708 (patch)
tree5085522983fc0929e854b5b9e53ff8cdccffa2c3 /configs/platform-v7a/patches/barebox-2021.02.0/of-base-probe-simple-pm-bus-children-as-well.patch
parent5547488ca9f7c2f29f388bbaf808dfbfa7089796 (diff)
v7a: barebox update 2020.09.0 -> 2021.02.0
One new patch is required to fix a regression for USB on rpi3. Also USB on rpi3 requires CONFIG_USB_NOP_XCEIV=y now which is enabled in the rpi2 config now. For the beaglebone two patches are added fixing a regression related to a dts sync from upstream. All three patches were already sent to the barebox mailing list. Acked-by: Ahmad Fatoum <> Signed-off-by: Uwe Kleine-König <>
Diffstat (limited to 'configs/platform-v7a/patches/barebox-2021.02.0/of-base-probe-simple-pm-bus-children-as-well.patch')
1 files changed, 40 insertions, 0 deletions
diff --git a/configs/platform-v7a/patches/barebox-2021.02.0/of-base-probe-simple-pm-bus-children-as-well.patch b/configs/platform-v7a/patches/barebox-2021.02.0/of-base-probe-simple-pm-bus-children-as-well.patch
new file mode 100644
index 0000000..7873666
--- /dev/null
+++ b/configs/platform-v7a/patches/barebox-2021.02.0/of-base-probe-simple-pm-bus-children-as-well.patch
@@ -0,0 +1,40 @@
+From: Ahmad Fatoum <>
+Date: Fri, 12 Mar 2021 08:27:46 +0100
+Subject: [PATCH] of: base: probe simple-pm-bus children as well
+Upstream is migrating device trees like those of the am33xx to use
+simple-pm-bus, where applicable. These are buses that reference a clock
+or a power domain that needs to be enabled in order to use devices on it.
+As we didn't yet support this binding, this broke the Beaglebone
+and all other am33xx board since v2021.02.0.
+Fix this by adding simple-pm-bus to the of_default_bus_match_table.
+Note that this is only an adequate solution for when the power domain
+and clocks referenced are already enabled prior to barebox startup.
+For all other cases, driver support must be available for the clock
+and power domains in questions and this driver must be extended to
+make use of them. For the am33xx, the relevant buses are powered
+and clocked on boot up, so we leave general support to another day..
+Fixes: 6ea3de1b8ce7 ("dts: update to v5.11-rc1")
+Signed-off-by: Ahmad Fatoum <>
+ drivers/of/base.c | 2 ++
+ 1 file changed, 2 insertions(+)
+diff --git a/drivers/of/base.c b/drivers/of/base.c
+index 8759099d7480..6fe02649ee53 100644
+--- a/drivers/of/base.c
++++ b/drivers/of/base.c
+@@ -2272,6 +2272,8 @@ const char *of_get_model(void)
+ const struct of_device_id of_default_bus_match_table[] = {
+ {
+ .compatible = "simple-bus",
++ }, {
++ .compatible = "simple-pm-bus",
+ }, {
+ .compatible = "simple-mfd",
+ }, {