From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04B8635F60E for ; Sat, 4 Jul 2026 17:14:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783185281; cv=none; b=tHxKDge/HFUN1SJ5E+bSUPrYODXyY1YXRRXFkTqdQhRKonKtzIl+hc7+w75DX8bhS9iZMHNfA5xPA2gptO6U1AyT/UA09bpjXg0NUIh6duZHMahzX+nSHFPqPuFLeQirZZVbE4ehtM6B4HwFUML0m8SSuvyMmboANJrxrx8K7/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783185281; c=relaxed/simple; bh=iiokSlZfLnf8dlWNcbww5/0TbRCZJN8q+3FsBY/mPN4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HFUj4qS/zEhzF+qP8/rjvy6E8dJQmN1XkxzTb9iYLbGN8qHnv+/qechYuXKx9AnX3iJTk2hFw99/IH0AOXIQRzsY9DZM/p64ZYGVpxO6gd+kKW8mMlyEvaHpDRVE7C7D3l7bJ0jKGq5koj5paL+AsR1yndTagwMVwWZrwsLnGt0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=p0ak6Idi; arc=none smtp.client-ip=209.85.210.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="p0ak6Idi" Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-845e363246aso1698782b3a.1 for ; Sat, 04 Jul 2026 10:14:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783185279; x=1783790079; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=W/CI0T+kn1yp9pQC8EXUf58GcP8gv1PF56nfEe5TT6E=; b=p0ak6Idi0HigNfZQJcMam2RoT058a3O/+Jh35G7SKvhFBaAG5/MyVAk2WTxUFUHSbE Ubwee89/AqR1+XH7gL7pUf4MeStYDR+FTiy91bFbz7Dj4MQBATXW19mrO8ya/RcUiHo1 PrbbTGtvuHpIw44PcCBXodrLqsPVORIZAmmLsXztHWSK9hppQrPAUMYWscS4Kx7ESSrN XouqU5WFS8KO2pXCb6j54Mssj4wtmHh0Oev6gIENKX/D0ToDBHoqfi/P7bLuD27/BkR1 rXaMy6vCDfduAZS6QR0xlr9pzwWVCAmEBC3uW2LHplQ2XDynKmL4ayFKCx1vLDWruf32 3NkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783185279; x=1783790079; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=W/CI0T+kn1yp9pQC8EXUf58GcP8gv1PF56nfEe5TT6E=; b=IoMaFFMpD7hZtzOn2wlbTa7V+I72cb1H1reNCB/rsCmHIrKDJTfPuQh+QQiZk8Fdv0 KCgbtxOUInRnYymGaQOivNL5Jhl+gj0QD53EHsYU9Bkp4VnsIjXeaWNqqxsaKTD4nEul vcpBLB8h9kd3ycSyXDHM+65ETXRBQx3iFDiRcEoZAkyhwM3qHwzWE/L4ELyPZuTD1ZnK X1TvBifNV9F4tJjAL39aw2VnFwkkd5GYtXv912BFWffgrNcsr6rr18tB9gFAv2A5w03M qerA8IZKlODVV0hdDLhmXa2Hp32pur3L5P3ia7FUWD84xelAnWzEXN/9tfdHQCYsIefi ayPQ== X-Forwarded-Encrypted: i=1; AHgh+RpxJaY/CBH9lB8WrR+L2+X72arD8nbH9YYkOS74huMY6E1RgCBzzWH1+WAgyRvPxM1Ro1aFBuKcQTzGAA==@lists.linux.dev X-Gm-Message-State: AOJu0YzL8qn7Biue1IqNc9F3x7AeaNcSkLrZL7SlBA8W8tOVAj/ItPrv VfBuwxg6CM3MxG6FIpW6aXsOFotFmXuZMDHjr15C6cfb7UpR7a56tHFR X-Gm-Gg: AfdE7ckpz0czbJzaIbLB7ttFyyUQsdkwrLSXJyUYeU0zAjN+QkfiaxbwH9TR/hjvJ6q 4RixKQ8Q/dTflQa2h/L/ksmTAC5ZqpSYIGioGe2/j4otRgxbzdbLKujDA/iFIjXR8SmZ49NYuzI 3SQtuEGwLnSOCQCDcPX7uCxohs1WQCvpLl2URo4z+y/ptQ2h3Y7LtNH4qxp2G1Ltem6y+wWGPzq kAFyejONu4Q+Hd1BCMP9VtsNPS95X4mFUyznaRU9ZKNzwUvDj46ZzhMXC+5JT9reOkdMtCDiVzq 28Gyznh/aIXuLz4rA0tDgm07WH25ApHNscojg9Sew5chAoZnx5ShSx9S1FIu5OAzZvfg96G5RCH EeeABLPuFt/avpkGSCh1ht4jju/ooWJxUgJsSBDoFssc39qrjYIlsJ1+KPPILiJffXpfryB5Oj2 bxZtcpWVY9KicJK/E= X-Received: by 2002:a05:6a00:439a:b0:847:904c:8452 with SMTP id d2e1a72fcca58-847f6ef68b4mr3914684b3a.38.1783185279250; Sat, 04 Jul 2026 10:14:39 -0700 (PDT) Received: from archlinux ([212.192.12.80]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-847f6d498adsm1379101b3a.32.2026.07.04.10.14.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jul 2026 10:14:38 -0700 (PDT) From: Mikhail Kalashnikov To: Vasily Khoruzhick , Yangtao Li , "Rafael J . Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Philipp Zabel Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v5 0/5] Allwinner: A523: add support for A523 THS0/1 controllers Date: Sun, 5 Jul 2026 01:14:06 +0800 Message-ID: <20260704171411.1413349-1-iuncuim@gmail.com> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This patch series adds temperature sensor support for the Allwinner A523 family of processors (same die with H728/A527/T527) Based on 7.2-rc1. Changes v5~v4: 1) dt-bindings: thermal: sun8i: Add A523 THS0/1 controllers - added empty line between what and context - clarified description - added missing period 2) thermal/drivers/sun8i: replace devm_reset_control_get to... - updated Reviewed-by tag 3) thermal/drivers/sun8i: get calibration data from two nvmem cells - removed dead IS_ERR(caldata) check - replaced NULL/IS_ERR check with IS_ERR_OR_NULL() 4) thermal/drivers/sun8i: Add support for A523 THS0/1 controllers - clarified description - added Reviewed-by tag 5) arm64: dts: allwinner: sun55i: add thermal sensors - fixed patch subject prefix - clarified description - sorted thermal-sensor nodes by base address - added empty lines between trip nodes (DT coding style) v4 https://lore.kernel.org/linux-sunxi/20260504050245.646078-1-iuncuim@gmail.com/ Changes v4~v3: 1) dt-bindings: thermal: sun8i: Add A523 THS0/1 controllers - gpadc replaced to mod clock x) thermal/drivers/sun8i: add gpadc clock - removed 2) thermal/drivers/sun8i: replace devm_reset_control_get to - no functional changes 3) thermal/drivers/sun8i: get calibration data from two nvmem cells - no functional changes 4) thermal/drivers/sun8i: Add support for A523 THS0/1 controllers - gpadc replaced to mod clock 5) arm64: dts: allwinner: A523: Add thermal sensors and zones - gpadc replaced to mod clock v3 https://lore.kernel.org/linux-sunxi/20251025043129.160454-1-iuncuim@gmail.com Changes v3~v2: x) dt-bindings: nvmem: SID: Add binding for A523 SID controller - previously accepted, therefore removed from this version 1) dt-bindings: thermal: sun8i: Add A523 THS0/1 controllers - added changes as requested by Rob 2) thermal/drivers/sun8i: add gpadc clock - removed undescribed changes spaces to tabs 3) thermal/drivers/sun8i: replace devm_reset_control_get to - changed the commit description to the version suggested by wens - added reviewed-by tag 4) thermal/drivers/sun8i: get calibration data from two nvmem cells - added spaces in the description block before "*" 5) thermal/drivers/sun8i: Add support for A523 THS0/1 controllers - added alignment of functions in compliance with open parenthesis x) arm64: dts: allwinner: A523: Add SID controller node - previously accepted, therefore removed from this version 6) arm64: dts: allwinner: A523: Add thermal sensors and zones - no functional changes Changes v2~v1: 1) dt-bindings: nvmem: SID: Add binding for A523 SID controller - added new patch 2) dt-bindings: thermal: sun8i: Add A523 THS0/1 controllers - changed clock order - added additional nvmem cell with calibration data - added requirements for new controllers - added description 3) thermal/drivers/sun8i: add gpadc clock - removed unnecessary call to clk_prepare_enable() since devm_clk_get_enabled()includes this 4) thermal/drivers/sun8i: replace devm_reset_control_get to - original function replaced with devm_reset_control_get_shared_deasserted() - removed some of the repetitive code executed by devm_reset_control_get_shared_deasserted() 5) thermal/drivers/sun8i: get calibration data from two nvmem cells - added possibility to get calibration data from two independent cells 6) thermal/drivers/sun8i: Add support for A523 THS0/1 controllers - removed magic digits - changed description of calibration data procedure for A523 - changed numbers of array elements with calibration data 7) arm64: dts: allwinner: A523: Add SID controller node - fix typo (sun50i->sun55i) 8) arm64: dts: allwinner: A523: Add thermal sensors and zones - cell with calibration data divided into two - added passive trips for gpu - added information that information obtained from BSP v1: https://lore.kernel.org/linux-sunxi/20250411003827.782544-1-iuncuim@gmail.com Mikhail Kalashnikov (5): dt-bindings: thermal: sun8i: Add A523 THS0/1 controllers thermal/drivers/sun8i: replace devm_reset_control_get to devm_reset_control_get_shared_deasserted thermal/drivers/sun8i: get calibration data from two nvmem cells thermal/drivers/sun8i: Add support for A523 THS0/1 controllers arm64: dts: allwinner: sun55i: add thermal sensors .../thermal/allwinner,sun8i-a83t-ths.yaml | 54 ++++- .../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 160 ++++++++++++ drivers/thermal/sun8i_thermal.c | 227 ++++++++++++++---- 3 files changed, 395 insertions(+), 46 deletions(-) -- 2.55.0