Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6541148ybv; Wed, 12 Feb 2020 14:27:32 -0800 (PST) X-Google-Smtp-Source: APXvYqyQUNjkL+h3WtyczFOqhXgDzyNUf/by3jkPvm2OToebSD4Pu6iLtmjVbQtD1A8iMpBUgwy1 X-Received: by 2002:a9d:68c8:: with SMTP id i8mr11394079oto.34.1581546451944; Wed, 12 Feb 2020 14:27:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581546451; cv=none; d=google.com; s=arc-20160816; b=hiwE19nTIh552BzSeB8fPlqxpnG4rCcIRO7AL9TuFOcOwIwAm6pT0+gSQHL+tvyOzd cLyuXRT0ILtOfc1RyyGF71K4qxzU4Iwf/iZ5SXAaZBXBljGEvJ1H02qQs9lZmhqfpWR2 vk90J48J9wwc1w24Ui0B2MiHb3Miggi3iwGx4oX53Oh/KGEW4wIu5jp2K27kggIPTgX7 3tLLu2x0u52sufSTcvfWtJWWxo4u0oq9dUVKmTlsJFkWVygkd6vj4Yfk2hYOmsssY+Q7 jEZnWlll1EG+2fCH0hBKVnuYUKpNrM0G4CknIKZI9caGc41YCXTYsumQnyZ6NGd+5CMQ B6ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=P2sufO4LLXac8EpPRG82WEu62FbVXGdtrzG0LXHZeOc=; b=EOtOigzo0ujNeBi/QbNNLm/JQT8M163z8TuR4yQwPwwqTWwfA1eVN9bfZAJ83BcOzt hvBbXTlHqSudcT/JQv5Y3ypKJ4PI5czLnCU15e524kOyV1Ax4+7XBc+mtBneeju6ubuM Vg0qLwLovp3RIQXj6NE19bUrVFDeyz5B9k/GfQg4zuq7RRVkP5vxyZyzLPDHoFWb4bp0 HhtalSKM3WYVqwHucC+hYtxk2J0YYG49T6cgZjnTOWozaDsPrKUCSEbxq0GhUwfGFZVG TJIeCah90O2iYsf2w6RN+4GSW+TE5GrykHBBuanRBrvT+4wQJT9VI2G/ZU/uEFWqv+Jq cOzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qWCgfyya; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l83si226912oih.58.2020.02.12.14.27.19; Wed, 12 Feb 2020 14:27:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qWCgfyya; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729266AbgBLWZj (ORCPT + 99 others); Wed, 12 Feb 2020 17:25:39 -0500 Received: from mail-lf1-f48.google.com ([209.85.167.48]:46227 "EHLO mail-lf1-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729152AbgBLWZj (ORCPT ); Wed, 12 Feb 2020 17:25:39 -0500 Received: by mail-lf1-f48.google.com with SMTP id z26so2719837lfg.13 for ; Wed, 12 Feb 2020 14:25:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=P2sufO4LLXac8EpPRG82WEu62FbVXGdtrzG0LXHZeOc=; b=qWCgfyyaZcVlwnASB423iewuwd4fmtQcfKUkenO0oPI3pkWLGoRCTD9Fk/kaJW0CjH //r1Yth+Eqaq0+HtY38lAOhJQ69YyTEGFlnVRffyeb7AmMJdvsL9PELN35JM6nB2cKuy Y3cja1QMzIOqJxVK6+4lAHDuXG02HNegLzdn5G0ycXzutBpdU9qEPbU+H09ZGnSR6wE4 X2OqusGjh1VDDNjsn2bsVIA2CLJ30WysxmJKeYafXTNFWGS3dHb7zOqcN1i/V0Ht2GGt KlMAhWNJShkvfwdlVpgEHu7/by0Jkq0c3SCAUr7SFH4lRfVFrFFBqjiUZobk1UOQcN1c 90UQ== 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:mime-version:content-transfer-encoding; bh=P2sufO4LLXac8EpPRG82WEu62FbVXGdtrzG0LXHZeOc=; b=asHSH9WL1GHxRgu7eSjxCJhyyDr09ve54xf/IszID0jnIYXYfK7p2mzgXWM0y4ED2B HsWr/npaLggJUQCtr2upy2Zb+6jYiNmgB+gW6zn/fzR/OFEysTokVIzrwlsI5IcQl0VA w/rcW2jud6dULurNPkG9rASfZStaScXNrbcquwyZR4qEKAiYGoUHFYQQD4EcuQ8PxWid ZJuWNmFT53yMnXqrZcCc3QQV6s+Kn47GAqTe2hKIq7hLcIwT2ZnGr4px/xmtsWrcN/lB Hz0z5di0gS+7jsCjY7U6fvhbbxzi0BPqtNbk0X+5zKJp3PC2guFdmpFm7ThFjBT5vtTR 4slA== X-Gm-Message-State: APjAAAW4U1YjJOBmky1Bg4GFjaY6fFbghbA+riohEDSXIF3gkQAW7Uah lPW89ow6VJhbNzivPisgZy8= X-Received: by 2002:ac2:523c:: with SMTP id i28mr7610773lfl.104.1581546337071; Wed, 12 Feb 2020 14:25:37 -0800 (PST) Received: from localhost.localdomain ([5.20.204.163]) by smtp.gmail.com with ESMTPSA id 126sm188008lfm.38.2020.02.12.14.25.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Feb 2020 14:25:36 -0800 (PST) From: andrey.lebedev@gmail.com To: mripard@kernel.org, wens@csie.org, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: linux-sunxi@googlegroups.com, Andrey Lebedev Subject: [PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20 Date: Thu, 13 Feb 2020 00:23:57 +0200 Message-Id: <20200212222355.17141-2-andrey.lebedev@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200210195633.GA21832@kedthinkpad> References: <20200210195633.GA21832@kedthinkpad> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrey Lebedev Define pins for LVDS channels 0 and 1, configure reset line for tcon0 and provide sample LVDS panel, connected to tcon0. Signed-off-by: Andrey Lebedev --- arch/arm/boot/dts/sun7i-a20.dtsi | 45 +++++++++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi index 92b5be97085d..b05fdf8df32e 100644 --- a/arch/arm/boot/dts/sun7i-a20.dtsi +++ b/arch/arm/boot/dts/sun7i-a20.dtsi @@ -47,6 +47,7 @@ #include #include #include +#include / { interrupt-parent = <&gic>; @@ -407,8 +408,8 @@ compatible = "allwinner,sun7i-a20-tcon"; reg = <0x01c0c000 0x1000>; interrupts = ; - resets = <&ccu RST_TCON0>; - reset-names = "lcd"; + resets = <&ccu RST_TCON0>, <&ccu RST_LVDS>; + reset-names = "lcd", "lvds"; clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_TCON0_CH0>, <&ccu CLK_TCON0_CH1>; @@ -444,6 +445,11 @@ #size-cells = <0>; reg = <1>; + tcon0_out_lvds: endpoint@0 { + reg = <0>; + remote-endpoint = <&lvds_in_tcon0>; + allwinner,tcon-channel = <0>; + }; tcon0_out_hdmi: endpoint@1 { reg = <1>; remote-endpoint = <&hdmi_in_tcon0>; @@ -686,6 +692,19 @@ }; }; + lvds_panel: panel@1c16500 { + compatible = "panel-lvds"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + port { + lvds_in_tcon0: endpoint { + remote-endpoint = <&tcon0_out_lvds>; + }; + }; + }; + spi2: spi@1c17000 { compatible = "allwinner,sun4i-a10-spi"; reg = <0x01c17000 0x1000>; @@ -872,7 +891,7 @@ gmac_rgmii_pins: gmac-rgmii-pins { pins = "PA0", "PA1", "PA2", "PA3", "PA4", "PA5", "PA6", - "PA7", "PA8", "PA10", + "PA7", "PA8", "PA10", "PA11", "PA12", "PA13", "PA15", "PA16"; function = "gmac"; @@ -1162,6 +1181,26 @@ pins = "PI20", "PI21"; function = "uart7"; }; + + /omit-if-no-ref/ + lcd_lvds0_pins: lcd_lvds0_pins { + allwinner,pins = + "PD0", "PD1", "PD2", "PD3", "PD4", + "PD5", "PD6", "PD7", "PD8", "PD9"; + allwinner,function = "lvds0"; + allwinner,drive = ; + allwinner,pull = ; + }; + + /omit-if-no-ref/ + lcd_lvds1_pins: lcd_lvds1_pins { + allwinner,pins = + "PD10", "PD11", "PD12", "PD13", "PD14", + "PD15", "PD16", "PD17", "PD18", "PD19"; + allwinner,function = "lvds1"; + allwinner,drive = ; + allwinner,pull = ; + }; }; timer@1c20c00 { -- 2.20.1