From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 04AF735E1A5 for ; Sat, 4 Jul 2026 17:14:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783185281; cv=none; b=sNFvfzsyN4AMhvKTUOtxCx95bvRiChC4qbelIzDZXXXDupv4btfMBJV+hFpMxVNhb5MQxxdQEKnOQOQE5bZxWaNO38xt004X5NCcWN/lKwc02kPz8xDSg8r+mEycceDeruG+e2VaZPMZDPvi90rHLn1A9N/nBZQ3AkqppKIxg84= 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=XnEbUP2F; arc=none smtp.client-ip=209.85.210.182 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="XnEbUP2F" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-847968ca62fso1595481b3a.2 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=vger.kernel.org; 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=XnEbUP2FecbFHvbyEOtXE/BEquQ/2B7tLp1XHwNY+vDbaTyOobNx3uYqxSIPQ87Y+9 RmfXGBx2cW6yHItoCEtl0T0ehO6UkMO6UZ+N5IkPxJtuyT0g4ZwiTCc1zYxCQPhcrbLm EMOO+G3aZX244Q3QgWZfPEYvGfQFvB3xmFsXewrqBuULafGB8g9mA/W7EoEu3O1wunK4 yhiGm0pIDfupOAjASkgxSQ1m3AXLT7+HIOm/sRWDu5y76Xb3QreOHQsw3FUK5juA1jnf Xuck1L9/d6NXSQZsQxyuWPmfeEa3eJ6A74BD5NhmsH6sE4dPnqSISAf9bEoxhQ6r7mF2 ryRw== 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=Q4FgQfOzuXztGcRsA9IAx1WXihKdKhTjgR6clDoVOhLOHHtVHyjT+y7ajAdjFStKQ5 HoAwyXUZljttan0SxR+am9PD/Cmfjnc4Vi5PWNQkj0Ze/CgsS8nXE9ulNrP5pJp0Nq/T 0jqQpRznpKZJ9sZF/D2plinu2O8wGJZ1WLjihtBcuOeuSP0UGfLFOvAY0Qcyu5rJpWVX VQn9ZSchifLnkwZH3rUdofrdCziMC9v553fjxbAIoiQmhCMaP6U/+Z12Pm0iFwWqmNBv 6afCGsop9e4GgLeOUKvYbyqeqb9k1wNzKk1UcshsJfDf0DzimUO2aqj9yhGqRivE4gEz JWRA== X-Gm-Message-State: AOJu0YwVQ7o45MP8k7LlMq8JTDb4U2cyO6uFMEDh4JX42uZOGkoKPFqv r91To4hkEnVLXRLzuUiT+Dv8AU6oTs6GSwDrWuSB7ZYSLbc+UYY2yBu/ X-Gm-Gg: AfdE7cnGLRoifLkZZ4M1mu4b981x+BgCWNCZ2Tqsq7FBDYh+LGsKHpAp9uWbZWgYij8 04NVf1YITgzjb6rHxs1NUcZjYChVojRZpzWGGGaOFua2peYG9hV3GCej59WSr9oP+FvyAXd++OD 8J1S4VogyVwiegHyQ6SAj44BXVfucBQOdbfXWcVPtgqXGU+/DwA19//h7d5bV8+kKl1rWC+4zEw t4t4ceysJyIK3iFnOPU4DEhqCPV90fgRUh6dd5JaK2XpY2KyjN2/QuWRiLoCNFaW43V/fOjAGLD CzoVhtlcrPXxihtTrH7p9UJJGM2tdbkiYOMneh6TJ1ysefY8ZnF8QFLBLBcIUo4IPKhGWppydOt 2EaduJcCV8W3/qo0ADMZIDw0OGUlb4QKGmwATnlhCEebvLgc6Un1bVgRT7lu1MVf26xE3hJpgvP xui6RBTcFEcBbkwIk= 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-pm@vger.kernel.org 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