From patchwork Fri Jun 16 12:06:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9791303 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 08F3A60325 for ; Fri, 16 Jun 2017 12:08:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE28326E1A for ; Fri, 16 Jun 2017 12:08:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D2AC628646; Fri, 16 Jun 2017 12:08:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4501326E1A for ; Fri, 16 Jun 2017 12:08:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=kUxE14rA93Cd1YE7/bM5jyOOTFJUoU6D7xxwrL4YfWQ=; b=dmvwdlPNiGF6cr8KdxnKIeCdx6 RL5uL26sOlc1ES2c62UVq2ZjxozRJUASnoXvinooYWH3dFmknn4bfaSIBb6PAlqgRgGXyVrovo2/B CQHvmfMSBnbqfrQ6ZMiwzrMkpQzG7TJokwSOluWpNSRZWbIxYBWU/TLx0mBtUpY+l4d0iCI4TRBWv peHzGh/wi5trtA29aVBfcA130d1NWBk1UzP/2OuN2VpCnXFaB/6cNFQ97xS8jKJRFrTHtPeyqcCTu 3FWGLsRwCBPTgZkBjGMfEHKUMvkrFD7RkhyHYj/ufSPHv3/3AqOo6Viy3TYD3jCd6Wt/pGJATwpKR dGSWeXuA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dLq2u-0005Fa-1R; Fri, 16 Jun 2017 12:08:12 +0000 Received: from mail-wr0-x230.google.com ([2a00:1450:400c:c0c::230]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dLq20-00046k-FQ for linux-arm-kernel@lists.infradead.org; Fri, 16 Jun 2017 12:07:21 +0000 Received: by mail-wr0-x230.google.com with SMTP id 36so37170569wry.3 for ; Fri, 16 Jun 2017 05:06:55 -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:in-reply-to:references; bh=d00nb0HZR02/9QW1gAermBgLZtbwedUEotg9TmfY8+U=; b=WrafgHoPqfS8OQllrQfYPxoD+9ivzwJsoJgO1QyFX4gj00glIoVqdXEk08m9ClFyug 9DrxAkjco9Z6iZkcQPVzXn1bNvB6PsU2kWKtAwEJhJvlF11qo+Ae/dpztSwGuvA0ay+/ OaHzfgjmGJ3niTxSLnd66LTx/gtpQWh3Gu3wias8L+JgncRyrS+9G7RCUMSgxY4ay/UW ZDUdqN42pyt7Tq8Y90l44zFq2tRssr9AidsgUYshHEJ4YY3dtOtf5fxQSkPZS0TuHocL lGuGrzPy7DsGWKy5OS8sVhGBT2m4pPQuLHAARIUTzojB4fDxSLz/8BDaNt7D/iJe3JBx sFAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=d00nb0HZR02/9QW1gAermBgLZtbwedUEotg9TmfY8+U=; b=dvt9YTNsxcxJ1WfQF10RED/rkNMTfIWH+TQf0oWSGSQ6fuuAHR0BRwHzxrFWRmKlKP COmorDH5/8sj1ogdgS6yoC0OFJ3trheEgb64UpKIc5IU2NCi+DKaakres1G7tvbf07S0 9lo/5wgdrs/IHvyTJoqgMA2QdYHIZzNm4xIoPTjGKXe1Wu0Zl+9o/SZEqLpqMKY4udyv WRDU4rbnxdwBaP3RTph5xAwXO5MlkBRgbX04lXuks9mZLp2RbN5hQiH1GJyF2zrgLtV9 LDOkvynEpoFF0x3osannZc5G56rwM3BIBbV1kzAmQcJ0chWcjr7L16dxEwnKHNHp1Xsu o4bQ== X-Gm-Message-State: AKS2vOzZk2esyFS8RzhG/v+1lXkMsJLn1CltOxzvOIXyB49offTVDu6N I1EgeEeRDZlHayZO X-Received: by 10.223.163.27 with SMTP id c27mr6974752wrb.85.1497614814376; Fri, 16 Jun 2017 05:06:54 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id 49sm2211126wrz.8.2017.06.16.05.06.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Jun 2017 05:06:53 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione , Neil Armstrong Subject: [PATCH 3/3] ARM64: dts: meson-gxl: Add Libre Computer support Date: Fri, 16 Jun 2017 14:06:48 +0200 Message-Id: <20170616120648.23320-4-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170616120648.23320-1-jbrunet@baylibre.com> References: <20170616120648.23320-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170616_050716_718265_80ABD9CD X-CRM114-Status: GOOD ( 13.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for the Libre Computer board from Imprecision Systems More information about the board are available here: https://libre.computer/blog/ Cc: Neil Armstrong Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../dts/amlogic/meson-gxl-s905x-librecomputer.dts | 92 ++++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxl-s905x-librecomputer.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index 8a0e09250978..e8bea895f125 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -10,6 +10,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-wetek-hub.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxbb-wetek-play2.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-hwacom-amazetv.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-khadas-vim.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-librecomputer.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-nexbox-a95x.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-p212.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-p230.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-librecomputer.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-librecomputer.dts new file mode 100644 index 000000000000..60d14b8a64b4 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-librecomputer.dts @@ -0,0 +1,92 @@ +/* + * Copyright (c) 2017 BayLibre, SAS. + * Author: Neil Armstrong + * Author: Jerome Brunet + * + * SPDX-License-Identifier: (GPL-2.0+ OR MIT) + */ + +/dts-v1/; + +#include + +#include "meson-gxl-s905x-p212.dtsi" + +/ { + compatible = "imprecision,librecomputer", "amlogic,s905x", "amlogic,meson-gxl"; + model = "Libre Computer Board"; + + cvbs-connector { + compatible = "composite-video-connector"; + + port { + cvbs_connector_in: endpoint { + remote-endpoint = <&cvbs_vdac_out>; + }; + }; + }; + + hdmi-connector { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <&hdmi_tx_tmds_out>; + }; + }; + }; + + leds { + compatible = "gpio-leds"; + + system { + label = "librecomputer:system-status"; + gpios = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>; + default-state = "on"; + panic-indicator; + }; + + blue { + label = "librecomputer:blue"; + gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + }; +}; + +&cvbs_vdac_port { + cvbs_vdac_out: endpoint { + remote-endpoint = <&cvbs_connector_in>; + }; +}; + +&hdmi_tx { + status = "okay"; + pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>; + pinctrl-names = "default"; +}; + +&hdmi_tx_tmds_port { + hdmi_tx_tmds_out: endpoint { + remote-endpoint = <&hdmi_connector_in>; + }; +}; + +/* + * The following devices exists but are exposed on the general + * purpose GPIO header. End user may well decide to use those pins + * for another purpose + */ + +&sd_emmc_a { + status = "disabled"; +}; + +&uart_A { + status = "disabled"; +}; + +&wifi32k { + status = "disabled"; +};