Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp359314ybv; Thu, 13 Feb 2020 01:44:29 -0800 (PST) X-Google-Smtp-Source: APXvYqxQXSBcVGogtf76srB5h47vBnfzEAP35k3cKa4v21ybrSCXBGoqO88K3NRv9wEXOroVBctf X-Received: by 2002:a9d:7dc9:: with SMTP id k9mr12602423otn.117.1581587068997; Thu, 13 Feb 2020 01:44:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581587068; cv=none; d=google.com; s=arc-20160816; b=Pd2h242pY83ryHLCQ6GLrJ3/IJXeRJSb1ogiAj8LNumYRUqi/1wBiTTVVi5fYPmDdI 2YkuipDfHG3XwfNh2Tgkch7QPyFd2/UgNrO7ohJgMObGHYgA0uk2S0XW+1vnpw6tp5/p UWyXnofmCQ/ZwDxJiSPjVAQBmg1WjpnXsN7OU3A25o2uxZk/GPZwNt1yo6EeMxse340v QgcmKxbWeLdFwmAlZtkFbkYNAas4dj1qNXQo/FRSmx9ETCGH9n8fZOcZ02+/me612n7P qIwrrmphpDSrKneM+OaGlGvEHRjV7Zu/FGjb+eZ6Mj6ALJLtXpggVAEyQj7Y7/i3MM0U DwgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=mraLXR1UzZtD3bIaM15nHcYWwvQLOE+cfoM1QmqErKE=; b=jBkhq7FQkYT01Z3BLUKR3Y5dLKT2nsCEZ42xW3fm/i+yplRpnX99hC8SM+ObFmE+mj o+yVKGn+O0fGw6Lk3bIwpPh8HPpOMr5/oO8TE00AOfs1LkC3A2XBHkAN4fFIy/HXbo4b nTlZIKLXyorXWcIixpMz1nRkE83M5scZTAsNNtQumx5CB48FJcczy4ORWi9CmNTvSd+z CZ/WtqIXVH5Fb8JywmB7X3MWXOwvjLptTISBvmjzNnyYyCpQ7QeHiOsWHV0WCcqMu3xQ nscuo1HhpVGs0img3jYTw2SiWM0m9mvp+wf8EFbt4UEco2hpgORWbf1l1i5MKg+ZtkGX 7ydQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=o8B+D7eX; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=EmmPIq3b; 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=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si877790otk.154.2020.02.13.01.44.16; Thu, 13 Feb 2020 01:44:28 -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=@cerno.tech header.s=fm2 header.b=o8B+D7eX; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=EmmPIq3b; 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=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729808AbgBMJnI (ORCPT + 99 others); Thu, 13 Feb 2020 04:43:08 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:38995 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729440AbgBMJnI (ORCPT ); Thu, 13 Feb 2020 04:43:08 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 4EE0721F8E; Thu, 13 Feb 2020 04:43:07 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 13 Feb 2020 04:43:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=mraLXR1UzZtD3bIaM15nHcYWwvQ LOE+cfoM1QmqErKE=; b=o8B+D7eXShRldG2XErB+8R+Wmqoa06qXCcf+BnBa+AI LfZQQggfxmWFW2+GvwCiMvpwdgs/LQOahAJEvCP914588AkZ2QwYON0CeEvZw0b9 ZSNvXrrTJgptXcVYe4UU9iwNX0Pwwu0JVddpUNY1Sfm2yQ5SJNTPSGQXSxvAttPN j4QmaFnLP1SG82MWk3PRx+SaiKvXzdgnj4+ae764VkzGA2b+ItNFBRsOnXEztnTc nkRhbVOdJGqUJk1B1tNOI4BavCXfPjSjnX5UYn6n+FKYLWwQ3IityLC4SL14xteK MA/CzvK+882O5ccKpsZh9kJxsa3HWcV0JeFvEI+esYw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=mraLXR 1UzZtD3bIaM15nHcYWwvQLOE+cfoM1QmqErKE=; b=EmmPIq3bT5Ve+6LefZTiyh ejdDpz0Gj/W0/zIjZyfBTR8R2I/f/WRHLVAETa9iBQCYFxtuWUrpUjJPykSpfLor pOop7sY58AOcNFzt2rFXI+WFExCYMflVMD90R7veW2dl8Y9oxvgaqar0e1a2pFAZ NOMhvAI+wLylBGRsjyJXU1/LIzed8WJNa7OUXMVh9nRgvFv8wOkNXyODC2+oujWD np8bGTGFbeHISNe9Sb7O6AH7k8CUrLr59iNdGvKGoNr1EBq2ux82fp/1Fv9/RcyU N2ttnu+pSkE6WjsWtiNDqAAmFvPgGGOlk8W87aIlEyB5Y/5o0ZA14M511vMvx/dg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrieekgddtiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucfkphepledtrd ekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id 2C73D3280063; Thu, 13 Feb 2020 04:43:06 -0500 (EST) Date: Thu, 13 Feb 2020 10:43:04 +0100 From: Maxime Ripard To: andrey.lebedev@gmail.com Cc: 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, linux-sunxi@googlegroups.com, Andrey Lebedev Subject: Re: [PATCH v2 2/2] ARM: sun7i: dts: Add LVDS panel support on A20 Message-ID: <20200213094304.hf3glhgmquypxpyf@gilmour.lan> References: <20200210195633.GA21832@kedthinkpad> <20200212222355.17141-2-andrey.lebedev@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zztmkqxcnfnc34uw" Content-Disposition: inline In-Reply-To: <20200212222355.17141-2-andrey.lebedev@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --zztmkqxcnfnc34uw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Feb 13, 2020 at 12:23:57AM +0200, andrey.lebedev@gmail.com wrote: > 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 And this prefix should be ARM: dts: sun7i ;) > --- > 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>; > + }; A new line here would be nice > 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>; > + }; > + }; > + }; > + There's no point in creating that panel. > 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 { underscores in the node names will create a dtc warning at compilation, you should use lcd-lvds0-pins instead. > + allwinner,pins = > + "PD0", "PD1", "PD2", "PD3", "PD4", > + "PD5", "PD6", "PD7", "PD8", "PD9"; > + allwinner,function = "lvds0"; > + allwinner,drive = ; > + allwinner,pull = ; Those properties are deprecated and should be replaced by pins and functions. allwinner,drive and allwinner,pull are at their default values and can be dropped. This will create a spurious warning message for TCON1, since we adjusted the driver to tell it supports LVDS, but there's no LVDS reset line, so we need to make it finer grained. Maybe adding a tcon0 / tcon1 compatible? Chen-Yu, any thought? Maxime --zztmkqxcnfnc34uw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXkUaKAAKCRDj7w1vZxhR xWvqAQDWlCEogDZ5hH+fBXPvo6T5UizTKCW8akmEaSCXi1OH0AEAuYrejnkpB02Z OIBbgDk1XuTQW5eT8yzabddVdXyjego= =IugG -----END PGP SIGNATURE----- --zztmkqxcnfnc34uw--