Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp786765yba; Thu, 16 May 2019 08:55:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4rTe29e9F9YPK3bzFK5Vv7PgUq5sAQgqcrwCOCnllMlE0em/kHRJX7pA9+VqG5xuq1i9T X-Received: by 2002:a17:902:2f03:: with SMTP id s3mr24445935plb.203.1558022115756; Thu, 16 May 2019 08:55:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558022115; cv=none; d=google.com; s=arc-20160816; b=SwF7yMkgAAfIex8yvyMgjX4xpsYI8k+7vi1cZATgTNmFwZdDR5wKWOOiht+hG1MVi/ QFec29j7FfDf3mKRLLl1Wdxnqm3VdgqAFEZF6yvf/7Pt6APq9rxtEAJfatdpmrbkZNrf MJXcnE6TScFSHBST7cb0QNQsGdYihUGz8nvIkJnonLYNVqqGPM6AncRygEMgrC3U5hPs kTr7Cb7gDXloZO9rj+dkbaG+2Xql00yqf4dfFu0m0cZrw/a/xmkN8NX32P/QGrK/lC5x nEC6I1ewPDysLixAoNYuz9HZ5RyV6htX8oDj2NydpgJ+cJkMV2WhmkDJZQQIlykUmN21 jaFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:references:subject:cc:to :from; bh=+/85zxITOIX3PkVZz1tjYOUGH/z2dvkHvg9sRyqyfww=; b=F2qZ4aueHTNvKWhDSbvlt0cdvBYqw3rLjyFA2sAYWXlyBAZpMl3qZySnZw45F7Dd9+ v+YAZSv5yEnTAzn2citz3jVvIH5gPxxkMIVjhJTI0fswEk0Rx9UgvSQ+Q+AcFqkjkKWb QrMmkIDc44PHNeVD4+TM6x+25v20B8gNkad+BmeMuoSzk4lEIgh77UtVpXAZb6Ap0xYp X+AKmnMluGvVX8JZQDf5wdhrLGW8kZGAyG63CDhseJK9WWJ94dktV0PvlWciTJ8GxZvP IAMIm9huUBq9W0qa3Y0X6VGfRSLVX5m4Wv+7CJoHM5MNwyP4rvYGVj5z9Zq+PSd2vy51 yGfw== 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 68si5116982pga.147.2019.05.16.08.55.00; Thu, 16 May 2019 08:55:15 -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 S1727280AbfEPPwI (ORCPT + 99 others); Thu, 16 May 2019 11:52:08 -0400 Received: from verein.lst.de ([213.95.11.211]:60434 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727043AbfEPPwF (ORCPT ); Thu, 16 May 2019 11:52:05 -0400 Received: by newverein.lst.de (Postfix, from userid 2005) id 964B068C4E; Thu, 16 May 2019 17:51:44 +0200 (CEST) From: Torsten Duwe To: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Thierry Reding , Maxime Ripard , Chen-Yu Tsai , Archit Taneja , Andrzej Hajda , Laurent Pinchart , Icenowy Zheng , Sean Paul , Vasily Khoruzhick , Harald Geyer Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/4] arm64: DTS: allwinner: a64: enable ANX6345 bridge on Teres-I References: <20190516154943.239E668B05@newverein.lst.de> Message-Id: <20190516155144.964B068C4E@newverein.lst.de> Date: Thu, 16 May 2019 17:51:44 +0200 (CEST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Icenowy Zheng 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. Signed-off-by: Icenowy Zheng Signed-off-by: Torsten Duwe --- originally: patchwork.kernel.org/patch/10646867 Changed the reset polarity, which is active low, according to the (terse) datasheet, Teres-I and pinebook schematics, and the confusing parts of the linux driver code (not yet included here). Active low -> no more confusion. --- .../boot/dts/allwinner/sun50i-a64-teres-i.dts | 40 +++++++++++++++++-- 1 file changed, 36 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 c455b24dd079..bc1d0d6c0672 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts @@ -72,20 +72,38 @@ }; }; +&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>; pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins>; 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>; + + port { + anx6345_in: endpoint { + remote-endpoint = <&tcon0_out_anx6345>; + }; + }; + }; +}; + +&mixer0 { + status = "okay"; }; &mmc0 { @@ -258,6 +276,20 @@ vcc-hdmi-supply = <®_dldo1>; }; +&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>;