public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 1/2] riscv: dts: jh7110: Add a gpio-restart node
       [not found] <CGME20231031082448epcas1p33a8ff166d2e48df3dcd6c0b1f0132efc@epcas1p3.samsung.com>
@ 2023-10-31  8:24 ` Jaehoon Chung
  2023-10-31  8:24   ` [PATCH 2/2] configs: starfive2: Enable CONFIG_SYSRET config Jaehoon Chung
                     ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jaehoon Chung @ 2023-10-31  8:24 UTC (permalink / raw)
  To: u-boot; +Cc: ycliang, yanhong.wang, minda.chen, xingyu.wu, Jaehoon Chung

Add gpio-restart node to do reset.

Before applied this patch, System Reset Extension doesn't appear with
sbi command.

OpenSBI 1.3
Machine:
  Vendor ID 489
  Architecture ID 8000000000000007
  Implementation ID 4210427
Extensions:
  sbi_set_timer
  sbi_console_putchar
...[snip]...
  IPI Extension
  RFENCE Extension
  Hart State Management Extension
  Performance Monitoring Unit Extension

After applied this patch, System Reset Extension is supported from SBI.

OpenSBI 1.3
Machine:
  Vendor ID 489
  Architecture ID 8000000000000007
  Implementation ID 4210427
Extensions:
  sbi_set_timer
  sbi_console_putchar
...[snip]...
  IPI Extension
  RFENCE Extension
  Hart State Management Extension
  System Reset Extension
  Performance Monitoring Unit Extension

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---
 arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi
index e40f57a15080..e94f9fe826a8 100644
--- a/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi
+++ b/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi
@@ -34,6 +34,11 @@
 		device_type = "memory";
 		reg = <0x0 0x40000000 0x2 0x0>;
 	};
+
+	gpio-restart {
+		compatible = "gpio-restart";
+		gpios = <&sysgpio 35 GPIO_ACTIVE_HIGH>;
+	};
 };
 
 &osc {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] configs: starfive2: Enable CONFIG_SYSRET config
  2023-10-31  8:24 ` [PATCH 1/2] riscv: dts: jh7110: Add a gpio-restart node Jaehoon Chung
@ 2023-10-31  8:24   ` Jaehoon Chung
  2023-12-13  6:37     ` Leo Liang
  2023-10-31 13:01   ` [PATCH 1/2] riscv: dts: jh7110: Add a gpio-restart node Tom Rini
  2023-12-13  6:35   ` Leo Liang
  2 siblings, 1 reply; 6+ messages in thread
From: Jaehoon Chung @ 2023-10-31  8:24 UTC (permalink / raw)
  To: u-boot; +Cc: ycliang, yanhong.wang, minda.chen, xingyu.wu, Jaehoon Chung

Enable CONFIG_SYSREST config to do reset.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---
 configs/starfive_visionfive2_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig
index b21754feafce..afa74e17ebd5 100644
--- a/configs/starfive_visionfive2_defconfig
+++ b/configs/starfive_visionfive2_defconfig
@@ -122,6 +122,7 @@ CONFIG_PINCTRL_STARFIVE=y
 # CONFIG_RAM_SIFIVE is not set
 CONFIG_SYS_NS16550=y
 CONFIG_CADENCE_QSPI=y
+CONFIG_SYSRESET=y
 CONFIG_TIMER_EARLY=y
 CONFIG_USB=y
 CONFIG_USB_XHCI_HCD=y
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] riscv: dts: jh7110: Add a gpio-restart node
  2023-10-31  8:24 ` [PATCH 1/2] riscv: dts: jh7110: Add a gpio-restart node Jaehoon Chung
  2023-10-31  8:24   ` [PATCH 2/2] configs: starfive2: Enable CONFIG_SYSRET config Jaehoon Chung
@ 2023-10-31 13:01   ` Tom Rini
  2023-10-31 22:53     ` Jaehoon Chung
  2023-12-13  6:35   ` Leo Liang
  2 siblings, 1 reply; 6+ messages in thread
From: Tom Rini @ 2023-10-31 13:01 UTC (permalink / raw)
  To: Jaehoon Chung; +Cc: u-boot, ycliang, yanhong.wang, minda.chen, xingyu.wu

