Re: [PATCH 3/5] arm: dts: rockchip: add tsadc node for RV1108 SoC

2017-10-17 Thread Heiko Stuebner
Am Donnerstag, 24. August 2017, 18:27:53 CEST schrieb Rocky Hao:
> Add tsadc needed main information for RV1108 SoC.
> 75Hz is the max clock rate supported by tsadc module.
> 
> Signed-off-by: Rocky Hao 

applied for 4.15 with Eduardo's Ack.

Please make further adjustments for things like temperatures
in follow-up patches.


Thanks
Heiko


Re: [PATCH 3/5] arm: dts: rockchip: add tsadc node for RV1108 SoC

2017-10-17 Thread Heiko Stuebner
Am Donnerstag, 24. August 2017, 18:27:53 CEST schrieb Rocky Hao:
> Add tsadc needed main information for RV1108 SoC.
> 75Hz is the max clock rate supported by tsadc module.
> 
> Signed-off-by: Rocky Hao 

applied for 4.15 with Eduardo's Ack.

Please make further adjustments for things like temperatures
in follow-up patches.


Thanks
Heiko


Re: [PATCH 3/5] arm: dts: rockchip: add tsadc node for RV1108 SoC

2017-09-14 Thread rocky.hao

Hi Caesar,

Thanks for the reply.

在 2017/9/15 10:25, Caesar Wang 写道:

Rocky,

在 2017年08月24日 18:27, Rocky Hao 写道:

Add tsadc needed main information for RV1108 SoC.
75Hz is the max clock rate supported by tsadc module.

Signed-off-by: Rocky Hao 
---
  arch/arm/boot/dts/rv1108.dtsi | 29 +
  1 file changed, 29 insertions(+)

diff --git a/arch/arm/boot/dts/rv1108.dtsi 
b/arch/arm/boot/dts/rv1108.dtsi

index 25fab0b80f53..dbdd8c2180e7 100644
--- a/arch/arm/boot/dts/rv1108.dtsi
+++ b/arch/arm/boot/dts/rv1108.dtsi
@@ -275,6 +275,25 @@
  status = "disabled";
  };
+tsadc: tsadc@1037 {
+compatible = "rockchip,rv1108-tsadc";
+reg = <0x1037 0x100>;
+interrupts = ;
+assigned-clocks = < SCLK_TSADC>;
+assigned-clock-rates = <75>;
+clocks = < SCLK_TSADC>, < PCLK_TSADC>;
+clock-names = "tsadc", "apb_pclk";
+pinctrl-names = "init", "default", "sleep";
+pinctrl-0 = <_gpio>;
+pinctrl-1 = <_out>;
+pinctrl-2 = <_gpio>;
+resets = < SRST_TSADC>;
+reset-names = "tsadc-apb";
+rockchip,hw-tshut-temp = <12>;


 From the Patch[4/5], you set the critial temperature is 95 degree. I 
will suggest the Tshut temperature is 100 degree.

Setting rockchip,hw-tshut-temp = <12>; is not a problem.
Maybe we should change the critial temperature (soc_crit: soc-crit) to 
115 degree. I will explain more in another thread Patch[4/5] arm: dts: 
rockchip: add thermal nodes for RV1108 SoC @ 
https://patchwork.kernel.org/patch/9919757/
Think about the the peripherial devices,  the 120 degree will damage 
some chips.



+#thermal-sensor-cells = <1>;
+status = "disabled";
+};
+
  adc: adc@1038c000 {
  compatible = "rockchip,rv1108-saradc", 
"rockchip,rk3399-saradc";

  reg = <0x1038c000 0x100>;
@@ -642,6 +661,16 @@
  };
  };
