]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
riscv: dts: jh7110: Add a gpio-restart node
authorJaehoon Chung <jh80.chung@samsung.com>
Tue, 31 Oct 2023 08:24:38 +0000 (17:24 +0900)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 18 Dec 2023 03:08:28 +0000 (11:08 +0800)
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>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi

index e40f57a15080a3e221264f24e72c70cd9d11833a..e94f9fe826a8b1a720a5f68636f02d1ea0be0468 100644 (file)
                device_type = "memory";
                reg = <0x0 0x40000000 0x2 0x0>;
        };
+
+       gpio-restart {
+               compatible = "gpio-restart";
+               gpios = <&sysgpio 35 GPIO_ACTIVE_HIGH>;
+       };
 };
 
 &osc {