From: Archit Taneja <architt@codeaurora.org>
To: John Stultz <john.stultz@linaro.org>
Cc: vinay simha <vinaysimha@inforcecomputing.com>,
andy.gross@linaro.org, robdclark@gmail.com,
linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org
Subject: Re: [RFC][PATCH 5/4] arm: dts: qcom: apq8064: Add dsi, gpu and iommu nodes
Date: Mon, 12 Sep 2016 14:16:15 +0530 [thread overview]
Message-ID: <57D66B57.6020609@codeaurora.org> (raw)
In-Reply-To: <1473291167-8658-1-git-send-email-john.stultz@linaro.org>
Hi,
On 09/08/2016 05:02 AM, John Stultz wrote:
> Sort of tagging on to Archit's patchset here.
>
> Adds the core gpu, and dsi nodes for the apq8064 needed
> to get graphics working on the nexus7 and other devices.
>
> Feedback would be greatly appreciated!
>
> Cc: Archit Taneja <architt@codeaurora.org>
> Cc: vinay simha <vinaysimha@inforcecomputing.com>
> Cc: andy.gross@linaro.org
> Cc: robdclark@gmail.com
> Cc: linux-arm-msm@vger.kernel.org
> Cc: dri-devel@lists.freedesktop.org
> Signed-off-by: John Stultz <john.stultz@linaro.org>
> ---
> arch/arm/boot/dts/qcom-apq8064-pins.dtsi | 10 ++
> arch/arm/boot/dts/qcom-apq8064.dtsi | 227 +++++++++++++++++++++++++++++++
> 2 files changed, 237 insertions(+)
>
> diff --git a/arch/arm/boot/dts/qcom-apq8064-pins.dtsi b/arch/arm/boot/dts/qcom-apq8064-pins.dtsi
> index 6b801e7..7bb0677 100644
> --- a/arch/arm/boot/dts/qcom-apq8064-pins.dtsi
> +++ b/arch/arm/boot/dts/qcom-apq8064-pins.dtsi
> @@ -284,4 +284,14 @@
> bias-disable = <0>;
> };
> };
> +
> + dsi_panel_pinctrl: dsi-panel-pinctrl {
> + mux {
> + pins = "gpio54";
> + function = "gpio";
> + bias-pull-up;
> + drive-strength = <8>;
> + };
> + };
> +
> };
> diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi b/arch/arm/boot/dts/qcom-apq8064.dtsi
> index 35a5759..49333cc 100644
> --- a/arch/arm/boot/dts/qcom-apq8064.dtsi
> +++ b/arch/arm/boot/dts/qcom-apq8064.dtsi
> @@ -919,6 +919,228 @@
> reg = <0x1a400000 0x100>;
> };
>
> + gpu: adreno-3xx@4300000 {
> + compatible = "qcom,adreno-3xx";
> + reg = <0x04300000 0x20000>;
> + reg-names = "kgsl_3d0_reg_memory";
> + interrupts = <GIC_SPI 80 0>;
> + interrupt-names = "kgsl_3d0_irq";
> + clock-names =
> + "core_clk",
> + "iface_clk",
> + "mem_clk",
> + "mem_iface_clk";
> + clocks =
> + <&mmcc GFX3D_CLK>,
> + <&mmcc GFX3D_AHB_CLK>,
> + <&mmcc GFX3D_AXI_CLK>,
> + <&mmcc MMSS_IMEM_AHB_CLK>;
> + qcom,chipid = <0x03020002>;
> +
> + iommus = <&gfx3d 0
> + &gfx3d 1
> + &gfx3d 2
> + &gfx3d 3
> + &gfx3d 4
> + &gfx3d 5
> + &gfx3d 6
> + &gfx3d 7
> + &gfx3d 8
> + &gfx3d 9
> + &gfx3d 10
> + &gfx3d 11
> + &gfx3d 12
> + &gfx3d 13
> + &gfx3d 14
> + &gfx3d 15
> + &gfx3d 16
> + &gfx3d 17
> + &gfx3d 18
> + &gfx3d 19
> + &gfx3d 20
> + &gfx3d 21
> + &gfx3d 22
> + &gfx3d 23
> + &gfx3d 24
> + &gfx3d 25
> + &gfx3d 26
> + &gfx3d 27
> + &gfx3d 28
> + &gfx3d 29
> + &gfx3d 30
> + &gfx3d 31
> + &gfx3d1 0
> + &gfx3d1 1
> + &gfx3d1 2
> + &gfx3d1 3
> + &gfx3d1 4
> + &gfx3d1 5
> + &gfx3d1 6
> + &gfx3d1 7
> + &gfx3d1 8
> + &gfx3d1 9
> + &gfx3d1 10
> + &gfx3d1 11
> + &gfx3d1 12
> + &gfx3d1 13
> + &gfx3d1 14
> + &gfx3d1 15
> + &gfx3d1 16
> + &gfx3d1 17
> + &gfx3d1 18
> + &gfx3d1 19
> + &gfx3d1 20
> + &gfx3d1 21
> + &gfx3d1 22
> + &gfx3d1 23
> + &gfx3d1 24
> + &gfx3d1 25
> + &gfx3d1 26
> + &gfx3d1 27
> + &gfx3d1 28
> + &gfx3d1 29
> + &gfx3d1 30
> + &gfx3d1 31>;
> +
> + qcom,gpu-pwrlevels {
> + compatible = "qcom,gpu-pwrlevels";
> + qcom,gpu-pwrlevel@0 {
> + qcom,gpu-freq = <450000000>;
> + };
> + qcom,gpu-pwrlevel@1 {
> + qcom,gpu-freq = <27000000>;
> + };
> + };
> + };
> +
> + mmss_sfpb: syscon@5700000 {
> + compatible = "syscon";
> + reg = <0x5700000 0x70>;
> + };
> +
> + dsi0: qcom,mdss_dsi@4700000 {
The 'qcom,' prefix above isn't preferred here. This should
rather be:
dsi0: dsi@4700000 {
> + compatible = "qcom,mdss-dsi-ctrl";
> + label = "MDSS DSI CTRL->0";
> + #address-cells = <1>;
> + #size-cells = <0>;
> + interrupts = <GIC_SPI 82 0>;
> + reg = <0x04700000 0x200>;
> + reg-names = "dsi_ctrl";
> +
> + clocks = <&mmcc DSI_M_AHB_CLK>,
> + <&mmcc DSI_S_AHB_CLK>,
> + <&mmcc AMP_AHB_CLK>,
> + <&mmcc DSI_CLK>,
> + <&mmcc DSI1_BYTE_CLK>,
> + <&mmcc DSI_PIXEL_CLK>,
> + <&mmcc DSI1_ESC_CLK>,
> + <&mmcc DSI1_BYTE_SRC>,
> + <&mmcc DSI1_ESC_SRC>,
> + <&mmcc DSI_SRC>,
> + <&mmcc DSI_PIXEL_SRC>;
> + clock-names = "iface_clk", "bus_clk", "core_mmss_clk",
> + "src_clk", "byte_clk", "pixel_clk",
> + "core_clk", "byte_clk_src", "esc_clk_src",
> + "dsi_clk_src", "pixel_clk_src";
The last 4 clocks shouldn't be specified since they aren't actually
inputs to the DSI block. Instead, we should set default parents for
these clocks using assigned clocks:
assigned-clocks = <&mmcc DSI1_BYTE_SRC>,
<&mmcc DSI1_ESC_SRC>,
<&mmcc DSI_SRC>,
<&mmcc DSI_PIXEL_SRC>;
assigned-clock-parents = <&dsi0_phy 0>,
<&dsi0_phy 0>,
<&dsi0_phy 1>,
<&dsi0_phy 1>;
> +
> + syscon-sfpb = <&mmss_sfpb>;
> + phys = <&dsi0_phy>;
> + ports {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + port@0 {
> + reg = <0>;
> + dsi0_in: endpoint {
> + };
> + };
> +
> + port@1 {
> + reg = <1>;
> + dsi0_out: endpoint {
> + };
> + };
> + };
> + };
> +
> +
> + dsi0_phy: qcom,mdss_dsi_phy@4700200 {
Same as suggestion as for dsi0. Also, we tend to use hyphen
instead of underscore for phy names. This should be:
dsi0_phy: dsi-phy@4700200 {
The DSI bindings look good otherwise. Thanks for taking this up.
Archit
> + compatible = "qcom,dsi-phy-28nm-8960";
> + #clock-cells = <1>;
> +
> + reg = <0x04700200 0x100>,
> + <0x04700300 0x200>,
> + <0x04700500 0x5c>;
> + reg-names = "dsi_pll", "dsi_phy", "dsi_phy_regulator";
> + clock-names = "iface_clk";
> + clocks = <&mmcc DSI_M_AHB_CLK>;
> + };
> +
> +
> + mdp_port0: iommu@7500000 {
> + compatible = "qcom,apq8064-iommu";
> + #iommu-cells = <1>;
> + clock-names =
> + "smmu_pclk",
> + "iommu_clk";
> + clocks =
> + <&mmcc SMMU_AHB_CLK>,
> + <&mmcc MDP_AXI_CLK>;
> + reg = <0x07500000 0x100000>;
> + interrupts =
> + <GIC_SPI 63 0>,
> + <GIC_SPI 64 0>;
> + qcom,ncb = <2>;
> + };
> +
> + mdp_port1: iommu@7600000 {
> + compatible = "qcom,apq8064-iommu";
> + #iommu-cells = <1>;
> + clock-names =
> + "smmu_pclk",
> + "iommu_clk";
> + clocks =
> + <&mmcc SMMU_AHB_CLK>,
> + <&mmcc MDP_AXI_CLK>;
> + reg = <0x07600000 0x100000>;
> + interrupts =
> + <GIC_SPI 61 0>,
> + <GIC_SPI 62 0>;
> + qcom,ncb = <2>;
> + };
> +
> + gfx3d: iommu@7c00000 {
> + compatible = "qcom,apq8064-iommu";
> + #iommu-cells = <1>;
> + clock-names =
> + "smmu_pclk",
> + "iommu_clk";
> + clocks =
> + <&mmcc SMMU_AHB_CLK>,
> + <&mmcc GFX3D_AXI_CLK>;
> + reg = <0x07c00000 0x100000>;
> + interrupts =
> + <GIC_SPI 69 0>,
> + <GIC_SPI 70 0>;
> + qcom,ncb = <3>;
> + };
> +
> + gfx3d1: iommu@7d00000 {
> + compatible = "qcom,apq8064-iommu";
> + #iommu-cells = <1>;
> + clock-names =
> + "smmu_pclk",
> + "iommu_clk";
> + clocks =
> + <&mmcc SMMU_AHB_CLK>,
> + <&mmcc GFX3D_AXI_CLK>;
> + reg = <0x07d00000 0x100000>;
> + interrupts =
> + <GIC_SPI 210 0>,
> + <GIC_SPI 211 0>;
> + qcom,ncb = <3>;
> + };
> +
> pcie: pci@1b500000 {
> compatible = "qcom,pcie-apq8064", "snps,dw-pcie";
> reg = <0x1b500000 0x1000
> @@ -1016,6 +1238,11 @@
> "hdmi_clk",
> "tv_clk";
>
> + iommus = <&mdp_port0 0
> + &mdp_port0 2
> + &mdp_port1 0
> + &mdp_port1 2>;
> +
> ports {
> #address-cells = <1>;
> #size-cells = <0>;
>
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
next prev parent reply other threads:[~2016-09-12 8:46 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-08 5:55 [PATCH 0/4] drm/msm: HDMI support on IFC6410 Archit Taneja
2016-07-08 5:55 ` [PATCH 1/4] drm/msm/mdp4: Fix issue with LCDC/LVDS port parsing Archit Taneja
2016-07-08 5:55 ` [PATCH 2/4] drm/msm/hdmi: Use more DT friendly GPIO names Archit Taneja
2016-07-13 13:45 ` Rob Herring
2016-07-14 8:34 ` Archit Taneja
2016-07-08 5:55 ` [PATCH 3/4] arm: dts: qcom: apq8064: Add display DT nodes Archit Taneja
2016-07-08 5:55 ` [PATCH 4/4] arm: dts: qcom: apq8064-ifc6410: Add HDMI support Archit Taneja
2016-09-01 13:36 ` [PATCH v2 0/4] drm/msm: HDMI support on IFC6410 Archit Taneja
2016-09-01 13:36 ` [PATCH v2 1/4] drm/msm/mdp4: Fix issue with LCDC/LVDS port parsing Archit Taneja
2016-09-07 22:17 ` John Stultz
2016-09-01 13:36 ` [PATCH v2 2/4] drm/msm/hdmi: Clean up HDMI gpio DT bindings Archit Taneja
[not found] ` <1472737015-29382-3-git-send-email-architt-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2016-09-07 22:18 ` John Stultz
2016-09-12 13:19 ` Rob Herring
2016-09-13 7:12 ` Archit Taneja
2016-09-13 13:15 ` Archit Taneja
2016-09-01 13:36 ` [PATCH v2 3/4] arm: dts: qcom: apq8064: Add display DT nodes Archit Taneja
2016-09-07 22:19 ` John Stultz
2016-09-01 13:36 ` [PATCH v2 4/4] arm: dts: qcom: apq8064-ifc6410: Add HDMI support Archit Taneja
2016-09-07 23:32 ` [RFC][PATCH 5/4] arm: dts: qcom: apq8064: Add dsi, gpu and iommu nodes John Stultz
2016-09-07 23:32 ` [PATCH 6/4] arm: dts: qcom: apq8064-nexus7: Add DSI and panel nodes John Stultz
2016-09-08 5:05 ` vinay simha
2016-09-08 4:58 ` [RFC][PATCH 5/4] arm: dts: qcom: apq8064: Add dsi, gpu and iommu nodes vinay simha
2016-09-12 8:46 ` Archit Taneja [this message]
2016-09-13 15:21 ` [PATCH v3 0/4] drm/msm: HDMI support on IFC6410 Archit Taneja
2016-09-13 15:21 ` [PATCH v3 1/4] drm/msm/mdp4: Fix issue with LCDC/LVDS port parsing Archit Taneja
[not found] ` <1473780097-11388-1-git-send-email-architt-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2016-09-13 15:21 ` [PATCH v3 2/4] drm/msm/hdmi: Clean up HDMI gpio DT bindings Archit Taneja
2016-09-13 19:31 ` Rob Herring
2016-09-13 15:21 ` [PATCH v3 4/4] arm: dts: qcom: apq8064-ifc6410: Add HDMI support Archit Taneja
2016-09-13 15:21 ` [PATCH v3 3/4] arm: dts: qcom: apq8064: Add display DT nodes Archit Taneja
[not found] ` <1473780097-11388-4-git-send-email-architt-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2016-09-13 21:44 ` Stephen Boyd
2016-09-14 17:57 ` Archit Taneja
2016-09-23 6:33 ` [PATCH v4 0/2] drm/msm: HDMI support on IFC6410 Archit Taneja
2016-09-23 6:33 ` [PATCH v4 1/2] arm: dts: qcom: apq8064: Add display DT nodes Archit Taneja
2016-09-23 6:33 ` [PATCH v4 2/2] arm: dts: qcom: apq8064-ifc6410: Add HDMI support Archit Taneja
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=57D66B57.6020609@codeaurora.org \
--to=architt@codeaurora.org \
--cc=andy.gross@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=john.stultz@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=robdclark@gmail.com \
--cc=vinaysimha@inforcecomputing.com \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).