Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp439995lqb; Tue, 28 May 2024 23:17:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWCPpAyMGcrVOVuyFlK/1lbXrPiv6R6QMuuonGV1GMj1myDl6TmK6PwiXSIBLQuaSga8cdBiDMVOmXTtCrfoRZAYokf4SeXxulMuZvDtQ== X-Google-Smtp-Source: AGHT+IHbJjxnZjMFL1SP2G97AzzkipPkSNbB3IeNr9eSXDh4Gi2hLAbmZ/w2TrE8N3bRqaV0J7cL X-Received: by 2002:a05:6a20:da9c:b0:1af:f50f:cbe5 with SMTP id adf61e73a8af0-1b259a29fb7mr2090617637.8.1716963450795; Tue, 28 May 2024 23:17:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716963450; cv=pass; d=google.com; s=arc-20160816; b=UUvKfuirsqzQbpEH4wEquzRR9nMQwdbCa9AKQMt3iJAANL/gTpxbKHzFPPxhN9o309 +YcG6RKNkCpui8HJ1OAlSw+cVX1Pz2Yc8tB9EpmMOq2fywMOYL9h1KZUctg7nJ4q15lF iwtCmoj68D2jjVWVAj0vo6sC5nsbVT58YDzSxfCXuh+aIDOrOX0CPscUVHMozM/+1miL Yo+smS3P09pCBbWnHIjpTyB2zO/BSviGwFFqn1h9UzOJJoJjMJTzWUCNF2qhXFeFTpaa NmX90iC91GeVI07NZKDERpFUlV/C7YTqnXwwkh4LUtjIUKxA/tjvG1baRSSnno55j44O Mk+g== 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=fdPQtD2oZQlYcizsJ4SryvgNNvuaIY5XPB+ALQrGbaI=; b=ksWIRlZUW+QIS9n8EKX1ntuFZpSqBcgxiMCcuHEiL6UoniKsBSDAmaoevlgEoseHs9 HwJnpzpZW5ZIAifRiCjtpEQ8Xde388KbdKSi5xnkKQn1M+ZSQXT63kqHBxRzg7CECYVZ wp/DDjKWdefMNaTzYReS5woO5pt3PE8Fj75a53ubYMsztmMIGHTu0EyzV5WlyxNoDu57 uQyCaV/xJkIfdGoAdU7WietDVuurXgR4weLWXvfeNKXyn6ghcDbxEgQYMaxW8XB3SRjC dyopJn15RneOONCz+SPvSAghEX9wKlD5s3Zx93FVTwFUHpffS2ppUKgXbxuQyltAWuWb 5FJA==; 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=Je28Y3DJ; 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-193481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193481-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-68228db064fsi9554598a12.563.2024.05.28.23.17.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 23:17:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=Je28Y3DJ; 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-193481-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193481-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E8A06B27914 for ; Wed, 29 May 2024 05:59:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FFD9161314; Wed, 29 May 2024 05:58:13 +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="Je28Y3DJ" Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 45D5E15E5D1 for ; Wed, 29 May 2024 05:58:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716962292; cv=none; b=LYMjUaKFn9G4woHy+MiM/ZBGSap3tk7FXgZ9o2FrMYKMieWIGdYUNQhpiQcdxSMiHtmDSMu9cqMKjw5KQodBRTnSKv2K01TZOYrpNK4mky4ImcnSVthkqmCHpXalvH1a02179PmStOKcEpfH+dO4JradVMblo88lyhBU8zjHgxA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716962292; c=relaxed/simple; bh=hIvA39TYPLOif8A8RvknSlSb848U6P/fP6pMmPEKIo8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PaCgXP1jpY3CWZYjG5Jyx51IHye4ZyQroXnUMItCgo8CuBQAmeoUTddJ0dcsD8Alw8Cxx1w5pL9B1gvAcA61wce8hajFwwdEgGqZZnQFbgnf8HDlAoZtyOOstlkAKdwee0l+kFGDSc6c2tcT6p1Um5f/tEjuTKZ6n02z8jrEfew= 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=Je28Y3DJ; arc=none smtp.client-ip=209.85.128.43 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-f43.google.com with SMTP id 5b1f17b1804b1-4210c9d1df6so14524065e9.2 for ; Tue, 28 May 2024 22:58:09 -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=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=Je28Y3DJipKUGChDae/YTe8M02WPrsKa+S6tXHsXuShaSWT5a0RsNeIdEmDSnPYwo9 8Wqm8Z1wA+R0nTlo/fLDmKjq0hFyENrZmfROejmi1NTpxVoac1U0q6aISIdRwEYVCU53 SxWnR5zKcoVb8FewTwUmJbxbuD5jUGNvmuXo3wOQNZ1QyVqMeGhTuzkP4UvPng+wOyLw 0LW5XTU4FaFeaml3tBjYetmcao6460KxzOpIrH+TXogYT/pXMo2hlAxZW/4yU9cesK9K 57SGzSk6Uzh95WQ3qmskBZoZ39sTPgTo3t+aNMlnnC8Jvj2Gehe4Zm7CCR36oA5dY+53 0XDQ== 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=hb/+rXh1ZsmdmyjFMRyvKgTxPnwQqo4vGP4zHhVjsXEOC7Et7QzCS9qgP+ME3wiIeQ ZZHYbeiMaxjNpZ3aqA2s53x/A5H+94lHj1otRweXEYGRel3pVIairZV6uN9VH9mOtzbL C3oARDWEM92Hyq5g/Kdh+T9ySoUczfuDyY84UoqNO+0KyndVpAnaWscxBKdoK0BikTD5 fPVPAT8GPAnQrEqYK+Mpn40xky9qRw0ZsJf9t2KsCxooBROn1xbcFLxRjgjVwSkCoS+i PJO2m1+SsZywX+VZ3lwFtgRiVnS13d6VPlEjEyRpLvhmGx2IJuAqOVGXlUoLMaXZ1Cx7 fuQg== X-Forwarded-Encrypted: i=1; AJvYcCWPLqmZ+OmuOo5MA7wGidXnAUwmiwBvWTUPFEVY9wycz3S9VxVbh3mhcsiwuDCOrtSCETvreKlVfm2QcOI0UNk4vK/mhGyYF/FgL/qS X-Gm-Message-State: AOJu0Yz4vQ5LBF5LDvYLAN19gGzczJSYzwI6S6TXRfOHX5cXkQXGLYvf aAWMOaWmP9+r8tJ/6axojR00SEITkcXoiRFP6KxaZn0eFxsM5lNP/R0mYStxYik= 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 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: <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= 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