]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[POWERPC] QE: Explicitly set address-cells and size cells for muram
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 28 Jan 2008 07:27:51 +0000 (02:27 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 28 Jan 2008 15:02:09 +0000 (09:02 -0600)
Currently there are several dts that don't specify address or size
cells for the muram.  This causes dtc to use default values, one of
which is an address-cells of two, and this breaks the parsing of the
muram ranges, which is assuming an address-cells of one. For example:

Warning (reg_format): "reg" property in
/qe@e0100000/muram@10000/data-only@0 has invalid length
(8 bytes) (#address-cells == 2, #size-cells == 1)

Explicitly setting the address and size cells gets it parsed properly
and gets rid of the four dtc warnings.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/boot/dts/mpc832x_mds.dts
arch/powerpc/boot/dts/mpc832x_rdb.dts
arch/powerpc/boot/dts/mpc836x_mds.dts
arch/powerpc/boot/dts/mpc8568mds.dts

index 15bb3459ff8a8e6d505643bd1e1062f087d8d654..7c3c52cea75c0899e2f6e36a1a9b721b0d46e479 100644 (file)
                bus-frequency = <BCD3D80>;
 
                muram@10000 {
+                       #address-cells = <1>;
+                       #size-cells = <1>;
                        compatible = "fsl,qe-muram", "fsl,cpm-muram";
                        ranges = <0 00010000 00004000>;
 
index f086fac5921995a9c3f178516adc0a5e1b48eba5..551fc595075ac52cef0b82fbdc0271d1dc4ee06d 100644 (file)
                bus-frequency = <BCD3D80>;
 
                muram@10000 {
+                       #address-cells = <1>;
+                       #size-cells = <1>;
                        compatible = "fsl,qe-muram", "fsl,cpm-muram";
                        ranges = <0 00010000 00004000>;
 
index d3b8262df686b830ba921297bb1ba46d87ad9590..dc6caf0b4c2d223b8661dc89334a81246efcdcc7 100644 (file)
                bus-frequency = <179A7B00>;
 
                muram@10000 {
+                       #address-cells = <1>;
+                       #size-cells = <1>;
                        compatible = "fsl,qe-muram", "fsl,cpm-muram";
                        ranges = <0 00010000 0000c000>;
 
-                       data-only@0{
+                       data-only@0 {
                                compatible = "fsl,qe-muram-data",
                                             "fsl,cpm-muram-data";
                                reg = <0 c000>;
index c929fba7f39941661dda561c9d74191604f35bf6..97bc048f2158cef52f6f265344df9a976dbb8054 100644 (file)
                bus-frequency = <179A7B00>;
 
                muram@10000 {
+                       #address-cells = <1>;
+                       #size-cells = <1>;
                        compatible = "fsl,qe-muram", "fsl,cpm-muram";
                        ranges = <0 00010000 0000c000>;
 
-                       data-only@0{
+                       data-only@0 {
                                compatible = "fsl,qe-muram-data",
                                             "fsl,cpm-muram-data";
                                reg = <0 c000>;