mpc5200: Amalgamated DTS fixes and updates
Subsystems (2)
PATCH 1/1 mpc5200: Amalgamated DTS fixes and updates
DTS updates that fix booting problems:
- change to ethernet reg property
- addition of mdio and phy nodes
- removal of pci node (Motion-Pro board)
Other DTS updates:
- update i2c device tree nodes
- add lpb bus node and flash device (without partitions defined)
- add rtc i2c nodes
---
Changes since previous submission:
- added patch description
- added a space between "phy0:" and "ethernet-phy" per David Gibson's suggestion.
arch/powerpc/boot/dts/cm5200.dts | 37 ++++++++++++++++++++- arch/powerpc/boot/dts/motionpro.dts | 63 +++++++++++++++++++---------------- arch/powerpc/boot/dts/tqm5200.dts | 42 +++++++++++++++++++++++ 3 files changed, 112 insertions(+), 30 deletions(-)
arch/powerpc/boot/dts/cm5200.dts +36 -1
@@ -212,13 +212,30 @@ ethernet@3000 { device_type = "network"; compatible = "fsl,mpc5200b-fec","fsl,mpc5200-fec"; - reg = <3000 800>; + reg = <3000 400>; local-mac-address = [ 00 00 00 00 00 00 ]; interrupts = <2 5 0>; interrupt-parent = <&mpc5200_pic>; + phy-handle = <&phy0>; + }; + + mdio@3000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "fsl,mpc5200b-mdio","fsl,mpc5200-mdio"; + reg = <3000 400>; // fec range, since we need to setup fec interrupts + interrupts = <2 5 0>; // these are for "mii command finished", not link changes & co. + interrupt-parent = <&mpc5200_pic>; + + phy0: ethernet-phy@0 { + device_type = "ethernet-phy"; + reg = <0>; + }; }; i2c@3d40 { + #address-cells = <1>; + #size-cells = <0>; compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c"; reg = <3d40 40>; interrupts = <2 10 0>;
@@ -231,4 +248,22 @@ reg = <8000 4000>; }; }; + + lpb { + model = "fsl,lpb"; + compatible = "fsl,lpb"; + #address-cells = <2>; + #size-cells = <1>; + ranges = <0 0 fc000000 2000000>; + + // 16-bit flash device at LocalPlus Bus CS0 + flash@0,0 { + compatible = "cfi-flash"; + reg = <0 0 2000000>; + bank-width = <2>; + device-width = <2>; + #size-cells = <1>; + #address-cells = <1>; + }; + }; };
arch/powerpc/boot/dts/motionpro.dts +35 -28
101 lines not on this page · raw message
arch/powerpc/boot/dts/tqm5200.dts +41 -1
68 lines not on this page · raw message
arch/powerpc/boot/dts/cm5200.dts line 254
Quoted 3 lines
arch/powerpc/boot/dts/cm5200.dts +3
-0+ lpb { + model = "fsl,lpb"; + compatible = "fsl,lpb";
Please use a more descriptive name, if you can still change the binding. "localplus" or something like that.
Maybe it's time to start an International Obfuscated Device Tree Contest, to serve as a warning by example?
:-)
Segher