Re: [PATCH v1 1/5] arm64: dts: mt7622: add timer, CCI-400 and PMU nodes

2018-09-25 Thread Matthias Brugger
Whole series pushed to v4.19-next/dts64

Thanks!

On 18/08/2018 18:02, Ryder Lee wrote:
> Add device tree entries for timer, ARM CCI-400 and its PMU.
> Otherwise, we add a cortex-a53-pmu node to enable hw perfevents.
> 
> Signed-off-by: Ryder Lee 
> ---
> change since v1:
> - add a pmu node.
> ---
>  arch/arm64/boot/dts/mediatek/mt7622.dtsi | 55 
> 
>  1 file changed, 55 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi 
> b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
> index de2c47bd..d297100 100644
> --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
> @@ -79,6 +79,7 @@
>   #cooling-cells = <2>;
>   enable-method = "psci";
>   clock-frequency = <13>;
> + cci-control-port = <_control2>;
>   };
>  
>   cpu1: cpu@1 {
> @@ -92,6 +93,7 @@
>   #cooling-cells = <2>;
>   enable-method = "psci";
>   clock-frequency = <13>;
> + cci-control-port = <_control2>;
>   };
>   };
>  
> @@ -113,6 +115,13 @@
>   method  = "smc";
>   };
>  
> + pmu {
> + compatible = "arm,cortex-a53-pmu";
> + interrupts = ,
> +  ;
> + interrupt-affinity = <>, <>;
> + };
> +
>   reserved-memory {
>   #address-cells = <2>;
>   #size-cells = <2>;
> @@ -218,6 +227,16 @@
>   #reset-cells = <1>;
>   };
>  
> +timer: timer@10004000 {
> +compatible = "mediatek,mt7622-timer",
> + "mediatek,mt6577-timer";
> +reg = <0 0x10004000 0 0x80>;
> +interrupts = ;
> +clocks = < CLK_INFRA_APXGPT_PD>,
> + < CLK_TOP_RTC>;
> +clock-names = "system-clk", "rtc-clk";
> +};
> +
>   scpsys: scpsys@10006000 {
>   compatible = "mediatek,mt7622-scpsys",
>"syscon";
> @@ -325,6 +344,42 @@
> <0 0x1036 0 0x2000>;
>   };
>  
> + cci: cci@1039 {
> + compatible = "arm,cci-400";
> + #address-cells = <1>;
> + #size-cells = <1>;
> + reg = <0 0x1039 0 0x1000>;
> + ranges = <0 0 0x1039 0x1>;
> +
> + cci_control0: slave-if@1000 {
> + compatible = "arm,cci-400-ctrl-if";
> + interface-type = "ace-lite";
> + reg = <0x1000 0x1000>;
> + };
> +
> + cci_control1: slave-if@4000 {
> + compatible = "arm,cci-400-ctrl-if";
> + interface-type = "ace";
> + reg = <0x4000 0x1000>;
> + };
> +
> + cci_control2: slave-if@5000 {
> + compatible = "arm,cci-400-ctrl-if";
> + interface-type = "ace";
> + reg = <0x5000 0x1000>;
> + };
> +
> + pmu@9000 {
> + compatible = "arm,cci-400-pmu,r1";
> + reg = <0x9000 0x5000>;
> + interrupts = ,
> +  ,
> +  ,
> +  ,
> +  ;
> + };
> + };
> +
>   auxadc: adc@11001000 {
>   compatible = "mediatek,mt7622-auxadc";
>   reg = <0 0x11001000 0 0x1000>;
> 


Re: [PATCH v1 1/5] arm64: dts: mt7622: add timer, CCI-400 and PMU nodes

2018-09-25 Thread Matthias Brugger
Whole series pushed to v4.19-next/dts64

Thanks!

On 18/08/2018 18:02, Ryder Lee wrote:
> Add device tree entries for timer, ARM CCI-400 and its PMU.
> Otherwise, we add a cortex-a53-pmu node to enable hw perfevents.
> 
> Signed-off-by: Ryder Lee 
> ---
> change since v1:
> - add a pmu node.
> ---
>  arch/arm64/boot/dts/mediatek/mt7622.dtsi | 55 
> 
>  1 file changed, 55 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi 
> b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
> index de2c47bd..d297100 100644
> --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
> @@ -79,6 +79,7 @@
>   #cooling-cells = <2>;
>   enable-method = "psci";
>   clock-frequency = <13>;
> + cci-control-port = <_control2>;
>   };
>  
>   cpu1: cpu@1 {
> @@ -92,6 +93,7 @@
>   #cooling-cells = <2>;
>   enable-method = "psci";
>   clock-frequency = <13>;
> + cci-control-port = <_control2>;
>   };
>   };
>  
> @@ -113,6 +115,13 @@
>   method  = "smc";
>   };
>  
> + pmu {
> + compatible = "arm,cortex-a53-pmu";
> + interrupts = ,
> +  ;
> + interrupt-affinity = <>, <>;
> + };
> +
>   reserved-memory {
>   #address-cells = <2>;
>   #size-cells = <2>;
> @@ -218,6 +227,16 @@
>   #reset-cells = <1>;
>   };
>  
> +timer: timer@10004000 {
> +compatible = "mediatek,mt7622-timer",
> + "mediatek,mt6577-timer";
> +reg = <0 0x10004000 0 0x80>;
> +interrupts = ;
> +clocks = < CLK_INFRA_APXGPT_PD>,
> + < CLK_TOP_RTC>;
> +clock-names = "system-clk", "rtc-clk";
> +};
> +
>   scpsys: scpsys@10006000 {
>   compatible = "mediatek,mt7622-scpsys",
>"syscon";
> @@ -325,6 +344,42 @@
> <0 0x1036 0 0x2000>;
>   };
>  
> + cci: cci@1039 {
> + compatible = "arm,cci-400";
> + #address-cells = <1>;
> + #size-cells = <1>;
> + reg = <0 0x1039 0 0x1000>;
> + ranges = <0 0 0x1039 0x1>;
> +
> + cci_control0: slave-if@1000 {
> + compatible = "arm,cci-400-ctrl-if";
> + interface-type = "ace-lite";
> + reg = <0x1000 0x1000>;
> + };
> +
> + cci_control1: slave-if@4000 {
> + compatible = "arm,cci-400-ctrl-if";
> + interface-type = "ace";
> + reg = <0x4000 0x1000>;
> + };
> +
> + cci_control2: slave-if@5000 {
> + compatible = "arm,cci-400-ctrl-if";
> + interface-type = "ace";
> + reg = <0x5000 0x1000>;
> + };
> +
> + pmu@9000 {
> + compatible = "arm,cci-400-pmu,r1";
> + reg = <0x9000 0x5000>;
> + interrupts = ,
> +  ,
> +  ,
> +  ,
> +  ;
> + };
> + };
> +
>   auxadc: adc@11001000 {
>   compatible = "mediatek,mt7622-auxadc";
>   reg = <0 0x11001000 0 0x1000>;
> 


[PATCH v1 1/5] arm64: dts: mt7622: add timer, CCI-400 and PMU nodes

2018-08-18 Thread Ryder Lee
Add device tree entries for timer, ARM CCI-400 and its PMU.
Otherwise, we add a cortex-a53-pmu node to enable hw perfevents.

Signed-off-by: Ryder Lee 
---
change since v1:
- add a pmu node.
---
 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 55 
 1 file changed, 55 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi 
b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
index de2c47bd..d297100 100644
--- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
@@ -79,6 +79,7 @@
#cooling-cells = <2>;
enable-method = "psci";
clock-frequency = <13>;
+   cci-control-port = <_control2>;
};
 
