diff mbox

[1/3] ARM64: DT: add gpu for msm8916

Message ID 20170525174822.27996-2-robdclark@gmail.com (mailing list archive)
State Deferred
Delegated to: Andy Gross
Headers show

Commit Message

Rob Clark May 25, 2017, 5:48 p.m. UTC
Signed-off-by: Rob Clark <robdclark@gmail.com>
---
 arch/arm64/boot/dts/qcom/msm8916.dtsi | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Comments

Stephen Boyd May 31, 2017, 12:11 a.m. UTC | #1
On 05/25, Rob Clark wrote:
> Signed-off-by: Rob Clark <robdclark@gmail.com>
> ---
>  arch/arm64/boot/dts/qcom/msm8916.dtsi | 35 +++++++++++++++++++++++++++++++++++
>  1 file changed, 35 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi
> index ab30939..f9b8a28 100644
> --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi
> +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi
> @@ -698,6 +698,41 @@
>  			#thermal-sensor-cells = <1>;
>  		};
>  
> +		gpu_opp_table: opp_table {
> +			compatible = "operating-points-v2";
> +
> +			opp@400000000 {

We recently changed the binding to have dash instead of at sign:

			opp-400000000 {

> +				opp-hz = /bits/ 64 <400000000>;
> +			};
> +			opp@19200000 {
> +				opp-hz = /bits/ 64 <19200000>;
> +			};
> +		};

This should be outside of soc node.

> +
> +		gpu@01c00000 {

Drop leading 0 on unit addresses please.

> +			compatible = "qcom,adreno-306.0", "qcom,adreno";
> +			reg = <0x01c00000 0x20000>;
> +			reg-names = "kgsl_3d0_reg_memory";
> +			interrupts = <0 33 0>;

Can we get an irq trigger type?

			interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>

> +			interrupt-names = "kgsl_3d0_irq";
> +			clock-names =
> +			    "core",
> +			    "iface",
> +			    "mem",
> +			    "mem_iface",
> +			    "alt_mem_iface",
> +			    "gfx3d_clk";

It's still called gfx3d_clk? Too bad we couldn't get rid of that
last _clk one.
diff mbox

Patch

diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi
index ab30939..f9b8a28 100644
--- a/arch/arm64/boot/dts/qcom/msm8916.dtsi
+++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi
@@ -698,6 +698,41 @@ 
 			#thermal-sensor-cells = <1>;
 		};
 
+		gpu_opp_table: opp_table {
+			compatible = "operating-points-v2";
+
+			opp@400000000 {
+				opp-hz = /bits/ 64 <400000000>;
+			};
+			opp@19200000 {
+				opp-hz = /bits/ 64 <19200000>;
+			};
+		};
+
+		gpu@01c00000 {
+			compatible = "qcom,adreno-306.0", "qcom,adreno";
+			reg = <0x01c00000 0x20000>;
+			reg-names = "kgsl_3d0_reg_memory";
+			interrupts = <0 33 0>;
+			interrupt-names = "kgsl_3d0_irq";
+			clock-names =
+			    "core",
+			    "iface",
+			    "mem",
+			    "mem_iface",
+			    "alt_mem_iface",
+			    "gfx3d_clk";
+			clocks =
+			    <&gcc GCC_OXILI_GFX3D_CLK>,
+			    <&gcc GCC_OXILI_AHB_CLK>,
+			    <&gcc GCC_OXILI_GMEM_CLK>,
+			    <&gcc GCC_BIMC_GFX_CLK>,
+			    <&gcc GCC_BIMC_GPU_CLK>,
+			    <&gcc GFX3D_CLK_SRC>;
+			power-domains = <&gcc OXILI_GDSC>;
+			operating-points-v2 = <&gpu_opp_table>;
+		};
+
 		mdss: mdss@1a00000 {
 			compatible = "qcom,mdss";
 			reg = <0x1a00000 0x1000>,