From patchwork Thu Aug 4 14:43:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karl Beldan X-Patchwork-Id: 655837 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3s4t5048SVz9s9Z for ; Fri, 5 Aug 2016 00:44:52 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b=pxWV0Gy4; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758121AbcHDOos (ORCPT ); Thu, 4 Aug 2016 10:44:48 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:37862 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758685AbcHDOoe (ORCPT ); Thu, 4 Aug 2016 10:44:34 -0400 Received: by mail-wm0-f46.google.com with SMTP id i5so381288198wmg.0 for ; Thu, 04 Aug 2016 07:43:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=gzVGnQQtIA/AXR+Q+01l105V0geChbiw0JS/Y/S6kS4=; b=pxWV0Gy404OXniNaF0K6i+zURu/DPtHlC3ylzCtuzDtMAWPijuA2LqLiBzFXSL+EEP 4d3/+d1h/LiP9Vd1z/PPs/FKtGeTlLSB5gu8qu7Z0VstA70r956vWkqgxgRwq4L4Dwr3 EGsQcalLtKS0zlGPMl3n2HHZIgCF2IuqAdpSQrak9oT6G8J9gG+a/9VdxaoHSaBjWOAJ +tHRDUNkRJZZl/g7ZyF83+4cx2dvVz5vdSns/UfYQ8+Z8dLexKj6Iv42TaXVE2jpnDlE oq41HouGM3ziauDDk0egsucpAz/lzauyBOJ+P8DBmbPP2+pVAws/wGXTHz+vREnAP+PN QYvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=gzVGnQQtIA/AXR+Q+01l105V0geChbiw0JS/Y/S6kS4=; b=b5TQoPxaI1owaRwE+JScGkIFggz0RuGUAc+Df6fK5KTeemgZwKcDyPQkcGlXNHECMU hHwTUkGsfk8IXc49Z7nze9duJAs07WYmBzLpYyMMBOLwZiatLipU4RKP7Ak5cnBQ0X/0 S3y5ZcBHI0Fmzt+565JhOpi/OuVeoV997XezGbafu5ZUXAFv2jeEOLnl4OVC7Sp8yT8P Qi6IWeBoBdKS9igZVIbjvUy1EOUsJTIa/cqjo98WYPalUqVInKZtZ4qHifVPD3S9lUQi 5xdgSDWUyi4Bhgg83OZ1P74MVq/A2nJbmov1+73cZAw20yXgxDP04qU/w3KGtQ4DVHUg yvaA== X-Gm-Message-State: AEkoousdYtDu1RXAHfyCF9AmRZjfZwVI34giCqijf9VkLXIbMC4AQlDFvzy7iKpDW2y2TKV7 X-Received: by 10.28.226.85 with SMTP id z82mr31991207wmg.101.1470321789244; Thu, 04 Aug 2016 07:43:09 -0700 (PDT) Received: from localhost.localdomain (ppp-seco11pa2-46-193-138-19.wb.wifirst.net. [46.193.138.19]) by smtp.gmail.com with ESMTPSA id lv9sm1369793wjb.22.2016.08.04.07.43.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Aug 2016 07:43:08 -0700 (PDT) From: Karl Beldan To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Rob Herring , Mark Rutland , Russell King , karl.beldan+oss@gmail.com, Kevin Hilman , Karl Beldan Subject: [PATCH] ARM: dts: da850: Add basic DTS for the L138/C6748 Dev Kit Date: Thu, 4 Aug 2016 14:43:32 +0000 Message-Id: <20160804144332.4841-1-kbeldan@baylibre.com> X-Mailer: git-send-email 2.9.0.rc1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 Tested-by: Kevin Hilman Acked-by: Kevin Hilman Tested-by: Kevin Hilman Acked-by: Kevin Hilman Tested-by: Kevin Hilman --- 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 + +/ { + 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"; +}; + +ð0 { + 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,