cpu1: cpu@1 {
@@ -92,6 +93,7 @@
#cooling-cells = <2>;
enable-method = "psci";
clock-frequency = <13>;
+   cci-control-port = <_control2>;
};
};
 
@@ -113,6 +115,13 @@
method  = "smc";
};
 
+   pmu {
+   compatible = "arm,cortex-a53-pmu";
+   interrupts = ,
+;
+   interrupt-affinity = <>, <>;
+   };
+
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
@@ -218,6 +227,16 @@
#reset-cells = <1>;
};
 
+timer: timer@10004000 {
+compatible = "mediatek,mt7622-timer",
+ "mediatek,mt6577-timer";
+reg = <0 0x10004000 0 0x80>;
+interrupts = ;
+clocks = < CLK_INFRA_APXGPT_PD>,
+ < CLK_TOP_RTC>;
+clock-names = "system-clk", "rtc-clk";
+};
+
scpsys: scpsys@10006000 {
compatible = "mediatek,mt7622-scpsys",
 "syscon";
@@ -325,6 +344,42 @@
  <0 0x1036 0 0x2000>;
};
 
+   cci: cci@1039 {
+   compatible = "arm,cci-400";
+   #address-cells = <1>;
+   #size-cells = <1>;
+   reg = <0 0x1039 0 0x1000>;
+   ranges = <0 0 0x1039 0x1>;
+
+   cci_control0: slave-if@1000 {
+   compatible = "arm,cci-400-ctrl-if";
+   interface-type = "ace-lite";
+   reg = <0x1000 0x1000>;
+   };
+
+   cci_control1: slave-if@4000 {
+   compatible = "arm,cci-400-ctrl-if";
+   interface-type = "ace";
+   reg = <0x4000 0x1000>;
+   };
+
+   cci_control2: slave-if@5000 {
+   compatible = "arm,cci-400-ctrl-if";
+   interface-type = "ace";
+   reg = <0x5000 0x1000>;
+   };
+
+   pmu@9000 {
+   compatible = "arm,cci-400-pmu,r1";
+   reg = <0x9000 0x5000>;
+   interrupts = ,
+,
+,
+,
+;
+   };
+   };
+
auxadc: adc@11001000 {
compatible = "mediatek,mt7622-auxadc";
reg = <0 0x11001000 0 0x1000>;
-- 
1.9.1



[PATCH v1 1/5] arm64: dts: mt7622: add timer, CCI-400 and PMU nodes

2018-08-18 Thread Ryder Lee
Add device tree entries for timer, ARM CCI-400 and its PMU.
Otherwise, we add a cortex-a53-pmu node to enable hw perfevents.

Signed-off-by: Ryder Lee 
---
change since v1:
- add a pmu node.
---
 arch/arm64/boot/dts/mediatek/mt7622.dtsi | 55 
 1 file changed, 55 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi 
b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
index de2c47bd..d297100 100644
--- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi
@@ -79,6 +79,7 @@
#cooling-cells = <2>;
enable-method = "psci";
clock-frequency = <13>;
+   cci-control-port = <_control2>;
};
 
