From: Abhinav Kumar <abhinavk@codeaurora.org> To: dri-devel@lists.freedesktop.org Cc: dianders@chromium.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Abhinav Kumar <abhinavk@codeaurora.org>, bjorn.andersson@linaro.org, Sandeep Panda <spanda@codeaurora.org>, mka@chromium.org, seanpaul@chromium.org, hoegsberg@google.com Subject: [PATCH v5] arm64: dts: sdm845: Add display nodes to MTP dts Date: Wed, 5 Dec 2018 19:35:10 -0800 [thread overview] Message-ID: <1544067310-7306-1-git-send-email-abhinavk@codeaurora.org> (raw) Add the display nodes containing information about the panel, DSI configuration and board specific pin configuration to the SDM845 MTP device tree file. This patch depends on the following: https://patchwork.freedesktop.org/series/51909/ Changes in v4: - patch introduced in the series - move around added nodes to preserve alphabetical order (Doug Anderson) Changes in v5: - include board specific pin configuration (Doug Anderson) - remove display timing from the panel node Signed-off-by: Sandeep Panda <spanda@codeaurora.org> Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org> Signed-off-by: Abhinav Kumar <abhinavk@codeaurora.org> --- arch/arm64/boot/dts/qcom/sdm845-mtp.dts | 118 ++++++++++++++++++++++++++++++++ 1 file changed, 118 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts index d667eee..ee63783 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-mtp.dts @@ -7,6 +7,7 @@ /dts-v1/; +#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/regulator/qcom,rpmh-regulator.h> #include "sdm845.dtsi" @@ -343,11 +344,98 @@ }; }; +&dsi0 { + status = "okay"; + qcom,dual-dsi-mode; + qcom,master-dsi; + qcom,sync-dual-dsi; + + vdda-supply = <&vdda_mipi_dsi0_1p2>; + + panel@0 { + compatible = "truly,nt35597-2K-display"; + reg = <0>; + + vdda-supply = <&vreg_l14a_1p88>; + vdispp-supply = <&lab_regulator>; + vdispn-supply = <&ibb_regulator>; + + pinctrl-names = "default"; + pinctrl-0 = <&disp_mode_sel &lcd_reset_n>; + + mode-gpios = <&tlmm 52 GPIO_ACTIVE_HIGH>; + reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + panel0_in: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + + port@1 { + reg = <1>; + panel1_in: endpoint { + remote-endpoint = <&dsi1_out>; + }; + }; + }; + }; + + ports { + port@1 { + endpoint { + remote-endpoint = <&panel0_in>; + data-lanes = <0 1 2 3>; + }; + }; + }; +}; + +&dsi0_phy { + status = "okay"; + vdds-supply = <&vdda_mipi_dsi0_pll>; +}; + +&dsi1 { + status = "okay"; + + qcom,dual-dsi-mode; + qcom,sync-dual-dsi; + + vdda-supply = <&vdda_mipi_dsi1_1p2>; + + ports { + port@1 { + endpoint { + remote-endpoint = <&panel1_in>; + data-lanes = <0 1 2 3>; + }; + }; + }; +}; + +&dsi1_phy { + status = "okay"; + vdds-supply = <&vdda_mipi_dsi1_pll>; +}; + &i2c10 { status = "okay"; clock-frequency = <400000>; }; +&mdss { + status = "okay"; +}; + +&mdss_mdp { + status = "okay"; +}; + &qupv3_id_1 { status = "okay"; }; @@ -444,3 +532,33 @@ bias-pull-up; }; }; + + /* PINCTRL - board-specific pinctrl */ + +&tlmm { + disp_mode_sel: disp-mode-sel { + pinmux { + function = "gpio"; + pins = "gpio52"; + }; + + pinconf { + pins = "gpio52"; + drive-strength = <8>; + bias-disable; + }; + }; + + lcd_reset_n: lcd-reset-n { + pinmux { + function = "gpio"; + pins = "gpio6"; + }; + + pinconf { + pins = "gpio6"; + drive-strength = <8>; + bias-disable; + }; + }; +}; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2018-12-06 3:35 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-12-06 3:35 Abhinav Kumar [this message] 2018-12-07 20:59 ` Doug Anderson 2018-12-07 21:23 ` Abhinav Kumar 2018-12-07 21:37 ` Doug Anderson
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1544067310-7306-1-git-send-email-abhinavk@codeaurora.org \ --to=abhinavk@codeaurora.org \ --cc=bjorn.andersson@linaro.org \ --cc=devicetree@vger.kernel.org \ --cc=dianders@chromium.org \ --cc=dri-devel@lists.freedesktop.org \ --cc=hoegsberg@google.com \ --cc=linux-arm-msm@vger.kernel.org \ --cc=mka@chromium.org \ --cc=seanpaul@chromium.org \ --cc=spanda@codeaurora.org \ --subject='Re: [PATCH v5] arm64: dts: sdm845: Add display nodes to MTP dts' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.