public inbox for linux-riscv@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v8 0/4] riscv: sophgo: Add SG2042 external hardware monitor support
@ 2024-07-30  7:49 Inochi Amaoto
  2024-07-30  7:50 ` [PATCH v8 1/4] dt-bindings: hwmon: Add Sophgo " Inochi Amaoto
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Inochi Amaoto @ 2024-07-30  7:49 UTC (permalink / raw)
  To: Jean Delvare, Guenter Roeck, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Chen Wang, Inochi Amaoto, Jonathan Corbet,
	Paul Walmsley, Palmer Dabbelt, Albert Ou, Guo Ren, Chao Wei,
	Hal Feng, Jinyu Tang, Lad Prabhakar
  Cc: linux-hwmon, devicetree, linux-kernel, linux-doc, linux-riscv

Add support for the onboard hardware monitor for SG2042.
Can be tested with OpenSBI v1.5.

The patch require the following i2c patch:
https://lore.kernel.org/all/IA1PR20MB4953DB82FB7D75BF8409FFF4BBB72@IA1PR20MB4953.namprd20.prod.outlook.com/

Changed from v7:
1. add mutex protected and fix the return value when writing
"critical_action"

Changed from v6:
1. restore the driver name to sg2042-mcu
2. remove unnecessary wrap function and check in the driver.
3. add dts and config entry.

Changed from v5:
1. rename driver name to sgmcu as it will support more sophgo chip.
2. move some attr to debugfs.
3. add standard crit_hyst support
4. add documentation

Changed from v4:
1. use fix patch for binding ref.
2. use unevaluatedProperties instead of additionalProperties for binding

Changed from v3:
1. add thermal-sensor check.
2. change node type from syscon to hwmon

Changed from v2:
1. fix bindings id path.

Changed from v1:
1. Move patch from soc to hwmon.
2. Fix typo.

Inochi Amaoto (4):
  dt-bindings: hwmon: Add Sophgo SG2042 external hardware monitor
    support
  drivers: hwmon: sophgo: Add SG2042 external hardware monitor support
  riscv: dts: sophgo: Add mcu device for Milk-V Pioneer
  riscv: defconfig: Enable MCU support for SG2042

 .../hwmon/sophgo,sg2042-hwmon-mcu.yaml        |  43 ++
 Documentation/hwmon/index.rst                 |   1 +
 Documentation/hwmon/sg2042-mcu.rst            |  39 ++
 .../boot/dts/sophgo/sg2042-milkv-pioneer.dts  |  60 +++
 arch/riscv/configs/defconfig                  |   1 +
 drivers/hwmon/Kconfig                         |  11 +
 drivers/hwmon/Makefile                        |   1 +
 drivers/hwmon/sg2042-mcu.c                    | 406 ++++++++++++++++++
 8 files changed, 562 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/sophgo,sg2042-hwmon-mcu.yaml
 create mode 100644 Documentation/hwmon/sg2042-mcu.rst
 create mode 100644 drivers/hwmon/sg2042-mcu.c

--
2.45.2


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

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

end of thread, other threads:[~2024-07-31 22:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-30  7:49 [PATCH v8 0/4] riscv: sophgo: Add SG2042 external hardware monitor support Inochi Amaoto
2024-07-30  7:50 ` [PATCH v8 1/4] dt-bindings: hwmon: Add Sophgo " Inochi Amaoto
2024-07-30  7:50 ` [PATCH v8 2/4] drivers: hwmon: sophgo: Add " Inochi Amaoto
2024-07-31  6:13   ` Chen Wang
2024-07-31  7:17     ` Inochi Amaoto
2024-07-31 15:02       ` Guenter Roeck
2024-07-31 22:48         ` Inochi Amaoto
2024-07-30  7:50 ` [PATCH v8 3/4] riscv: dts: sophgo: Add mcu device for Milk-V Pioneer Inochi Amaoto
2024-07-30  9:36   ` kernel test robot
2024-07-30  7:50 ` [PATCH v8 4/4] riscv: defconfig: Enable MCU support for SG2042 Inochi Amaoto
2024-07-31  6:17 ` [PATCH v8 0/4] riscv: sophgo: Add SG2042 external hardware monitor support Chen Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox