Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1002842ybx; Thu, 7 Nov 2019 05:54:25 -0800 (PST) X-Google-Smtp-Source: APXvYqwHsgWZ8MMdl+3887yENhl7Gr8CeV/hCPbyfH3XTsngDWlod5OuJ8ER3c8FQ0afEPITBTtz X-Received: by 2002:a17:906:a40e:: with SMTP id l14mr3124528ejz.168.1573134865640; Thu, 07 Nov 2019 05:54:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573134865; cv=none; d=google.com; s=arc-20160816; b=lF85j4Bd3eQ5XWOUJpYO01KRtv2o29uw7Z1lvRt/ymPZar1aRhM99A3n6zUkA6oiEU jG1Dd3dDKSLENwTGoqhHtzzuPQup5raabdFGpZiWIWULdHzJSqPMyV5n8WCdezUQlDiX sbBf0aSAwpSdYXBZIGkkZarWGMdUyikVjy9shnXzHllkvUcdp6JZdokW6/OKZ8fg//C/ 2xUCjmJ+gt5mICZ1/irqNF+44wjI4CxwUZAn0+W2EM5CHUNi2lKIvFN0gUtaa2tcaVF/ EiBQarnYFZRRwjuVSOG+Qq97ghUzKNMf69PxV9SroO1gBmBFGTI89KvG+YypQsqxVx0K 0aRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:cc:to:subject:date:from :references:in-reply-to; bh=G8hymJzJ104iG6n1LYHWAEhsQoDiQ/J/5A+NBB6sVJE=; b=IH7AjCd9FvbGbZXu7cqGqySZhDlkmA7MkfgKhxcMJJAlY08SEcfE+wEE3No5fk8apF piZyJDy8t9CtfedheEWp9tAOr9kxACDRN7+iTEvS7L7PUJjAUkXlOnXHJ4UqTp1/rqGt +CiPR5KeTiMU9sLrTExx0bTKX5vYvg1Lxdn0kiiFhOS6mndeA1eoBx3p0CvCdCY2NEZT K8xEmtZQ7Q+7R1RHLnUyhs0H/fCS/RrcctD5kkjo8pzmo+hwqwK8/kWsCoEf73aBPCWP E8RbVqQJ/1jHK78+mX3aGaWvkUr0cpdietQSSLwTuVxFSpkQy9cVTYOky4dIvKrtjL/G OsWg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3si1528755edj.220.2019.11.07.05.54.02; Thu, 07 Nov 2019 05:54:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389438AbfKGNw3 (ORCPT + 99 others); Thu, 7 Nov 2019 08:52:29 -0500 Received: from verein.lst.de ([213.95.11.211]:57503 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389401AbfKGNw1 (ORCPT ); Thu, 7 Nov 2019 08:52:27 -0500 Received: by verein.lst.de (Postfix, from userid 2005) id 82A2468C7B; Thu, 7 Nov 2019 14:52:25 +0100 (CET) In-Reply-To: <20191107135018.0A04068BE1@verein.lst.de> References: <20191107135018.0A04068BE1@verein.lst.de> From: Torsten Duwe Date: Tue, 29 Oct 2019 13:16:57 +0100 Subject: [PATCH v5 7/7] arm64: dts: allwinner: a64: enable ANX6345 bridge on Teres-I To: Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Rutland , Thierry Reding , David Airlie , Daniel Vetter , Andrzej Hajda , Laurent Pinchart , Icenowy Zheng , Sean Paul , Vasily Khoruzhick , Harald Geyer , Greg Kroah-Hartman , Thomas Gleixner Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Message-Id: <20191107135225.82A2468C7B@verein.lst.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Teres-I has an anx6345 bridge connected to the RGB666 LCD output, and the I2C controlling signals are connected to I2C0 bus. Enable it in the device tree, and enable the display engine, video mixer and tcon0 as well. Signed-off-by: Icenowy Zheng Signed-off-by: Torsten Duwe --- .../boot/dts/allwinner/sun50i-a64-teres-i.dts | 45 ++++++++++++++++++++-- 1 file changed, 41 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts index 1069e7012c9c..970415106dcf 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts @@ -100,18 +100,41 @@ status = "okay"; }; +&de { + status = "okay"; +}; + &ehci1 { status = "okay"; }; -/* The ANX6345 eDP-bridge is on i2c0. There is no linux (mainline) - * driver for this chip at the moment, the bootloader initializes it. - * However it can be accessed with the i2c-dev driver from user space. - */ &i2c0 { clock-frequency = <100000>; status = "okay"; + + anx6345: anx6345@38 { + compatible = "analogix,anx6345"; + reg = <0x38>; + reset-gpios = <&pio 3 24 GPIO_ACTIVE_LOW>; /* PD24 */ + dvdd25-supply = <®_dldo2>; + dvdd12-supply = <®_dldo3>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + anx6345_in: endpoint { + remote-endpoint = <&tcon0_out_anx6345>; + }; + }; + }; + }; +}; + +&mixer0 { + status = "okay"; }; &mmc0 { @@ -319,6 +342,20 @@ status = "okay"; }; +&tcon0 { + pinctrl-names = "default"; + pinctrl-0 = <&lcd_rgb666_pins>; + + status = "okay"; +}; + +&tcon0_out { + tcon0_out_anx6345: endpoint@0 { + reg = <0>; + remote-endpoint = <&anx6345_in>; + }; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>; -- 2.16.4