powerpc/p1010rdb:update dts to adapt to both old and new p1010rdb
Subsystems (2)
PATCH v2 1/1 powerpc/p1010rdb:update dts to adapt to both old and new p1010rdb
P1010rdb-pa and p1010rdb-pb have different phy interrupts. So update dts to adapt to both p1010rdb-pa and p1010rdb-pb.
Signed-off-by Shengzhou Liu <[email protected]>
Signed-off-by Zhao Qiang <[email protected]>
---
Changes for v2
- Take p1010rdb_36b.dts into account
arch/powerpc/boot/dts/p1010rdb-pa.dts | 79 ++++++++++++++++++++++ arch/powerpc/boot/dts/p1010rdb-pa_36b.dts | 105 ++++++++++++++++++++++++++++++ arch/powerpc/boot/dts/p1010rdb-pb.dts | 79 ++++++++++++++++++++++ arch/powerpc/boot/dts/p1010rdb-pb_36b.dts | 105 ++++++++++++++++++++++++++++++ arch/powerpc/boot/dts/p1010rdb.dts | 66 ------------------- arch/powerpc/boot/dts/p1010rdb.dtsi | 3 - arch/powerpc/boot/dts/p1010rdb_36b.dts | 92 -------------------------- 7 files changed, 368 insertions(+), 161 deletions(-) create mode 100644 arch/powerpc/boot/dts/p1010rdb-pa.dts create mode 100644 arch/powerpc/boot/dts/p1010rdb-pa_36b.dts create mode 100644 arch/powerpc/boot/dts/p1010rdb-pb.dts create mode 100644 arch/powerpc/boot/dts/p1010rdb-pb_36b.dts delete mode 100644 arch/powerpc/boot/dts/p1010rdb.dts delete mode 100644 arch/powerpc/boot/dts/p1010rdb_36b.dts
arch/powerpc/boot/dts/p1010rdb-pa.dts new file +79 -0
@@ -0,0 +1,79 @@ +/* + * P1010 RDB-PA Device Tree Source + * + * Copyright 2011 Freescale Semiconductor Inc. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + */ + +/include/ "fsl/p1010si-pre.dtsi" + +/ { + model = "fsl,P1010RDB-PA"; + compatible = "fsl,P1010RDB"; + + memory { + device_type = "memory"; + }; + + board_ifc: ifc: ifc@ffe1e000 { + /* NOR, NAND Flashes and CPLD on board */ + ranges = <0x0 0x0 0x0 0xee000000 0x02000000 + 0x1 0x0 0x0 0xff800000 0x00010000 + 0x3 0x0 0x0 0xffb00000 0x00000020>; + reg = <0x0 0xffe1e000 0 0x2000>; + }; + + board_soc: soc: soc@ffe00000 { + ranges = <0x0 0x0 0xffe00000 0x100000>; + }; + + pci0: pcie@ffe09000 { + reg = <0 0xffe09000 0 0x1000>; + ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000 + 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>; + pcie@0 { + ranges = <0x2000000 0x0 0xa0000000 + 0x2000000 0x0 0xa0000000 + 0x0 0x20000000 + + 0x1000000 0x0 0x0 + 0x1000000 0x0 0x0 + 0x0 0x100000>; + }; + }; + + pci1: pcie@ffe0a000 { + reg = <0 0xffe0a000 0 0x1000>; + ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000 + 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>; + pcie@0 { + ranges = <0x2000000 0x0 0x80000000 + 0x2000000 0x0 0x80000000 + 0x0 0x20000000 + + 0x1000000 0x0 0x0 + 0x1000000 0x0 0x0 + 0x0 0x100000>; + }; + }; +}; + +/include/ "p1010rdb.dtsi" + +&phy0 { + interrupts = <3 1 0 0>; +}; + +&phy1 { + interrupts = <2 1 0 0>; +}; + +&phy2 { + interrupts = <2 1 0 0>; +}; + +/include/ "fsl/p1010si-post.dtsi"
arch/powerpc/boot/dts/p1010rdb-pa_36b.dts new file +105 -0
105 lines not on this page · raw message
arch/powerpc/boot/dts/p1010rdb-pb.dts new file +79 -0
79 lines not on this page · raw message
arch/powerpc/boot/dts/p1010rdb-pb_36b.dts new file +105 -0
105 lines not on this page · raw message
arch/powerpc/boot/dts/p1010rdb.dts deleted +0 -66
66 lines not on this page · raw message
arch/powerpc/boot/dts/p1010rdb.dtsi +0 -3
@@ -199,17 +199,14 @@ mdio@24000 { phy0: ethernet-phy@0 { - interrupts = <3 1 0 0>; reg = <0x1>; }; phy1: ethernet-phy@1 { - interrupts = <2 1 0 0>; reg = <0x0>; }; phy2: ethernet-phy@2 { - interrupts = <2 1 0 0>; reg = <0x2>; };
arch/powerpc/boot/dts/p1010rdb_36b.dts deleted +0 -92
92 lines not on this page · raw message
Signature · 1 line
1.8.0