Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3112799lqo; Tue, 21 May 2024 07:16:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUn5OLH/iMXIQMBiu+m5vfL8N8IplmrjeoyjrK1vJQcW0WjgEMbmbYYRxIkPA7j+wUjiAuaH9yOtoVEFNAzXmY3Ci0Ylj9gBLM9TmuHKw== X-Google-Smtp-Source: AGHT+IE98YeBil2/WX8A77Ap6OhmOGd0gpiryGQLSOS++fq5/gEVX1fASmWfxiFa1XDs/TZWZfx5 X-Received: by 2002:a17:903:2288:b0:1f2:fab9:a0a1 with SMTP id d9443c01a7336-1f2fab9a9f6mr79957215ad.53.1716301019510; Tue, 21 May 2024 07:16:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716301019; cv=pass; d=google.com; s=arc-20160816; b=1JMaOWMu9+oIAKAOc4Dxcdpp1r0stcf+Y4dLztxflAxYe2Hd4ovYlfvURRxGEAjymE fq257Ksj3Sy+vkvGCleHXqktwxyF4lr16b4b4PmIlv9BFOVa4S75/BUGWbEH0gLmoess RMn7jvt5R6+358JLvj6cOZx2rsXxQ271FcK9UWeBAwJmZ9TmMyLwll42UGOvT9daIfrv 4PzUxMQY2z/ePudWHL1WkCkm+RR6/xp7MUr/BYKF7d0JuxdxLPskGmHJX3xPMfBmYbQj So0Rrn3VgZtvegM0En/2tecLIUMIhj27KdD/OT7d/ZmjfxiSXikD1LZXPiff7Vq1xs4u pE/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=zgoKFoQ+1ZxeBSFvhA/0PLTmzF3XLdEhqXLatkcXB1c=; fh=2QtW/7+01/3G+yy3kyWlfzIFtvW1ZGl3GFH6BiGyzkM=; b=mxuMwo2VD4rRBbvhlremsy0x/asMfaqWK1l15Rl4vdbKonCaibRVi3HHn0+41TzdTU UflOqFwEhx5AahC0PDtfWFRkodQa72ATwSNFAEOajXZJuP2TE2eFFcLtdxtRg9W2eeZk iax2FjJdPXs4c3qlbD+9+EbcOwB7kPTh/rixwFixwC8vg3HZhxkRjXVNypKjqO369MFe 3qH0MuP/RL8i8PE4FGllX1Pr+Xsy6kgupLrNOuPiWowNGaLYqMc06hNq/XqB1+OfNkZW DDPBpIRjUO2mbVxldJGp0V9ODjunNILVjOfs3Wr3tpV9wqLjbsqM2IyjkEPM9+joulib 9kzg==; 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=DU9lr3+2; 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-185058-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185058-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 d9443c01a7336-1f302b03f91si33735705ad.360.2024.05.21.07.16.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 07:16:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-185058-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=DU9lr3+2; 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-185058-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-185058-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 0296FB247FE for ; Tue, 21 May 2024 14:06:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 112937F47F; Tue, 21 May 2024 14:05:53 +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="DU9lr3+2" Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 B299A74BED for ; Tue, 21 May 2024 14:05:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716300352; cv=none; b=DSiUir1ajKlX1MOVS+xmepIhAteblr0b3XlOGcQ47amILY1dmROlqw98cN+oka7RU0NVKvcfDA5+ht7m4RbcCDhUh7llCWE9+xdEwUS5p8rokt6h5ektnERZcQrq/P7YCDvXE1UHyGvr1c90XqasHD2sh5sRhfX8hlD7Cd8yIP0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716300352; c=relaxed/simple; bh=JUfb8zY+izCRC4r50MixNaaw78CPvzL7Ajdm+ROpRS8=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=PoAyviB3Px+coX6L4zMQkQzprfjOSj6wLXeotDfJ4WDXjZZi4OFS9GCSmdqgBeGqxLwg/CirurgoBpIFb14op908COVdanWqpIDm1KdVya8p5/TAz0I2QZVICbQW2k1ZNApMJWs1YlCOpFCxV0+uYHYyXED+7n9J5RTruSB2JEs= 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=DU9lr3+2; arc=none smtp.client-ip=209.85.128.49 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-f49.google.com with SMTP id 5b1f17b1804b1-4200ee78f35so23426145e9.1 for ; Tue, 21 May 2024 07:05:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1716300348; x=1716905148; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=zgoKFoQ+1ZxeBSFvhA/0PLTmzF3XLdEhqXLatkcXB1c=; b=DU9lr3+2kIuqImVBW4yXFS23y17jAcoca5xXNoQWC4u8T/DoFF9wjo3pg3Uu4y4DXP F3U5x9+Nk4a3wa+WT3AGI2HVbjYp5x6r9IQUyr766cgqLYnCNafrl7oaGovwtNY3Cg2M EGtnvms/o00PPTRju2eRofy7G4ftCvTbPoAGCcS9ZtEmdq6Glbp63/6l0j7Lb+eJ/0v8 R3RrbHg05mq773W0ppSzAmjabVQmu7w/npQ8SlImqPA2TguMXjm8MvarSULV6OQ32qq2 NqdA2XZpCBaUCCRWo6XfQBb6HQ4tqbv+WhAZZybG/PaKwNVNi9Ge65ygQApb+gdRPesE iLWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716300348; x=1716905148; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zgoKFoQ+1ZxeBSFvhA/0PLTmzF3XLdEhqXLatkcXB1c=; b=i2tHmpqr3HGh8ev02nWIjPN7BFNuMJ8nLIVrRV/EOZHM0cYbUJp0x/S3K2FOFCPw5l 92m/5P88EDnC8nvRcUhL7m0BnYP09RquggmOeickSTBM+5aSuHYMYxn+A6Lzm/m9+GeZ xHPjA+DrSf4h8jnPHkSXcfwtoBcYNaUKLC0iGXN2Usqcfb2LlCi4llMuQkAD2iKgYuFG 10daJzsHF3o+HwczlytyiJmRBiLumrnl3clUj30W9mf5JaqrM2+8A5XbNnT5DzgQSpRB pUr3LseI8raYDz163lxf7RL0K9dyAPibG2Vg/S3vc00GGmWg5j6Ce3iF/jIuSAh02maK ifRQ== X-Forwarded-Encrypted: i=1; AJvYcCXBqMKjCEb1edZlEZUarxhPuiK0BVcWthe93/PpPhdRe3pQaYRNja8wl91WKxf5jai125Qi1JbXGmHBC04wWFFVi/cGrEEc+7enDGRg X-Gm-Message-State: AOJu0YyjIENYls62N8tGSLKKZh1zU4+g0ajxGkuxHad+Cp9RzRV0vv2e 1zXBS54WCkYrkXOo8tDn0SYDM+1RkoNLelYyIW2vR4spgRotqkTd1HKfrNCLRm7bRbl8ND/yNFI I X-Received: by 2002:a05:600c:3592:b0:420:1a0d:f15d with SMTP id 5b1f17b1804b1-4201a0df409mr219365415e9.22.1716300347840; Tue, 21 May 2024 07:05:47 -0700 (PDT) Received: from [127.0.1.1] (abordeaux-651-1-78-161.w90-5.abo.wanadoo.fr. [90.5.97.161]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42015deac1asm342085945e9.17.2024.05.21.07.05.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 07:05:47 -0700 (PDT) From: Julien Panis Subject: [PATCH v4 0/4] Mediatek thermal sensor driver support for MT8186 and MT8188 Date: Tue, 21 May 2024 16:05:34 +0200 Message-Id: <20240521-mtk-thermal-mt818x-dtsi-v4-0-b91ee678411c@baylibre.com> 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 X-B4-Tracking: v=1; b=H4sIAC6qTGYC/x2Myw5AMBAAf0X2bJOqV/kVcSgWG1rSNiIR/65xm znMPODJMXlokwccXez5sFGKNIFx1XYh5Ck6SCELUUqBJmwYVnJG75FVpm6cgmekUee1mpuh0gJ ifTqa+f7PXf++H1oE/hRpAAAA To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Daniel Lezcano , Nicolas Pitre Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Julien Panis X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716300346; l=1983; i=jpanis@baylibre.com; s=20230526; h=from:subject:message-id; bh=JUfb8zY+izCRC4r50MixNaaw78CPvzL7Ajdm+ROpRS8=; b=Rv1gAaXrI9T1gUh79Yf80ndSE1qfUTglrDHcSeo8X96oSkWcD33mgOnC648Krl2/j+tLEWccz CmXGPBXvimlD6ZQ+ofFFt6ktYgM86f2JCojX6rEzyAeR/IoO0YZIbF0 X-Developer-Key: i=jpanis@baylibre.com; a=ed25519; pk=8eSM4/xkiHWz2M1Cw1U3m2/YfPbsUdEJPCWY3Mh9ekQ= This is a bunch of patches to support the MT8186 and MT8188 thermal sensor configurations. Since the patches of v3 were applied except those related to the SoC device trees, this series includes only patches for 'mt8186.dtsi' and 'mt8188.dtsi'. Signed-off-by: Julien Panis --- Changes in v4: - Fix wrong thermal zone names. - Lower 'polling-delay-passive' values. - Set 'hysteresis' value to 0 for 'critical' trips. - Add a 'hot' trip point in between 'passive' and 'critical' trips. - Link to v3: https://lore.kernel.org/all/20240402032729.2736685-1-nico@fluxnic.net/ Changes in v3: - use meaningful name for binding index definitions - reuse LVTS_COEFF_*_MT7988 on MT8186 per reviewer request - do similarly for MT8188 that now reuses LVTS_COEFF_*_MT8195 - use thermal zone names the svs driver wants - adjust some DT node names and iospace length - remove variable .hw_tshut_temp as it is constant across all SOCs - Link to v2: https://lore.kernel.org/all/20240318212428.3843952-1-nico@fluxnic.net/ Changes in v2: - renamed CPU cluster thermal zones in DT - fixed logic to cope with empty controller slots at the beginning - isolated bindings to their own patches - added MT8188 default thermal zones - Link to v1: https://lore.kernel.org/all/20240111223020.3593558-1-nico@fluxnic.net/T/ --- Nicolas Pitre (4): arm64: dts: mediatek: mt8186: add lvts definitions arm64: dts: mediatek: mt8186: add default thermal zones arm64: dts: mediatek: mt8188: add lvts definitions arm64: dts: mediatek: mt8188: add default thermal zones arch/arm64/boot/dts/mediatek/mt8186.dtsi | 309 ++++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt8188.dtsi | 467 +++++++++++++++++++++++++++++++ 2 files changed, 776 insertions(+) --- base-commit: 632483ea8004edfadd035de36e1ab2c7c4f53158 change-id: 20240520-mtk-thermal-mt818x-dtsi-eca378f9b6a0 Best regards, -- Julien Panis