From patchwork Mon Jan 24 18:15:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sankeerth Billakanti (QUIC)" X-Patchwork-Id: 12722721 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 E3168C433FE for ; Mon, 24 Jan 2022 18:15:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245142AbiAXSPo (ORCPT ); Mon, 24 Jan 2022 13:15:44 -0500 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:34314 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245141AbiAXSPo (ORCPT ); Mon, 24 Jan 2022 13:15:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1643048144; x=1674584144; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=arZ0uTaWJp6QcmiA0BEOwSa5cV/W/erIAwkV9kyaUbM=; b=RwEW0yCb1NnkjetaqRYNUEln2NwAvx9q+9FpXOVy8sX2BUK9uNsKFFLY EaWHGwBOLyTbrm9CFgoH9sgsjJ6bofipjmoyQ5m664UY5vOsO/7LU6ttF /WP0OidURRihl8Ux1jgsCndsx4qCuac2q4svguiicvVPAuJguGQ+vOm7m g=; Received: from unknown (HELO ironmsg03-sd.qualcomm.com) ([10.53.140.143]) by alexa-out-sd-02.qualcomm.com with ESMTP; 24 Jan 2022 10:15:43 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg03-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2022 10:15:43 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Mon, 24 Jan 2022 10:15:43 -0800 Received: from sbillaka-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Mon, 24 Jan 2022 10:15:38 -0800 From: Sankeerth Billakanti To: , , , , , , , CC: Sankeerth Billakanti , , , , , , , , Subject: [PATCH v1 1/2] ARM64: dts: qcom: enable eDP panel support for sc7280 Date: Mon, 24 Jan 2022 23:45:13 +0530 Message-ID: <1643048114-2996-2-git-send-email-quic_sbillaka@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1643048114-2996-1-git-send-email-quic_sbillaka@quicinc.com> References: <1643048114-2996-1-git-send-email-quic_sbillaka@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Enable the eDP display panel support with backlight on sc7280 platform. Signed-off-by: Sankeerth Billakanti --- arch/arm64/boot/dts/qcom/sc7280-crd.dts | 127 ++++++++++++++++++++++++++++++++ 1 file changed, 127 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-crd.dts b/arch/arm64/boot/dts/qcom/sc7280-crd.dts index cd2755c..fde6f75 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-crd.dts +++ b/arch/arm64/boot/dts/qcom/sc7280-crd.dts @@ -64,6 +64,47 @@ ap_ts_pen_1v8: &i2c13 { }; }; +&mdss { + status = "okay"; +}; + +&mdss_mdp { + status = "okay"; +}; + +&mdss_edp { + status = "okay"; + + vdda-1p2-supply = <&vreg_l6b_1p2>; + vdda-0p9-supply = <&vreg_l10c_0p8>; + + ports { + port@1 { + reg = <1>; + edp_out: endpoint { + remote-endpoint = <&edp_panel_in>; + }; + }; + }; +}; + +&mdss_edp_phy { + status = "okay"; + + vdda-1p2-supply = <&vreg_l6b_1p2>; + vdda-0p9-supply = <&vreg_l10c_0p8>; +}; + +&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>; +}; + &nvme_3v3_regulator { gpio = <&tlmm 51 GPIO_ACTIVE_HIGH>; }; @@ -72,7 +113,93 @@ ap_ts_pen_1v8: &i2c13 { pins = "gpio51"; }; +&pm8350c_pwm{ + status = "okay"; +}; + +&pm8350c_gpios { + backlight_pwm_default: backlight_pwm_default { + pinconf { + pins = "gpio8"; + function = "func1"; + output-low; + bias-disable; + power-source = <0>; + qcom,drive-strength = <3>; + }; + }; +}; + +&soc { + backlight_power: backlight_power { + compatible = "regulator-fixed"; + regulator-name = "backlight_power"; + regulator-always-on; + regulator-boot-on; + }; + + edp_power: edp_power { + compatible = "regulator-fixed"; + regulator-name = "edp_power"; + + 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_default>; + }; + + edp_backlight: edp_backlight { + compatible = "pwm-backlight"; + + pwms = <&pm8350c_pwm 3 65535>; + power-supply = <&backlight_power>; + enable-gpio = <&pm8350c_gpios 7 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&backlight_pwm_default>; + }; + + edp_panel: edp_panel { + compatible = "sharp_lq140m1jw46"; + + pinctrl-names = "default"; + pinctrl-0 = <&edp_hot_plug_det>; + + power-supply = <&edp_power>; + backlight = <&edp_backlight>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + edp_panel_in: endpoint { + remote-endpoint = <&edp_out>; + }; + }; + }; + }; +}; + &tlmm { + edp_hot_plug_det: edp-hot-plug-det { + pins = "gpio60"; + function = "edp_hot"; + bias-pull-down; + input-enable; + }; + + edp_panel_power_default: edp_panel_power_default { + pins = "gpio80"; + function = "gpio"; + drive-strength = <2>; + output-high; + }; + tp_int_odl: tp-int-odl { pins = "gpio7"; function = "gpio"; From patchwork Mon Jan 24 18:15:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sankeerth Billakanti (QUIC)" X-Patchwork-Id: 12722722 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 0C53CC433F5 for ; Mon, 24 Jan 2022 18:16:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245080AbiAXSP7 (ORCPT ); Mon, 24 Jan 2022 13:15:59 -0500 Received: from alexa-out.qualcomm.com ([129.46.98.28]:56203 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243961AbiAXSP6 (ORCPT ); Mon, 24 Jan 2022 13:15:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1643048158; x=1674584158; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=SjrQNLm3+7esMzoKo8xxleZRgcv3vxJh/gbHLOQw4LQ=; b=UPjPrDCw9RTHGi/9tPFUdo1wx4Q/XQC21EAsdgJZRuIA3y2W/rJWnuj3 b0p6DBlLQlCuGkTqG0XDkAX9vIgVf+BlGvEU4Q3kXu30Z8ApFtr27WixZ GpPTd8CQrdYYTF1w1j8KlvcOQtJaHPew1gwdsdFkPBsQfU2VPJq4+e43R 0=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 24 Jan 2022 10:15:58 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2022 10:15:57 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Mon, 24 Jan 2022 10:15:57 -0800 Received: from sbillaka-linux.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Mon, 24 Jan 2022 10:15:52 -0800 From: Sankeerth Billakanti To: , , , , , , , CC: Sankeerth Billakanti , , , , , , , , Subject: [PATCH v1 2/2] drm/panel-edp: Add sharp panel support for sc7280 Date: Mon, 24 Jan 2022 23:45:14 +0530 Message-ID: <1643048114-2996-3-git-send-email-quic_sbillaka@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1643048114-2996-1-git-send-email-quic_sbillaka@quicinc.com> References: <1643048114-2996-1-git-send-email-quic_sbillaka@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add eDP panel support for sc7280 CRD platform. Signed-off-by: Sankeerth Billakanti --- drivers/gpu/drm/panel/panel-edp.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c index 176ef0c..bb2e346 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -1605,6 +1605,14 @@ static const struct panel_desc sharp_lq123p1jx31 = { }, }; +static const struct panel_desc sharp_lq140m1jw46 = { + .bpc = 8, + .size = { + .width = 309, + .height = 173, + }, +}; + static const struct drm_display_mode starry_kr122ea0sra_mode = { .clock = 147000, .hdisplay = 1920, @@ -1719,6 +1727,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "sharp,lq123p1jx31", .data = &sharp_lq123p1jx31, }, { + .compatible = "sharp_lq140m1jw46", + .data = &sharp_lq140m1jw46, + }, { .compatible = "starry,kr122ea0sra", .data = &starry_kr122ea0sra, }, {