+tsadc {
+otp_out: otp-out {
+rockchip,pins = <0 RK_PB7 RK_FUNC_1 _pull_none>;
+};
+
+otp_gpio: otp-gpio {
+rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO _pull_none>;
+};
+};
+
  uart0 {
  uart0_xfer: uart0-xfer {
  rockchip,pins = <3 RK_PA6 RK_FUNC_1 _pull_up>,









Re: [PATCH 3/5] arm: dts: rockchip: add tsadc node for RV1108 SoC

2017-09-14 Thread rocky.hao

Hi Caesar,

Thanks for the reply.

在 2017/9/15 10:25, Caesar Wang 写道:

Rocky,

在 2017年08月24日 18:27, Rocky Hao 写道:

Add tsadc needed main information for RV1108 SoC.
75Hz is the max clock rate supported by tsadc module.

Signed-off-by: Rocky Hao 
---
  arch/arm/boot/dts/rv1108.dtsi | 29 +
  1 file changed, 29 insertions(+)

diff --git a/arch/arm/boot/dts/rv1108.dtsi 
b/arch/arm/boot/dts/rv1108.dtsi

index 25fab0b80f53..dbdd8c2180e7 100644
--- a/arch/arm/boot/dts/rv1108.dtsi
+++ b/arch/arm/boot/dts/rv1108.dtsi
@@ -275,6 +275,25 @@
  status = "disabled";
  };
+tsadc: tsadc@1037 {
+compatible = "rockchip,rv1108-tsadc";
+reg = <0x1037 0x100>;
+interrupts = ;
+assigned-clocks = < SCLK_TSADC>;
+assigned-clock-rates = <75>;
+clocks = < SCLK_TSADC>, < PCLK_TSADC>;
+clock-names = "tsadc", "apb_pclk";
+pinctrl-names = "init", "default", "sleep";
+pinctrl-0 = <_gpio>;
+pinctrl-1 = <_out>;
+pinctrl-2 = <_gpio>;
+resets = < SRST_TSADC>;
+reset-names = "tsadc-apb";
+rockchip,hw-tshut-temp = <12>;


 From the Patch[4/5], you set the critial temperature is 95 degree. I 
will suggest the Tshut temperature is 100 degree.

Setting rockchip,hw-tshut-temp = <12>; is not a problem.
Maybe we should change the critial temperature (soc_crit: soc-crit) to 
115 degree. I will explain more in another thread Patch[4/5] arm: dts: 
rockchip: add thermal nodes for RV1108 SoC @ 
https://patchwork.kernel.org/patch/9919757/
Think about the the peripherial devices,  the 120 degree will damage 
some chips.



+#thermal-sensor-cells = <1>;
+status = "disabled";
+};
+
  adc: adc@1038c000 {
  compatible = "rockchip,rv1108-saradc", 
"rockchip,rk3399-saradc";

  reg = <0x1038c000 0x100>;
@@ -642,6 +661,16 @@
  };
  };
+tsadc {
+otp_out: otp-out {
+rockchip,pins = <0 RK_PB7 RK_FUNC_1 _pull_none>;
+};
+
+otp_gpio: otp-gpio {
+rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO _pull_none>;
+};
+};
+
  uart0 {
  uart0_xfer: uart0-xfer {
  rockchip,pins = <3 RK_PA6 RK_FUNC_1 _pull_up>,









Re: [PATCH 3/5] arm: dts: rockchip: add tsadc node for RV1108 SoC

2017-09-14 Thread Caesar Wang

Rocky,

在 2017年08月24日 18:27, Rocky Hao 写道:

Add tsadc needed main information for RV1108 SoC.
75Hz is the max clock rate supported by tsadc module.

Signed-off-by: Rocky Hao 
---
  arch/arm/boot/dts/rv1108.dtsi | 29 +
  1 file changed, 29 insertions(+)

diff --git a/arch/arm/boot/dts/rv1108.dtsi b/arch/arm/boot/dts/rv1108.dtsi
index 25fab0b80f53..dbdd8c2180e7 100644
--- a/arch/arm/boot/dts/rv1108.dtsi
+++ b/arch/arm/boot/dts/rv1108.dtsi
@@ -275,6 +275,25 @@
status = "disabled";
};
  
+	tsadc: tsadc@1037 {

+   compatible = "rockchip,rv1108-tsadc";
+   reg = <0x1037 0x100>;
+   interrupts = ;
+   assigned-clocks = < SCLK_TSADC>;
+   assigned-clock-rates = <75>;
+   clocks = < SCLK_TSADC>, < PCLK_TSADC>;
+   clock-names = "tsadc", "apb_pclk";
+   pinctrl-names = "init", "default", "sleep";
+   pinctrl-0 = <_gpio>;
+   pinctrl-1 = <_out>;
+   pinctrl-2 = <_gpio>;
+   resets = < SRST_TSADC>;
+   reset-names = "tsadc-apb";
+   rockchip,hw-tshut-temp = <12>;


From the Patch[4/5], you set the critial temperature is 95 degree. I 
will suggest the Tshut temperature is 100 degree.
Think about the the peripherial devices,  the 120 degree will damage 
some chips.



+   #thermal-sensor-cells = <1>;
+   status = "disabled";
+   };
+
adc: adc@1038c000 {
compatible = "rockchip,rv1108-saradc", "rockchip,rk3399-saradc";
reg = <0x1038c000 0x100>;
@@ -642,6 +661,16 @@
};
};
  
