brcm2708: add kernel 4.14 support
[openwrt/staging/chunkeey.git] / target / linux / brcm2708 / patches-4.14 / 950-0244-ARM-dts-Add-model-specific-compatible-strings.patch
1 From 0c6baed942a4eab2d4af3625e58db03998dece60 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Wed, 7 Mar 2018 08:21:29 +0000
4 Subject: [PATCH 244/454] ARM: dts: Add model-specific compatible strings
5
6 The upstream Pi DTs are model-specific, with both the model and
7 compatible strings identifying the model. Downstream groups the
8 closely-related models, with only the chip name in the compatible
9 strings and a model string patched by the firmware.
10
11 Bring the downstream model-specific DTs closer to upstream by
12 adding model-specific compatible strings.
13
14 See: https://github.com/raspberrypi/firmware/issues/943
15
16 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
17 ---
18 arch/arm/boot/dts/bcm2708-rpi-0-w.dts | 1 +
19 arch/arm/boot/dts/bcm2709-rpi-2-b.dts | 1 +
20 arch/arm/boot/dts/bcm2710-rpi-3-b.dts | 1 +
21 3 files changed, 3 insertions(+)
22
23 --- a/arch/arm/boot/dts/bcm2708-rpi-0-w.dts
24 +++ b/arch/arm/boot/dts/bcm2708-rpi-0-w.dts
25 @@ -3,6 +3,7 @@
26 #include "bcm2708.dtsi"
27
28 / {
29 + compatible = "raspberrypi,model-zero-w", "brcm,bcm2835";
30 model = "Raspberry Pi Zero W";
31
32 chosen {
33 --- a/arch/arm/boot/dts/bcm2709-rpi-2-b.dts
34 +++ b/arch/arm/boot/dts/bcm2709-rpi-2-b.dts
35 @@ -4,6 +4,7 @@
36 #include "bcm283x-rpi-smsc9514.dtsi"
37
38 / {
39 + compatible = "raspberrypi,2-model-b", "brcm,bcm2836";
40 model = "Raspberry Pi 2 Model B";
41 };
42
43 --- a/arch/arm/boot/dts/bcm2710-rpi-3-b.dts
44 +++ b/arch/arm/boot/dts/bcm2710-rpi-3-b.dts
45 @@ -8,6 +8,7 @@
46 #include "bcm283x-rpi-smsc9514.dtsi"
47
48 / {
49 + compatible = "raspberrypi,3-model-b", "brcm,bcm2837";
50 model = "Raspberry Pi 3 Model B";
51
52 chosen {