cpu1: cpu@1 {
@@ -92,6 +93,7 @@
#cooling-cells = <2>;
enable-method = "psci";
clock-frequency = <13>;
+   cci-control-port = <_control2>;
};
};
 
@@ -113,6 +115,13 @@
method  = "smc";
};
 
+   pmu {
+   compatible = "arm,cortex-a53-pmu";
+   interrupts = ,
+;
+   interrupt-affinity = <>, <>;
+   };
+
reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
@@ -218,6 +227,16 @@
#reset-cells = <1>;
};
 
+timer: timer@10004000 {
+compatible = "mediatek,mt7622-timer",
+ "mediatek,mt6577-timer";
+reg = <0 0x10004000 0 0x80>;
+interrupts = ;
+clocks = < CLK_INFRA_APXGPT_PD>,
+ < CLK_TOP_RTC>;
+clock-names = "system-clk", "rtc-clk";
+};
+
scpsys: scpsys@10006000 {
compatible = "mediatek,mt7622-scpsys",
 "syscon";
@@ -325,6 +344,42 @@
  <0 0x1036 0 0x2000>;
};
 
+   cci: cci@1039 {
+   compatible = "arm,cci-400";
+   #address-cells = <1>;
+   #size-cells = <1>;
+   reg = <0 0x1039 0 0x1000>;
+   ranges = <0 0 0x1039 0x1>;
+
+   cci_control0: slave-if@1000 {
+   compatible = "arm,cci-400-ctrl-if";
+   interface-type = "ace-lite";
+   reg = <0x1000 0x1000>;
+   };
+
+   cci_control1: slave-if@4000 {
+   compatible = "arm,cci-400-ctrl-if";
+   interface-type = "ace";
+   reg = <0x4000 0x1000>;
+   };
+
+   cci_control2: slave-if@5000 {
+   compatible = "arm,cci-400-ctrl-if";
+   interface-type = "ace";
+   reg = <0x5000 0x1000>;
+   };
+
+   pmu@9000 {
+   compatible = "arm,cci-400-pmu,r1";
+   reg = <0x9000 0x5000>;
+   interrupts = ,
+,
+,
+,
+;
+   };
+   };
+
auxadc: adc@11001000 {
compatible = "mediatek,mt7622-auxadc";
reg = <0 0x11001000 0 0x1000>;
-- 
1.9.1