[-- Attachment #1: Type: text/plain, Size: 1949 bytes --]

On Tue, Oct 31, 2023 at 05:24:38PM +0900, Jaehoon Chung wrote:

> Add gpio-restart node to do reset.
> 
> Before applied this patch, System Reset Extension doesn't appear with
> sbi command.
> 
> OpenSBI 1.3
> Machine:
>   Vendor ID 489
>   Architecture ID 8000000000000007
>   Implementation ID 4210427
> Extensions:
>   sbi_set_timer
>   sbi_console_putchar
> ...[snip]...
>   IPI Extension
>   RFENCE Extension
>   Hart State Management Extension
>   Performance Monitoring Unit Extension
> 
> After applied this patch, System Reset Extension is supported from SBI.
> 
> OpenSBI 1.3
> Machine:
>   Vendor ID 489
>   Architecture ID 8000000000000007
>   Implementation ID 4210427
> Extensions:
>   sbi_set_timer
>   sbi_console_putchar
> ...[snip]...
>   IPI Extension
>   RFENCE Extension
>   Hart State Management Extension
>   System Reset Extension
>   Performance Monitoring Unit Extension
> 
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> ---
>  arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi
> index e40f57a15080..e94f9fe826a8 100644
> --- a/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi
> +++ b/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi
> @@ -34,6 +34,11 @@
>  		device_type = "memory";
>  		reg = <0x0 0x40000000 0x2 0x0>;
>  	};
> +
> +	gpio-restart {
> +		compatible = "gpio-restart";
> +		gpios = <&sysgpio 35 GPIO_ACTIVE_HIGH>;
> +	};
>  };
>  
>  &osc {

My only concern with this change (and a few other similar things I've
seen of late) is where is this change with respect to the upstream
kernel? The goal is the dts files should be able to be dropped in from
the kernel (except for -u-boot.dtsi), so we don't want to have changed
get dropped when they're re-synced.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [PATCH 1/2] riscv: dts: jh7110: Add a gpio-restart node
  2023-10-31 13:01   ` [PATCH 1/2] riscv: dts: jh7110: Add a gpio-restart node Tom Rini
@ 2023-10-31 22:53     ` Jaehoon Chung
  0 siblings, 0 replies; 6+ messages in thread
From: Jaehoon Chung @ 2023-10-31 22:53 UTC (permalink / raw)
  To: 'Tom Rini'; +Cc: u-boot, ycliang, yanhong.wang, minda.chen, xingyu.wu

Hi,

> -----Original Message-----
> From: Tom Rini <trini@konsulko.com>
> Sent: Tuesday, October 31, 2023 10:01 PM
> To: Jaehoon Chung <jh80.chung@samsung.com>
> Cc: u-boot@lists.denx.de; ycliang@andestech.com; yanhong.wang@starfivetech.com;
> minda.chen@starfivetech.com; xingyu.wu@starfivetech.com
> Subject: Re: [PATCH 1/2] riscv: dts: jh7110: Add a gpio-restart node
> 
> On Tue, Oct 31, 2023 at 05:24:38PM +0900, Jaehoon Chung wrote:
> 
> > Add gpio-restart node to do reset.
> >
> > Before applied this patch, System Reset Extension doesn't appear with
> > sbi command.
> >
> > OpenSBI 1.3
> > Machine:
> >   Vendor ID 489
> >   Architecture ID 8000000000000007
> >   Implementation ID 4210427
> > Extensions:
> >   sbi_set_timer
> >   sbi_console_putchar
> > ...[snip]...
> >   IPI Extension
> >   RFENCE Extension
> >   Hart State Management Extension
> >   Performance Monitoring Unit Extension
> >
> > After applied this patch, System Reset Extension is supported from SBI.
> >
> > OpenSBI 1.3
> > Machine:
> >   Vendor ID 489
> >   Architecture ID 8000000000000007
> >   Implementation ID 4210427
> > Extensions:
> >   sbi_set_timer
> >   sbi_console_putchar
> > ...[snip]...
> >   IPI Extension
> >   RFENCE Extension
> >   Hart State Management Extension
> >   System Reset Extension
> >   Performance Monitoring Unit Extension
> >
> > Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> > ---
> >  arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi | 5 +++++
> >  1 file changed, 5 insertions(+)
> >
> > diff --git a/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/dts/jh7110-starfive-
> visionfive-2.dtsi
> > index e40f57a15080..e94f9fe826a8 100644
> > --- a/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi
> > +++ b/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi
> > @@ -34,6 +34,11 @@
> >  		device_type = "memory";
> >  		reg = <0x0 0x40000000 0x2 0x0>;
> >  	};
> > +
> > +	gpio-restart {
> > +		compatible = "gpio-restart";
> > +		gpios = <&sysgpio 35 GPIO_ACTIVE_HIGH>;
> > +	};
> >  };
> >
> >  &osc {
> 
> My only concern with this change (and a few other similar things I've
> seen of late) is where is this change with respect to the upstream
> kernel? The goal is the dts files should be able to be dropped in from
> the kernel (except for -u-boot.dtsi), so we don't want to have changed
> get dropped when they're re-synced.

I understood what you said. Its node was applied with first dts files.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/riscv/boot/dts/starfive/jh7110-starfive-vision
five-2.dtsi?id=54baba33392d428a8be4942441a92a9b05cf537e

Then I will wait for re-syncing dt files about visionfive2.

Best Regards,
Jaehoon Chung


> 
> --
> Tom


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] riscv: dts: jh7110: Add a gpio-restart node
  2023-10-31  8:24 ` [PATCH 1/2] riscv: dts: jh7110: Add a gpio-restart node Jaehoon Chung
  2023-10-31  8:24   ` [PATCH 2/2] configs: starfive2: Enable CONFIG_SYSRET config Jaehoon Chung
  2023-10-31 13:01   ` [PATCH 1/2] riscv: dts: jh7110: Add a gpio-restart node Tom Rini
@ 2023-12-13  6:35   ` Leo Liang
  2 siblings, 0 replies; 6+ messages in thread
