Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4810477ybg; Tue, 29 Oct 2019 12:44:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwh1d6v3WqmWOdtJtSU9h+aK7jPCsD71+Uv23CVEsupwj6aGxw4nyOfu1ABqpVWsU6459p6 X-Received: by 2002:a17:906:1c87:: with SMTP id g7mr5191985ejh.189.1572378272549; Tue, 29 Oct 2019 12:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572378272; cv=none; d=google.com; s=arc-20160816; b=lJ8JVGIJ9Kyt+NP2KfPkr0cRwNvsX5uy0PbhLOvRzVwVNwmYr/cD4QZnIl1HaslG6U ZVeI72J08NHJ4J1c7jPaiZPoV7ZgsJ4Nt8CRoaQAtR9rxIJm/gznhxdIjAJ98qVrE987 uLQqfrv2RjD4zWnKKULjk7SAP3krd164q9LKgWKrdVpcGljbUkGlUt7wVQNIvDm7AF8Q 4ale/mZWgrVu2Es8ARHuL6YFAcQvDHMZ+ygS6cxAvYPgNX7nh0nRCE10sq9hra7VSS6I W8fdAarpsvOs8nWRMC874DVBitVAi+NeHMti4jweXmgmkkzpwtxE+0aVrtQEW+SdUxS6 IXKg== 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=0ig9coQYv++XSQDY7jaDvI5Lilnmu/c7TCVdDmyU6FfwFJmD768S3E65X3cYxiUHXV 8ygV1u2enLBmIVDcxZ4vOxavYNVUVv2nLAjbSekI8innmeozM7iNwaPlovDC3is3EQQ6 WFgK6DVmcwJV7N2KK6Ehs5R12Vt+tsnyH9w9hgBk07RTn8q2gogLNhxir43PWjGOtukp ytGth8eOlrXaitkCVvLc9p+j+JaPOzoX/HQICUUfWLo1XaZN9OHSkZCfEmeiWzY/GXHP FV5p8ALhGvKaH7YWULNF/Rq5SP9BPKXz74gKEfBuGbHXNnJyS8wxtEt+VpI0XgqpYXOr WfjA== 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 s7si8390562eds.215.2019.10.29.12.44.08; Tue, 29 Oct 2019 12:44:32 -0700 (PDT) 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 S2390227AbfJ2PkA (ORCPT + 99 others); Tue, 29 Oct 2019 11:40:00 -0400 Received: from verein.lst.de ([213.95.11.211]:40768 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390217AbfJ2Pj6 (ORCPT ); Tue, 29 Oct 2019 11:39:58 -0400 Received: by verein.lst.de (Postfix, from userid 2005) id CD4CE68D0D; Tue, 29 Oct 2019 16:39:56 +0100 (CET) In-Reply-To: <20191029153815.C631668C4E@verein.lst.de> References: <20191029153815.C631668C4E@verein.lst.de> From: Torsten Duwe Date: Tue, 29 Oct 2019 13:16:57 +0100 Subject: [PATCH v4 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: <20191029153956.CD4CE68D0D@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