Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6532528yba; Tue, 14 May 2019 09:05:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1oyS502sI01UnrHEAe0hDGlxpbCb4iqIZPxTWvfKzhRxEcQdhZyw1RK3q4zv6RTlwuOzO X-Received: by 2002:a65:62d8:: with SMTP id m24mr38326544pgv.141.1557849939641; Tue, 14 May 2019 09:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557849939; cv=none; d=google.com; s=arc-20160816; b=Mr8FGyP0LxNRKfwGfVJ13KDuXHusj+x8nEsd+KEvVHDkEWcKtC5koo5KJOnF2PYCJ6 Zc5pRknhU/vnpwbp/qswFHrj9U9l/XHeInpZhi0THpku0NBUcTjnFvzFFWtBJnQgSe+8 sKPBZrLMqAx1RwMYd3o327jTOUpcYbEIyujvKNrihblhjmChFFqI36a6ofvCQ2TbgJZD 2pqShGHjFxP8g0HM55zqZd6fjoqAyUB9GgZPTjX4IKqBqEyO6Sz6Ho9IsGJoIHHd2hLQ qybX7M3n9OsM1T85ZE1M+gH+y6OWrzj9SiB0oYX5j1lbDkJnJxWlHNWgWkgLv9ZAXAWe r6uA== 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=oXLyDg7X7zmnFXkKyyuGWTqhCOprQLByLUILL3JbMAX5yG6dC9Uisx6RosPvHBALxb bCj+upR9kfikBf0SNMXf8vQdkFlvg6az0oz5CWzHzUfL58RCReIb4jIVx6S7yIIblmee X7eGDZClNyZmbNf+Ev2fc+lPa66/MYNNf+fuEwZ0SxaFOui9omgOxVvJ6n6AACALFms9 lRL6XWaZFQWK26YZTk7A7Mdl/QUV31blnZnm8nr/BwsM4QtEVK6qcVDn1C4G2jTHE945 IaCoPsMj72s6lxaDKBYGSIs8FLvIukbEV+CLhrJ7dvIY0m5fEF3lHWc3R/tR9WQdYD7j 2TYw== 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 f17si10816583pgn.99.2019.05.14.09.05.25; Tue, 14 May 2019 09:05:39 -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 S1726523AbfENQDD (ORCPT + 99 others); Tue, 14 May 2019 12:03:03 -0400 Received: from verein.lst.de ([213.95.11.211]:46661 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725916AbfENQDC (ORCPT ); Tue, 14 May 2019 12:03:02 -0400 Received: by newverein.lst.de (Postfix, from userid 2005) id 9EAC768C7B; Tue, 14 May 2019 18:02:41 +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 4/4] arm64: DTS: allwinner: a64: enable ANX6345 bridge on Teres-I References: <20190514155911.6C0AC68B05@newverein.lst.de> Message-Id: <20190514160241.9EAC768C7B@newverein.lst.de> Date: Tue, 14 May 2019 18:02:41 +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>;