From patchwork Wed May 29 05:57:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Panis X-Patchwork-Id: 13677881 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D7DC2C25B7E for ; Wed, 29 May 2024 05:58:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2K5cU9IuT+Lzms4azHESGOQSA4ZzkcrxqfQzQRAfFtM=; b=wamVM+qYnZN8Zs Hj+sfN+A4hGevsLnivNHjR5LXLlZSYjZOHHOrnl7d02FjQjsB3Z8PHrToEi45KyZDTxoiP+r8Fn1r gSzOnmOZrDxn0mpOJ0NYoFNFbh/uUqOKJ1byPtPebLeAQ6Ddaak2BXELKeUf2IekjZNUZKdzWG1lN jy2kUDUJUYM41AYV9+2WzUlo2FS0knefwOUNttVZK+0q7z45S39kdtMaPWaKMLcWubyu0gP95IUO1 eMqRIYmVoeyZwybFcBajFVLQMQowDMBZKkFf6QIvxYFWSOwGOnMiJNfiMiyPw1RU36EDoU5Mhxr4X ifxyE+dfbFha7nDupOSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCCKK-00000002w9G-3oxn; Wed, 29 May 2024 05:58:20 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCCKA-00000002w2H-30SS for linux-arm-kernel@lists.infradead.org; Wed, 29 May 2024 05:58:12 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-421087b6f3fso14562405e9.1 for ; Tue, 28 May 2024 22:58:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716962288; x=1717567088; darn=lists.infradead.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=Lm7HBCi+zN/5Xa8ZptZnQewDPIipbPNbtSOsBW9grAaxVjxEAPeaViAK9ZT+QGX9ed lGvmGLrxP+QBUSA1zmiqpNRlu+5fo+fglAd19IeJWel5svEVl6YVySpnQq4b49jyOBg6 UX0a/t/rh/oaJ+1UEDw8zUvfYtQiurKhAPPaUryEyXvAvOK2/E3HeOptDhoPUsNFRhVZ +f1IuLFMnwJqA4al7Cx+5+wnxd7vVgk3L0+/vp6dEtPomhGzMdMUsL5gOEPblixQtLCO UO5E5vAWpxVsxihKpN+79hWlMPIpCjlz4G47XWk2qGYF3ykUvz2a1hEB5lxK4XAyAgjD 7t4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716962288; x=1717567088; 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=vdx8/KFLcAG/05B6vaPvEBn5+Avn62Ana4W3SxL9Ce7xqE1tp0rmjbCfxor62z0481 hhY8vU+X4pU2OHIwXrRgC5F3+j5tBcEYinFOTaw2xDSOt7k/OT891DVNJBQwwU9AQJC0 0rVA8sMEVS+WM80sxsHdJRl61YPQfjX2NIq8PDDA8FxLLbfFcV3Ee6Y4wSrDXEYmGz7K sMlyLI3FRCgmUCmuc1vu5FbVtWCuoGm+h+cuCk1Dra+eaPVSzfOVs2Nepti3D4zPj5+K IXVoFPFBGpcZqM//ShLAvVIqSOol7TO7tsD+EYoa6SYilPe+KZI18yIke6uh2jWlimEh 2QlA== X-Forwarded-Encrypted: i=1; AJvYcCVXhzNG0r6OOHih3rYd2cZLwB9yyIXmkOhEF/3qzJTCMydPDUYLfaOI1lEa3Q73X2GXAV4hYqUmqcDyIj11VlAOnN4omCPFWjh92pFBp4Iy+jNTLz0= X-Gm-Message-State: AOJu0YwV1ggF+TussRS1YoTdVzFChzrNwqHCdd1rUG9kreug27THSE2t OIA7q+jsvrbZ1xDnp8+dJ3XSPn+atBLsQYUbJFqcxu1uPFsvvmgYg7yClRDwbd8mNGU8JPyp4Kv a X-Google-Smtp-Source: AGHT+IHRHeV/DqymbcQrp2sjzmirZJZlNgRDnEJKkc0ZTQJHByJvNmBGPhTAtrpx/elL6NKld9VpRw== X-Received: by 2002:a05:600c:5719:b0:420:173f:e1e9 with SMTP id 5b1f17b1804b1-421089e97bcmr98181745e9.21.1716962287803; Tue, 28 May 2024 22:58:07 -0700 (PDT) Received: from [127.0.1.1] ([84.102.31.110]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4210896676bsm169075435e9.4.2024.05.28.22.58.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 22:58:07 -0700 (PDT) From: Julien Panis Date: Wed, 29 May 2024 07:57:58 +0200 Subject: [PATCH v6 3/6] arm64: dts: mediatek: mt8186: add lvts definitions MIME-Version: 1.0 Message-Id: <20240529-mtk-thermal-mt818x-dtsi-v6-3-0c71478a9c37@baylibre.com> References: <20240529-mtk-thermal-mt818x-dtsi-v6-0-0c71478a9c37@baylibre.com> In-Reply-To: <20240529-mtk-thermal-mt818x-dtsi-v6-0-0c71478a9c37@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=1716962279; l=1717; i=jpanis@baylibre.com; s=20230526; h=from:subject:message-id; bh=ZXPmUPXXFa1JCVfBMk9FrptEjzZlcdWN0z1cSMSnOwA=; b=OK85Uj3rrGZKhM3JHH4HH37bvvdgaZPlri/dH9Ot2gzRF2PTxp3xVfjp4zaOTnBta+MXzcw1t V4Oh/qlSE9oCfjLLpHptTWE7PqNg4Q/NHo5lMhCIc5HTvkEf+y35Bto X-Developer-Key: i=jpanis@baylibre.com; a=ed25519; pk=8eSM4/xkiHWz2M1Cw1U3m2/YfPbsUdEJPCWY3Mh9ekQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240528_225810_855343_95BC9225 X-CRM114-Status: GOOD ( 10.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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>;