devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit
@ 2016-08-04 14:43 Karl Beldan
  2016-08-04 18:29 ` Rob Herring
                   ` (2 more replies)
  0 siblings, 3 replies; 29+ messages in thread
From: Karl Beldan @ 2016-08-04 14:43 UTC (permalink / raw)
  To: devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
  Cc: Rob Herring, Mark Rutland, Russell King,
	karl.beldan+oss-Re5JQEeQqe8AvxtiuMwx3w, Kevin Hilman, Karl Beldan

The LCDK is the successor to the late Hawkboard and has the same machine
number.
Among the differences are the flash (16bits vs 8bits) and some pins
(MMC, LEDs, buttons, some external connectors), however the main
components remain the same (eth. PHY, Audio Codec, Video decoder and
DAC) except for the main PMIC, different and hard-wired on the LCDK (the
LDOs and DCDCs are always ON).
A DT-only boot with this addition gives functional uart, reboot via
watchdog, rtc, ethernet and MMC (I added the CD gpio for the MMC
although davinci_mmc doesn't call yet the mmc core OF facilities).

Signed-off-by: Karl Beldan <kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
---
 Documentation/devicetree/bindings/arm/davinci.txt |  4 ++
 arch/arm/boot/dts/Makefile                        |  1 +
 arch/arm/boot/dts/omapl138-lcdk.dts               | 71 +++++++++++++++++++++++
 arch/arm/mach-davinci/da8xx-dt.c                  |  1 +
 4 files changed, 77 insertions(+)
 create mode 100644 arch/arm/boot/dts/omapl138-lcdk.dts

diff --git a/Documentation/devicetree/bindings/arm/davinci.txt b/Documentation/devicetree/bindings/arm/davinci.txt
index cfaeda4..1482c74 100644
--- a/Documentation/devicetree/bindings/arm/davinci.txt
+++ b/Documentation/devicetree/bindings/arm/davinci.txt
@@ -5,6 +5,10 @@ DA850/OMAP-L138/AM18x Evaluation Module (EVM) board
 Required root node properties:
     - compatible = "ti,da850-evm", "ti,da850";
 
+DA850/OMAP-L138/AM18x L138/C6748 Development Kit (LCDK) board
+Required root node properties:
+    - compatible = "ti,omapl138-lcdk", "ti,da850";
+
 EnBW AM1808 based CMC board
 Required root node properties:
     - compatible = "enbw,cmc", "ti,da850;
diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
index 414b427..da3f69b 100644
--- a/arch/arm/boot/dts/Makefile
+++ b/arch/arm/boot/dts/Makefile
@@ -105,6 +105,7 @@ dtb-$(CONFIG_ARCH_BERLIN) += \
 dtb-$(CONFIG_ARCH_BRCMSTB) += \
 	bcm7445-bcm97445svmb.dtb
 dtb-$(CONFIG_ARCH_DAVINCI) += \
+	omapl138-lcdk.dtb \
 	da850-enbw-cmc.dtb \
 	da850-evm.dtb
 dtb-$(CONFIG_ARCH_DIGICOLOR) += \
diff --git a/arch/arm/boot/dts/omapl138-lcdk.dts b/arch/arm/boot/dts/omapl138-lcdk.dts
new file mode 100644
index 0000000..fad3b6d
--- /dev/null
+++ b/arch/arm/boot/dts/omapl138-lcdk.dts
@@ -0,0 +1,71 @@
+/*
+ * Copyright (c) 2016 BayLibre, Inc.
+ *
+ * Licensed under GPLv2 or later.
+ */
+/dts-v1/;
+#include "da850.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+
+/ {
+	model = "DA850/AM1808/OMAP-L138 LCDK";
+	compatible = "ti,omapl138-lcdk", "ti,da850";
+
+	aliases {
+		serial2 = &serial2;
+	};
+
+	chosen {
+		bootargs = "console=ttyS2,115200n8 earlycon";
+		stdout-path = "serial2:115200n8";
+	};
+
+	memory {
+		device_type = "memory";
+		reg = <0xc0000000 0x08000000>;
+	};
+};
+
+&pmx_core {
+	status = "okay";
+};
+
+&serial2 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&serial2_rxtx_pins>;
+	status = "okay";
+};
+
+&wdt {
+	status = "okay";
+};
+
+&rtc0 {
+	status = "okay";
+};
+
+&gpio {
+	status = "okay";
+};
+
+&mdio {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mdio_pins>;
+	bus_freq = <2200000>;
+	status = "okay";
+};
+
+&eth0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&mii_pins>;
+	status = "okay";
+};
+
+&mmc0 {
+	max-frequency = <50000000>;
+	bus-width = <4>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&mmc0_pins>;
+	cd-gpios = <&gpio 64 GPIO_ACTIVE_HIGH>;
+	status = "okay";
+};
diff --git a/arch/arm/mach-davinci/da8xx-dt.c b/arch/arm/mach-davinci/da8xx-dt.c
index 754f478..d5f710c 100644
--- a/arch/arm/mach-davinci/da8xx-dt.c
+++ b/arch/arm/mach-davinci/da8xx-dt.c
@@ -49,6 +49,7 @@ static void __init da850_init_machine(void)
 
 static const char *const da850_boards_compat[] __initconst = {
 	"enbw,cmc",
+	"ti,omapl138-lcdk",
 	"ti,da850-evm",
 	"ti,da850",
 	NULL,
-- 
2.9.0.rc1

--
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] 29+ messages in thread

