890b913b0cc46b6a3b2e7dbf4581f4937e87abe2
[openwrt/staging/mans0n.git] /
1 From 42791b317db4cda36751f57bada27857849811d3 Mon Sep 17 00:00:00 2001
2 From: Florian Fainelli <f.fainelli@gmail.com>
3 Date: Mon, 9 Nov 2020 17:41:32 -0800
4 Subject: [PATCH 15/16] ARM: dts: NSP: Add a SRAB compatible string for each
5 board
6
7 Provide a valid compatible string for the Ethernet switch node based on
8 the board including the switch. This allows us to have sane defaults and
9 silences the following warnings:
10
11 arch/arm/boot/dts/bcm958522er.dt.yaml:
12 ethernet-switch@36000: compatible: 'oneOf' conditional failed,
13 one
14 must be fixed:
15 ['brcm,bcm5301x-srab'] is too short
16 'brcm,bcm5325' was expected
17 'brcm,bcm53115' was expected
18 'brcm,bcm53125' was expected
19 'brcm,bcm53128' was expected
20 'brcm,bcm5365' was expected
21 'brcm,bcm5395' was expected
22 'brcm,bcm5389' was expected
23 'brcm,bcm5397' was expected
24 'brcm,bcm5398' was expected
25 'brcm,bcm11360-srab' was expected
26 'brcm,bcm5301x-srab' is not one of ['brcm,bcm53010-srab',
27 'brcm,bcm53011-srab', 'brcm,bcm53012-srab', 'brcm,bcm53018-srab',
28 'brcm,bcm53019-srab']
29 'brcm,bcm5301x-srab' is not one of ['brcm,bcm11404-srab',
30 'brcm,bcm11407-srab', 'brcm,bcm11409-srab', 'brcm,bcm58310-srab',
31 'brcm,bcm58311-srab', 'brcm,bcm58313-srab']
32 'brcm,bcm5301x-srab' is not one of ['brcm,bcm58522-srab',
33 'brcm,bcm58523-srab', 'brcm,bcm58525-srab', 'brcm,bcm58622-srab',
34 'brcm,bcm58623-srab', 'brcm,bcm58625-srab', 'brcm,bcm88312-srab']
35 'brcm,bcm5301x-srab' is not one of ['brcm,bcm3384-switch',
36 'brcm,bcm6328-switch', 'brcm,bcm6368-switch']
37 From schema:
38 Documentation/devicetree/bindings/net/dsa/b53.yaml
39
40 Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
41 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
42 ---
43 arch/arm/boot/dts/bcm958522er.dts | 4 ++++
44 arch/arm/boot/dts/bcm958525er.dts | 4 ++++
45 arch/arm/boot/dts/bcm958525xmc.dts | 4 ++++
46 3 files changed, 12 insertions(+)
47
48 --- a/arch/arm/boot/dts/bcm958522er.dts
49 +++ b/arch/arm/boot/dts/bcm958522er.dts
50 @@ -178,3 +178,7 @@
51 &xhci {
52 status = "okay";
53 };
54 +
55 +&srab {
56 + compatible = "brcm,bcm58522-srab", "brcm,nsp-srab";
57 +};
58 --- a/arch/arm/boot/dts/bcm958525er.dts
59 +++ b/arch/arm/boot/dts/bcm958525er.dts
60 @@ -190,3 +190,7 @@
61 &xhci {
62 status = "okay";
63 };
64 +
65 +&srab {
66 + compatible = "brcm,bcm58525-srab", "brcm,nsp-srab";
67 +};
68 --- a/arch/arm/boot/dts/bcm958525xmc.dts
69 +++ b/arch/arm/boot/dts/bcm958525xmc.dts
70 @@ -210,3 +210,7 @@
71 &xhci {
72 status = "okay";
73 };
74 +
75 +&srab {
76 + compatible = "brcm,bcm58525-srab", "brcm,nsp-srab";
77 +};