+		tsadc {

+   otp_out: otp-out {
+   rockchip,pins = <0 RK_PB7 RK_FUNC_1 
_pull_none>;
+   };
+
+   otp_gpio: otp-gpio {
+   rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO 
_pull_none>;
+   };
+   };
+
uart0 {
uart0_xfer: uart0-xfer {
rockchip,pins = <3 RK_PA6 RK_FUNC_1 
_pull_up>,





Re: [PATCH 3/5] arm: dts: rockchip: add tsadc node for RV1108 SoC

2017-09-14 Thread Caesar Wang

Rocky,

在 2017年08月24日 18:27, Rocky Hao 写道:

Add tsadc needed main information for RV1108 SoC.
75Hz is the max clock rate supported by tsadc module.

Signed-off-by: Rocky Hao 
---
  arch/arm/boot/dts/rv1108.dtsi | 29 +
  1 file changed, 29 insertions(+)

diff --git a/arch/arm/boot/dts/rv1108.dtsi b/arch/arm/boot/dts/rv1108.dtsi
index 25fab0b80f53..dbdd8c2180e7 100644
--- a/arch/arm/boot/dts/rv1108.dtsi
+++ b/arch/arm/boot/dts/rv1108.dtsi
@@ -275,6 +275,25 @@
status = "disabled";
};
  
+	tsadc: tsadc@1037 {

+   compatible = "rockchip,rv1108-tsadc";
+   reg = <0x1037 0x100>;
+   interrupts = ;
+   assigned-clocks = < SCLK_TSADC>;
+   assigned-clock-rates = <75>;
+   clocks = < SCLK_TSADC>, < PCLK_TSADC>;
+   clock-names = "tsadc", "apb_pclk";
+   pinctrl-names = "init", "default", "sleep";
+   pinctrl-0 = <_gpio>;
+   pinctrl-1 = <_out>;
+   pinctrl-2 = <_gpio>;
+   resets = < SRST_TSADC>;
+   reset-names = "tsadc-apb";
+   rockchip,hw-tshut-temp = <12>;


From the Patch[4/5], you set the critial temperature is 95 degree. I 
will suggest the Tshut temperature is 100 degree.
Think about the the peripherial devices,  the 120 degree will damage 
some chips.



+   #thermal-sensor-cells = <1>;
+   status = "disabled";
+   };
+
adc: adc@1038c000 {
compatible = "rockchip,rv1108-saradc", "rockchip,rk3399-saradc";
reg = <0x1038c000 0x100>;
@@ -642,6 +661,16 @@
};
};
  
+		tsadc {

+   otp_out: otp-out {
+   rockchip,pins = <0 RK_PB7 RK_FUNC_1 
_pull_none>;
+   };
+
+   otp_gpio: otp-gpio {
+   rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO 
_pull_none>;
+   };
+   };
+
uart0 {
uart0_xfer: uart0-xfer {
rockchip,pins = <3 RK_PA6 RK_FUNC_1 
_pull_up>,