Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: da850: Add basic DTS for the LCDK

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>

authored by

Karl Beldan and committed by
Sekhar Nori
44524a01 10ead752

+76
+4
Documentation/devicetree/bindings/arm/davinci.txt
··· 5 5 Required root node properties: 6 6 - compatible = "ti,da850-evm", "ti,da850"; 7 7 8 + DA850/OMAP-L138/AM18x L138/C6748 Development Kit (LCDK) board 9 + Required root node properties: 10 + - compatible = "ti,da850-lcdk", "ti,da850"; 11 + 8 12 EnBW AM1808 based CMC board 9 13 Required root node properties: 10 14 - compatible = "enbw,cmc", "ti,da850;
+1
arch/arm/boot/dts/Makefile
··· 114 114 dtb-$(CONFIG_ARCH_CLPS711X) += \ 115 115 ep7211-edb7211.dtb 116 116 dtb-$(CONFIG_ARCH_DAVINCI) += \ 117 + da850-lcdk.dtb \ 117 118 da850-enbw-cmc.dtb \ 118 119 da850-evm.dtb 119 120 dtb-$(CONFIG_ARCH_DIGICOLOR) += \
+70
arch/arm/boot/dts/da850-lcdk.dts
··· 1 + /* 2 + * Copyright (c) 2016 BayLibre, Inc. 3 + * 4 + * Licensed under GPLv2. 5 + */ 6 + /dts-v1/; 7 + #include "da850.dtsi" 8 + #include <dt-bindings/gpio/gpio.h> 9 + 10 + / { 11 + model = "DA850/AM1808/OMAP-L138 LCDK"; 12 + compatible = "ti,da850-lcdk", "ti,da850"; 13 + 14 + aliases { 15 + serial2 = &serial2; 16 + }; 17 + 18 + chosen { 19 + stdout-path = "serial2:115200n8"; 20 + }; 21 + 22 + memory { 23 + device_type = "memory"; 24 + reg = <0xc0000000 0x08000000>; 25 + }; 26 + }; 27 + 28 + &pmx_core { 29 + status = "okay"; 30 + }; 31 + 32 + &serial2 { 33 + pinctrl-names = "default"; 34 + pinctrl-0 = <&serial2_rxtx_pins>; 35 + status = "okay"; 36 + }; 37 + 38 + &wdt { 39 + status = "okay"; 40 + }; 41 + 42 + &rtc0 { 43 + status = "okay"; 44 + }; 45 + 46 + &gpio { 47 + status = "okay"; 48 + }; 49 + 50 + &mdio { 51 + pinctrl-names = "default"; 52 + pinctrl-0 = <&mdio_pins>; 53 + bus_freq = <2200000>; 54 + status = "okay"; 55 + }; 56 + 57 + &eth0 { 58 + pinctrl-names = "default"; 59 + pinctrl-0 = <&mii_pins>; 60 + status = "okay"; 61 + }; 62 + 63 + &mmc0 { 64 + max-frequency = <50000000>; 65 + bus-width = <4>; 66 + pinctrl-names = "default"; 67 + pinctrl-0 = <&mmc0_pins>; 68 + cd-gpios = <&gpio 64 GPIO_ACTIVE_HIGH>; 69 + status = "okay"; 70 + };
+1
arch/arm/mach-davinci/da8xx-dt.c
··· 49 49 50 50 static const char *const da850_boards_compat[] __initconst = { 51 51 "enbw,cmc", 52 + "ti,da850-lcdk", 52 53 "ti,da850-evm", 53 54 "ti,da850", 54 55 NULL,