All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] thermal: spacemit: Add support for SpacemiT K1 SoC thermal sensor
@ 2026-01-19  2:41 ` Shuwei Wu
  0 siblings, 0 replies; 31+ messages in thread
From: Shuwei Wu @ 2026-01-19  2:41 UTC (permalink / raw)
  To: Rafael J. Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Yixun Lan,
	Shuwei Wu, Philipp Zabel, Paul Walmsley, Palmer Dabbelt,
	Albert Ou, Alexandre Ghiti
  Cc: linux-pm, devicetree, linux-riscv, spacemit, linux-kernel,
	Krzysztof Kozlowski

Introduce support for the on-die thermal sensor found
on the SpacemiT K1 SoC.

Include the device tree binding documentation in YAML format, the
thermal sensor driver implementation, and the device tree changes to
enable the sensor on K1 SoC.

---
Changes in v3:
- Fix indentation and variable types
- Simplify clock management and redundant assignments
- Link to v2: https://lore.kernel.org/r/20251216-patchv2-k1-thermal-v1-0-d4b31fe9c904@163.com

Changes in v2:
- Move driver to drivers/thermal/spacemit/ and update Kconfig/Makefile
- Address reviewer feedback on style and structure
- Improve variable naming and comments
- Link to v1: https://lore.kernel.org/r/20251127-b4-k1-thermal-v1-0-f32ce47b1aba@163.com

---
Shuwei Wu (3):
      dt-bindings: thermal: Add SpacemiT K1 thermal sensor
      thermal: spacemit: k1: Add thermal sensor support
      riscv: dts: spacemit: Add thermal sensor for K1 SoC

 .../bindings/thermal/spacemit,k1-tsensor.yaml      |  76 ++++++
 arch/riscv/boot/dts/spacemit/k1.dtsi               | 101 ++++++++
 drivers/thermal/Kconfig                            |   2 +
 drivers/thermal/Makefile                           |   1 +
 drivers/thermal/spacemit/Kconfig                   |  19 ++
 drivers/thermal/spacemit/Makefile                  |   3 +
 drivers/thermal/spacemit/k1_tsensor.c              | 281 +++++++++++++++++++++
 7 files changed, 483 insertions(+)
---
base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20251215-patchv2-k1-thermal-5ffb838fc1cc

Best regards,
-- 
Shuwei Wu <shuweiwoo@163.com>


^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: [PATCH v3 2/3] thermal: spacemit: k1: Add thermal sensor support
@ 2026-01-19 10:19 kernel test robot
  0 siblings, 0 replies; 31+ messages in thread
From: kernel test robot @ 2026-01-19 10:19 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "low confidence static check warning: drivers/thermal/spacemit/k1_tsensor.c:279:1: sparse: sparse: bad integer constant expression"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20260119-patchv2-k1-thermal-v3-2-3d82c9ebe8a4@163.com>
References: <20260119-patchv2-k1-thermal-v3-2-3d82c9ebe8a4@163.com>
TO: Shuwei Wu <shuweiwoo@163.com>
TO: "Rafael J. Wysocki" <rafael@kernel.org>
TO: Daniel Lezcano <daniel.lezcano@linaro.org>
TO: Zhang Rui <rui.zhang@intel.com>
TO: Lukasz Luba <lukasz.luba@arm.com>
TO: Rob Herring <robh@kernel.org>
TO: Krzysztof Kozlowski <krzk@kernel.org>
TO: Conor Dooley <conor+dt@kernel.org>
TO: Yixun Lan <dlan@gentoo.org>
TO: Shuwei Wu <shuweiwoo@163.com>
TO: Philipp Zabel <p.zabel@pengutronix.de>
TO: Paul Walmsley <pjw@kernel.org>
TO: Palmer Dabbelt <palmer@dabbelt.com>
TO: Albert Ou <aou@eecs.berkeley.edu>
TO: Alexandre Ghiti <alex@ghiti.fr>
CC: linux-pm@vger.kernel.org
CC: devicetree@vger.kernel.org
CC: linux-riscv@lists.infradead.org
CC: spacemit@lists.linux.dev
CC: linux-kernel@vger.kernel.org

Hi Shuwei,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 8f0b4cce4481fb22653697cced8d0d04027cb1e8]

url:    https://github.com/intel-lab-lkp/linux/commits/Shuwei-Wu/dt-bindings-thermal-Add-SpacemiT-K1-thermal-sensor/20260119-104429
base:   8f0b4cce4481fb22653697cced8d0d04027cb1e8
patch link:    https://lore.kernel.org/r/20260119-patchv2-k1-thermal-v3-2-3d82c9ebe8a4%40163.com
patch subject: [PATCH v3 2/3] thermal: spacemit: k1: Add thermal sensor support
:::::: branch date: 7 hours ago
:::::: commit date: 7 hours ago
config: alpha-randconfig-r133-20260119 (https://download.01.org/0day-ci/archive/20260119/202601191753.7KTCj6A8-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260119/202601191753.7KTCj6A8-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202601191753.7KTCj6A8-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/thermal/spacemit/k1_tsensor.c:279:1: sparse: sparse: bad integer constant expression
   drivers/thermal/spacemit/k1_tsensor.c:279:1: sparse: sparse: static assertion failed: "MODULE_INFO(description, ...) contains embedded NUL byte"
   drivers/thermal/spacemit/k1_tsensor.c:280:1: sparse: sparse: bad integer constant expression
   drivers/thermal/spacemit/k1_tsensor.c:280:1: sparse: sparse: static assertion failed: "MODULE_INFO(author, ...) contains embedded NUL byte"
   drivers/thermal/spacemit/k1_tsensor.c:281:1: sparse: sparse: bad integer constant expression
   drivers/thermal/spacemit/k1_tsensor.c:281:1: sparse: sparse: static assertion failed: "MODULE_INFO(file, ...) contains embedded NUL byte"
   drivers/thermal/spacemit/k1_tsensor.c:281:1: sparse: sparse: bad integer constant expression
   drivers/thermal/spacemit/k1_tsensor.c:281:1: sparse: sparse: static assertion failed: "MODULE_INFO(license, ...) contains embedded NUL byte"

vim +279 drivers/thermal/spacemit/k1_tsensor.c

1cfda9c6e9a3a6 Shuwei Wu 2026-01-19  278  
1cfda9c6e9a3a6 Shuwei Wu 2026-01-19 @279  MODULE_DESCRIPTION("SpacemiT K1 Thermal Sensor Driver");

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

end of thread, other threads:[~2026-04-23  3:47 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-19  2:41 [PATCH v3 0/3] thermal: spacemit: Add support for SpacemiT K1 SoC thermal sensor Shuwei Wu
2026-01-19  2:41 ` Shuwei Wu
2026-01-19  2:41 ` [PATCH v3 1/3] dt-bindings: thermal: Add SpacemiT K1 " Shuwei Wu
2026-01-19  2:41   ` Shuwei Wu
2026-01-19  2:41 ` [PATCH v3 2/3] thermal: spacemit: k1: Add thermal sensor support Shuwei Wu
2026-01-19  2:41   ` Shuwei Wu
2026-03-05 15:35   ` Yao Zi
2026-03-05 15:35     ` Yao Zi
2026-03-05 17:05   ` Yanko Kaneti
2026-03-05 17:05     ` Yanko Kaneti
2026-03-30  9:42   ` Troy Mitchell
2026-03-30  9:42     ` Troy Mitchell
2026-04-06 18:45   ` Anand Moon
2026-04-06 18:45     ` Anand Moon
2026-01-19  2:41 ` [PATCH v3 3/3] riscv: dts: spacemit: Add thermal sensor for K1 SoC Shuwei Wu
2026-01-19  2:41   ` Shuwei Wu
2026-04-22  5:56   ` Anand Moon
2026-04-22  5:56     ` Anand Moon
2026-04-22 10:37     ` Shuwei Wu
2026-04-22 10:37       ` Shuwei Wu
2026-04-23  3:46       ` Anand Moon
2026-04-23  3:46         ` Anand Moon
2026-03-05  6:34 ` [PATCH v3 0/3] thermal: spacemit: Add support for SpacemiT K1 SoC thermal sensor Shuwei Wu
2026-03-05  6:34   ` Shuwei Wu
2026-03-29 10:45 ` Gong Shuai
2026-03-29 10:45   ` Gong Shuai
2026-04-03 12:57 ` Vincent Legoll
2026-04-03 12:57   ` Vincent Legoll
2026-04-03 16:28   ` Gong Shuai
2026-04-03 16:28     ` Gong Shuai
  -- strict thread matches above, loose matches on Subject: below --
2026-01-19 10:19 [PATCH v3 2/3] thermal: spacemit: k1: Add thermal sensor support kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.