Add reboot support for SpacemiT K1 platforms
Status from this message: Applied this patch to the riscv/opensbi repo.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | lib: utils/i2c: add minimal SpacemiT I2C driverlib/ lib/ lib/ +1 more | +228 | 2 replies | |
| 2/2 | lib: utils/reset: add SpacemiT P1 PMIC supportlib/ lib/ lib/ +1 more | +120 | 2 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | Anand Moon |
|---|---|
| 1/2 | T-b |
| 2/2 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] Add reboot support for SpacemiT K1 platforms
This add reboot support for SpacemiT K1 platforms that uses the SpacemiT P1 PMIC, which is TTBOMK all of them. Note that the Linux kernel also has a driver for that [1], but not yet enabled [2]. However it has been suggested that it's better to implement reboot support at the OpenSBI level [3].
The first patch add I2C support for the SpacemiT P1 SoC, and the second one reboot support for the SpacemiT P1 PMIC. This chip is also used on some SpacemiT K3 platforms, that's why I decided to add it at the PMIC level (lib/utils/reset/fdt_reset_spacemit_p1.c) instead of at the platform level (platform/generic/spacemit/k1.c).
This patchset has been tested on a Banana Pi BPI-F3 board and on a Milk-V Jupiter board.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/power/reset/spacemit-p1-reboot.c
[2] https://lore.kernel.org/all/[email protected]/
[3] https://lore.kernel.org/all/[email protected]/
Aurelien Jarno (2):
lib: utils/i2c: add minimal SpacemiT I2C driver
lib: utils/reset: add SpacemiT P1 PMIC support
lib/utils/i2c/Kconfig | 4 + lib/utils/i2c/fdt_i2c_spacemit.c | 220 ++++++++++++++++++++++++ lib/utils/i2c/objects.mk | 3 + lib/utils/reset/Kconfig | 4 + lib/utils/reset/fdt_reset_spacemit_p1.c | 112 ++++++++++++ lib/utils/reset/objects.mk | 3 + platform/generic/configs/defconfig | 2 + 7 files changed, 348 insertions(+) create mode 100644 lib/utils/i2c/fdt_i2c_spacemit.c create mode 100644 lib/utils/reset/fdt_reset_spacemit_p1.c
Signature · 7 lines
2.53.0 -- opensbi mailing list [email protected] http://lists.infradead.org/mailman/listinfo/opensbi