From patchwork Fri Nov 17 09:42:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 166043 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp410667vqn; Fri, 17 Nov 2023 01:42:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEPkk1iT30WxoImBUM4whLygrMx6CZbMsj3T5snnDthDzvzkZ8dUBg+HsNPqB85iW7NsI4e X-Received: by 2002:a05:6870:f817:b0:1f5:b2f1:78b2 with SMTP id fr23-20020a056870f81700b001f5b2f178b2mr731322oab.27.1700214164607; Fri, 17 Nov 2023 01:42:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700214164; cv=none; d=google.com; s=arc-20160816; b=GUl7MjjT23FYVIdxVrmOF6wkLQIaAEC+vcNy249Sj3wI3emv974HIkvaOy8UIq+/Ri cZSe/VqdHAbcUi5+AHoph2YKwV/fCFU46W85t9VeJy3aAE/Ad4ChInx5tGzmIihonzsM sZfeORnffL6vg18Sh7hWGcqEByRrLIjBJF3WYFE1fags74cI76SPwH170inmj99UqfSO 2MHvmMKUxJKiXHPQcxG1eXYA+hhTuHLSPULvnMO/Nzi3ajhn5BnVGmrvmD37y5Xx8ED5 32ZtoMblQ0J30WVp1eKnX7hqWNIWsNUHQQAoPKOTvp7q3/cGEaR+PYHD5QCexV+ocxL+ QzRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7MZURram4+AEa4dg4UWiA48/8EOrUGOb9rBxviQ2z8M=; fh=m5p6pcg3y47Sg5VKYWXj0f0nOzgFq4l5+GGYwGce+t4=; b=PR6DbE8ungexxb5xsqqJ6n40lTP8p933JIzaCD71XqUZauAKMTQBGPAst1xwXcoXR0 v6FS6XUdwXJa35mDm6MIc7A0+q3gqkBWRdcLS+69E22p7BNglyFYsL6Yika6/TiYkc2Z 6SRabeO773OBRKLGugaWWal7r0VyfZNpmp07/gm0OPX7r+ds3jFVqBTrbcXPrpaW7a56 z/AuxnqS87YUdoc/g9LkET9j/jmQ+oUONnorcOv85WtZ+HK10dNmDrHFjSbB78to4+K7 ModeGhdO925h7nQM38N8fweeFOfFu8zT080/lK/DvJ25ZLhWI8sbxsEznxmVIhxv7zh5 rRVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VkCESaj7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id bv187-20020a632ec4000000b005891f742957si1456410pgb.570.2023.11.17.01.42.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 01:42:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VkCESaj7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 936BA8031E33; Fri, 17 Nov 2023 01:42:43 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345744AbjKQJmm (ORCPT + 30 others); Fri, 17 Nov 2023 04:42:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230383AbjKQJmk (ORCPT ); Fri, 17 Nov 2023 04:42:40 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A460B7; Fri, 17 Nov 2023 01:42:37 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id E14896607390; Fri, 17 Nov 2023 09:42:34 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1700214155; bh=sMWHddCvw/Ujx/UtO/I5fhryZnx4605LdfFnzpLxwHk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VkCESaj7Ttn7NnhOJEaxwtZ+/vTrzphD5fvTVaJ8787aNnIgoyr28FhQujgv63wqh ZebpK6ZDqYaDLON/xgOzslxqZldXCVcOpSZkz1TPSoaNICpZ49LQ78ErS+FMNKdZQF e8glm0//bMl52Z5VjewMdJX65SXymj/DOoM+3JE4XVstwZxN+vq3r4Yn14LNvDYTWp rCZDaQbv1+6NSHWolT5/eUTmi7/1ARgJYg11iz/7PNE1sfAP+H6U+74kHRlZTa63ZX FyUBIexB/t/LtMY/aElfTZfI8ftB/vTGmspHEGDfSfg/zs18bl/unvrh854b9NN7Kj OQmuArR8zGKQg== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, robh+dt@kernel.org, angelogioacchino.delregno@collabora.com, p.zabel@pengutronix.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com, wenst@chromium.org Subject: [PATCH v1 01/20] arm64: dts: mediatek: mt8183: Change iospaces for thermal and svs Date: Fri, 17 Nov 2023 10:42:09 +0100 Message-ID: <20231117094228.40013-2-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231117094228.40013-1-angelogioacchino.delregno@collabora.com> References: <20231117094228.40013-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 01:42:43 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782803767798057465 X-GMAIL-MSGID: 1782803767798057465 The SVS iospace starts at 0x1100bc00 and not at 0x1100b000 as the latter is the thermal sensor iospace instead. Change the iospaces for both as following: - Thermal: 0x1100b000, length 0xc00 - SVS: 0x1100bc00, length 0x400 Please note that while this would be a breaking change for SVS (but not for thermal sensors), it doesn't matter because the svs driver never worked anyway because of the missing trips in tzts2, causing that thermal zone to never actually register, hence the SVS driver to fail probing anyway. Signed-off-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 26 ++++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 5169779d01df..13c3104bc67b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -1183,22 +1183,10 @@ spi0: spi@1100a000 { status = "disabled"; }; - svs: svs@1100b000 { - compatible = "mediatek,mt8183-svs"; - reg = <0 0x1100b000 0 0x1000>; - interrupts = ; - clocks = <&infracfg CLK_INFRA_THERM>; - clock-names = "main"; - nvmem-cells = <&svs_calibration>, - <&thermal_calibration>; - nvmem-cell-names = "svs-calibration-data", - "t-calibration-data"; - }; - thermal: thermal@1100b000 { #thermal-sensor-cells = <1>; compatible = "mediatek,mt8183-thermal"; - reg = <0 0x1100b000 0 0x1000>; + reg = <0 0x1100b000 0 0xc00>; clocks = <&infracfg CLK_INFRA_THERM>, <&infracfg CLK_INFRA_AUXADC>; clock-names = "therm", "auxadc"; @@ -1210,6 +1198,18 @@ thermal: thermal@1100b000 { nvmem-cell-names = "calibration-data"; }; + svs: svs@1100bc00 { + compatible = "mediatek,mt8183-svs"; + reg = <0 0x1100bc00 0 0x400>; + interrupts = ; + clocks = <&infracfg CLK_INFRA_THERM>; + clock-names = "main"; + nvmem-cells = <&svs_calibration>, + <&thermal_calibration>; + nvmem-cell-names = "svs-calibration-data", + "t-calibration-data"; + }; + thermal_zones: thermal-zones { cpu_thermal: cpu-thermal { polling-delay-passive = <100>;