]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: da850: Add basic DTS for the LCDK
authorKarl Beldan <kbeldan@baylibre.com>
Fri, 5 Aug 2016 20:29:49 +0000 (20:29 +0000)
committerSekhar Nori <nsekhar@ti.com>
Tue, 9 Aug 2016 10:22:35 +0000 (15:52 +0530)
The LCDK is the successor to the late Hawkboard.
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 the OF facilities of mmc core).

Cc: Sekhar Nori <nsekhar@ti.com>
Tested-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Documentation/devicetree/bindings/arm/davinci.txt
arch/arm/boot/dts/Makefile
arch/arm/boot/dts/da850-lcdk.dts [new file with mode: 0644]
arch/arm/mach-davinci/da8xx-dt.c

index cfaeda4274e6a7e6f74ddca527d73d04d597d709..f0841ce725b5d2979c9f236f37d657e0c5aba1c2 100644 (file)
@@ -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,da850-lcdk", "ti,da850";
+
 EnBW AM1808 based CMC board
 Required root node properties:
     - compatible = "enbw,cmc", "ti,da850;
index faacd52370d24061e705d4e97785c254cf147f8c..f80f5b74c87af1044175462e4b69ab3e384d73a2 100644 (file)
@@ -114,6 +114,7 @@ dtb-$(CONFIG_ARCH_BRCMSTB) += \
 dtb-$(CONFIG_ARCH_CLPS711X) += \
        ep7211-edb7211.dtb
 dtb-$(CONFIG_ARCH_DAVINCI) += \
+       da850-lcdk.dtb \
        da850-enbw-cmc.dtb \
        da850-evm.dtb
 dtb-$(CONFIG_ARCH_DIGICOLOR) += \
diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts
new file mode 100644 (file)
index 0000000..dbcca0b
--- /dev/null
@@ -0,0 +1,70 @@
+/*
+ * Copyright (c) 2016 BayLibre, Inc.
+ *
+ * Licensed under GPLv2.
+ */
+/dts-v1/;
+#include "da850.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+
+/ {
+       model = "DA850/AM1808/OMAP-L138 LCDK";
+       compatible = "ti,da850-lcdk", "ti,da850";
+
+       aliases {
+               serial2 = &serial2;
+       };
+
+       chosen {
+               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";
+};
index 754f478110b490bc07857fe27e1c1dc1fc6f66c9..ca997114b1f46a3e1eda3f552114ef4b458e4c1c 100644 (file)
@@ -49,6 +49,7 @@ static void __init da850_init_machine(void)
 
 static const char *const da850_boards_compat[] __initconst = {
        "enbw,cmc",
+       "ti,da850-lcdk",
        "ti,da850-evm",
        "ti,da850",
        NULL,