end of thread, other threads:[~2016-10-13  7:14 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-04 14:43 [PATCH] ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit Karl Beldan
2016-08-04 18:29 ` Rob Herring
2016-08-04 21:03   ` Karl Beldan
2016-08-04 21:13     ` Rob Herring
2016-08-04 23:43       ` Karl Beldan
2016-10-13  7:14         ` Karl Beldan
2016-08-04 19:15 ` Kevin Hilman
     [not found]   ` <m2popopcqu.fsf-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2016-08-04 20:58     ` Karl Beldan
     [not found]   ` <20160804200522.GB15878@gobelin>
2016-08-05  0:25     ` Kevin Hilman
2016-08-05 14:00   ` Sekhar Nori
     [not found] ` <20160804144332.4841-1-kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2016-08-05 14:12   ` [PATCH v2 0/3] Support for the L138/C6748 Dev Kit (LCDK) Karl Beldan
     [not found]     ` <20160805141229.20784-1-kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2016-08-05 14:12       ` [PATCH v2 1/3] ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit Karl Beldan
     [not found]         ` <20160805141229.20784-2-kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2016-08-10 18:35           ` Rob Herring
2016-08-05 14:12       ` [PATCH v2 2/3] ARM: davinci_all_defconfig: enable RTC driver as module Karl Beldan
2016-08-05 14:12       ` [PATCH v2 3/3] ARM: davinci_all_defconfig: enable SMSC ethernet PHY Karl Beldan
2016-08-05 14:14   ` [PATCH] ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit Sekhar Nori
     [not found]     ` <57A49F3A.9030306-l0cyMroinI0@public.gmane.org>
2016-08-05 14:45       ` Karl Beldan
2016-08-05 14:52         ` Sekhar Nori
2016-08-05 14:59   ` [PATCH v3 0/3] Support for the LCDK Karl Beldan
     [not found]     ` <20160805145945.24315-1-kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2016-08-05 14:59       ` [PATCH v3 1/3] ARM: dts: da850: Add basic DTS " Karl Beldan
2016-08-05 14:59       ` [PATCH v3 2/3] ARM: davinci_all_defconfig: enable RTC driver as module Karl Beldan
2016-08-05 14:59       ` [PATCH v3 3/3] ARM: davinci_all_defconfig: enable SMSC ethernet PHY Karl Beldan
2016-08-05 20:29   ` [PATCH v4 0/3] Support for the LCDK Karl Beldan
     [not found]     ` <20160805202951.2848-1-kbeldan-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2016-08-05 20:29       ` [PATCH v4 1/3] ARM: dts: da850: Add basic DTS " Karl Beldan
2016-08-05 20:29       ` [PATCH v4 2/3] ARM: davinci_all_defconfig: enable RTC driver as module Karl Beldan
2016-08-05 23:45         ` Kevin Hilman
2016-08-05 20:29       ` [PATCH v4 3/3] ARM: davinci_all_defconfig: enable SMSC ethernet PHY Karl Beldan
2016-08-05 23:46         ` Kevin Hilman
2016-08-09 11:59       ` [PATCH v4 0/3] Support for the LCDK Sekhar Nori

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).