powerpc/p1010rdb:add P1010RDB-PB platform support
Subsystems (3)
PATCH 1/2 powerpc/p1010rdb:add P1010RDB-PB platform support
The P1010RDB-PB is similar to P1010RDB(P1010RDB-PA). So, P1010RDB-PB use the same platform file as P1010RDB. Then Add support for P1010RDB-PB platform.
Signed-off-by Zhao Qiang <[email protected]>
--- arch/powerpc/platforms/85xx/p1010rdb.c | 2 ++ 1 file changed, 2 insertions(+)
arch/powerpc/platforms/85xx/p1010rdb.c +2 -0
@@ -66,6 +66,8 @@ static int __init p1010_rdb_probe(void)if (of_flat_dt_is_compatible (root,"fsl,P1010RDB" ))return 1 ; +if (of_flat_dt_is_compatible (root,"fsl,P1010RDB-PB" )) +return 1 ;return 0 ; }
Signature · 1 line
1.8.0
PATCH v4 2/2 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
Changes for v3
- Do sharing
- add "fsl,P1010RDB-PB"
Changes for v4
- remove "fsl,P1010RDB"
arch/powerpc/boot/dts/p1010rdb-pa.dts | 35 ++++++++++++
.../dts/{p1010rdb_36b.dts => p1010rdb-pa_36b.dts} | 53 ++++-------------
arch/powerpc/boot/dts/p1010rdb-pb.dts | 35 ++++++++++++
.../dts/{p1010rdb_36b.dts => p1010rdb-pb_36b.dts} | 57 +++++--------------
arch/powerpc/boot/dts/p1010rdb.dts | 66 ----------------------
arch/powerpc/boot/dts/p1010rdb.dtsi | 3 -
arch/powerpc/boot/dts/p1010rdb_32b.dtsi | 45 +++++++++++++++
arch/powerpc/boot/dts/p1010rdb_36b.dtsi | 45 +++++++++++++++
8 files changed, 184 insertions(+), 155 deletions(-)
create mode 100644 arch/powerpc/boot/dts/p1010rdb-pa.dts
copy arch/powerpc/boot/dts/{p1010rdb_36b.dts => p1010rdb-pa_36b.dts} (64%)
create mode 100644 arch/powerpc/boot/dts/p1010rdb-pb.dts
rename arch/powerpc/boot/dts/{p1010rdb_36b.dts => p1010rdb-pb_36b.dts} (63%)
delete mode 100644 arch/powerpc/boot/dts/p1010rdb.dts
create mode 100644 arch/powerpc/boot/dts/p1010rdb_32b.dtsi
create mode 100644 arch/powerpc/boot/dts/p1010rdb_36b.dtsiarch/powerpc/boot/dts/p1010rdb-pa.dts new file +35 -0
@@ -0,0 +1,35 @@ +/* + * P1010 RDB 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"; + compatible = "fsl,P1010RDB"; + + /include/ "p1010rdb_32b.dtsi" +}; + +/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 renamed from arch/powerpc/boot/dts/p1010rdb_36b.dts +11 -42
63 lines not on this page · raw message
arch/powerpc/boot/dts/p1010rdb-pb.dts new file +35 -0
@@ -0,0 +1,35 @@ +/* + * P1010 RDB 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-PB"; + compatible = "fsl,P1010RDB-PB"; + + /include/ "p1010rdb_32b.dtsi" +}; + +/include/ "p1010rdb.dtsi" + +&phy0 { + interrupts = <0 1 0 0>; +}; + +&phy1 { + interrupts = <2 1 0 0>; +}; + +&phy2 { + interrupts = <1 1 0 0>; +}; + +/include/ "fsl/p1010si-post.dtsi"
arch/powerpc/boot/dts/p1010rdb-pb_36b.dts renamed from arch/powerpc/boot/dts/p1010rdb_36b.dts +13 -44
68 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
@@ -193,17 +193,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_32b.dtsi new file +45 -0
45 lines not on this page · raw message
arch/powerpc/boot/dts/p1010rdb_36b.dtsi new file +45 -0
45 lines not on this page · raw message
Signature · 1 line
1.8.0