From patchwork Thu Nov 14 22:07:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakob Hauser X-Patchwork-Id: 843222 Received: from sonic302-21.consmr.mail.ir2.yahoo.com (sonic302-21.consmr.mail.ir2.yahoo.com [87.248.110.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14B7D1CABA for ; Thu, 14 Nov 2024 22:48:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=87.248.110.84 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731624486; cv=none; b=rPhXW6dKEfYHZebn+O8FGs1i2hDhE0y46EUkivF2rfKIphN9V7YJ7k8Sf5rMCrEXkl/QdLR5eh+mzzGfV/LFlBLd5PG4yMW2oTeo/kD7H1nNMoRt1ZN60tJWEl75rd/a3QJay4xw0LbsgdCJnEAiAzfOg/S3l1zqpD7cRIW2uQ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731624486; c=relaxed/simple; bh=8JzMaKrWlHH5Cvl6LgJr+4ysWctwILSWMc8f7gCR6pI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:References; b=uV35p0/QLO5k/m8Fg+2UdsEbkWnn2qPzsaqOgvg5cgwEoDM+MmenYDDG3C/bi/m/kZjkDcJ9Byws17XtXOyIsPpaxprFRbnZxNr/jOC4eVrgPjhnsrq2lLLX9PA2tpgReI2loQMEPN8LOjGKE9Q7CINoW3u2AyC8t5Ss3mL/I9I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rocketmail.com; spf=pass smtp.mailfrom=rocketmail.com; dkim=pass (2048-bit key) header.d=rocketmail.com header.i=@rocketmail.com header.b=F17U+qx+; arc=none smtp.client-ip=87.248.110.84 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=rocketmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rocketmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=rocketmail.com header.i=@rocketmail.com header.b="F17U+qx+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1731624483; bh=VUBlByHueXDmXb9r+9Fa/bqlDMIi1BWz7KWtmRZf9Fs=; h=From:To:Cc:Subject:Date:References:From:Subject:Reply-To; b=F17U+qx+T9+FoXZm97FMTm/7aTsug8xQq0loJK/VQ2+LT4KWMugav+ZQMr3nwo8ecFyx4kx93C68P78UtNPDv4C6QKvjv6NjT3EKbURGpf/H7uW8syNJ+KuZiYmdCdxUqqmKU8x2STAnJejVvnEccq+wHTaQfrRKFB22yFwbCVZyCz3E/7+42fvkAhLaUglMNq9pHSc6+ZWqNu5Gbc3YblVOMb5pfM+RLMpHruj6QjfJ/Kq1wZvxbDNm30zLGMTVi6k1EN0HxnrtXijmucXxN93v64cqvUFnljHL6UVBQIh9WKwSCMUWKEnYbvXC02wrZWz+gW6D4uml170s7xgK9Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1731624483; bh=vBamw3v4m9MWPBwnSe470CSJfhkkSIz6kQPaPkWBOp4=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=DujjbeYKtmPLikmswOZkR5CO0beJMgP3dFVPC99rfU8o1fusQUVm4UeOnvMcwIydhvJWrUWdSVjtLGks8gXnhVLAyXgShg/HGVFskzdv8MpdRsraRT3x+nUky+g+RVNp/+xDcXkAfMhqdGl2+ZH1GGO2W1+fRpn62Xit+tuj9nCbk7an2AKuiYrD1NTaexP+XZpgDRTbZZOHfejZZTtTAp1N1S8Nl8brmEflyRYFiiGh1XiZ74Kqgc++FZKW40ockbDxEqi9ttHBPb34E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nf012Dm6TTUg.1kEzIV77S4A8DEo.MeMMM05DP1DlfOEJCLGprrLP7Rh81u1.h2xtD lefhal02VEmW.1Cd_qTqY6uAXggKKnQheCWw_HEyw00eSZSdNaAp98zzn6Rszv.cOxAyJbRNCKtp xD35gidCwJ5vH7XUGfoM.PRY7vpy2vp44CuA0PqjqoPKKRGIrQuZNziyEW8uqFZSAvcgm4XScwbj 3xGptjnV8tOlW2WdeLyGg7oe3Bd.hzYbSmtlNF27omIsfYjuqltZUNKfms0VVVI7iUNvChYNPAMa lXz5tsL4sj04mYE9un1XTEBZyGfmZH9_FwewnLCw- X-Sonic-MF: X-Sonic-ID: cd958c09-780b-4501-906f-d67165ec7c2a Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.ir2.yahoo.com with HTTP; Thu, 14 Nov 2024 22:48:03 +0000 Received: by hermes--production-ir2-c694d79d9-mr45v (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 60a5376110f1aceebb11253fa288c199; Thu, 14 Nov 2024 22:07:30 +0000 (UTC) From: Jakob Hauser To: Bjorn Andersson , Konrad Dybcio Cc: Stephan Gerhold , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Jakob Hauser Subject: [PATCH] arm64: dts: qcom: msm8916-samsung-serranove: Add display panel Date: Thu, 14 Nov 2024 23:07:18 +0100 Message-Id: <20241114220718.12248-1-jahau@rocketmail.com> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20241114220718.12248-1-jahau.ref@rocketmail.com> From: Stephan Gerhold Add the Samsung S6E88A0-AMS427AP24 panel to the device tree for the Samsung Galaxy S4 Mini Value Edition. By default the panel displays everything horizontally flipped, so add "flip-horizontal" to the panel node to correct that. Signed-off-by: Stephan Gerhold Co-developed-by: Jakob Hauser Signed-off-by: Jakob Hauser --- Patch base is kernel/git/qcom/linux.git current branch "arm64-for-6.13". The panel driver was recently added to linux-next: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/log/drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c?h=next-20241101 The associated dt-binding in linux-next is: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/Documentation/devicetree/bindings/display/panel/samsung,s6e88a0-ams427ap24.yaml?h=next-20241101 --- .../dts/qcom/msm8916-samsung-serranove.dts | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts b/arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts index 5ce8f1350abc..caad1dead2e0 100644 --- a/arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts +++ b/arch/arm64/boot/dts/qcom/msm8916-samsung-serranove.dts @@ -321,6 +321,41 @@ &blsp_uart2 { status = "okay"; }; +&gpu { + status = "okay"; +}; + +&mdss { + status = "okay"; +}; + +&mdss_dsi0 { + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&mdss_default>; + pinctrl-1 = <&mdss_sleep>; + + panel@0 { + compatible = "samsung,s6e88a0-ams427ap24"; + reg = <0>; + + vdd3-supply = <&pm8916_l17>; + vci-supply = <&pm8916_l6>; + reset-gpios = <&tlmm 25 GPIO_ACTIVE_LOW>; + flip-horizontal; + + port { + panel_in: endpoint { + remote-endpoint = <&mdss_dsi0_out>; + }; + }; + }; +}; + +&mdss_dsi0_out { + data-lanes = <0 1>; + remote-endpoint = <&panel_in>; +}; + &mpss_mem { reg = <0x0 0x86800000 0x0 0x5a00000>; }; @@ -330,6 +365,13 @@ &pm8916_resin { linux,code = ; }; +&pm8916_rpm_regulators { + pm8916_l17: l17 { + regulator-min-microvolt = <2850000>; + regulator-max-microvolt = <2850000>; + }; +}; + &pm8916_vib { status = "okay"; }; @@ -425,6 +467,22 @@ imu_irq_default: imu-irq-default-state { bias-disable; }; + mdss_default: mdss-default-state { + pins = "gpio25"; + function = "gpio"; + + drive-strength = <8>; + bias-disable; + }; + + mdss_sleep: mdss-sleep-state { + pins = "gpio25"; + function = "gpio"; + + drive-strength = <2>; + bias-pull-down; + }; + muic_i2c_default: muic-i2c-default-state { pins = "gpio105", "gpio106"; function = "gpio";