Skip to content

Introduce Photonicat power management MCU driver

Junhao Xie linux-arm-kernel linux-devicetree linux-hwmon linux-leds linux-pm linux-rockchip linux-rtc linux-watchdog lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 26 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9mfd: Add driver for Photonicat power management MCUdrivers/mfd/Kconfig drivers/mfd/Makefile drivers/mfd/photonicat-pmu.c +1 more+601 -08 replies
2/9power: reset: add Photonicat PMU poweroff driverdrivers/power/reset/Kconfig drivers/power/reset/Makefile drivers/power/reset/photonicat-poweroff.c+108 -02 replies
3/9watchdog: Add Photonicat PMU watchdog driverdrivers/watchdog/Kconfig drivers/watchdog/Makefile drivers/watchdog/photonicat-wdt.c+137 -02 replies
4/9power: supply: photonicat-supply: Add Photonicat PMU battery and chargerdrivers/power/supply/Kconfig drivers/power/supply/Makefile drivers/power/supply/photonicat-supply.c+263 -00 replies
5/9rtc: Add Photonicat PMU real-time clockdrivers/rtc/Kconfig drivers/rtc/Makefile drivers/rtc/rtc-photonicat.c+203 -00 replies
6/9hwmon: Add support for Photonicat PMU board temperature sensordrivers/hwmon/Kconfig drivers/hwmon/Makefile drivers/hwmon/photonicat-hwmon.c+140 -03 replies
7/9leds: add Photonicat PMU LED driverdrivers/leds/Kconfig drivers/leds/Makefile drivers/leds/leds-photonicat.c+87 -02 replies
8/9dt-bindings: Add documentation for Photonicat PMUDocumentation/devicetree/bindings/hwmon/ariaboard,photonicat-pmu-hwmon.yaml Documentation/devicetree/bindings/leds/ariaboard,photonicat-pmu-leds.yaml Documentation/devicetree/bindings/mfd/ariaboard,photonicat-pmu.yaml +4 more+351 -03 replies
9/9arm64: dts: rockchip: add Photonicat PMU support for Ariaboard Photonicatarch/arm64/boot/dts/rockchip/rk3568-photonicat.dts+43 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] Introduce Photonicat power management MCU driver

Initial support for the power management MCU in the Ariaboard Photonicat This patch series depends on Add support for Ariaboard Photonicat RK3568 [1]

Currently implemented features:
Implement serial communication protocol with MCU [2]. Support watchdog in MCU.
Shutdown by power button and system notifies MCU to power-off. Read charger and battery supply voltage and simply calculate capacity. Read board temperature sensor.
Set status of the network status LED.
Read and set the MCU real-time clock date time.

[1] https://lore.kernel.org/linux-arm-kernel/[email protected]/
[2] https://photonicat.com/wiki/PMU_Protocol

Junhao Xie (9):
mfd: Add driver for Photonicat power management MCU
power: reset: add Photonicat PMU poweroff driver
watchdog: Add Photonicat PMU watchdog driver
power: supply: photonicat-supply: Add Photonicat PMU battery and
charger
rtc: Add Photonicat PMU real-time clock
hwmon: Add support for Photonicat PMU board temperature sensor
leds: add Photonicat PMU LED driver
dt-bindings: Add documentation for Photonicat PMU
arm64: dts: rockchip: add Photonicat PMU support for Ariaboard
Photonicat

 .../hwmon/ariaboard,photonicat-pmu-hwmon.yaml |  40 ++
 .../leds/ariaboard,photonicat-pmu-leds.yaml   |  41 ++
 .../mfd/ariaboard,photonicat-pmu.yaml         | 107 ++++
 .../ariaboard,photonicat-pmu-poweroff.yaml    |  34 ++
 .../ariaboard,photonicat-pmu-supply.yaml      |  55 ++
 .../rtc/ariaboard,photonicat-pmu-rtc.yaml     |  37 ++
 .../ariaboard,photonicat-pmu-watchdog.yaml    |  37 ++
 .../boot/dts/rockchip/rk3568-photonicat.dts   |  43 ++
 drivers/hwmon/Kconfig                         |  10 +
 drivers/hwmon/Makefile                        |   1 +
 drivers/hwmon/photonicat-hwmon.c              | 129 +++++
 drivers/leds/Kconfig                          |  11 +
 drivers/leds/Makefile                         |   1 +
 drivers/leds/leds-photonicat.c                |  75 +++
 drivers/mfd/Kconfig                           |  13 +
 drivers/mfd/Makefile                          |   1 +
 drivers/mfd/photonicat-pmu.c                  | 501 ++++++++++++++++++
 drivers/power/reset/Kconfig                   |  12 +
 drivers/power/reset/Makefile                  |   1 +
 drivers/power/reset/photonicat-poweroff.c     |  95 ++++
 drivers/power/supply/Kconfig                  |  12 +
 drivers/power/supply/Makefile                 |   1 +
 drivers/power/supply/photonicat-supply.c      | 250 +++++++++
 drivers/rtc/Kconfig                           |  12 +
 drivers/rtc/Makefile                          |   1 +
 drivers/rtc/rtc-photonicat.c                  | 190 +++++++
 drivers/watchdog/Kconfig                      |  12 +
 drivers/watchdog/Makefile                     |   1 +
 drivers/watchdog/photonicat-wdt.c             | 124 +++++
 include/linux/mfd/photonicat-pmu.h            |  86 +++
 30 files changed, 1933 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/ariaboard,photonicat-pmu-hwmon.yaml
 create mode 100644 Documentation/devicetree/bindings/leds/ariaboard,photonicat-pmu-leds.yaml
 create mode 100644 Documentation/devicetree/bindings/mfd/ariaboard,photonicat-pmu.yaml
 create mode 100644 Documentation/devicetree/bindings/power/reset/ariaboard,photonicat-pmu-poweroff.yaml
 create mode 100644 Documentation/devicetree/bindings/power/supply/ariaboard,photonicat-pmu-supply.yaml
 create mode 100644 Documentation/devicetree/bindings/rtc/ariaboard,photonicat-pmu-rtc.yaml
 create mode 100644 Documentation/devicetree/bindings/watchdog/ariaboard,photonicat-pmu-watchdog.yaml
 create mode 100644 drivers/hwmon/photonicat-hwmon.c
 create mode 100644 drivers/leds/leds-photonicat.c
 create mode 100644 drivers/mfd/photonicat-pmu.c
 create mode 100644 drivers/power/reset/photonicat-poweroff.c
 create mode 100644 drivers/power/supply/photonicat-supply.c
 create mode 100644 drivers/rtc/rtc-photonicat.c
 create mode 100644 drivers/watchdog/photonicat-wdt.c
 create mode 100644 include/linux/mfd/photonicat-pmu.h
Signature · 1 line
2.46.0