Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4348327pxb; Mon, 27 Sep 2021 15:11:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyO8PxwEQbTvPXPk0XuO5hPMLFlkihbcnxcA2Q271oB6wvM+0PgdO476Nd5PxdJdSB25KA5 X-Received: by 2002:a63:4614:: with SMTP id t20mr1629587pga.372.1632780667147; Mon, 27 Sep 2021 15:11:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632780667; cv=none; d=google.com; s=arc-20160816; b=hsJ3j8p8og1HQ07fWYGQGm4cCHyr5mlhQx9OfldQmgBdhfiF3vsg9uxGqfGLI2kosU MosIzBOzyswJqdqEmftEmsexwG7FxqJFogz9OaiIwETxR/9B6mdg56IGvUSc/BzEZI1b 4dAIOAThSV9pn+NmmkLchTOKFBY+h27qOm5qqKG2d5dmhrhYX/pu2+7pWRz8zn34nlH5 nBXaYaoMsG8ViwdzmFoxdXHjDtdphVrin9UkpbhtuOBXkp9y608iyQMmx7WusQPL5nvv 73UiE5YSOiLPjZTM/ZuWzTu4Y6zYaotdx+leVaiwGJE1Aa1Rg7ZkQ3MDw7kZ3ERq/hCy fO2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pE4LoJNe6aiZGbDfJevs62XkngxPShYLVoLkOqnY23Y=; b=K1WiPZiw6kEYi5SlZ93dZ98YrvG3EfhT0rop93Q6wKClzHjZcnjmf1K16unvs4mE3D /4CJDnqissSNp7R/T6DvnFrvP7PeVi7R+8+4tW/bjeiDG/hDQHOQWBmmrX1HeM/JeBby LRgOaL94Y+QyhB2uXUL0qft3LL7hG4XvPqpnzSN88s/qr3gQFyq0rE85+wXT+pu7PvPV SnN6SPleDV0JFBXb31OPQ4uJX+ooDSEf2vlCYjwcz6JnFw1xvDjd2qvABiBv1DeTXtrx 01MeEgUpVSViq3hBIjZofbXjmY1yKxFsA5PAafUIUh0xJik2yjvMl4G+yR6GpkhHfuRD t3Ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="o2W/DcgM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j6si21656625pgq.187.2021.09.27.15.10.54; Mon, 27 Sep 2021 15:11:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="o2W/DcgM"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237769AbhI0WKe (ORCPT + 99 others); Mon, 27 Sep 2021 18:10:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237860AbhI0WK1 (ORCPT ); Mon, 27 Sep 2021 18:10:27 -0400 Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEB2DC061250 for ; Mon, 27 Sep 2021 15:07:06 -0700 (PDT) Received: by mail-ot1-x329.google.com with SMTP id g62-20020a9d2dc4000000b0054752cfbc59so20725294otb.1 for ; Mon, 27 Sep 2021 15:07:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=pE4LoJNe6aiZGbDfJevs62XkngxPShYLVoLkOqnY23Y=; b=o2W/DcgMy4QSk6OPy1n/9sjhmE64IXvDpGB3MPd88YfzrNyEdSRNnNKThJIQLf4yMM ig7pl/mm3fM26U1N0vpoyBnDw1XPHAvB1lJuqH4VTsceDgxCxZvt71E5RnMrVV4ASLFd UrGlDY/N63RPKmZOt59huAcPs0zPi+uAEzTVBUJCzdWJ65k/2I6aUdCA0dhM0gkkG5a8 4lvt8TnMbsW8Egz/RHjy1BcRZ23PxSZt5n/w1nWqiq4SJXv5JbbpTjTxeRTRcbG3COKV F2eXnvns0jB3zHGK5aQSw+vbRugvJly8IJlHiAuJX11g6WZdpP8nSz76X5QJMGnBb+Ow mKJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=pE4LoJNe6aiZGbDfJevs62XkngxPShYLVoLkOqnY23Y=; b=diER1qFJ5EuJdcTc6GWz7hG8gQqpbfzpi1ARf01hrVHHxhSyRUs/B/xD8QlVdCkNLP z4gtDdnzM9u9dkSOe21FrrKcLpKRtUjQxbZreyf4Etggfrj2x/xqlPqsKzvCWLIluIcE /+2UmQPZeKa13be7Qt0R+/PKQrDu9+Pz57PnbbROHEVgkpC8nlL1375Zvr8NDhzVmXtJ mSGNs2scKkzr/wgBiFIixGrBI2pAO2deZq9P8NM4Pi5aiVmWdbTA04/Q4Pd8JPDukvB/ lMj54ZHynUkVBo61X06LAYFa+GLyfA7ln1wVil2JZ5o0WWx2h8fm7oiO6l9icXywIfuZ S+1A== X-Gm-Message-State: AOAM5302gojvChW8EvseNSEOC0NQ1v8MXTSjgUhE8+czsqOHRf6LuiMt Ua718iReQwMNWmkqZHNwZv7OBQ== X-Received: by 2002:a9d:4618:: with SMTP id y24mr2035942ote.326.1632780426192; Mon, 27 Sep 2021 15:07:06 -0700 (PDT) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id j10sm701905oog.39.2021.09.27.15.07.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 15:07:05 -0700 (PDT) Date: Mon, 27 Sep 2021 17:07:03 -0500 From: Bjorn Andersson To: Philip Chen Cc: LKML , dianders@chromium.org, swboyd@chromium.org, Andy Gross , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH] arm64: dts: sc7180: Factor out ti-sn65dsi86 support Message-ID: References: <20210924165322.1.Ib7e63ae17e827ce0636a09d5dec9796043e4f80a@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210924165322.1.Ib7e63ae17e827ce0636a09d5dec9796043e4f80a@changeid> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 24 Sep 18:54 CDT 2021, Philip Chen wrote: > Factor out ti-sn65dsi86 edp bridge as a separate dts fragment. > This helps us introduce the second source edp bridge later. > I'd prefer to see the second patch in this series to conclude that this is the right approach. Regards, Bjorn > Signed-off-by: Philip Chen > --- > > .../boot/dts/qcom/sc7180-trogdor-coachz.dtsi | 1 + > .../boot/dts/qcom/sc7180-trogdor-lazor.dtsi | 1 + > .../boot/dts/qcom/sc7180-trogdor-pompom.dtsi | 1 + > .../arm64/boot/dts/qcom/sc7180-trogdor-r1.dts | 1 + > .../dts/qcom/sc7180-trogdor-ti-sn65dsi86.dtsi | 87 +++++++++++++++++++ > arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 81 ----------------- > 6 files changed, 91 insertions(+), 81 deletions(-) > create mode 100644 arch/arm64/boot/dts/qcom/sc7180-trogdor-ti-sn65dsi86.dtsi > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi > index a758e4d22612..1d13fba3bd2f 100644 > --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-coachz.dtsi > @@ -11,6 +11,7 @@ > ap_h1_spi: &spi0 {}; > > #include "sc7180-trogdor.dtsi" > +#include "sc7180-trogdor-ti-sn65dsi86.dtsi" > > /* Deleted nodes from trogdor.dtsi */ > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi > index 00535aaa43c9..27b26a782af9 100644 > --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-lazor.dtsi > @@ -11,6 +11,7 @@ > ap_h1_spi: &spi0 {}; > > #include "sc7180-trogdor.dtsi" > +#include "sc7180-trogdor-ti-sn65dsi86.dtsi" > > &ap_sar_sensor { > semtech,cs0-ground; > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi > index a246dbd74cc1..e7c7cad14989 100644 > --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-pompom.dtsi > @@ -11,6 +11,7 @@ > ap_h1_spi: &spi0 {}; > > #include "sc7180-trogdor.dtsi" > +#include "sc7180-trogdor-ti-sn65dsi86.dtsi" > > / { > thermal-zones { > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-r1.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-r1.dts > index 2b522f9e0d8f..457c25499863 100644 > --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-r1.dts > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-r1.dts > @@ -13,6 +13,7 @@ > ap_h1_spi: &spi0 {}; > > #include "sc7180-trogdor.dtsi" > +#include "sc7180-trogdor-ti-sn65dsi86.dtsi" > > / { > model = "Google Trogdor (rev1+)"; > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-ti-sn65dsi86.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-ti-sn65dsi86.dtsi > new file mode 100644 > index 000000000000..7b1034a5a8e9 > --- /dev/null > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-ti-sn65dsi86.dtsi > @@ -0,0 +1,87 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Google Trogdor dts fragment for the boards with TI sn65dsi86 edp bridge > + * > + * Copyright 2021 Google LLC. > + */ > + > +&dsi0_out { > + remote-endpoint = <&sn65dsi86_in>; > + data-lanes = <0 1 2 3>; > +}; > + > +&edp_brij_i2c { > + sn65dsi86_bridge: bridge@2d { > + compatible = "ti,sn65dsi86"; > + reg = <0x2d>; > + pinctrl-names = "default"; > + pinctrl-0 = <&edp_brij_en>, <&edp_brij_irq>; > + gpio-controller; > + #gpio-cells = <2>; > + > + interrupt-parent = <&tlmm>; > + interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; > + > + enable-gpios = <&tlmm 104 GPIO_ACTIVE_HIGH>; > + > + vpll-supply = <&pp1800_edp_vpll>; > + vccio-supply = <&pp1800_brij_vccio>; > + vcca-supply = <&pp1200_brij>; > + vcc-supply = <&pp1200_brij>; > + > + clocks = <&rpmhcc RPMH_LN_BB_CLK3>; > + clock-names = "refclk"; > + > + no-hpd; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + sn65dsi86_in: endpoint { > + remote-endpoint = <&dsi0_out>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + sn65dsi86_out: endpoint { > + data-lanes = <0 1>; > + remote-endpoint = <&panel_in_edp>; > + }; > + }; > + }; > + > + aux-bus { > + panel: panel { > + /* Compatible will be filled in per-board */ > + power-supply = <&pp3300_dx_edp>; > + backlight = <&backlight>; > + hpd-gpios = <&sn65dsi86_bridge 2 GPIO_ACTIVE_HIGH>; > + > + port { > + panel_in_edp: endpoint { > + remote-endpoint = <&sn65dsi86_out>; > + }; > + }; > + }; > + }; > + }; > +}; > + > +&tlmm { > + edp_brij_irq: edp-brij-irq { > + pinmux { > + pins = "gpio11"; > + function = "gpio"; > + }; > + > + pinconf { > + pins = "gpio11"; > + drive-strength = <2>; > + bias-pull-down; > + }; > + }; > +}; > diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > index 0f2b3c00e434..5ad3f15652d5 100644 > --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi > @@ -602,15 +602,6 @@ &camcc { > &dsi0 { > status = "okay"; > vdda-supply = <&vdda_mipi_dsi0_1p2>; > - > - ports { > - port@1 { > - endpoint { > - remote-endpoint = <&sn65dsi86_in>; > - data-lanes = <0 1 2 3>; > - }; > - }; > - }; > }; > > &dsi_phy { > @@ -621,65 +612,6 @@ &dsi_phy { > edp_brij_i2c: &i2c2 { > status = "okay"; > clock-frequency = <400000>; > - > - sn65dsi86_bridge: bridge@2d { > - compatible = "ti,sn65dsi86"; > - reg = <0x2d>; > - pinctrl-names = "default"; > - pinctrl-0 = <&edp_brij_en>, <&edp_brij_irq>; > - gpio-controller; > - #gpio-cells = <2>; > - > - interrupt-parent = <&tlmm>; > - interrupts = <11 IRQ_TYPE_LEVEL_HIGH>; > - > - enable-gpios = <&tlmm 104 GPIO_ACTIVE_HIGH>; > - > - vpll-supply = <&pp1800_edp_vpll>; > - vccio-supply = <&pp1800_brij_vccio>; > - vcca-supply = <&pp1200_brij>; > - vcc-supply = <&pp1200_brij>; > - > - clocks = <&rpmhcc RPMH_LN_BB_CLK3>; > - clock-names = "refclk"; > - > - no-hpd; > - > - ports { > - #address-cells = <1>; > - #size-cells = <0>; > - > - port@0 { > - reg = <0>; > - sn65dsi86_in: endpoint { > - remote-endpoint = <&dsi0_out>; > - }; > - }; > - > - port@1 { > - reg = <1>; > - sn65dsi86_out: endpoint { > - data-lanes = <0 1>; > - remote-endpoint = <&panel_in_edp>; > - }; > - }; > - }; > - > - aux-bus { > - panel: panel { > - /* Compatible will be filled in per-board */ > - power-supply = <&pp3300_dx_edp>; > - backlight = <&backlight>; > - hpd-gpios = <&sn65dsi86_bridge 2 GPIO_ACTIVE_HIGH>; > - > - port { > - panel_in_edp: endpoint { > - remote-endpoint = <&sn65dsi86_out>; > - }; > - }; > - }; > - }; > - }; > }; > > ap_sar_sensor_i2c: &i2c5 { > @@ -1245,19 +1177,6 @@ pinconf { > }; > }; > > - edp_brij_irq: edp-brij-irq { > - pinmux { > - pins = "gpio11"; > - function = "gpio"; > - }; > - > - pinconf { > - pins = "gpio11"; > - drive-strength = <2>; > - bias-pull-down; > - }; > - }; > - > en_pp3300_codec: en-pp3300-codec { > pinmux { > pins = "gpio83"; > -- > 2.33.0.685.g46640cef36-goog >