From patchwork Tue May 14 10:18:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: thermal-bot for Julien Panis X-Patchwork-Id: 797181 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BCA5A86AEE for ; Tue, 14 May 2024 10:19:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715681943; cv=none; b=RoGeLS9loIOPD98aLtMwBHpSNY6Ku4s+5gqU03ZIgtVucXqqpnOYXjx/rAzW5gOi1fsC0Ti6eu1IHvRQYZJ6JKYUW/ZqIrt+ev2/BmQUSPwfEqfro++S7WBpYSpkPpaU3dyYwBkxiyMFUKKBtWntUvTosoz+CinQqrMkEP6+bq4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715681943; c=relaxed/simple; bh=9rErEuln4y191cMzjN3JuvF+EeU2Bd+PIEmJcZ4O4fQ=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=FQdi78K+gfNLxEVhs9z87F16z3EWImLwx1o+Xjt8m7P3JLySGL8x2M2i/SkbsJuJvzSkpu55bZ8CuUlIyO7a/4QdsjOg6hlg2zE9hRKHO+iqgAGnP/lP6WRtNSPm8eCPx5bosbUA7kLX07Xj//bQdqN499e86auDAIHFys5nzKo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=QiX0W+fR; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=NM+t7ENq; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="QiX0W+fR"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="NM+t7ENq" Date: Tue, 14 May 2024 10:18:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1715681935; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Hk5CgS6B5oyNLclqCex58cIw6ZWGR4IQZAog646r55s=; b=QiX0W+fRyLI24UNxTCRlKLXBh34K/L4jhVKkM4Y56u8DOMKamON2uKnkywcXIVkEqEXT+O Nf8E5n3ErNqp50jsjGDDIFAO+vBSTJOlBwHJRVTPz5Ez4nu9V0qSv/L56ZrDM2vGjbBj+N ODU60LVOpQdADGkXRQ6uUI6A4Sm0MprYZczqeBTJLaiSMXeYgW+hr9sNcfjy/n0deBSqDb HgX8cka7s2ZBfMzzSZlH46+67exUfwSG60wfbH/eVGu5w5NA/lbsqd4KtD7noN0cQGQa6D dMY0YLjMGuFFXtiOuwOtNvqY8IpnTNXDJNUof2o/IwyHj0ZZKSkPeygj16kiCw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1715681935; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Hk5CgS6B5oyNLclqCex58cIw6ZWGR4IQZAog646r55s=; b=NM+t7ENqjF9e8dfqDMUL/OeGCY1LpUXUeKD7ykUuFQce/1zXCT7HPd/qfMc8F3i83zXLno KTAAPyFobhlT3XAg== From: "thermal-bot for Dmitry Rokosov" Sender: tip-bot2@linutronix.de Reply-to: linux-pm@vger.kernel.org To: linux-pm@vger.kernel.org Subject: [thermal: thermal/fixes] thermal/drivers/amlogic: Support A1 SoC family Thermal Sensor controller Cc: Dmitry Rokosov , Neil Armstrong , Daniel Lezcano , rui.zhang@intel.com, amitk@kernel.org In-Reply-To: <20240328191322.17551-3-ddrokosov@salutedevices.com> References: <20240328191322.17551-3-ddrokosov@salutedevices.com> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171568193533.10875.6369416976926253190.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk The following commit has been merged into the thermal/fixes branch of thermal: Commit-ID: 7fcd7dfa5ec29afe0b3fe8ad6a5f42c19e71d6be Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git//7fcd7dfa5ec29afe0b3fe8ad6a5f42c19e71d6be Author: Dmitry Rokosov AuthorDate: Thu, 28 Mar 2024 22:13:11 +03:00 Committer: Daniel Lezcano CommitterDate: Tue, 23 Apr 2024 12:40:29 +02:00 thermal/drivers/amlogic: Support A1 SoC family Thermal Sensor controller In comparison to other Amlogic chips, there is one key difference. The offset for the sec_ao base, also known as u_efuse_off, is special, while other aspects remain the same. Signed-off-by: Dmitry Rokosov Reviewed-by: Neil Armstrong Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20240328191322.17551-3-ddrokosov@salutedevices.com --- drivers/thermal/amlogic_thermal.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/thermal/amlogic_thermal.c b/drivers/thermal/amlogic_thermal.c index df7a5ed..cd4776a 100644 --- a/drivers/thermal/amlogic_thermal.c +++ b/drivers/thermal/amlogic_thermal.c @@ -220,6 +220,12 @@ static const struct amlogic_thermal_data amlogic_thermal_g12a_ddr_param = { .regmap_config = &amlogic_thermal_regmap_config_g12a, }; +static const struct amlogic_thermal_data amlogic_thermal_a1_cpu_param = { + .u_efuse_off = 0x114, + .calibration_parameters = &amlogic_thermal_g12a, + .regmap_config = &amlogic_thermal_regmap_config_g12a, +}; + static const struct of_device_id of_amlogic_thermal_match[] = { { .compatible = "amlogic,g12a-ddr-thermal", @@ -229,6 +235,10 @@ static const struct of_device_id of_amlogic_thermal_match[] = { .compatible = "amlogic,g12a-cpu-thermal", .data = &amlogic_thermal_g12a_cpu_param, }, + { + .compatible = "amlogic,a1-cpu-thermal", + .data = &amlogic_thermal_a1_cpu_param, + }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, of_amlogic_thermal_match);