Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4480208pxb; Mon, 27 Sep 2021 18:53:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkT3Nx+HBC2qR1gShTOp/oJ+rXsS7G2ViOi2s+3XtwbLwnlFTzdFwvPMxmkWxWVXtanQR0 X-Received: by 2002:a17:90a:4fc4:: with SMTP id q62mr26829pjh.159.1632794012623; Mon, 27 Sep 2021 18:53:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632794012; cv=none; d=google.com; s=arc-20160816; b=PJlcEH2b6KJ0cA4MyI99NGw+VRHg3PysS7iZDHwuZXU3wFn4Jy0F5rGSCAFMdtTP4l UdKNNEwmgVNJf2gur6iOB6XuIIL+JE66l6BypeKA1n3b7+bXgz3IRKpNGQPHMoVZ8NS9 EU5Ce9uBLBbYb+ZysTwg3xl/2xQyiI9sTYPvV21U8NhCz2uIb03ET2BA2gE1j8KeU51m UtBGoShP9yxXATe0sjWBiUqaPpwZjiFESHQOgP7XghrfaaioA79/4icjj1lI1NDDZIc0 T70yMQpYqyto1aTiUbcjm9RwW57fM+hpqY8top19IBvcp4EZ7gWwQ/TEv4rvAI3Q1q+D r/qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=EuUTukvCpi090Ch8dilcH0ZbWY/oyx0dABKBe0VRp4E=; b=CqK2SvJaVq7h9sF8tNG0bu//r/U5nodNUPJmiJTzbOeMtdnXd0C9b5ZK5eYJ2S95h+ zJqbpN3xcsI93riDuiH6AmUhNoiyjVi6f0LAlgYtn9DVMRsWuHpOyFtQ1pyh4F0ud3yb YI6KifwUc0Szo+1+qALGsmZt+/5Pk3JSYIkzrUTMqI/ndoUXjTnEOzuaHmF96NsVgFgt 3Pvx3eMHWEMXslBuGKfDraLkjvgtxfJS1tzdHVO1M0m2XNLJSVXH2+2W6O7MGCRelXIw XrgniIzhvzElBFgyoZtbUTgvVUbAJebKjv9tszys8i0NmFv8Z+zrnowsmyv86KJrKNw/ GzBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TLNBfxn5; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q1si25451705plb.331.2021.09.27.18.53.19; Mon, 27 Sep 2021 18:53:32 -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=@chromium.org header.s=google header.b=TLNBfxn5; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238494AbhI1ByO (ORCPT + 99 others); Mon, 27 Sep 2021 21:54:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238453AbhI1ByN (ORCPT ); Mon, 27 Sep 2021 21:54:13 -0400 Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D711C061740 for ; Mon, 27 Sep 2021 18:52:35 -0700 (PDT) Received: by mail-yb1-xb30.google.com with SMTP id h2so28340126ybi.13 for ; Mon, 27 Sep 2021 18:52:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EuUTukvCpi090Ch8dilcH0ZbWY/oyx0dABKBe0VRp4E=; b=TLNBfxn5lXrNCEVTViF+/bsXa5DhtFkNYhpzGqUuc1tYOMnFt0UJTdavO0baRTnpVt l/wUeGggovcmCs50QSDY2mKOXG1Mdo25VpD8V2MhrbVo88rfEcJuAOhxz0h0Ftww3BGP s2gWAlj9O9TEhL4lXx0keBXlRdyewNdGs1FKo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EuUTukvCpi090Ch8dilcH0ZbWY/oyx0dABKBe0VRp4E=; b=hqJmehyfj3m4DNIxwvs0sjMK1c7mJcQwO3VKQ8JrAkM5V/KuupdWyCuofgso3vfi96 bTRqLBVz+3Edf1sOWqAUqDunYbe+TvWXYds3KNOBCKS9B7oX7SV5L3UifCVWl0eRWgTl JsoZIUGfjYxf4Br1U5ERzQisV1YK9FnHJWt4unmmC765P6IyOaBJaqXzQHU9VRRDgV0w zFE3HpJAM1VMl5ctEyV/UQZBf3Oho6+OfYiW18awkIUromGQKtCcO4M2otmpVSeveHT5 I4HWft0/UW3r6vMJ7BWVpeCmzgI8uAtI2YB1d6XuqCXwc3F/jU4V+53jJUUob1Kv2uiT yVkA== X-Gm-Message-State: AOAM531k/eYY+5iHBP/bddC+D/XFfSKlOHBseVc42ll86soP1nxvmDnY 0Wmv6aKF8Bus8d7bE9I3jBQvdStpHA9kG0YZ/TLYqQ== X-Received: by 2002:a25:cf07:: with SMTP id f7mr3561724ybg.100.1632793954626; Mon, 27 Sep 2021 18:52:34 -0700 (PDT) MIME-Version: 1.0 References: <20210924165322.1.Ib7e63ae17e827ce0636a09d5dec9796043e4f80a@changeid> In-Reply-To: From: Philip Chen Date: Mon, 27 Sep 2021 18:52:23 -0700 Message-ID: Subject: Re: [PATCH] arm64: dts: sc7180: Factor out ti-sn65dsi86 support To: Bjorn Andersson Cc: LKML , Douglas Anderson , Stephen Boyd , Andy Gross , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, On Mon, Sep 27, 2021 at 3:07 PM Bjorn Andersson wrote: > > 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. Sure, I posted v2 with the second patch enabling the second source edp bridge. PTAL. > > 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 > >