Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp666762lqh; Thu, 28 Mar 2024 12:27:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXP+TqGcmFiAsWBZDAIFkBxsF6u0a80r4RbV6jsV2R2gTUY/nU1wZ6k/HqKDcgPb/jm3FBYvGKajN95zFO9UePX6KQgzVNUGTOYKW9VPg== X-Google-Smtp-Source: AGHT+IFpOq6Tl/VOnY8FS2rW3SpKqFIMOy+Fy1AUVwIvTc9HCmFOj/m+USlVJSn8cc7EzFNVKr6i X-Received: by 2002:a05:6402:278c:b0:56c:1bf7:164d with SMTP id b12-20020a056402278c00b0056c1bf7164dmr180257ede.20.1711654044826; Thu, 28 Mar 2024 12:27:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711654044; cv=pass; d=google.com; s=arc-20160816; b=I75TJFRShb4kFm9uKPXlcrnocTgWCNJW8JxB4Y7Czwl9lg6UY3dklQ2xODkonv7jHa YeuIEFimq/Qm6TNbQlNTYQJjWglQO2zmx8xEBl1GBTgk/diE3zqoE69qI+ZFgsjmh5zG x+BTrU6PM2NV03HXUUNZJi3RiXHc+AeSEEoPKZC5CkGUfigP/v6L1/WqEtFdIABEJzvs GG/JOUHkWEIfz1yGWxbFalXPJY8JkwgXx0MKJ6fmPQfYL4vyXIswImBQtfNNzy6iVoYx Y3mMSgXXXzZngpGyLIsHcGbgn5l4aLKqmjsKFhLtfoKDA2ZdN6zAEtpFdaQXdsHUr+78 0Ekg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:dkim-filter; bh=kNqCEs4ZMc5QNb0vP9PAlmbeoSILx0x0jZh1NRLUS7c=; fh=byLtYStTBgqWsH7RqVUzGNNXm5S/nkk9nurNFY6Z5MM=; b=OImSWfS7ki6yCy6tmGuQcMWKvWrBK2o+Xiz2jyM7WSqzZQ/6+c+bgcOSormHlgyqi8 fr+0cm9HYG6+PIkok+ayGdkhXPA+PKj6xJ87RAfPNoOeo7+Xs5K4SBHIhluB9klk0o1Z IKeljL6itlnqqP6oxCArkCR+iHQp6S3k0Qb9a/rWdqoqkUwVO5qPFbSCOAQupJbWMh00 8B3ZeVSFqGp+KbtdHelgtPOVFBmX1ZCNPYHywJMa9jos0jrZNUP+I22Aheohg57FUQJ3 2kVKpEfalTizLaaLttElb42tNGPPGJlcqEsDZNVUtH9bYwQrW0HtruNA3YgkazWiZ81M shXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=cpxwPgHY; arc=pass (i=1 spf=pass spfdomain=salutedevices.com dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-kernel+bounces-123478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123478-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=salutedevices.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m23-20020a50d7d7000000b00563f6984908si1053732edj.517.2024.03.28.12.27.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 12:27:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=cpxwPgHY; arc=pass (i=1 spf=pass spfdomain=salutedevices.com dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-kernel+bounces-123478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123478-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=salutedevices.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8A3AE1F2B3F7 for ; Thu, 28 Mar 2024 19:27:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81C9E13956B; Thu, 28 Mar 2024 19:26:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b="cpxwPgHY" Received: from mx1.sberdevices.ru (mx1.sberdevices.ru [37.18.73.165]) (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 CA2D15FBA7; Thu, 28 Mar 2024 19:26:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.18.73.165 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711654018; cv=none; b=Go2Lt297Jl2Ex2+mhD+QKt6oGTWjzIRk+TxNJv0E6ZHFixmqKZc1hNZGvRTE2oF/z2XYUPA5epegKhT4vnniJdm1VB9658OI5z58QSvmxew6Qwt113kzRAsyj5w+RrFafzlMmVv9QuvpYZHAs3qIDLD8s3ZYLDjQk5mes0XqBXI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711654018; c=relaxed/simple; bh=O/zPJqMScFyr+uUwH1taZvk6WHHMRgUrwtRRh43jXxc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PPF/r4dQwAEdRz2xKTrVE3y27c1KFhUyBLEvQ7rB18tBu1ibhKaRTsgMA16AVI0JH8Xi3qHavhNgkDSlrj/a90BRbTF7CtkxazwVy9hKcpK9ofSZO481ZvUpHb7KdseZZKJN96rmA72AhMChcJvv15qSZzyjIonH0AZV52AaBS0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=salutedevices.com; spf=pass smtp.mailfrom=salutedevices.com; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b=cpxwPgHY; arc=none smtp.client-ip=37.18.73.165 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=salutedevices.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=salutedevices.com Received: from p-infra-ksmg-sc-msk01 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id 9258410000C; Thu, 28 Mar 2024 22:26:54 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru 9258410000C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1711654014; bh=kNqCEs4ZMc5QNb0vP9PAlmbeoSILx0x0jZh1NRLUS7c=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:From; b=cpxwPgHYtNqHTry/vsYoLZUEwq6k62ZufdTz7TSsY/BRKKxHUxPiVeLzQV40G8Dgv XfrTjUI1imU42jDumllpov7dOa7Bzs/gzWG21rKCrlT13+44hX66Zja+REP/1U5U7f CW1Wa6nn6gXB4po/0M3c1Ek3cgi+/0C1cRStpY1vpUp/VIQQP8jd6hpueAR9dQYH04 Cc8//+NPPoqfmByaYHorSVnpzUV2yOlI19HLyT+PCi5YonEEw70HAwyjHZMGentPwc dghg61dvgc8cuUeky6JHiBMSoz600snMD9+ZQXGknsdzHVspdoCwRKxPvAsxU6EeY5 xd6jcFTxz/7Ow== Received: from smtp.sberdevices.ru (p-i-exch-sc-m02.sberdevices.ru [172.16.192.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Thu, 28 Mar 2024 22:26:54 +0300 (MSK) Received: from CAB-WSD-L081021.sberdevices.ru (100.64.160.123) by p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 28 Mar 2024 22:26:53 +0300 From: Dmitry Rokosov To: , , , , , , , , , , , , CC: , , , , , , , Dmitry Rokosov Subject: [PATCH v2 2/3] arm64: dts: amlogic: a1: introduce cpu temperature sensor Date: Thu, 28 Mar 2024 22:26:36 +0300 Message-ID: <20240328192645.20914-3-ddrokosov@salutedevices.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240328192645.20914-1-ddrokosov@salutedevices.com> References: <20240328192645.20914-1-ddrokosov@salutedevices.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) To p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 184477 [Mar 28 2024] X-KSMG-AntiSpam-Version: 6.1.0.4 X-KSMG-AntiSpam-Envelope-From: ddrokosov@salutedevices.com X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 14 0.3.14 5a0c43d8a1c3c0e5b0916cc02a90d4b950c01f96, {Tracking_from_domain_doesnt_match_to}, 100.64.160.123:7.1.2;smtp.sberdevices.ru:5.0.1,7.1.1;salutedevices.com:7.1.1;127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1, FromAlignment: s, ApMailHostAddress: 100.64.160.123 X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean X-KSMG-LinksScanning: Clean X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2024/03/28 18:13:00 #24496606 X-KSMG-AntiVirus-Status: Clean, skipped The A1 SoC family has only one thermal sensor for CPU temperature measurement. It is required to set the TS clock rate to 500kHz to make it workable. Signed-off-by: Dmitry Rokosov --- arch/arm64/boot/dts/amlogic/meson-a1.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi index f65d4a77ee52..de77eb53d1dc 100644 --- a/arch/arm64/boot/dts/amlogic/meson-a1.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-a1.dtsi @@ -854,6 +854,17 @@ usb2_phy1: phy@4000 { power-domains = <&pwrc PWRC_USB_ID>; }; + cpu_temp: temperature-sensor@4c00 { + compatible = "amlogic,a1-cpu-thermal"; + reg = <0x0 0x4c00 0x0 0x50>; + interrupts = ; + clocks = <&clkc_periphs CLKID_TS>; + assigned-clocks = <&clkc_periphs CLKID_TS>; + assigned-clock-rates = <500000>; + #thermal-sensor-cells = <0>; + amlogic,ao-secure = <&sec_AO>; + }; + hwrng: rng@5118 { compatible = "amlogic,meson-rng"; reg = <0x0 0x5118 0x0 0x4>; -- 2.43.0