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: 9791329 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 1B4EA60325 for ; Fri, 16 Jun 2017 12:19:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D0262834A for ; Fri, 16 Jun 2017 12:19:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 018FE285EE; Fri, 16 Jun 2017 12:19:22 +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 7C0292834A for ; Fri, 16 Jun 2017 12:19:21 +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=pJoOZg2p4JQg4dSbRjMdiU8gaMp8fwxRIU5hmUFoFXI=; b=jjNc/4BVI156NUboc7gpISeLS5 Is+t/cYxXfl/8hFerBp2C/LhS6LP/GLiaCC67yyyWiNPVpVn/KKfAuIPH9k2i4M2WlNAp/VUJYBQQ SIGrVu2hbedNKZ1l+ePt4bG4mNHxxfEyrh1q+GZqpt6PamsI64iX8BCo/PLwnpYBxabWKeh3p2Wqv Af8+t6s/BFq3T4qd1c8TKdBmy2YprnzZzx09jwLCMFeJBUiG3O4URWVsEpqUHF+mbwKUS74x6H6SD 3Ru8QiX+9Liy9v+CdqknacEwkPLoDD3UoLDAconJH8Mi8EYBRxOJGswQOcidpbB4SBs78HssdOuzR cEF50RtQ==; 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 1dLqDX-0002RK-0S; Fri, 16 Jun 2017 12:19:11 +0000 Received: from mail-wr0-x232.google.com ([2a00:1450:400c:c0c::232]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dLq20-00046l-44 for linux-amlogic@lists.infradead.org; Fri, 16 Jun 2017 12:07:20 +0000 Received: by mail-wr0-x232.google.com with SMTP id r103so37501642wrb.0 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=L3+YILiRfhMiWRloUAqp/UJknbAGsh9We2ULbSyOhSAPvI5hPfBkhvpFF9TPW1OQtC YJ32+n4BqEQSRwlFBBAOvYr2m0+DETmframbySE4DuMVj3+keJT31zM0UBiIfjspvBKe 3QjEWvWksgI4H1d3xuTEVCsh/kXMOV4NjzYegnvmbRZS14HlWYHxNiUGdjcOng5zskvU I/uSPLLAKCFMnaXgFkFjR5/TSWUa/9mlxRmvFcTCVnDLd76fi8j3dxrLidNxiAPkcA/b hgFyL4ITbTlbPJxFlHB4nrbrsp2gAPILe9KxjiWJPOMMvwCTvBXxv6kt+/d3HSgHD8Uq 5C1Q== X-Gm-Message-State: AKS2vOwKUZpYJcKxR3r4joJyNVgC+eA9NNtw3JxK0oIR/BRVJNa3ipt0 oSq7gUvOGL2Ja0SWSpU= 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_391604_F2CC7CBF X-CRM114-Status: GOOD ( 12.53 ) X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=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"; +};