powerpc: dts: P1010: Add endianness property to flexcan node
authorPankaj Bansal <pankaj.bansal@nxp.com>
Fri, 24 Nov 2017 13:22:11 +0000 (18:52 +0530)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 1 Dec 2017 08:14:23 +0000 (09:14 +0100)
The flexcan driver assumed that flexcan controller is big endian for
powerpc architecture and little endian for other architectures.

But this is not universally true. flexcan controller can be little or
big endian on any architecture.

Therefore the flexcan driver has been modified to check for "big-endian"
device tree property for controllers that are big endian.

consequently add the property to freescale P1010 SOC device tree.

Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com>
Reviewed-by: Poonam Aggrwal <poonam.aggrwal@nxp.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
arch/powerpc/boot/dts/fsl/p1010si-post.dtsi

index af12ead88c5f0321739291d9730b1654f96da979..1b4aafc1f6a27bbaaa4bf3c8ceeffa71e76cc8db 100644 (file)
                compatible = "fsl,p1010-flexcan";
                reg = <0x1c000 0x1000>;
                interrupts = <48 0x2 0 0>;
+               big-endian;
        };
 
        can1: can@1d000 {
                compatible = "fsl,p1010-flexcan";
                reg = <0x1d000 0x1000>;
                interrupts = <61 0x2 0 0>;
+               big-endian;
        };
 
        L2: l2-cache-controller@20000 {