From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) (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 3ECE1238C1A for ; Mon, 4 May 2026 05:03:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777870993; cv=none; b=l0xEsFI9Tq1bmbGqWt3yDWZFQJvbZcAPksNSUVwOLOVG9BYrhjrLWcaYeQEmXY5zjGVMtixqKotQTy//S2/hS/noWanHRpLx5gAHGDpRIwMT0JIFR7+hAL9p4mX/7I504Wcr9QFn3Lua0zgvoOsdzIim1sRj4RBnAg3z7NoSsE8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777870993; c=relaxed/simple; bh=agt5GECVqOdh9CtCVZmq7or6bJXZGyJ3eUh17LzI/BU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M5Zex3DzVjCCChWpXP/jbsZS7eTEfAgLINMk08S6p0eWnbBVGRb12pGaBhQVUvGWK3i0auUR2SeD9M4Wd1L35s8U8ewN3ZzfGAIQMfZdsKCsEqiF9vgapKsSEKGECuFVpj5CWYo5y1YoTSBTX855JFkczgZ+8Ip9+zg7ydGK220= 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=f1Jli/iH; arc=none smtp.client-ip=209.85.216.49 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="f1Jli/iH" Received: by mail-pj1-f49.google.com with SMTP id 98e67ed59e1d1-362e50b4641so2092187a91.0 for ; Sun, 03 May 2026 22:03:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1777870991; x=1778475791; 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=x8oi2Y54Hi+TOCHwR4zL5LgXe3sseiIfUSaKMjLYxQ0=; b=f1Jli/iHLPB34HHbJFxYK6lbbBX2HSNG3qMntDl0bG8aUmIKsLFxuAn2cJz15kvUIl Sq/2ZDUuIZVNzpxkGEdenxLbBhcTtD1MQFwJoJKECQzugfvSiGZhfpkU7OksnBNfVIOe T+UosgyV3rHDRrXi8Jh0QfQszi5sfXFtz1m3vfbIr3aVfk3UVVLstBWVidS0nmpwyrhz WwdKm4b0vmbzEr1CMW1b2htpjyl+rV/MF7U+a79H0Wa2OlBptXpu+dbaXMZ1n/3IJhnm elG1Q/swSj59dtCJekmB5tKFB38kLtCtwaiDGIKMI/KHwc9Rvtt8Fabo9bMPsE6VMo0m vT1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777870991; x=1778475791; 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=x8oi2Y54Hi+TOCHwR4zL5LgXe3sseiIfUSaKMjLYxQ0=; b=Vk0BPJpnSrXyclmcHNITJhZd70X4kATBdi1Ne7WhY4NqnvwDI6ACLsdrsg7aJdiyS+ 7s31Ey38QqQVSLJi1HACGXIn8fgmQQNsOYfMHQfIzVQS2sUbqGr5zP/g/Eh0crxe1k0C j65RyOCHZvyvDzzg23V5dvCeSNHv5Id7u4rXz0oTCl9jz7zGdVClnJ6825icoHlVytRK ZML8zPhzc9JQK92qpNCOxex/97P6WuxNNE/wuAXofyFAYpWg2MDJlT4l1Y6/ELPfiURz sOMZ2ANGc+q9rtLsJ7pCXOHhQWUuxQ/2dK6rbVJRzuWDfJBthU3CRNQCx6LjyAlJ43gU G44g== X-Forwarded-Encrypted: i=1; AFNElJ9Xkqyi2XShnAe1z+0anNXsWrVaigWky/pbhLbZEduNsJSGn7FrAqgqozt1lNg25wF/yb7jeoSzPw5io+A=@vger.kernel.org X-Gm-Message-State: AOJu0YzNHAh5p0+aOQyxtBX1ex0qd/csEzE7Nvf0uvmD1AewI4Xt5gbT zS92/2YyumRnXrmHGoiqwMN9BUAu8sz2IfNxhVKH4j3bJsIyA2OLtr07 X-Gm-Gg: AeBDievUFLNskdLhtt4YKLVdeGWI/chvTN8eJawUCmOrwreS6sfcmvR7wHx1cJdnks/ Pv24oa7a9ecxHQtMlFj37SzoAPj5HXbGCZ6Z/FkbLquR6HConrWvmCFtzeXxit9W1v/Zzoysslo OP/iOu1BoSOSqq5sjHLggsPcij3LhzAmn0AXm3nDYv/uPmtNFiSjlle433Rn/VzOn0T1mx4Nhxy xe4D74p3QgkToNRZthuRUd+wHZ8Dc/UhAlS+HDJ3lTVNKInCQzfPKhxwYozHJt5lUuKJHRuofmL wxQD0Ij8JqisVWZpDbc9TtNUejw3nRGmP47WGX8QjFyvCGzxIRR0XsZLU6965NekSGmF1IwQHPG rZnsJxRnq4TGljfu5n4yRZoxQiG8+hbMrH3l6x5U3q71PMe6coWkJblyO91wuJFxYBmB4H2fuRc Bt3g== X-Received: by 2002:a17:90b:35cf:b0:35f:b7f5:9cd with SMTP id 98e67ed59e1d1-3650cec0ce2mr8747896a91.20.1777870991576; Sun, 03 May 2026 22:03:11 -0700 (PDT) Received: from archlinux ([2605:e440:15::152]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-365437b50b0sm2662908a91.0.2026.05.03.22.02.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 May 2026 22:03:11 -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 v4 0/5] Allwinner: A523: add support for A523 THS0/1 controllers Date: Mon, 4 May 2026 13:02:40 +0800 Message-ID: <20260504050245.646078-1-iuncuim@gmail.com> X-Mailer: git-send-email 2.54.0 Precedence: bulk X-Mailing-List: linux-kernel@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.1-rc1. 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 Allwinner: A523: add support for A523 THS0/1 controllers .../thermal/allwinner,sun8i-a83t-ths.yaml | 54 ++++- .../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 154 ++++++++++++ drivers/thermal/sun8i_thermal.c | 226 ++++++++++++++---- 3 files changed, 391 insertions(+), 43 deletions(-) -- 2.54.0