From patchwork Mon Jun 19 09:04:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 9795533 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 D23C060381 for ; Mon, 19 Jun 2017 09:06:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BEB3220572 for ; Mon, 19 Jun 2017 09:06:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B37E626E69; Mon, 19 Jun 2017 09:06:07 +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 67A6320572 for ; Mon, 19 Jun 2017 09:06:07 +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=9sKB7thiNdH+KtrSh0xHv+5Wssq691lDlmvd0eT6tTQ=; b=q/WEwwkOgz9C34OnvMH6wHiZWh IPJeSa/kj0PEFbhwoCO7mhYod4ykI2BfBM3qjVTZKPq21MKI8XUkQlMaI0JUtmduIW7AgGtJ/0sCR K5S7JcVTscKSuJc8mOcAqi5ziL+wP05abuPFjaYaYYy4SwGlm+/EATRYvffpTNVJ0S5fzBSc9dane bUIFHG5VDacJAevlkbf3Uvd1K7oeM3ov5aGlfMI20K3pjindJKcpndK4CBpfEEPdeT8w2gHwDO0O1 LcYUj9aVX7T/i/3rXqDwQc/t7vFsTEjp2Sd2j94ruGio7bUr2WIvmzBNXwIbwujAr6ZDTPCi4bzdV qYgiWnNw==; 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 1dMsdK-0000mi-93; Mon, 19 Jun 2017 09:06:06 +0000 Received: from mail-wr0-x231.google.com ([2a00:1450:400c:c0c::231]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dMscN-00070k-3v for linux-arm-kernel@lists.infradead.org; Mon, 19 Jun 2017 09:05:14 +0000 Received: by mail-wr0-x231.google.com with SMTP id c11so12477584wrc.3 for ; Mon, 19 Jun 2017 02:04:47 -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=VHQUrOh5VKGysuonXDZofiXe3xE1cCjvsN+ZgEOV6PQ=; b=YnSvUjhsaDU9Xo8g+5CYfFrRKWQs+GGkOY/4n7TebXHYBngjTmfyVM+iWlmLZtB1Gl t9Ba//22zKvFB6XhbibCT8hEUlB+vDOPW6g2pfHboGEqrbpzItlxub4/VzvdOjT959E1 SSfW8hBkQYuUJY2y/YiYuYS+ov1Frrc63OjYNweibxq1HF90YfhzT/WeuxIPyTaS1cpG oqTHXQ7ROGoS+66JmSAd13r+aeadJmJ3YU4iIz9mRh95R4W/I2hcTtuWTBoJuWQipXXO WSylCgnF9yoxHHVlWd3xiSwH299hH0jso+OVkbFx7U2aKZwSZDaOgh/65X6tU0Ov8gHW QNdw== 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=VHQUrOh5VKGysuonXDZofiXe3xE1cCjvsN+ZgEOV6PQ=; b=YXOA6YzjNG6QAl5rKjiulUwKuepB6j1sBEWrH22r1oKmfxcVmsCH5RVy8hOBqcqptA flR6AaNJIXzvaxim1BmRhMNhCdT1embiFLheDqSe09h7AeMzrbCMTNEEfxZ9Oa8Q1Wva jsKlreF+m/YYV+ol/7IsA32oQdDUGSX2mbm6mEpivDy0w3wYYsXFkncyZe0KFW8TBAnU HwHMhqgi0ZMI+2JBq7l283BOOXlLK7nivIT3omq3dczDhzQpdCCbE9CGLiM/LPS1h5L8 0VsO1xUZCQTWsOTQiGy1ZLLK8C7EYDjCgOnQsznQPvWEUq99edNB/76phHSb4ljrAHmN gdGA== X-Gm-Message-State: AKS2vOzPmRzhtMrWQhBijQJfL599tuT2EkCtEmErDSBO716atnfzrNm5 r7UylV7ufo5HPeDm X-Received: by 10.223.146.98 with SMTP id 89mr14167841wrj.152.1497863086119; Mon, 19 Jun 2017 02:04:46 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.googlemail.com with ESMTPSA id 137sm12762192wmm.29.2017.06.19.02.04.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Jun 2017 02:04:45 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman , Carlo Caione , Neil Armstrong Subject: [PATCH v2 3/3] ARM64: dts: meson-gxl: Add Libre Technology CC support Date: Mon, 19 Jun 2017 11:04:40 +0200 Message-Id: <20170619090440.27099-4-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170619090440.27099-1-jbrunet@baylibre.com> References: <20170619090440.27099-1-jbrunet@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170619_020507_344942_3554E41B X-CRM114-Status: GOOD ( 14.45 ) 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 CC board from Shenzhen Libre Technology 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-libretech-cc.dts | 92 ++++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index 8a0e09250978..7a9f48c27b1f 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-libretech-cc.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-libretech-cc.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts new file mode 100644 index 000000000000..890821d6e52b --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.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 = "libretech,cc", "amlogic,s905x", "amlogic,meson-gxl"; + model = "Libre Technology CC"; + + 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"; +};