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 * P2020 RDB Device Tree Source
19 * Copyright 2009-2012 Freescale Semiconductor Inc.
20 + * Copyright 2018 Pawel Dembicki <paweldembicki@gmail.com>
22 * This program is free software; you can redistribute it and/or modify it
23 * under the terms of the GNU General Public License as published by the
25 * option) any later version.
30 /include/ "p2020si-pre.dtsi"
32 +#include <dt-bindings/gpio/gpio.h>
33 +#include <dt-bindings/input/input.h>
36 - model = "fsl,P2020RDB";
37 + model = "Freescale P2020RDB";
38 compatible = "fsl,P2020RDB";
42 0x2 0x0 0x0 0xffb00000 0x00020000>;
45 - #address-cells = <1>;
47 compatible = "cfi-flash";
48 reg = <0x0 0x0 0x1000000>;
53 - /* This location must not be altered */
54 - /* 256KB for Vitesse 7385 Switch firmware */
55 - reg = <0x0 0x00040000>;
56 - label = "NOR (RO) Vitesse-7385 Firmware";
61 - /* 256KB for DTB Image */
62 - reg = <0x00040000 0x00040000>;
63 - label = "NOR (RO) DTB Image";
67 + compatible = "fixed-partitions";
68 + #address-cells = <1>;
72 - /* 3.5 MB for Linux Kernel Image */
73 - reg = <0x00080000 0x00380000>;
74 - label = "NOR (RO) Linux Kernel Image";
78 + /* This location must not be altered */
79 + /* 256KB for Vitesse 7385 Switch firmware */
80 + reg = <0x0 0x00040000>;
81 + label = "NOR (RO) Vitesse-7385 Firmware";
86 - /* 11MB for JFFS2 based Root file System */
87 - reg = <0x00400000 0x00b00000>;
88 - label = "NOR (RW) JFFS2 Root File System";
91 + compatible = "denx,fit";
92 + reg = <0x00040000 0x00ec0000>;
97 - /* This location must not be altered */
98 - /* 512KB for u-boot Bootloader Image */
99 - /* 512KB for u-boot Environment Variables */
100 - reg = <0x00f00000 0x00100000>;
101 - label = "NOR (RO) U-Boot Image";
104 + /* This location must not be altered */
105 + /* 512KB for u-boot Bootloader Image */
106 + /* 512KB for u-boot Environment Variables */
107 + reg = <0x00f00000 0x00100000>;
114 @@ -144,13 +140,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 @@ -204,10 +230,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";