linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] mips: realtek: Add reboot support
@ 2024-09-20  0:01 Chris Packham
  2024-09-20  0:01 ` [PATCH 1/2] dt-bindings: mfd: Add Realtek switch Chris Packham
  2024-09-20  0:01 ` [PATCH 2/2] mips: dts: realtek: Add syscon-reboot node Chris Packham
  0 siblings, 2 replies; 8+ messages in thread
From: Chris Packham @ 2024-09-20  0:01 UTC (permalink / raw)
  To: lee, robh, krzk+dt, conor+dt, tsbogend
  Cc: devicetree, linux-kernel, linux-mips, Chris Packham

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).

Because the switch register block encompasses a number of functions that would
normally be separate perhipherals I've represented it as a syscon node. Right
now the only peripheral I've added is the reset (using syscon-reboot). The
binding and syscon node will be expanded in the future to add some additional
functions (e.g. I2C, GPIO, MDIO).

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

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

-- 
2.46.1


^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH 0/2] mips: realtek: Add reboot support
@ 2024-09-09  1:47 Chris Packham
  2024-09-09  1:47 ` [PATCH 1/2] dt-bindings: mfd: Add Realtek switch Chris Packham
  0 siblings, 1 reply; 8+ messages in thread
From: Chris Packham @ 2024-09-09  1:47 UTC (permalink / raw)
  To: lee, robh, krzk+dt, conor+dt, tsbogend
  Cc: devicetree, linux-kernel, linux-mips, Chris Packham

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

-- 
2.46.0


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

end of thread, other threads:[~2024-09-20  0:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-20  0:01 [PATCH 0/2] mips: realtek: Add reboot support Chris Packham
2024-09-20  0:01 ` [PATCH 1/2] dt-bindings: mfd: Add Realtek switch Chris Packham
2024-09-20  0:01 ` [PATCH 2/2] mips: dts: realtek: Add syscon-reboot node Chris Packham
  -- strict thread matches above, loose matches on Subject: below --
2024-09-09  1:47 [PATCH 0/2] mips: realtek: Add reboot support Chris Packham
2024-09-09  1:47 ` [PATCH 1/2] dt-bindings: mfd: Add Realtek switch Chris Packham
2024-09-09  6:38   ` Krzysztof Kozlowski
2024-09-09 20:36     ` Chris Packham
2024-09-10  7:26       ` Krzysztof Kozlowski
2024-09-10 20:48         ` Chris Packham

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).