From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f46.google.com (mail-pj1-f46.google.com [209.85.216.46]) (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 394191096F for ; Mon, 4 May 2026 05:03:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777870993; cv=none; b=YsaxmROUp5jkpzc+wbt2CVRAwLYpZr8zokB4qFqHOn8Wdd9Huf8npfTTKWDdYj3a1ONpj/13C1tWAb5jDFOGljIL7U5qybUKFKhv8RWT9ZiEqPuZahSFndjWbea16JuyOcDKFKaIPwazH5MCqzwg3Kvc7Jq4rrC2aXWskKio4TE= 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.46 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-f46.google.com with SMTP id 98e67ed59e1d1-3654ebfd57cso273853a91.1 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=X2WYu7TBSZZfs+atfDdcS2SMy4AoLHhZYknB7DCbLtpif6kl09lpyIOcfdeJZE+1gN yj1SY3PuI5HRLASi+Vv6EKmvqKy/kYdJYDCQIbrNbK3fUkIBNM5WbQZvrxfT/psoUS6V YeY8wrawwT1AO4XmS1QpRd6Vhj/uI+u8XULukPAplXOwPrJc3wE0KOT1VsyAtUFR8YcF YDOsCloHHEBSmSGT6SawWT+UlmrBkTzzreGkqNnKhOl6Yc8jce6ciqrwxTAt8fEAttJd 4IQTu450ml7mu3f+dAvwzx+nzNSMcN82M2tRTc2HcsAPCRIEQqzQvVW4Ej7RWbaU0yDM YfCg== X-Forwarded-Encrypted: i=1; AFNElJ+OBo53hy34bP01T4etD7KU8ECQ5V3/GZ+sTVnXGzV8qjjCUv/a1SEPmluAIWOZGdOFSeMAuNxwjgnZ@vger.kernel.org X-Gm-Message-State: AOJu0Yyc32GkL7W/T8V/2WXXeFKEfLEX/fUpf8XaGCPZXfkp13X9zOdv GC7IRMtfpEP6JGC7Ki5/YBczEINCBxBfa+NLCcK4n9+ZDgEAUDZQU722 X-Gm-Gg: AeBDietuTRl+GMq3K62owaqn4iT6hGixu6DkdqtLFhLpJjxDycPz53YRcACUfdgekfC GIA1b1En2vphUCvTX7EKGQ05j4AsXIsssUZBrJYXALhnGbFaItWjUHpqY+sCcfRLsaxc8RdIWMI F5/PlUlfSu1c/m3tUM+T9L0GRQ/BrwBpmqgaJh8BhcFW1Drk9adbDj0d28ycndNGiMA03pi+yjx IRB2801bSRe/Q8CMFgBb5tECXPQ6gSSW9cRD2sEXwALZZdfObbLB/Fh4aes/z2T63Iem0PmZ0LV elDUKxLEadlN5tmb40bnbm/YLV01/mv18d4Aes41AE8Xk6SwgLPFZ1Tbpw3Shh0RbTIx3ZdkqTL v8dPt+iwxmug2gmxjnBZT1ujoUx/6+yrKUwSw5QBc/rjDn12A+8Nw8xPrPMn65lbpcK1TQ1lUwt foJg== 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: devicetree@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