[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87tuf9kv6c.fsf@mpe.ellerman.id.au>
Date: Thu, 16 Dec 2021 15:52:59 +1100
From: Michael Ellerman <mpe@...erman.id.au>
To: Emmanuel Gil Peyrot <linkmauve@...kmauve.fr>,
Alexandre Belloni <alexandre.belloni@...tlin.com>,
Alessandro Zummo <a.zummo@...ertech.it>
Cc: Emmanuel Gil Peyrot <linkmauve@...kmauve.fr>,
rw-r-r-0644 <r.r.qwertyuiop.r.r@...il.com>,
Ash Logan <ash@...quark.com>,
Jonathan Neuschäfer <j.ne@...teo.net>,
Rob Herring <robh+dt@...nel.org>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Paul Mackerras <paulus@...ba.org>,
linux-kernel@...r.kernel.org, linux-rtc@...r.kernel.org,
linuxppc-dev@...ts.ozlabs.org, devicetree@...r.kernel.org
Subject: Re: [PATCH v3 0/5] rtc: nintendo: Add a RTC driver for the
GameCube, Wii and Wii U
Emmanuel Gil Peyrot <linkmauve@...kmauve.fr> writes:
> These three consoles share a device, the MX23L4005, which contains a
> clock and 64 bytes of SRAM storage, and is exposed on the EXI bus
> (similar to SPI) on channel 0, device 1. This driver allows it to be
> used as a Linux RTC device, where time can be read and set.
>
> The hardware also exposes two timers, one which shuts down the console
> and one which powers it on, but these aren’t supported currently.
>
> On the Wii U, the counter bias is stored in a XML file, /config/rtc.xml,
> encrypted in the SLC (eMMC storage), using a proprietary filesystem. In
> order to avoid having to implement all that, this driver assumes a
> bootloader will parse this XML file and write the bias into the SRAM, at
> the same location the other two consoles have it.
>
> Changes since v1:
> - Rename the driver to rtc-gamecube.
> - Switch to the regmap API for debugfs support.
> - Report low battery and unstable power as invalid data.
> - Remove Wii U support in Kconfig, nothing specific to this console
> needs to be changed in the code.
> - Don’t attempt to change HW_SRNPROT on the GameCube, this register
> doesn’t exist so we can use SRAM just fine without doing anything.
> - Add needed changes to the wii device tree.
> - Enable this driver on the gamecube and wii platforms.
>
> Changes since v2:
> - Report low battery correctly.
>
> Emmanuel Gil Peyrot (5):
> rtc: gamecube: Add a RTC driver for the GameCube, Wii and Wii U
> rtc: gamecube: Report low battery as invalid data
> powerpc: wii.dts: Expose HW_SRNPROT on this platform
> powerpc: gamecube_defconfig: Enable the RTC driver
> powerpc: wii_defconfig: Enable the RTC driver
>
> drivers/rtc/Kconfig | 11 +
> drivers/rtc/Makefile | 1 +
> drivers/rtc/rtc-gamecube.c | 377 ++++++++++++++++++++++++
This is basically an rtc series as far as I'm concerned.
> arch/powerpc/boot/dts/wii.dts | 5 +
> arch/powerpc/configs/gamecube_defconfig | 2 +-
> arch/powerpc/configs/wii_defconfig | 2 +-
I have nothing queued in the powerpc tree that touches any of those
files, so conflicts are unlikely.
So I'm happy for this to go via the rtc tree whenever it's ready.
Acked-by: Michael Ellerman <mpe@...erman.id.au> (powerpc)
cheers
Powered by blists - more mailing lists