All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4][v4][RESEND] dt-bindings: mtd-physmap: Add endianness supports
@ 2018-02-22 10:15 ` Prabhakar Kushwaha
  0 siblings, 0 replies; 33+ messages in thread
From: Prabhakar Kushwaha @ 2018-02-22 10:15 UTC (permalink / raw)
  To: linux-mtd, devicetree, robh, mark.rutland, shawnguo
  Cc: boris.brezillon, leoyang.li, oss, Prabhakar Kushwaha,
	cyrille.pitchen, computersforpeace, linux-arm-kernel

Connection between flash and controller is not necessary to be always
of same type. It may varies from platform to platform.

Adding endianness (optional) property to provide connection type
information. This endianness property is checked in physmap_of_core.c
to decide swap type. 

This patch also set "big-endian" property for ls1021a, ls1043a
and ls1046a device tree. here connection between IFC controller
and NOR flash is big-endian.

Prabhakar Kushwaha (4):
  dt-bindings: mtd-physmap: Add endianness supports
  driver: mtd: update struct map_info's swap as per map requirement
  ARM: dts: Add NOR connection type with IFC
  ARM64: dts: Add NOR connection type with IFC

Resending as all patches of patchset never reaches to patchwork.

 Documentation/devicetree/bindings/mtd/mtd-physmap.txt | 5 +++++
 arch/arm/boot/dts/ls1021a-qds.dts                     | 1 +
 arch/arm/boot/dts/ls1021a-twr.dts                     | 1 +
 arch/arm64/boot/dts/freescale/fsl-ls1043a-qds.dts     | 1 +
 arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts     | 1 +
 arch/arm64/boot/dts/freescale/fsl-ls1046a-qds.dts     | 1 +
 drivers/mtd/maps/physmap_of_core.c                    | 8 ++++++++
 7 files changed, 18 insertions(+)

-- 
2.14.1

^ permalink raw reply	[flat|nested] 33+ messages in thread
* [PATCH 1/2][v2][RESEND] ARM: dts: Add big-endian for IFC on LS1021A
@ 2018-02-15 11:54 ` Prabhakar Kushwaha
  0 siblings, 0 replies; 33+ messages in thread
From: Prabhakar Kushwaha @ 2018-02-15 11:54 UTC (permalink / raw)
  To: linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	devicetree-u79uwXL29TY76Z2rM5mHXA, robh-DgEjT+Ai2ygdnm+yROfE0A,
	mark.rutland-5wv7dgnIgG8, shawnguo-DgEjT+Ai2ygdnm+yROfE0A
  Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8,
	cyrille.pitchen-yU5RGvR974pGWvitb5QawA,
	computersforpeace-Re5JQEeQqe8AvxtiuMwx3w,
	oss-fOR+EgIDQEHk1uMJSBkQmQ, leoyang.li-3arQi8VN3Tc,
	Prabhakar Kushwaha, Alison Wang, Jagdish Gediya

For the patch to update struct map_info's swap field based on device
characteristics defined in device tree, big-endian parameter is added
for LS1021A.

Signed-off-by: Alison Wang <alison.wang-3arQi8VN3Tc@public.gmane.org>
Signed-off-by: Jagdish Gediya <jagdish.gediya-3arQi8VN3Tc@public.gmane.org>
Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha-3arQi8VN3Tc@public.gmane.org>
---
Due to patch series http://patchwork.ozlabs.org/project/linux-mtd/list/?series=28735
this patch is now independent of flash propoerty. So resending.

 arch/arm/boot/dts/ls1021a.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi
index 9319e1f0f1d8..babb086ad94f 100644
--- a/arch/arm/boot/dts/ls1021a.dtsi
+++ b/arch/arm/boot/dts/ls1021a.dtsi
@@ -145,6 +145,7 @@
 		ifc: ifc@1530000 {
 			compatible = "fsl,ifc", "simple-bus";
 			reg = <0x0 0x1530000 0x0 0x10000>;
+			big-endian;
 			interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
 		};
 
-- 
2.14.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2018-02-24  9:09 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-22 10:15 [PATCH 0/4][v4][RESEND] dt-bindings: mtd-physmap: Add endianness supports Prabhakar Kushwaha
2018-02-22 10:15 ` Prabhakar Kushwaha
2018-02-22 10:15 ` Prabhakar Kushwaha
2018-02-22 10:15 ` [PATCH 1/4][v4][RESEND] " Prabhakar Kushwaha
2018-02-22 10:15   ` Prabhakar Kushwaha
2018-02-22 10:15   ` Prabhakar Kushwaha
2018-02-22 10:15 ` [PATCH 2/4][v4][RESEND] driver: mtd: update struct map_info's swap as per map requirement Prabhakar Kushwaha
2018-02-22 10:15   ` Prabhakar Kushwaha
2018-02-22 10:15   ` Prabhakar Kushwaha
2018-02-22 10:15 ` [PATCH 3/4][v4][RESEND] ARM: dts: Add NOR connection type with IFC Prabhakar Kushwaha
2018-02-22 10:15   ` Prabhakar Kushwaha
2018-02-22 10:15   ` Prabhakar Kushwaha
2018-02-22 10:15 ` [PATCH 4/4][v4][RESEND] ARM64: " Prabhakar Kushwaha
2018-02-22 10:15   ` Prabhakar Kushwaha
2018-02-22 10:15   ` Prabhakar Kushwaha
2018-02-22 10:15 ` [PATCH 1/2][v2][RESEND] ARM: dts: Add big-endian for IFC on LS1021A Prabhakar Kushwaha
2018-02-22 10:15   ` Prabhakar Kushwaha
2018-02-22 10:15   ` Prabhakar Kushwaha
2018-02-22 10:31   ` Boris Brezillon
2018-02-22 10:31     ` Boris Brezillon
2018-02-22 10:31     ` Boris Brezillon
2018-02-22 10:15 ` [PATCH 2/2][v2][RESEND] ARM: dts: ls1021aqds: Add nand node for ifc controller Prabhakar Kushwaha
2018-02-22 10:15   ` Prabhakar Kushwaha
2018-02-22 10:15   ` Prabhakar Kushwaha
2018-02-22 10:28 ` [PATCH 0/4][v4][RESEND] dt-bindings: mtd-physmap: Add endianness supports Boris Brezillon
2018-02-22 10:28   ` Boris Brezillon
2018-02-22 10:28   ` Boris Brezillon
2018-02-24  9:09   ` Shawn Guo
2018-02-24  9:09     ` Shawn Guo
2018-02-24  9:09     ` Shawn Guo
  -- strict thread matches above, loose matches on Subject: below --
2018-02-15 11:54 [PATCH 1/2][v2][RESEND] ARM: dts: Add big-endian for IFC on LS1021A Prabhakar Kushwaha
2018-02-15 11:54 ` Prabhakar Kushwaha
2018-02-15 11:54 ` Prabhakar Kushwaha

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.