arm64: dts: sun50i-a64-pinephone: add 'pine64, pinephone' to the compatible list
Subsystems (2)
PATCH v2 1/1 arm64: dts: sun50i-a64-pinephone: add 'pine64, pinephone' to the compatible list
All revisions of the PinePhone share most of the hardware. This patch makes it easier to detect PinePhone hardware without having to check for each possible revision.
Signed-off-by Dylan Van Assche <[email protected]>
---
v2 updates the devicetree documentation as well.
Documentation/devicetree/bindings/arm/sunxi.yaml | 3 +++ arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts | 2 +- arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.1.dts | 2 +- arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/arm/sunxi.yaml +3 -0
@@ -683,16 +683,19 @@ properties: - description: Pine64 PinePhone Developer Batch (1.0) items: - const: pine64,pinephone-1.0 + - const: pine64,pinephone - const: allwinner,sun50i-a64 - description: Pine64 PinePhone Braveheart (1.1) items: - const: pine64,pinephone-1.1 + - const: pine64,pinephone - const: allwinner,sun50i-a64 - description: Pine64 PinePhone (1.2) items: - const: pine64,pinephone-1.2 + - const: pine64,pinephone - const: allwinner,sun50i-a64 - description: Pine64 PineTab
arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.0.dts +1 -1
@@ -7,7 +7,7 @@ / { model = "Pine64 PinePhone Developer Batch (1.0)"; - compatible = "pine64,pinephone-1.0", "allwinner,sun50i-a64"; + compatible = "pine64,pinephone-1.0", "pine64,pinephone", "allwinner,sun50i-a64"; }; &sgm3140 {
arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.1.dts +1 -1
@@ -7,7 +7,7 @@ / { model = "Pine64 PinePhone Braveheart (1.1)"; - compatible = "pine64,pinephone-1.1", "allwinner,sun50i-a64"; + compatible = "pine64,pinephone-1.1", "pine64,pinephone", "allwinner,sun50i-a64"; }; &backlight {
arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone-1.2.dts +1 -1
@@ -7,7 +7,7 @@ / { model = "Pine64 PinePhone (1.2)"; - compatible = "pine64,pinephone-1.2", "allwinner,sun50i-a64"; + compatible = "pine64,pinephone-1.2", "pine64,pinephone", "allwinner,sun50i-a64"; wifi_pwrseq: wifi-pwrseq { compatible = "mmc-pwrseq-simple";
Signature · 1 line
2.26.2
Maxime Ripard
AppliedQuoted 5 lines · Dylan Van Assche
All revisions of the PinePhone share most of the hardware. This patch makes it easier to detect PinePhone hardware without having to check for each possible revision.
Signed-off-by Dylan Van Assche <[email protected]>
Applied, thanks
Maxime