mbox series

[0/2] mips: realtek: Add reboot support

Message ID 20240909014707.2003091-1-chris.packham@alliedtelesis.co.nz
Headers show
Series mips: realtek: Add reboot support | expand

Message

Chris Packham Sept. 9, 2024, 1:47 a.m. UTC
The system reboot on the cameo-rtl9302c (and presumably many other boards based
on the realtek reference design) is connected via the switch reset register
(RST_GLB_CTRL_0). This adds a basic ethernet-switch node with a reboot node so
we can make uses of the syscon-reboot register.

Chris Packham (2):
  dt-bindings: mfd: Add Realtek switch
  mips: dts: realtek: Add syscon-reboot node

 .../bindings/mfd/realtek,switch.yaml          | 50 +++++++++++++++++++
 .../cameo-rtl9302c-2x-rtl8224-2xge.dts        |  3 ++
 arch/mips/boot/dts/realtek/rtl930x.dtsi       | 11 ++++
 3 files changed, 64 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/realtek,switch.yaml

Comments

Krzysztof Kozlowski Sept. 9, 2024, 8:06 a.m. UTC | #1
On 09/09/2024 03:47, Chris Packham wrote:
> The board level reset on systems using the RTL9302 can be driven via the
> switch. Use a syscon-reboot node to represent this.
> 
> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
> ---
>  .../dts/realtek/cameo-rtl9302c-2x-rtl8224-2xge.dts    |  3 +++
>  arch/mips/boot/dts/realtek/rtl930x.dtsi               | 11 +++++++++++
>  2 files changed, 14 insertions(+)
> 
> diff --git a/arch/mips/boot/dts/realtek/cameo-rtl9302c-2x-rtl8224-2xge.dts b/arch/mips/boot/dts/realtek/cameo-rtl9302c-2x-rtl8224-2xge.dts
> index 77d2566545f2..a517135446a3 100644
> --- a/arch/mips/boot/dts/realtek/cameo-rtl9302c-2x-rtl8224-2xge.dts
> +++ b/arch/mips/boot/dts/realtek/cameo-rtl9302c-2x-rtl8224-2xge.dts
> @@ -71,3 +71,6 @@ partition@1180000 {
>  		};
>  	};
>  };
> +&switch0 {
> +	status = "okay";
> +};

Drop, redundant.

Best regards,
Krzysztof