Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6638104yba; Tue, 14 May 2019 10:51:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtortbNXU/BzR4rYgVUh+yKWrNy5E9gTmJ2L2chnhEB5WSYAP3jdin1Ynf2P0F9G7a2ODE X-Received: by 2002:a17:902:f085:: with SMTP id go5mr31049475plb.53.1557856272540; Tue, 14 May 2019 10:51:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557856272; cv=none; d=google.com; s=arc-20160816; b=xxBPxQbNeHhLYYjnH7bT2aG/cFuVkJup9MJrpArqyxZk8+HisPwDMErqyutk8qtNHs 9MK0Je1UaQOCBTIWwHssUqDduDUGAwzYiOu1zeKfKXlHQJW7kUohYqpfoaiaHbZGVfY7 1P4fwab7YUP/gU2vO26FBMeoF/A07eTtJMMMUL/difWad/yFrFzVIwJ4biEz8vuyEJzK M6X0URyLa3n4uwKZIMcHq3jVN+ZWroYHka/VLEy+2Qpp3xd4lencUFL19OLyoxog6WOf XZMaanqAqmZf70ii0nVEP4p35jcBuFdx97Im0BHLTc+4nDBOfqsxrKDqwd0nTBA4XyLd OrWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=NgsTwqqp4QTELA2VQObpORPn+MSwt+1NAVlS7rJZ1DM=; b=X6AYbk3qIi+6vRZe7jrz4UmcMzod9BRHYuaQgX8wsoj6cbd07N1h1/iUvxhdzaAxGV veuB+tVk69NxIXPZEmO1yntfWgvVtskdygel8vzvUvSWvCIikLHP9G4x3dfKVI1CCtAC 96xXq/4soOv7T61WTq1RbZSm4pvBMLiiKiHntEMuhyYY45tMJ2iK2LhBWoe+vivj32kZ ObV5yWSSizINdZc4epMqzNbtKG7OPi8bBeFjFvMNK3PxUAhKUbuaCbuZJp4mTkJPvYXN /ajqunxYoEAwvtGAgN2y47uDOMLgYWyZb4RxKsP1juhmPvXOGAqjuz8lrzYTVM+r0YBU 7Itw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ewXY1DQN; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id co15si21724788plb.330.2019.05.14.10.50.56; Tue, 14 May 2019 10:51:12 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ewXY1DQN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727024AbfENRs1 (ORCPT + 99 others); Tue, 14 May 2019 13:48:27 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:45468 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726180AbfENRs1 (ORCPT ); Tue, 14 May 2019 13:48:27 -0400 Received: by mail-oi1-f196.google.com with SMTP id w144so7282824oie.12; Tue, 14 May 2019 10:48:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NgsTwqqp4QTELA2VQObpORPn+MSwt+1NAVlS7rJZ1DM=; b=ewXY1DQNTyonbjv+uTp/T9kh8QUq73Y/yojjn/k8dI5sHJfbFDieQe+sL4QVPoQuBN 1K4IVk3HQPF5Xur2KlUYUApzaPpx5qQ5pLt/9FMS/f10GwvcepdhPMtXWr+RwfnH3tZD eEoQdSlKXwdPMc4Y1zR78QoDyYqWjxFJgAuEnUgkFn+9rhBEnwuUJwzdnGMbS+eDOFWN zmYR9xiCmg9RcnXOAm/KBdm9mhUJ8lArU4QOmDepTfTPOCw16hBCppqu4vphtFDX8JqR k+BGeZSFdkKzb2PwtxyGo+NUDXZIjNWnQs8o5+p7VrxZ9LJFLS9NQt5B76M5sKKZKewt m1yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NgsTwqqp4QTELA2VQObpORPn+MSwt+1NAVlS7rJZ1DM=; b=mEMFPOWMK1khrzhXB6UW5qp/7q4LSU+Ss5gunT+YCBNyJS8RLGnui/IeDlbTGg3EKS 5mwrYJ41YKveLi6cymv0xfwXwLAieeVypEmnTjLd9DWq+5NCiB6e0qEd5r4CylF3bgqh kWurD7hEkmVovA9csGSnxvcYh0j5K8tXzSICxX3F8u6E9mJoco+7Gvs+yBGbk5w3p0ir 1WIhNg1nso4mOkQZK1nz+a75o37VGzbs2gnflPxGidQW/KFKGnvL6Ub+KBU91Pn3Eha7 oS8kGVlBo9gPqGZu3V2pMwIpCiABg5580bzZuIPAQ/ISeCWmbOZjhDiZ4mCHRN05bJiq RKjA== X-Gm-Message-State: APjAAAWI8LvXw8xVQQueK881CezmcfTdWL37KOm+UhJItJZJ5D5wV8es /mBwPP0XPZMoeAGd1lj5+CU++JM+x8Mz8luRsLQ= X-Received: by 2002:aca:240d:: with SMTP id n13mr3609989oic.145.1557856105979; Tue, 14 May 2019 10:48:25 -0700 (PDT) MIME-Version: 1.0 References: <20190514155911.6C0AC68B05@newverein.lst.de> <20190514160241.9EAC768C7B@newverein.lst.de> In-Reply-To: <20190514160241.9EAC768C7B@newverein.lst.de> From: Vasily Khoruzhick Date: Tue, 14 May 2019 10:48:40 -0700 Message-ID: Subject: Re: [PATCH 4/4] arm64: DTS: allwinner: a64: enable ANX6345 bridge on Teres-I To: Torsten Duwe Cc: 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 , Harald Geyer , dri-devel , devicetree , arm-linux , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 14, 2019 at 9:03 AM Torsten Duwe wrote: > > 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>; > + }; > + }; It doesn't comply with bindings document. You need to add out endpoint as well, and to do so you need to add bindings for eDP connector first and then implement panel driver. See Rob's suggestions here: http://patchwork.ozlabs.org/patch/1042593/ > + }; > +}; > + > +&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>;