devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] Documentation : can : flexcan : Add big-endian property to device tree
@ 2017-11-10 10:17 Pankaj Bansal
  2017-11-10 10:17 ` [PATCH 2/3] powerpc: dts: P1010: Add endianness property to flexcan node Pankaj Bansal
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Pankaj Bansal @ 2017-11-10 10:17 UTC (permalink / raw)
  To: wg, mkl, linux-can, robh+dt, mark.rutland, devicetree
  Cc: V.Sethi, poonam.aggrwal, Pankaj Bansal

The FlexCAN controller can be modelled as little or big endian
depending on SOC design. This device tree property identifies the
controller endianness and the driver reads/writes controller registers
based on that.

This is optional property. i.e. if this property is not present in
device tree node then controller is assumed to be little endian. if
this property is present then controller is assumed to be big endian.

Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com>
Reviewed-by: Poonam Aggrwal <poonam.aggrwal@nxp.com>
---
 Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/can/fsl-flexcan.txt b/Documentation/devicetree/bindings/net/can/fsl-flexcan.txt
index 56d6cc3..b9693c7 100644
--- a/Documentation/devicetree/bindings/net/can/fsl-flexcan.txt
+++ b/Documentation/devicetree/bindings/net/can/fsl-flexcan.txt
@@ -18,6 +18,8 @@ Optional properties:
 
 - xceiver-supply: Regulator that powers the CAN transceiver
 
+- big-endian: This means the registers of FlexCAN controller are big endian
+
 Example:
 
 	can@1c000 {
@@ -26,4 +28,5 @@ Example:
 		interrupts = <48 0x2>;
 		interrupt-parent = <&mpic>;
 		clock-frequency = <200000000>; // filled in by bootloader
+		big-endian;
 	};
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-11-10 10:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-10 10:17 [PATCH 1/3] Documentation : can : flexcan : Add big-endian property to device tree Pankaj Bansal
2017-11-10 10:17 ` [PATCH 2/3] powerpc: dts: P1010: Add endianness property to flexcan node Pankaj Bansal
2017-11-10 10:17 ` [PATCH 3/3] arm/dts: Add nodes for flexcan devices present on LS1021A-Rev2 SoC Pankaj Bansal
     [not found] ` <1510309043-16777-1-git-send-email-pankaj.bansal-3arQi8VN3Tc@public.gmane.org>
2017-11-10 10:36   ` [PATCH 1/3] Documentation : can : flexcan : Add big-endian property to device tree Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).