Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp878246lqj; Mon, 3 Jun 2024 03:53:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUPJ1u4x38u24RCM73rQX3kxCPC69NkCu4aIbmte/9pYYjZ6d4eIYb8ZZM2KnhRlhlUCFM397eAxI+IPm78gjxhKzL3aUwlJOaLoigsgQ== X-Google-Smtp-Source: AGHT+IEF3Trk0USNSY1+8DYKMyPtCTfiKM5pc84NTYzddkKNeZj1RZoc9ocjyZbfp2hqumc4YxJW X-Received: by 2002:a17:90b:1e11:b0:2c2:4129:9037 with SMTP id 98e67ed59e1d1-2c24129932cmr1273865a91.37.1717412036521; Mon, 03 Jun 2024 03:53:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717412036; cv=pass; d=google.com; s=arc-20160816; b=u8yj0Qzrf6SvcXgkMbohVeFCk3kE8bAtEHoQxpyC78gF+dWan2i5joikY2f+t+w8Q4 rx5y52C7SH1IDmBm3kuJcpTbW3sLA/fgfp6KWTs2Av+hgAdMw1/cDBCasKdE66ZgJIxl 7S/hg66hZNidacl41YCovWvQNg35ZmN4tBpYxffjRuN1zAz90HlAMrphzDC3RdTz4oeQ MLh+q8RO5+q/f7LoutTZKd3S7OxtXK2La9rWm+SNEcTOiqofZZM89A9VaBRRd7kgp0Qw jRey+7pcSMBcc+heZOeEFs/GTWCZRB1tXHB0xu91xkbePtYn0F+lmOgr5ZQFTQB6ERNX njpg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=3KPQvvAhw/QNVA2rWSAmQjx+yY2X/Ig4NrPz7gPkeZ8=; fh=5hieopdM3IPBRBV/copGUmbobjTtbFQxKjN6DT8XXOY=; b=QTYnid3Ive2NJjhLACgD4RRN+a4pptG4RVmGWcT4hUY3B3sphoyNe5Wb6zyF8eVWdt jPQY20l/4odhxVA36uIvwz+tKjg/TZCaGEosKgUX0GtrzzZYHRjJnyrtXv/VprYDYbEX lWMPrTM5oOZ/axdkhpBqWEYzCG/tPmd2TzAoxGiKR9zK5XnKr4xYkLdufkWPHPqgI2Wq 94oHd6W4NF4kHwzbhwCVxmWoq60ff44YjlFsxgay3GTLyLLe9qxBU8XFn2jIYz02SRAP 62cj80fXs2rJzpEnEKaLDTe6yqlPCtYGXlzX//VuoPIeY7re9OqNCY5UykCAKLa9tVB3 i7FQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=3Bd6PJEb; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-198997-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198997-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c1a7785119si7601211a91.81.2024.06.03.03.53.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 03:53:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198997-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=3Bd6PJEb; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-198997-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198997-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BCA79288A23 for ; Mon, 3 Jun 2024 10:51:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9E8A284DEF; Mon, 3 Jun 2024 10:51:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="3Bd6PJEb" Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 0526E84A33 for ; Mon, 3 Jun 2024 10:51:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717411866; cv=none; b=ArKUcO/Le1rTbmhImEsI6Ha4YIU9QUcGs0w7kga7zMPIHtrm50avV12zdI6ewfRA/TR3PIIkSIohh5GI5vocK5wp6ndheoqEMqbGvMBTB9/5j1DHUhhgNDXJ29xeiJcJkku3xnWAyMnw2fzZrDs9rSwA4YxUds/h0T682YwcZTk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717411866; c=relaxed/simple; bh=hIvA39TYPLOif8A8RvknSlSb848U6P/fP6pMmPEKIo8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BzOTlj6cgT2eUkJ4o9v4YO42yo8+hSppXrMkMnDY0dS4VMgGlafMM4vwP32OJ7gkfWdXL30wtH2rgjAlc3Fey+/0PuGHMk+QcN83A46XMYi1B33r4D3LKA7MAcmDkJzVZGIKTFX7Nfd2qol2oGVrbE/ax0aHyBJbqsNjsxO11lo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=3Bd6PJEb; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4212e341818so25666865e9.2 for ; Mon, 03 Jun 2024 03:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1717411863; x=1718016663; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=3KPQvvAhw/QNVA2rWSAmQjx+yY2X/Ig4NrPz7gPkeZ8=; b=3Bd6PJEbcUCzGUL656vISjLoXz1IHIJ1tYUqOrzLww6gwvu9ZaNcmJJl+hs9Le5M2w g+p6xqyM0n5AmnLbl+ge82dh+eLtjsHnLyKmNQeYy+AhSpnKPAcED94WXoav/r5i3CtW kSdAiYyuc3xsMupQSP/ernbssirs5mPGU5ZQERl4zfPY2iXFCNNlP6Xdl7o3aArWcTE4 cp5EN3jq9t8I5O/QfcKBVwmu5+L2QNuOgVUC6sW7j+6UgRqpMYpgZLWKJiIn2A30s1XP mueJfTcTcjwT9Mc5aQlmGDjnwKA+WWmakHn8iOYe2ErFfCHdyFXmAOzh9rbfjCn7d1QX 1UMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717411863; x=1718016663; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3KPQvvAhw/QNVA2rWSAmQjx+yY2X/Ig4NrPz7gPkeZ8=; b=VQekKWYcTRYh7z3/kU/8wu0MthyrIeIZx6YNzw+cEMxhB02Aa6pWwkyspTCFrv90Wo aFGOPghsYG7L92/3quBq0nkQMytLaiyf1Y96K06O8cFy0/nTlwZUyErgu7XLyl9a8mD5 3oBl63TsmLwHVg28Zki4hCYOKt/wi+L3lyH/ng7CljSpCHy9RhA0Y+AXdyZocTfNtxoH aHg6VZuPrkr461lWMuGVyeg4U679gt29/Im/CRrCunyPzQ4U4pa8RLqFtTuJQyUsr0Pw Sn0NVWErnGXSFfqyBfzSeek6PMhAOPRV2Mx1fXSL+emwUOLz2ntbGYhewBh1y+m1dTLm qEWQ== X-Forwarded-Encrypted: i=1; AJvYcCWx8ugiZ4TskrOvoBBHJfQwC0IMeJcnEM5QZcQYA+AFEiCtk9jzRy6quNJutSJVlSxO9ljG+NeWHp6YB12W4c3EFLu2gl1jeLKzW/+E X-Gm-Message-State: AOJu0YxewuSHHm9tFfcwjWQrWoMm2h9rkpHlOTH6KGin66WUHYAE/p8a s/YZl2QcjX3T1Zwi4SOK/DKUQ6j7UfYWHrsz2qt45ZyjdbpDj32cXLxT8HGC/ho= X-Received: by 2002:a05:600c:45cb:b0:41a:c92:d323 with SMTP id 5b1f17b1804b1-4212e04a1famr79830925e9.10.1717411863490; Mon, 03 Jun 2024 03:51:03 -0700 (PDT) Received: from [127.0.1.1] ([84.102.31.231]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42133227f8asm95372535e9.19.2024.06.03.03.51.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 03:51:03 -0700 (PDT) From: Julien Panis Date: Mon, 03 Jun 2024 12:50:50 +0200 Subject: [PATCH v7 3/6] arm64: dts: mediatek: mt8186: add lvts definitions Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240603-mtk-thermal-mt818x-dtsi-v7-3-8c8e3c7a3643@baylibre.com> References: <20240603-mtk-thermal-mt818x-dtsi-v7-0-8c8e3c7a3643@baylibre.com> In-Reply-To: <20240603-mtk-thermal-mt818x-dtsi-v7-0-8c8e3c7a3643@baylibre.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Daniel Lezcano , Nicolas Pitre , "Rafael J. Wysocki" , Zhang Rui , Lukasz Luba Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-pm@vger.kernel.org, Krzysztof Kozlowski , Julien Panis X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1717411855; l=1717; i=jpanis@baylibre.com; s=20230526; h=from:subject:message-id; bh=ZXPmUPXXFa1JCVfBMk9FrptEjzZlcdWN0z1cSMSnOwA=; b=Kt+1V0UhcrpohxTAKZFUE6vVY7Di9DK+ytngdabEc9EgSfLdYOSvG84ZuIRjZE5ntcFnGkiTk 2NXaGqDdubOAar0nMdkuK90dJZZMBlW7wdgSxz2A3s1DmE7244C82G2 X-Developer-Key: i=jpanis@baylibre.com; a=ed25519; pk=8eSM4/xkiHWz2M1Cw1U3m2/YfPbsUdEJPCWY3Mh9ekQ= From: Nicolas Pitre Values extracted from vendor source tree. Signed-off-by: Nicolas Pitre Link: https://lore.kernel.org/r/20240402032729.2736685-8-nico@fluxnic.net [Angelo: Fixed validation and quality issues] Signed-off-by: AngeloGioacchino Del Regno Signed-off-by: Julien Panis --- arch/arm64/boot/dts/mediatek/mt8186.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi index 4763ed5dc86c..caec83f5eece 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi @@ -1361,6 +1361,17 @@ spi0: spi@1100a000 { status = "disabled"; }; + lvts: thermal-sensor@1100b000 { + compatible = "mediatek,mt8186-lvts"; + reg = <0 0x1100b000 0 0x1000>; + interrupts = ; + clocks = <&infracfg_ao CLK_INFRA_AO_THERM>; + resets = <&infracfg_ao MT8186_INFRA_THERMAL_CTRL_RST>; + nvmem-cells = <&lvts_efuse_data1 &lvts_efuse_data2>; + nvmem-cell-names = "lvts-calib-data-1", "lvts-calib-data-2"; + #thermal-sensor-cells = <1>; + }; + pwm0: pwm@1100e000 { compatible = "mediatek,mt8186-disp-pwm", "mediatek,mt8183-disp-pwm"; reg = <0 0x1100e000 0 0x1000>; @@ -1676,6 +1687,14 @@ efuse: efuse@11cb0000 { #address-cells = <1>; #size-cells = <1>; + lvts_efuse_data1: lvts1-calib@1cc { + reg = <0x1cc 0x14>; + }; + + lvts_efuse_data2: lvts2-calib@2f8 { + reg = <0x2f8 0x14>; + }; + gpu_speedbin: gpu-speedbin@59c { reg = <0x59c 0x4>; bits = <0 3>; -- 2.37.3