diff mbox series

[v9,4/4] riscv: defconfig: Enable MCU support for SG2042

Message ID IA1PR20MB49530E505BAEC8F92B19F37FBBB32@IA1PR20MB4953.namprd20.prod.outlook.com (mailing list archive)
State Changes Requested
Headers show
Series riscv: sophgo: Add SG2042 external hardware monitor support | expand

Commit Message

Inochi Amaoto Aug. 2, 2024, 12:38 p.m. UTC
Enable MCU driver for SG2042 to provide thermal and reboot support.

Signed-off-by: Inochi Amaoto <inochiama@outlook.com>
Tested-by: Chen Wang <unicorn_wang@outlook.com>
Reviewed-by: Chen Wang <unicorn_wang@outlook.com>
---
 arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts | 2 +-
 arch/riscv/configs/defconfig                        | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

Comments

Chen Wang Aug. 5, 2024, 1:31 a.m. UTC | #1
Why this patch change the dts?

On 2024/8/2 20:38, Inochi Amaoto wrote:
> Enable MCU driver for SG2042 to provide thermal and reboot support.
>
> Signed-off-by: Inochi Amaoto <inochiama@outlook.com>
> Tested-by: Chen Wang <unicorn_wang@outlook.com>
> Reviewed-by: Chen Wang <unicorn_wang@outlook.com>
> ---
>   arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts | 2 +-
>   arch/riscv/configs/defconfig                        | 1 +
>   2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
> index 8b8fdf6243d4..76375e25a495 100644
> --- a/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
> +++ b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
> @@ -67,7 +67,7 @@ soc_active3: soc-active3 {
>   				};
>   
>   				soc_hot: soc-hot {
> -					temperature = <85000>;
> +					temperature = <80000>;
>   					hysteresis = <5000>;
>   					type = "hot";
>   				};
> diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig
> index 0d678325444f..a0f346301df6 100644
> --- a/arch/riscv/configs/defconfig
> +++ b/arch/riscv/configs/defconfig
> @@ -170,6 +170,7 @@ CONFIG_SPI_SUN6I=y
>   CONFIG_GPIO_SIFIVE=y
>   CONFIG_POWER_RESET_GPIO_RESTART=y
>   CONFIG_SENSORS_SFCTEMP=m
> +CONFIG_SENSORS_SG2042_MCU=y
>   CONFIG_CPU_THERMAL=y
>   CONFIG_DEVFREQ_THERMAL=y
>   CONFIG_RZG2L_THERMAL=y
Inochi Amaoto Aug. 5, 2024, 2:21 a.m. UTC | #2
On Mon, Aug 05, 2024 at 09:31:24AM GMT, Chen Wang wrote:
> Why this patch change the dts?
> 

My fault, this should be merged into the previous patch.

Regards,
Inochi

> On 2024/8/2 20:38, Inochi Amaoto wrote:
> > Enable MCU driver for SG2042 to provide thermal and reboot support.
> > 
> > Signed-off-by: Inochi Amaoto <inochiama@outlook.com>
> > Tested-by: Chen Wang <unicorn_wang@outlook.com>
> > Reviewed-by: Chen Wang <unicorn_wang@outlook.com>
> > ---
> >   arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts | 2 +-
> >   arch/riscv/configs/defconfig                        | 1 +
> >   2 files changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
> > index 8b8fdf6243d4..76375e25a495 100644
> > --- a/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
> > +++ b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
> > @@ -67,7 +67,7 @@ soc_active3: soc-active3 {
> >   				};
> >   				soc_hot: soc-hot {
> > -					temperature = <85000>;
> > +					temperature = <80000>;
> >   					hysteresis = <5000>;
> >   					type = "hot";
> >   				};
> > diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig
> > index 0d678325444f..a0f346301df6 100644
> > --- a/arch/riscv/configs/defconfig
> > +++ b/arch/riscv/configs/defconfig
> > @@ -170,6 +170,7 @@ CONFIG_SPI_SUN6I=y
> >   CONFIG_GPIO_SIFIVE=y
> >   CONFIG_POWER_RESET_GPIO_RESTART=y
> >   CONFIG_SENSORS_SFCTEMP=m
> > +CONFIG_SENSORS_SG2042_MCU=y
> >   CONFIG_CPU_THERMAL=y
> >   CONFIG_DEVFREQ_THERMAL=y
> >   CONFIG_RZG2L_THERMAL=y
diff mbox series

Patch

diff --git a/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
index 8b8fdf6243d4..76375e25a495 100644
--- a/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
+++ b/arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts
@@ -67,7 +67,7 @@  soc_active3: soc-active3 {
 				};
 
 				soc_hot: soc-hot {
-					temperature = <85000>;
+					temperature = <80000>;
 					hysteresis = <5000>;
 					type = "hot";
 				};
diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig
index 0d678325444f..a0f346301df6 100644
--- a/arch/riscv/configs/defconfig
+++ b/arch/riscv/configs/defconfig
@@ -170,6 +170,7 @@  CONFIG_SPI_SUN6I=y
 CONFIG_GPIO_SIFIVE=y
 CONFIG_POWER_RESET_GPIO_RESTART=y
 CONFIG_SENSORS_SFCTEMP=m
+CONFIG_SENSORS_SG2042_MCU=y
 CONFIG_CPU_THERMAL=y
 CONFIG_DEVFREQ_THERMAL=y
 CONFIG_RZG2L_THERMAL=y