6180c88e5e5ee4d9f25ef381960d63d74d271654
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-4.14 / 980-Revert-ARM-dts-BCM5301X-convert-to-iProc-QSPI.patch
1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
2 Date: Fri, 29 Dec 2017 20:26:51 +0100
3 Subject: [PATCH] Revert "ARM: dts: BCM5301X: convert to iProc QSPI"
4
5 This reverts commit 1c8f4065072387d3b6ee7adcf0dbe3c7ba80c268.
6
7 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
8 ---
9
10 --- a/arch/arm/boot/dts/bcm5301x.dtsi
11 +++ b/arch/arm/boot/dts/bcm5301x.dtsi
12 @@ -337,6 +337,20 @@
13 };
14 };
15
16 + spi@29000 {
17 + reg = <0x00029000 0x1000>;
18 + #address-cells = <1>;
19 + #size-cells = <0>;
20 +
21 + spi_nor: spi-nor@0 {
22 + compatible = "jedec,spi-nor";
23 + reg = <0>;
24 + spi-max-frequency = <20000000>;
25 + linux,part-probe = "ofpart", "bcm47xxpart";
26 + status = "disabled";
27 + };
28 + };
29 +
30 gmac0: ethernet@24000 {
31 reg = <0x24000 0x800>;
32 };
33 @@ -425,42 +439,6 @@
34 brcm,nand-has-wp;
35 };
36
37 - spi@18029200 {
38 - compatible = "brcm,spi-bcm-qspi", "brcm,spi-nsp-qspi";
39 - reg = <0x18029200 0x184>,
40 - <0x18029000 0x124>,
41 - <0x1811b408 0x004>,
42 - <0x180293a0 0x01c>;
43 - reg-names = "mspi", "bspi", "intr_regs", "intr_status_reg";
44 - interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
45 - <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
46 - <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
47 - <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
48 - <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
49 - <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
50 - <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
51 - interrupt-names = "spi_lr_fullness_reached",
52 - "spi_lr_session_aborted",
53 - "spi_lr_impatient",
54 - "spi_lr_session_done",
55 - "spi_lr_overhead",
56 - "mspi_done",
57 - "mspi_halted";
58 - clocks = <&iprocmed>;
59 - clock-names = "iprocmed";
60 - num-cs = <2>;
61 - #address-cells = <1>;
62 - #size-cells = <0>;
63 -
64 - spi_nor: spi-nor@0 {
65 - compatible = "jedec,spi-nor";
66 - reg = <0>;
67 - spi-max-frequency = <20000000>;
68 - linux,part-probe = "ofpart", "bcm47xxpart";
69 - status = "disabled";
70 - };
71 - };
72 -
73 thermal-zones {
74 cpu_thermal: cpu-thermal {
75 polling-delay-passive = <0>;
76 --- a/arch/arm/boot/dts/bcm953012k.dts
77 +++ b/arch/arm/boot/dts/bcm953012k.dts
78 @@ -80,32 +80,6 @@
79 };
80 };
81
82 -&spi_nor {
83 - status = "okay";
84 - spi-max-frequency = <62500000>;
85 - m25p,default-addr-width = <3>;
86 -
87 - #address-cells = <1>;
88 - #size-cells = <1>;
89 -
90 - partition@0 {
91 - label = "boot";
92 - reg = <0x00000000 0x000d0000>;
93 - };
94 - partition@d000 {
95 - label = "env";
96 - reg = <0x000d0000 0x00030000>;
97 - };
98 - partition@100000 {
99 - label = "system";
100 - reg = <0x00100000 0x00600000>;
101 - };
102 - partition@700000 {
103 - label = "rootfs";
104 - reg = <0x00700000 0x00900000>;
105 - };
106 -};
107 -
108 &uart0 {
109 status = "okay";
110 };