From: Leo Liang @ 2023-12-13  6:35 UTC (permalink / raw)
  To: Jaehoon Chung; +Cc: u-boot, yanhong.wang, minda.chen, xingyu.wu

On Tue, Oct 31, 2023 at 05:24:38PM +0900, Jaehoon Chung wrote:
> Add gpio-restart node to do reset.
> 
> Before applied this patch, System Reset Extension doesn't appear with
> sbi command.
> 
> OpenSBI 1.3
> Machine:
>   Vendor ID 489
>   Architecture ID 8000000000000007
>   Implementation ID 4210427
> Extensions:
>   sbi_set_timer
>   sbi_console_putchar
> ...[snip]...
>   IPI Extension
>   RFENCE Extension
>   Hart State Management Extension
>   Performance Monitoring Unit Extension
> 
> After applied this patch, System Reset Extension is supported from SBI.
> 
> OpenSBI 1.3
> Machine:
>   Vendor ID 489
>   Architecture ID 8000000000000007
>   Implementation ID 4210427
> Extensions:
>   sbi_set_timer
>   sbi_console_putchar
> ...[snip]...
>   IPI Extension
>   RFENCE Extension
>   Hart State Management Extension
>   System Reset Extension
>   Performance Monitoring Unit Extension
> 
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> ---
>  arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi | 5 +++++
>  1 file changed, 5 insertions(+)

Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] configs: starfive2: Enable CONFIG_SYSRET config
  2023-10-31  8:24   ` [PATCH 2/2] configs: starfive2: Enable CONFIG_SYSRET config Jaehoon Chung
@ 2023-12-13  6:37     ` Leo Liang
  0 siblings, 0 replies; 6+ messages in thread
From: Leo Liang @ 2023-12-13  6:37 UTC (permalink / raw)
  To: Jaehoon Chung; +Cc: u-boot, yanhong.wang, minda.chen, xingyu.wu

On Tue, Oct 31, 2023 at 05:24:39PM +0900, Jaehoon Chung wrote:
> Enable CONFIG_SYSREST config to do reset.
> 
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
> ---
>  configs/starfive_visionfive2_defconfig | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-13  6:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CGME20231031082448epcas1p33a8ff166d2e48df3dcd6c0b1f0132efc@epcas1p3.samsung.com>
2023-10-31  8:24 ` [PATCH 1/2] riscv: dts: jh7110: Add a gpio-restart node Jaehoon Chung
2023-10-31  8:24   ` [PATCH 2/2] configs: starfive2: Enable CONFIG_SYSRET config Jaehoon Chung
2023-12-13  6:37     ` Leo Liang
2023-10-31 13:01   ` [PATCH 1/2] riscv: dts: jh7110: Add a gpio-restart node Tom Rini
2023-10-31 22:53     ` Jaehoon Chung
2023-12-13  6:35   ` Leo Liang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox