Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1861977ybm; Thu, 23 May 2019 07:50:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPA3iebIDblz7wIthw3KEMEa2KBKR8VuPY10vNV8tTzo9tD0+9GdDmgcIodAbNhkxnGKD9 X-Received: by 2002:aa7:8b57:: with SMTP id i23mr22926113pfd.54.1558623009463; Thu, 23 May 2019 07:50:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558623009; cv=none; d=google.com; s=arc-20160816; b=KaH3zjbM9ROwsP25KeSjJC+ub0mtb47h01WS9FhgSvdWpOAP9xdAUNf1hekO5Y3R7t nkeDhbAbHXFEatdw4w99MJp6QXAyxNhbra0WmSDwF/pUZXk5m5XhnmaZZLZMN9XikhwN +S11hFEadn/JdT0Y8p63j8WwciyMqNk+LnbwHS0emBpiXg/2xc6gPhu2n7iZnQSPByji McygSTRO5ThfCc2rXJrITUbveYFhOgfskWByk6tKR588xZfr/k+PoLtQ8oUzu1vVMO/0 8+H6k9WagfuDfZ/62SKuDaGS+sapKTw67ehHmSfFjh6l2rQFMnO6SKtxoFxk3w8tZR4c qfmQ== 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=oDQBZdIvYwIinFH3kAqUI347dxABstmtY5K29nEy8mo=; b=YvAw5MPK+1nflvlaC9MZWNHvyEeZ4jfO1n1ZdL9Ja0U3qBPSIuUTMNWPL9p1OxbeBk +MNy2isgi/Hf9hhBxWlkJ+KLnzEHyn0UnC2vf82nzfiESAArAqXTOgIU0TcxCSZIR4GA r/odUa/09TPqPG7tbF840nPQT6u6GpwouDc6fS6nhc1flFLQYH5khTPVla/wU194f2J4 Q+XI7X9sm9kstDFSzeqFCS7oNrMkkL6y42uXs78OYLlFkzH9uooc5xaK7OMYC4GlIMar r8ThAw3P2uvZqvCyutuqnLjQlhMSLjs2mlmi8yh2f8jR9bwGSk04dXoD9BDaVe1xmdrT zriA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HNr+lm9q; 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 a17si33749521pfa.108.2019.05.23.07.49.53; Thu, 23 May 2019 07:50:09 -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=HNr+lm9q; 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 S1730947AbfEWOsa (ORCPT + 99 others); Thu, 23 May 2019 10:48:30 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:42004 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730710AbfEWOs3 (ORCPT ); Thu, 23 May 2019 10:48:29 -0400 Received: by mail-ot1-f65.google.com with SMTP id i2so5648951otr.9; Thu, 23 May 2019 07:48:29 -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=oDQBZdIvYwIinFH3kAqUI347dxABstmtY5K29nEy8mo=; b=HNr+lm9qrX2w9n+0DHcc8xytZybxavfe+23JfHpNgn9pseNEgnEK0UTfApLytl3g9K JPfxVu6Ozzs/AWTnnt8YvUO5noCYyjb5r5fdlvOHCfygSc6lc6s1KKX2G3aaws7mPgYr ZODo9q5J84Pvb7LDzjMKYtcbpQ+k2785cimOMJKhSrEL/BNOkiA0DvyCiJlQd6XyUI1R xNge4WJLZqLPiNoaN0sHp8dNBpGSjdaULSEzM5V2FUa5iUxU0A3dZd+sWCwd1nq5pZHA rpR1DJxBRNF/ZBXNbinJniHhF3t9FMym1Z0QdoAn0/JDUL+MySyXAunoctX5Mb4/gG/q 77/A== 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=oDQBZdIvYwIinFH3kAqUI347dxABstmtY5K29nEy8mo=; b=dRYybhbEErmG0SXXtCM2+6rQPD7J5RSxG6Fn7uk6sYPA7omqVqTyMQ3wALqHmivPkD fal0DBw0yLX+9AMFxramoAtUP5OxYtBXTuXsBlizfNU0JcaNNb8aHgUYfRwPFWiY15YH 5EGQaTUrlPzfjlFo4Cj/QVeAK27dAMT+nhRDrQXLqX0bmCHVQq40LGPaxRT0kr3Su9Jw jxq84J9Nh3awmYZO3Nezxt7nWo2dd1pP2AayIHkOiyNQ2sDM4soe8OQ1oRrUffNX8oj3 PfwqsEoCYr4A6lGZX5TKg+HdVnILnXL/H7bj//XHA7ihOFiFqYQJWSe4swqodH3PtHd2 bB7g== X-Gm-Message-State: APjAAAX+Sv48a54vE+T9lyvAOf8+IFGO3oDYMjDY0z39QUrUEY4mTFwp qlr03cLGB9W9ekKARG0kj6Y13M4l21cCyg7XWfQ= X-Received: by 2002:a05:6830:2047:: with SMTP id f7mr29121701otp.312.1558622909158; Thu, 23 May 2019 07:48:29 -0700 (PDT) MIME-Version: 1.0 References: <20190523065013.2719D68B05@newverein.lst.de> <20190523065404.BB60F68B20@newverein.lst.de> In-Reply-To: <20190523065404.BB60F68B20@newverein.lst.de> From: Vasily Khoruzhick Date: Thu, 23 May 2019 07:48:03 -0700 Message-ID: Subject: Re: [PATCH 6/6] arm64: dts: allwinner: a64: enable ANX6345 bridge on Teres-I To: Torsten Duwe Cc: Maxime Ripard , Chen-Yu Tsai , Rob Herring , Mark Rutland , Thierry Reding , David Airlie , Daniel Vetter , Andrzej Hajda , Laurent Pinchart , Icenowy Zheng , Sean Paul , Harald Geyer , Greg Kroah-Hartman , Thomas Gleixner , 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 Wed, May 22, 2019 at 11:54 PM 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. eDP output goes > to an Innolux N116BGE panel. > > Enable it in the device tree. > > Signed-off-by: Icenowy Zheng > Signed-off-by: Torsten Duwe > --- > arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts | 65 +++++++++++++++++-- > 1 file changed, 61 insertions(+), 4 deletions(-) > > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-teres-i.dts > @@ -65,6 +65,21 @@ > }; > }; > > + panel: panel { > + compatible ="innolux,n116bge", "simple-panel"; IIRC Rob wanted it to be edp-connector, not simple-panel. Also you need to introduce edp-connector binding. > + status = "okay"; > + power-supply = <®_dcdc1>; > + backlight = <&backlight>; > + > + ports { > + panel_in: port { > + panel_in_edp: endpoint { > + remote-endpoint = <&anx6345_out>; > + }; > + }; > + }; > + }; > + > reg_usb1_vbus: usb1-vbus { > compatible = "regulator-fixed"; > regulator-name = "usb1-vbus"; > @@ -81,20 +96,48 @@ > }; > }; > > +&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>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + anx6345_in: endpoint { > + remote-endpoint = <&tcon0_out_anx6345>; > + }; > + }; > + port@1 { > + anx6345_out: endpoint { > + remote-endpoint = <&panel_in_edp>; > + }; > + }; > + }; > + }; > +}; > + > +&mixer0 { > + status = "okay"; > }; > > &mmc0 { > @@ -279,6 +322,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>;