From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22B2CC433FE for ; Thu, 17 Mar 2022 21:23:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230240AbiCQVYh (ORCPT ); Thu, 17 Mar 2022 17:24:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230195AbiCQVYg (ORCPT ); Thu, 17 Mar 2022 17:24:36 -0400 Received: from mail-oo1-xc2f.google.com (mail-oo1-xc2f.google.com [IPv6:2607:f8b0:4864:20::c2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12C0D12ACE for ; Thu, 17 Mar 2022 14:23:19 -0700 (PDT) Received: by mail-oo1-xc2f.google.com with SMTP id s203-20020a4a3bd4000000b003191c2dcbe8so8013284oos.9 for ; Thu, 17 Mar 2022 14:23:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=OSDPwmZWTp87KAIy56WntFqaaFxosNFz2qqqMdiQW6w=; b=PJSF+SEnFIXKdHu3Posg9gntmUOehMEVLlRwTbnF1+4F7G+er1T969Y9ngviAXdzSN WMR2zF5dWsm+M1j1KuCH6P5qEmzm7jrw7rSRKE9YLViPhsImpNxr5Qr6j9QcfSHAzYoK ViP0HOoRbn6P9jB+5NFGJm65SroZFBoGUteSU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=OSDPwmZWTp87KAIy56WntFqaaFxosNFz2qqqMdiQW6w=; b=NMnLuh8abLCOd+HF0vqVSY7kOtTXQph2DZfAhIACt6alzpFHj2tDtW6bILZpmUv3uU NPGTSvVVON3wKJl+rIvoLUzbXtv94QnVra4E8TVZAqgdnz6LBsOzNcFWlYbLgmVN240g /XM6DNi7/P42qCy5NL71pEUnUjWas81KPoHlT9Zb//nUHqz82JfvGtAnS2NP2iqBRUS9 uUlagsEBuIcuh6N3H/4VP3gUuWuYk0vBZYYTRZM6Ckt+FQXJ2AEF5J3J1xrNf2cW1W7s bx/+wewUfS/Hc25qY/NalUmGlT4jMIhxx0SjrlPCUejBLC/tj6tSHDZHuqHCoB3InnYm igWg== X-Gm-Message-State: AOAM533VW3vwRNTdGzmFqDdw4TilWyKf6FdChJGC7rHw4NEzqgt+8K4E G/V97twYJoOFKy+67PB6FsPPAqJFdPEPIhQwnYISOw== X-Google-Smtp-Source: ABdhPJw06bFhb833+vINYAHpOMiySRBg+3pJhhdSUg3v/t91YQ4C0lwpA5ljXOcGX9capHP3ozNx73UBjrV0d5X78P0= X-Received: by 2002:a05:6870:c0cb:b0:da:2bcc:aa09 with SMTP id e11-20020a056870c0cb00b000da2bccaa09mr2695488oad.63.1647552198396; Thu, 17 Mar 2022 14:23:18 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 17 Mar 2022 17:23:17 -0400 MIME-Version: 1.0 In-Reply-To: <1647452154-16361-3-git-send-email-quic_sbillaka@quicinc.com> References: <1647452154-16361-1-git-send-email-quic_sbillaka@quicinc.com> <1647452154-16361-3-git-send-email-quic_sbillaka@quicinc.com> From: Stephen Boyd User-Agent: alot/0.10 Date: Thu, 17 Mar 2022 17:23:17 -0400 Message-ID: Subject: Re: [PATCH v5 2/9] arm64: dts: qcom: sc7280: Add support for eDP panel on CRD To: Sankeerth Billakanti , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: robdclark@gmail.com, seanpaul@chromium.org, quic_kalyant@quicinc.com, quic_abhinavk@quicinc.com, dianders@chromium.org, quic_khsieh@quicinc.com, agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, krzk+dt@kernel.org, sean@poorly.run, airlied@linux.ie, daniel@ffwll.ch, thierry.reding@gmail.com, sam@ravnborg.org, dmitry.baryshkov@linaro.org, quic_vproddut@quicinc.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Sankeerth Billakanti (2022-03-16 10:35:47) > diff --git a/arch/arm64/boot/dts/qcom/sc7280-crd.dts b/arch/arm64/boot/dts/qcom/sc7280-crd.dts > index e2efbdd..2df654e 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280-crd.dts > +++ b/arch/arm64/boot/dts/qcom/sc7280-crd.dts > @@ -7,6 +7,7 @@ > > /dts-v1/; > > +#include > #include "sc7280-idp.dtsi" > #include "sc7280-idp-ec-h1.dtsi" > > @@ -21,6 +22,27 @@ > chosen { > stdout-path = "serial0:115200n8"; > }; > + > + edp_3v3_regulator: edp-3v3-regulator { > + compatible = "regulator-fixed"; > + regulator-name = "edp_3v3_regulator"; > + > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + > + gpio = <&tlmm 80 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&edp_panel_power>; > + }; > + > + vreg_edp_bp: vreg-edp-bp-regulator { > + compatible = "regulator-fixed"; > + regulator-name = "vreg_edp_bp"; > + regulator-always-on; > + regulator-boot-on; > + }; > }; > > &apps_rsc { > @@ -76,6 +98,58 @@ ap_ts_pen_1v8: &i2c13 { > }; > }; > > +&mdss { > + status = "okay"; > +}; > + > +&mdss_dp { > + status = "okay"; > + > + pinctrl-names = "default"; > + pinctrl-0 = <&dp_hot_plug_det>; > + data-lanes = <0 1>; > + vdda-1p2-supply = <&vreg_l6b_1p2>; > + vdda-0p9-supply = <&vreg_l1b_0p8>; > +}; > + > +&mdss_edp { > + status = "okay"; > + > + data-lanes = <0 1 2 3>; Is this property necessary? It looks like the default. > + vdda-1p2-supply = <&vreg_l6b_1p2>; > + vdda-0p9-supply = <&vreg_l10c_0p8>; > + > + aux-bus { Can this move to sc7280.dtsi and get a phandle? > + edp_panel: edp-panel { I'd prefer edp_panel: panel { because there's only one panel node at this level. > + compatible = "edp-panel"; > + > + power-supply = <&edp_3v3_regulator>; This is board specific, but I thought it was on the qcard so we should move this to sc7280-qcard.dtsi? > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + port@0 { > + reg = <0>; > + edp_panel_in: endpoint { This can be shortened to port { edp_panel_in: endpoint { according to panel-edp.yaml > + remote-endpoint = <&mdss_edp_out>; > + }; > + }; > + }; > + }; > + }; > +}; > + > +&mdss_edp_out { > + remote-endpoint = <&edp_panel_in>; > +}; > + > +&mdss_edp_phy { > + status = "okay"; > +}; > + > +&mdss_mdp { > + status = "okay"; > +}; > + > &nvme_3v3_regulator { > gpio = <&tlmm 51 GPIO_ACTIVE_HIGH>; > }; > @@ -84,7 +158,26 @@ ap_ts_pen_1v8: &i2c13 { > pins = "gpio51"; > }; > > +&pm8350c_gpios { > + edp_bl_power: edp-bl-power { Is this used in a later patch? > + pins = "gpio7"; > + function = "normal"; > + qcom,drive-strength = ; > + }; > + > + edp_bl_pwm: edp-bl-pwm { Is this used in a later patch? Can it be moved to the patch that uses it? > + pins = "gpio8"; > + function = "func1"; > + qcom,drive-strength = ; > + }; > +}; > + > &tlmm { > + edp_panel_power: edp-panel-power { > + pins = "gpio80"; > + function = "gpio"; function of gpio is unnecessary. Where is the bias and drive-strength settings? > + }; > + > tp_int_odl: tp-int-odl { > pins = "gpio7"; > function = "gpio"; > -- > 2.7.4 >