Skip to content

Commit 04bfe27

Browse files
Phil Elwellpopcornmix
Phil Elwell
authored andcommitted
bcm2711: Retain support for old dtbs
The recent series switching to bcm2711 as the DT identifier broke Pis running with old DTBs. Add some bcm2838 compatible strings as a temporary measure, at least until the next full Raspbian image with bcm2711 DTBs. See: #3244 Signed-off-by: Phil Elwell <[email protected]>
1 parent 25fa271 commit 04bfe27

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

arch/arm/mach-bcm/board_bcm2835.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ static const char * const bcm2835_compat[] = {
110110
"brcm,bcm2836",
111111
"brcm,bcm2837",
112112
"brcm,bcm2711",
113+
// Temporary, for backwards-compatibility with old DTBs
114+
"brcm,bcm2838",
113115
#endif
114116
NULL
115117
};

drivers/clk/bcm/clk-bcm2835.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2372,6 +2372,8 @@ static const struct cprman_plat_data cprman_bcm2711_plat_data = {
23722372
static const struct of_device_id bcm2835_clk_of_match[] = {
23732373
{ .compatible = "brcm,bcm2835-cprman", .data = &cprman_bcm2835_plat_data },
23742374
{ .compatible = "brcm,bcm2711-cprman", .data = &cprman_bcm2711_plat_data },
2375+
// Temporary, for backwards-compatibility with old DTBs
2376+
{ .compatible = "brcm,bcm2838-cprman", .data = &cprman_bcm2711_plat_data },
23752377
{}
23762378
};
23772379
MODULE_DEVICE_TABLE(of, bcm2835_clk_of_match);

drivers/pinctrl/bcm/pinctrl-bcm2835.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,6 +1078,11 @@ static const struct of_device_id bcm2835_pinctrl_match[] = {
10781078
.compatible = "brcm,bcm2711-gpio",
10791079
.data = &bcm2711_pinconf_ops,
10801080
},
1081+
// Temporary, for backwards-compatibility with old DTBs
1082+
{
1083+
.compatible = "brcm,bcm2838-gpio",
1084+
.data = &bcm2711_pinconf_ops,
1085+
},
10811086
{}
10821087
};
10831088

0 commit comments

Comments
 (0)