Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <Shengzhou.Liu@freescale.com>
Signed-off-by: Zhao Qiang <B45475@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>

authored by

Zhao Qiang and committed by
Scott Wood
9667a364 01c9ccee

+300 -114
+35
arch/powerpc/boot/dts/p1010rdb-pa.dts
··· 1 + /* 2 + * P1010 RDB Device Tree Source 3 + * 4 + * Copyright 2011 Freescale Semiconductor Inc. 5 + * 6 + * This program is free software; you can redistribute it and/or modify it 7 + * under the terms of the GNU General Public License as published by the 8 + * Free Software Foundation; either version 2 of the License, or (at your 9 + * option) any later version. 10 + */ 11 + 12 + /include/ "fsl/p1010si-pre.dtsi" 13 + 14 + / { 15 + model = "fsl,P1010RDB"; 16 + compatible = "fsl,P1010RDB"; 17 + 18 + /include/ "p1010rdb_32b.dtsi" 19 + }; 20 + 21 + /include/ "p1010rdb.dtsi" 22 + 23 + &phy0 { 24 + interrupts = <3 1 0 0>; 25 + }; 26 + 27 + &phy1 { 28 + interrupts = <2 1 0 0>; 29 + }; 30 + 31 + &phy2 { 32 + interrupts = <2 1 0 0>; 33 + }; 34 + 35 + /include/ "fsl/p1010si-post.dtsi"
+35
arch/powerpc/boot/dts/p1010rdb-pb.dts
··· 1 + /* 2 + * P1010 RDB Device Tree Source 3 + * 4 + * Copyright 2011 Freescale Semiconductor Inc. 5 + * 6 + * This program is free software; you can redistribute it and/or modify it 7 + * under the terms of the GNU General Public License as published by the 8 + * Free Software Foundation; either version 2 of the License, or (at your 9 + * option) any later version. 10 + */ 11 + 12 + /include/ "fsl/p1010si-pre.dtsi" 13 + 14 + / { 15 + model = "fsl,P1010RDB-PB"; 16 + compatible = "fsl,P1010RDB-PB"; 17 + 18 + /include/ "p1010rdb_32b.dtsi" 19 + }; 20 + 21 + /include/ "p1010rdb.dtsi" 22 + 23 + &phy0 { 24 + interrupts = <0 1 0 0>; 25 + }; 26 + 27 + &phy1 { 28 + interrupts = <2 1 0 0>; 29 + }; 30 + 31 + &phy2 { 32 + interrupts = <1 1 0 0>; 33 + }; 34 + 35 + /include/ "fsl/p1010si-post.dtsi"
+58
arch/powerpc/boot/dts/p1010rdb-pb_36b.dts
··· 1 + /* 2 + * P1010 RDB Device Tree Source (36-bit address map) 3 + * 4 + * Copyright 2011 Freescale Semiconductor Inc. 5 + * 6 + * Redistribution and use in source and binary forms, with or without 7 + * modification, are permitted provided that the following conditions are met: 8 + * * Redistributions of source code must retain the above copyright 9 + * notice, this list of conditions and the following disclaimer. 10 + * * Redistributions in binary form must reproduce the above copyright 11 + * notice, this list of conditions and the following disclaimer in the 12 + * documentation and/or other materials provided with the distribution. 13 + * * Neither the name of Freescale Semiconductor nor the 14 + * names of its contributors may be used to endorse or promote products 15 + * derived from this software without specific prior written permission. 16 + * 17 + * 18 + * ALTERNATIVELY, this software may be distributed under the terms of the 19 + * GNU General Public License ("GPL") as published by the Free Software 20 + * Foundation, either version 2 of that License or (at your option) any 21 + * later version. 22 + * 23 + * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY 24 + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 25 + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 26 + * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY 27 + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 28 + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29 + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 30 + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 32 + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 + */ 34 + 35 + /include/ "fsl/p1010si-pre.dtsi" 36 + 37 + / { 38 + model = "fsl,P1010RDB-PB"; 39 + compatible = "fsl,P1010RDB-PB"; 40 + 41 + /include/ "p1010rdb_36b.dtsi" 42 + }; 43 + 44 + /include/ "p1010rdb.dtsi" 45 + 46 + &phy0 { 47 + interrupts = <0 1 0 0>; 48 + }; 49 + 50 + &phy1 { 51 + interrupts = <2 1 0 0>; 52 + }; 53 + 54 + &phy2 { 55 + interrupts = <1 1 0 0>; 56 + }; 57 + 58 + /include/ "fsl/p1010si-post.dtsi"
-66
arch/powerpc/boot/dts/p1010rdb.dts
··· 1 - /* 2 - * P1010 RDB Device Tree Source 3 - * 4 - * Copyright 2011 Freescale Semiconductor Inc. 5 - * 6 - * This program is free software; you can redistribute it and/or modify it 7 - * under the terms of the GNU General Public License as published by the 8 - * Free Software Foundation; either version 2 of the License, or (at your 9 - * option) any later version. 10 - */ 11 - 12 - /include/ "fsl/p1010si-pre.dtsi" 13 - 14 - / { 15 - model = "fsl,P1010RDB"; 16 - compatible = "fsl,P1010RDB"; 17 - 18 - memory { 19 - device_type = "memory"; 20 - }; 21 - 22 - board_ifc: ifc: ifc@ffe1e000 { 23 - /* NOR, NAND Flashes and CPLD on board */ 24 - ranges = <0x0 0x0 0x0 0xee000000 0x02000000 25 - 0x1 0x0 0x0 0xff800000 0x00010000 26 - 0x3 0x0 0x0 0xffb00000 0x00000020>; 27 - reg = <0x0 0xffe1e000 0 0x2000>; 28 - }; 29 - 30 - board_soc: soc: soc@ffe00000 { 31 - ranges = <0x0 0x0 0xffe00000 0x100000>; 32 - }; 33 - 34 - pci0: pcie@ffe09000 { 35 - reg = <0 0xffe09000 0 0x1000>; 36 - ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000 37 - 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>; 38 - pcie@0 { 39 - ranges = <0x2000000 0x0 0xa0000000 40 - 0x2000000 0x0 0xa0000000 41 - 0x0 0x20000000 42 - 43 - 0x1000000 0x0 0x0 44 - 0x1000000 0x0 0x0 45 - 0x0 0x100000>; 46 - }; 47 - }; 48 - 49 - pci1: pcie@ffe0a000 { 50 - reg = <0 0xffe0a000 0 0x1000>; 51 - ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000 52 - 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>; 53 - pcie@0 { 54 - ranges = <0x2000000 0x0 0x80000000 55 - 0x2000000 0x0 0x80000000 56 - 0x0 0x20000000 57 - 58 - 0x1000000 0x0 0x0 59 - 0x1000000 0x0 0x0 60 - 0x0 0x100000>; 61 - }; 62 - }; 63 - }; 64 - 65 - /include/ "p1010rdb.dtsi" 66 - /include/ "fsl/p1010si-post.dtsi"
-3
arch/powerpc/boot/dts/p1010rdb.dtsi
··· 193 193 194 194 mdio@24000 { 195 195 phy0: ethernet-phy@0 { 196 - interrupts = <3 1 0 0>; 197 196 reg = <0x1>; 198 197 }; 199 198 200 199 phy1: ethernet-phy@1 { 201 - interrupts = <2 1 0 0>; 202 200 reg = <0x0>; 203 201 }; 204 202 205 203 phy2: ethernet-phy@2 { 206 - interrupts = <2 1 0 0>; 207 204 reg = <0x2>; 208 205 }; 209 206
+79
arch/powerpc/boot/dts/p1010rdb_32b.dtsi
··· 1 + /* 2 + * P1010 RDB Device Tree Source stub (no addresses or top-level ranges) 3 + * 4 + * Copyright 2013 Freescale Semiconductor Inc. 5 + * 6 + * Redistribution and use in source and binary forms, with or without 7 + * modification, are permitted provided that the following conditions are met: 8 + * * Redistributions of source code must retain the above copyright 9 + * notice, this list of conditions and the following disclaimer. 10 + * * Redistributions in binary form must reproduce the above copyright 11 + * notice, this list of conditions and the following disclaimer in the 12 + * documentation and/or other materials provided with the distribution. 13 + * * Neither the name of Freescale Semiconductor nor the 14 + * names of its contributors may be used to endorse or promote products 15 + * derived from this software without specific prior written permission. 16 + * 17 + * 18 + * ALTERNATIVELY, this software may be distributed under the terms of the 19 + * GNU General Public License ("GPL") as published by the Free Software 20 + * Foundation, either version 2 of that License or (at your option) any 21 + * later version. 22 + * 23 + * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY 24 + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 25 + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 26 + * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY 27 + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 28 + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29 + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 30 + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 32 + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 + */ 34 + 35 + memory { 36 + device_type = "memory"; 37 + }; 38 + 39 + board_ifc: ifc: ifc@ffe1e000 { 40 + /* NOR, NAND Flashes and CPLD on board */ 41 + ranges = <0x0 0x0 0x0 0xee000000 0x02000000 42 + 0x1 0x0 0x0 0xff800000 0x00010000 43 + 0x3 0x0 0x0 0xffb00000 0x00000020>; 44 + reg = <0x0 0xffe1e000 0 0x2000>; 45 + }; 46 + 47 + board_soc: soc: soc@ffe00000 { 48 + ranges = <0x0 0x0 0xffe00000 0x100000>; 49 + }; 50 + 51 + pci0: pcie@ffe09000 { 52 + reg = <0 0xffe09000 0 0x1000>; 53 + ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000 54 + 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>; 55 + pcie@0 { 56 + ranges = <0x2000000 0x0 0xa0000000 57 + 0x2000000 0x0 0xa0000000 58 + 0x0 0x20000000 59 + 60 + 0x1000000 0x0 0x0 61 + 0x1000000 0x0 0x0 62 + 0x0 0x100000>; 63 + }; 64 + }; 65 + 66 + pci1: pcie@ffe0a000 { 67 + reg = <0 0xffe0a000 0 0x1000>; 68 + ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000 69 + 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>; 70 + pcie@0 { 71 + ranges = <0x2000000 0x0 0x80000000 72 + 0x2000000 0x0 0x80000000 73 + 0x0 0x20000000 74 + 75 + 0x1000000 0x0 0x0 76 + 0x1000000 0x0 0x0 77 + 0x0 0x100000>; 78 + }; 79 + };
+14 -45
arch/powerpc/boot/dts/p1010rdb_36b.dts arch/powerpc/boot/dts/p1010rdb-pa_36b.dts
··· 38 38 model = "fsl,P1010RDB"; 39 39 compatible = "fsl,P1010RDB"; 40 40 41 - memory { 42 - device_type = "memory"; 43 - }; 44 - 45 - board_ifc: ifc: ifc@fffe1e000 { 46 - /* NOR, NAND Flashes and CPLD on board */ 47 - ranges = <0x0 0x0 0xf 0xee000000 0x02000000 48 - 0x1 0x0 0xf 0xff800000 0x00010000 49 - 0x3 0x0 0xf 0xffb00000 0x00000020>; 50 - reg = <0xf 0xffe1e000 0 0x2000>; 51 - }; 52 - 53 - board_soc: soc: soc@fffe00000 { 54 - ranges = <0x0 0xf 0xffe00000 0x100000>; 55 - }; 56 - 57 - pci0: pcie@fffe09000 { 58 - reg = <0xf 0xffe09000 0 0x1000>; 59 - ranges = <0x2000000 0x0 0xc0000000 0xc 0x20000000 0x0 0x20000000 60 - 0x1000000 0x0 0x00000000 0xf 0xffc10000 0x0 0x10000>; 61 - pcie@0 { 62 - ranges = <0x2000000 0x0 0xc0000000 63 - 0x2000000 0x0 0xc0000000 64 - 0x0 0x20000000 65 - 66 - 0x1000000 0x0 0x0 67 - 0x1000000 0x0 0x0 68 - 0x0 0x100000>; 69 - }; 70 - }; 71 - 72 - pci1: pcie@fffe0a000 { 73 - reg = <0xf 0xffe0a000 0 0x1000>; 74 - ranges = <0x2000000 0x0 0xc0000000 0xc 0x20000000 0x0 0x20000000 75 - 0x1000000 0x0 0x00000000 0xf 0xffc10000 0x0 0x10000>; 76 - pcie@0 { 77 - ranges = <0x2000000 0x0 0xc0000000 78 - 0x2000000 0x0 0xc0000000 79 - 0x0 0x20000000 80 - 81 - 0x1000000 0x0 0x0 82 - 0x1000000 0x0 0x0 83 - 0x0 0x100000>; 84 - }; 85 - }; 41 + /include/ "p1010rdb_36b.dtsi" 86 42 }; 87 43 88 44 /include/ "p1010rdb.dtsi" 45 + 46 + &phy0 { 47 + interrupts = <3 1 0 0>; 48 + }; 49 + 50 + &phy1 { 51 + interrupts = <2 1 0 0>; 52 + }; 53 + 54 + &phy2 { 55 + interrupts = <2 1 0 0>; 56 + }; 57 + 89 58 /include/ "fsl/p1010si-post.dtsi"
+79
arch/powerpc/boot/dts/p1010rdb_36b.dtsi
··· 1 + /* 2 + * P1010 RDB Device Tree Source stub (no addresses or top-level ranges) 3 + * 4 + * Copyright 2013 Freescale Semiconductor Inc. 5 + * 6 + * Redistribution and use in source and binary forms, with or without 7 + * modification, are permitted provided that the following conditions are met: 8 + * * Redistributions of source code must retain the above copyright 9 + * notice, this list of conditions and the following disclaimer. 10 + * * Redistributions in binary form must reproduce the above copyright 11 + * notice, this list of conditions and the following disclaimer in the 12 + * documentation and/or other materials provided with the distribution. 13 + * * Neither the name of Freescale Semiconductor nor the 14 + * names of its contributors may be used to endorse or promote products 15 + * derived from this software without specific prior written permission. 16 + * 17 + * 18 + * ALTERNATIVELY, this software may be distributed under the terms of the 19 + * GNU General Public License ("GPL") as published by the Free Software 20 + * Foundation, either version 2 of that License or (at your option) any 21 + * later version. 22 + * 23 + * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY 24 + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 25 + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 26 + * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY 27 + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 28 + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29 + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 30 + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 32 + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 + */ 34 + 35 + memory { 36 + device_type = "memory"; 37 + }; 38 + 39 + board_ifc: ifc: ifc@fffe1e000 { 40 + /* NOR, NAND Flashes and CPLD on board */ 41 + ranges = <0x0 0x0 0xf 0xee000000 0x02000000 42 + 0x1 0x0 0xf 0xff800000 0x00010000 43 + 0x3 0x0 0xf 0xffb00000 0x00000020>; 44 + reg = <0xf 0xffe1e000 0 0x2000>; 45 + }; 46 + 47 + board_soc: soc: soc@fffe00000 { 48 + ranges = <0x0 0xf 0xffe00000 0x100000>; 49 + }; 50 + 51 + pci0: pcie@fffe09000 { 52 + reg = <0xf 0xffe09000 0 0x1000>; 53 + ranges = <0x2000000 0x0 0xc0000000 0xc 0x20000000 0x0 0x20000000 54 + 0x1000000 0x0 0x00000000 0xf 0xffc10000 0x0 0x10000>; 55 + pcie@0 { 56 + ranges = <0x2000000 0x0 0xc0000000 57 + 0x2000000 0x0 0xc0000000 58 + 0x0 0x20000000 59 + 60 + 0x1000000 0x0 0x0 61 + 0x1000000 0x0 0x0 62 + 0x0 0x100000>; 63 + }; 64 + }; 65 + 66 + pci1: pcie@fffe0a000 { 67 + reg = <0xf 0xffe0a000 0 0x1000>; 68 + ranges = <0x2000000 0x0 0xc0000000 0xc 0x20000000 0x0 0x20000000 69 + 0x1000000 0x0 0x00000000 0xf 0xffc10000 0x0 0x10000>; 70 + pcie@0 { 71 + ranges = <0x2000000 0x0 0xc0000000 72 + 0x2000000 0x0 0xc0000000 73 + 0x0 0x20000000 74 + 75 + 0x1000000 0x0 0x0 76 + 0x1000000 0x0 0x0 77 + 0x0 0x100000>; 78 + }; 79 + };