1 From 93514afd769c305182beeed1f9c4c46235879ef8 Mon Sep 17 00:00:00 2001
2 From: Pawel Dembicki <paweldembicki@gmail.com>
3 Date: Sun, 30 Dec 2018 23:24:41 +0100
4 Subject: [PATCH] powerpc: mpc85xx: change P2020RDB dts file for OpenWRT
6 This patch apply chages for OpenWRT in P2020RDB
9 Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
11 arch/powerpc/boot/dts/fsl/p2020rdb.dts | 98 +++++++++++++++++---------
12 1 file changed, 63 insertions(+), 35 deletions(-)
14 --- a/arch/powerpc/boot/dts/fsl/p2020rdb.dts
15 +++ b/arch/powerpc/boot/dts/fsl/p2020rdb.dts
17 * Copyright 2009-2012 Freescale Semiconductor Inc.
22 /include/ "p2020si-pre.dtsi"
24 +#include <dt-bindings/gpio/gpio.h>
25 +#include <dt-bindings/input/input.h>
28 - model = "fsl,P2020RDB";
29 + model = "Freescale P2020RDB";
30 compatible = "fsl,P2020RDB";
34 0x2 0x0 0x0 0xffb00000 0x00020000>;
37 - #address-cells = <1>;
39 compatible = "cfi-flash";
40 reg = <0x0 0x0 0x1000000>;
45 - /* This location must not be altered */
46 - /* 256KB for Vitesse 7385 Switch firmware */
47 - reg = <0x0 0x00040000>;
48 - label = "NOR (RO) Vitesse-7385 Firmware";
53 - /* 256KB for DTB Image */
54 - reg = <0x00040000 0x00040000>;
55 - label = "NOR (RO) DTB Image";
59 + compatible = "fixed-partitions";
60 + #address-cells = <1>;
64 - /* 3.5 MB for Linux Kernel Image */
65 - reg = <0x00080000 0x00380000>;
66 - label = "NOR (RO) Linux Kernel Image";
70 + /* This location must not be altered */
71 + /* 256KB for Vitesse 7385 Switch firmware */
72 + reg = <0x0 0x00040000>;
73 + label = "NOR (RO) Vitesse-7385 Firmware";
78 - /* 11MB for JFFS2 based Root file System */
79 - reg = <0x00400000 0x00b00000>;
80 - label = "NOR (RW) JFFS2 Root File System";
83 + compatible = "denx,fit";
84 + reg = <0x00040000 0x00ec0000>;
89 - /* This location must not be altered */
90 - /* 512KB for u-boot Bootloader Image */
91 - /* 512KB for u-boot Environment Variables */
92 - reg = <0x00f00000 0x00100000>;
93 - label = "NOR (RO) U-Boot Image";
96 + /* This location must not be altered */
97 + /* 512KB for u-boot Bootloader Image */
98 + /* 512KB for u-boot Environment Variables */
99 + reg = <0x00f00000 0x00100000>;
107 compatible = "fsl,p2020-fcm-nand",
109 reg = <0x1 0x0 0x40000>;
110 + nand-ecc-mode = "none";
113 /* This location must not be altered */
114 @@ -140,13 +136,43 @@
116 ranges = <0x0 0x0 0xffe00000 0x100000>;
118 + gpio0: gpio-controller@fc00 {
122 + temperature-sensor@4c {
123 + compatible = "adi,adt7461";
128 + compatible = "atmel,24c256";
133 compatible = "dallas,ds1339";
140 + compatible = "zl2006";
145 + compatible = "nxp,pca9557";
150 + compatible = "atmel,24c01";
157 #address-cells = <1>;
158 @@ -200,10 +225,12 @@
159 phy0: ethernet-phy@0 {
160 interrupts = <3 1 0 0>;
162 + reset-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
164 phy1: ethernet-phy@1 {
165 interrupts = <3 1 0 0>;
167 + reset-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
170 device_type = "tbi-phy";