From nobody Thu Sep 19 23:21:04 2024 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 8277612BE89 for ; Fri, 24 May 2024 09:04:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716541495; cv=none; b=agJMjEvpmRX3qeX/SekceIPFDHsBJ63ArMB0YPSBH0esfpgs8/pk/tQR5X5Ig3Ci+uacxZoWc6/Tc8Tu4H58rpuSTusNSlAs88be0KqAI09VOmguMZPvt7GMhOMowzXz1ZnoolwZiQjgtqMAH+zjQ2T7WVd3V13xw+Guop8yXds= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716541495; c=relaxed/simple; bh=D/CwYxUrwRDdDg8e5n5iJwa+Yitdxw7jjgv7JizLHlg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=o3qsDbpdbOblCBQPRZjG277FGbcbN9wxBPLakkyjh3o0WMGkxA0Rx1ZXg+EwE2IYfG4Np++pgm4Cmhz64sQC4hTOWjDx1pWIFhDfquMJQj2HCuv88OoUQ+PpHvKsF9qJTzwrppqqMuv9pWFhzJO3+hUTpIJEfX97A64izE6OjEY= 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=Cc4UAocn; arc=none smtp.client-ip=209.85.128.45 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 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="Cc4UAocn" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4202c1d19d5so60048305e9.2 for ; Fri, 24 May 2024 02:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716541492; x=1717146292; 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=gwXTa5ISuv1Kx02m8OOMsEkndfJD0rih1gKoinHaSN8=; b=Cc4UAocnzfGky03+4Ql6zUploL9dsQY+cbCk8XAGepBC6ZQCKOUAZ5hDHcDpTrcSNX eMf1T07UkoZL8L/HyoeAhpq7BOd6rT//hzSCg28PHojonF+5KS8SZGQP/oHg01EizKJ7 s0/o1Dtzmcxv9z1IaHlbA1QZs+hvupgdlp3zfF3m8YrNoz50QrlCbBRIytSvBa4sEH6q LtPcO3b7g8QrQhKwtz3LA/QBDsO1hOMlr7Q9OSJ6Hu3hm4H+Tjj/m1rbDwBAiMMByRDU 7ngL6bEidfn+wtdAkWzN+DkaEk/c0Bn86XnY4nWxjM7sQ2zh7FAhqkOD7r+12aQ+2q9f HTLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716541492; x=1717146292; 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=gwXTa5ISuv1Kx02m8OOMsEkndfJD0rih1gKoinHaSN8=; b=IFUBjeaCTV3we4n5UJTpavH9LOKrIboWKt7VPIhr9Z3DHNmZqr9+f+c0Cdq7eVoTl0 pSi6X+g8g8P57XAgVAl02I3o3H5VjpHDo/hfZL2Yl2z44zNUdIrXv5Imfjviy7bbPKnZ 6gZHH5FUNq8PkXbLDnfE7WPd/VYAqZWYSBAGXdv+OCemF6xhj+GuwIcUl5Xa0v2p7lML 1iotWwTT/uEzXR16kGsQbUjOPwWN2uhXb63I84zwNnY1mMlVdCax9WNLzKHh/R6/+220 qfVPUeWR+UB2e2IE49t7vSOTEUI5LCwCHbF6cOCCTLALeI+do55Ph4tThOohRzDmSK5e 1+BA== X-Forwarded-Encrypted: i=1; AJvYcCU1fuFUgc74jO9+J/NZ/7Khc+Sr1oF61NaRcuOLyGGTx3e2gd13q304mgdmaLHYcUSJN2gaciRS8CSv+RJWKNYYz8xJ5ABjYocK601F X-Gm-Message-State: AOJu0YzZ/WCYpH4XnUheInueSjzTlf7uIxAZufZ+jvxEzwTPpTdmuSRT olMPQ9spc+yWONpquf7qTa8hfT0fMqVDDDEIRcTJVjrCVBnuO//5oy9r2jPYtmM= X-Google-Smtp-Source: AGHT+IFenMcuhS9OsEyd+h7AaddD2iy90CZR7BBfUN10hVId+maydXEPDYGko74NzdBb4Y9rrZNbKw== X-Received: by 2002:a05:600c:4690:b0:41b:f3b6:e5da with SMTP id 5b1f17b1804b1-421089f981dmr13646005e9.36.1716541492077; Fri, 24 May 2024 02:04:52 -0700 (PDT) Received: from [127.0.1.1] ([84.102.31.250]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42100f163a8sm47273045e9.13.2024.05.24.02.04.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 02:04:51 -0700 (PDT) From: Julien Panis Date: Fri, 24 May 2024 11:04:38 +0200 Subject: [PATCH v5 5/6] arm64: dts: mediatek: mt8188: 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: quoted-printable Message-Id: <20240524-mtk-thermal-mt818x-dtsi-v5-5-56f8579820e7@baylibre.com> References: <20240524-mtk-thermal-mt818x-dtsi-v5-0-56f8579820e7@baylibre.com> In-Reply-To: <20240524-mtk-thermal-mt818x-dtsi-v5-0-56f8579820e7@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, Julien Panis X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716541478; l=2934; i=jpanis@baylibre.com; s=20230526; h=from:subject:message-id; bh=UpRqfVTfJj/4HAmfkOjlSQQqb0p0PX5zc+/lgsWNhqY=; b=Gx+63BRCjTxPhtYHJO94l+rLZO/giNvzvSPnRBXAOb4fiO0zkouPa+UhiVToPGnfja1IeLBsv S8PaOVfWQWRAdfrvCg8GMOaIdgVkSFYOVvrvc50uQVKXzwylwaIGpSm X-Developer-Key: i=jpanis@baylibre.com; a=ed25519; pk=8eSM4/xkiHWz2M1Cw1U3m2/YfPbsUdEJPCWY3Mh9ekQ= From: Nicolas Pitre Various values extracted from the vendor's kernel driver. Signed-off-by: Nicolas Pitre Link: https://lore.kernel.org/r/20240402032729.2736685-14-nico@fluxnic.net [Angelo: Fixed wrong nvmem-cell-names] Signed-off-by: AngeloGioacchino Del Regno Signed-off-by: Julien Panis --- arch/arm64/boot/dts/mediatek/mt8188.dtsi | 35 ++++++++++++++++++++++++++++= ++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts= /mediatek/mt8188.dtsi index b4315c9214dc..a9f1b9db54a6 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -11,6 +11,7 @@ #include #include #include +#include =20 / { compatible =3D "mediatek,mt8188"; @@ -357,6 +358,7 @@ infracfg_ao: syscon@10001000 { compatible =3D "mediatek,mt8188-infracfg-ao", "syscon"; reg =3D <0 0x10001000 0 0x1000>; #clock-cells =3D <1>; + #reset-cells =3D <1>; }; =20 pericfg: syscon@10003000 { @@ -491,6 +493,17 @@ spi0: spi@1100a000 { status =3D "disabled"; }; =20 + lvts_ap: thermal-sensor@1100b000 { + compatible =3D "mediatek,mt8188-lvts-ap"; + reg =3D <0 0x1100b000 0 0xc00>; + interrupts =3D ; + clocks =3D <&infracfg_ao CLK_INFRA_AO_THERM>; + resets =3D <&infracfg_ao MT8188_INFRA_RST1_THERMAL_CTRL_RST>; + nvmem-cells =3D <&lvts_efuse_data1>; + nvmem-cell-names =3D "lvts-calib-data-1"; + #thermal-sensor-cells =3D <1>; + }; + spi1: spi@11010000 { compatible =3D "mediatek,mt8188-spi-ipm", "mediatek,spi-ipm"; #address-cells =3D <1>; @@ -604,6 +617,17 @@ mmc1: mmc@11240000 { status =3D "disabled"; }; =20 + lvts_mcu: thermal-sensor@11278000 { + compatible =3D "mediatek,mt8188-lvts-mcu"; + reg =3D <0 0x11278000 0 0x1000>; + interrupts =3D ; + clocks =3D <&infracfg_ao CLK_INFRA_AO_THERM>; + resets =3D <&infracfg_ao MT8188_INFRA_RST1_THERMAL_MCU_RST>; + nvmem-cells =3D <&lvts_efuse_data1>; + nvmem-cell-names =3D "lvts-calib-data-1"; + #thermal-sensor-cells =3D <1>; + }; + i2c0: i2c@11280000 { compatible =3D "mediatek,mt8188-i2c"; reg =3D <0 0x11280000 0 0x1000>, @@ -827,6 +851,17 @@ imp_iic_wrap_en: clock-controller@11ec2000 { #clock-cells =3D <1>; }; =20 + efuse: efuse@11f20000 { + compatible =3D "mediatek,mt8188-efuse", "mediatek,efuse"; + reg =3D <0 0x11f20000 0 0x1000>; + #address-cells =3D <1>; + #size-cells =3D <1>; + + lvts_efuse_data1: lvts1-calib@1ac { + reg =3D <0x1ac 0x40>; + }; + }; + mfgcfg: clock-controller@13fbf000 { compatible =3D "mediatek,mt8188-mfgcfg"; reg =3D <0 0x13fbf000 0 0x1000>; --=20 2.37.3