Skip to content

Commit cae9154

Browse files
committed
ARM: dts: Select the PL011 platform driver
The PL011 driver in this downstream kernel tree supports an extra compatible string - arm,pl011-axi - for use by RP1. This registers as a platform driver, not an AMBA driver, and has the advantage of responding to dynamic Device Tree changes such as loading one of the "uart<n>" overlays. Change all of the downstream Raspberry Pi dts files to use the new compatible string. At the same time, remove the override of the periphid as the upstream code now has the correct value. See: #7019 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent eb87a20 commit cae9154

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

arch/arm/boot/dts/broadcom/bcm270x.dtsi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@
239239
};
240240

241241
&uart0 {
242+
compatible = "arm,pl011-axi";
242243
/* Enable CTS bug workaround */
243244
cts-event-workaround;
244245
};

arch/arm/boot/dts/broadcom/bcm2711-rpi-ds.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,22 +509,30 @@ i2c_vc: &i2c0 {};
509509
pinctrl-names = "default";
510510
};
511511

512+
&uart0 {
513+
compatible = "arm,pl011-axi";
514+
};
515+
512516
&uart2 {
517+
compatible = "arm,pl011-axi";
513518
pinctrl-0 = <&uart2_pins>;
514519
pinctrl-names = "default";
515520
};
516521

517522
&uart3 {
523+
compatible = "arm,pl011-axi";
518524
pinctrl-0 = <&uart3_pins>;
519525
pinctrl-names = "default";
520526
};
521527

522528
&uart4 {
529+
compatible = "arm,pl011-axi";
523530
pinctrl-0 = <&uart4_pins>;
524531
pinctrl-names = "default";
525532
};
526533

527534
&uart5 {
535+
compatible = "arm,pl011-axi";
528536
pinctrl-0 = <&uart5_pins>;
529537
pinctrl-names = "default";
530538
};

arch/arm64/boot/dts/broadcom/bcm2712-ds.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@
429429
};
430430

431431
&uart10 {
432-
arm,primecell-periphid = <0x00341011>;
432+
compatible = "arm,pl011-axi";
433433
};
434434

435435
&aon_intr {

0 commit comments

Comments
 (0)