Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2245732rwr; Fri, 21 Apr 2023 06:30:26 -0700 (PDT) X-Google-Smtp-Source: AKy350Yw9E3qYAwhNUzjeMo86SgvXvI2ailzNTPWMWTf2O5rJoN69j1daPB4OoB44/1VGzpBaYvY X-Received: by 2002:a17:90a:194b:b0:247:9c7d:523a with SMTP id 11-20020a17090a194b00b002479c7d523amr4498961pjh.4.1682083825924; Fri, 21 Apr 2023 06:30:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682083825; cv=none; d=google.com; s=arc-20160816; b=o5KknM+bEAjj+6HZonRbCEeCwtstURq1fw2tiqfCEdzOqTDFYhavqRy9IpGS+XHjxP NNsueEjPQtB+c3xeHvg4L2ftV8suXwVOrz/KMw25BrEZ0+DbiN80ZopgmSmCtVBx7qLv erFWm9wd0TjMOZFoh77DO2PhwINx5qu28GZs+KYSwZB+5eLT1FH7JOCt2mraEZf0t85c PJpgligMhE2M/Ip23CV3jZtM0Wtlesaji2MWqlH99MzPLRbSVHlHvnAqpXyZZ87xJanD Ky3I5XxufuuxeSz3pxyfRr0RpE3XE3sLAsfgINqOUlh07a+eVLTdKWL9PT5o/QbaP1BN zokQ== 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=Chq2A5ZaKQ5AonXzE0cmKnIIyaGF0ZRsNYPxOGHLHdk=; b=X8Ck9elMkIA9eLmbdryGlOz3RhMKl6c3UiKEQkTmmkScH3qnOsEfdBTR4EEwDGEKA8 l9RKpBWGDSzCuf1Lh7cZukcDUFud1xh3Wdvs0SertpiIbqUMqG1lWKGJ5fSTCMqtCw0Y 6yrVYMzkNqjNZwQShE6kwHljLIM7PQT7QG3E3Sofgzbo+L6xJRKpAJkcToPu0kQ3JpRJ KH5lH7oIeHR5yWQD9fw/wc5pi1nj1G5oWDQnq2r5saZsWHCeDEjY9HYNvDA1KnzpS08F PKDy+xhmgxmFmhXkOSXPj7mQlwOvY9k3lBzqiia9PPk+9L7dnekKuLteekGk6iK2TsQy KcEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=PruVhIsu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r2-20020a63e502000000b00513973cb8b8si4275994pgh.202.2023.04.21.06.30.12; Fri, 21 Apr 2023 06:30:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=PruVhIsu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232079AbjDUN3y (ORCPT + 99 others); Fri, 21 Apr 2023 09:29:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231459AbjDUN3v (ORCPT ); Fri, 21 Apr 2023 09:29:51 -0400 Received: from mxout1.routing.net (mxout1.routing.net [IPv6:2a03:2900:1:a::a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC5FDF2; Fri, 21 Apr 2023 06:29:48 -0700 (PDT) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout1.routing.net (Postfix) with ESMTP id 5BFAA401E6; Fri, 21 Apr 2023 13:20:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1682083256; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Chq2A5ZaKQ5AonXzE0cmKnIIyaGF0ZRsNYPxOGHLHdk=; b=PruVhIsuYMJcYiD4PID30UKnRStIz7edJS8EZMRdfvOr5ywuRQkVmjEuvFKIzO3dv6Dzpi Mp/qF+to4zLBo/1OLIvxF/YRoBpXT5Iy2nWJ0ESrJ00mMzhGfiZTJdsTMxlOiAOxNN+vh7 Lq3fzI5jnZCu6+TLtadK6m7JVYjHvLQ= Received: from frank-G5.. (fttx-pool-217.61.159.143.bambit.de [217.61.159.143]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 634601007E3; Fri, 21 Apr 2023 13:20:55 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Srinivas Kandagatla , "Hui.Liu" , Zhiyong Tao , Andrew-CT Chen , Lala Lin , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Daniel Golle Subject: [PATCH v1 3/7] arm64: dts: mt7986: add thermal and efuse Date: Fri, 21 Apr 2023 15:20:43 +0200 Message-Id: <20230421132047.42166-4-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230421132047.42166-1-linux@fw-web.de> References: <20230421132047.42166-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mail-ID: f64cf289-99f5-410a-8bbb-41118ff9e27b X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 From: Daniel Golle Add thermal related nodes to mt7986 devicetree. Signed-off-by: Daniel Golle Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 37 ++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi index 51944690e790..a38965e23825 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi @@ -323,6 +323,15 @@ spi1: spi@1100b000 { status = "disabled"; }; + auxadc: adc@1100d000 { + compatible = "mediatek,mt7986-auxadc"; + reg = <0 0x1100d000 0 0x1000>; + clocks = <&infracfg CLK_INFRA_ADC_26M_CK>; + clock-names = "main"; + #io-channel-cells = <1>; + status = "disabled"; + }; + ssusb: usb@11200000 { compatible = "mediatek,mt7986-xhci", "mediatek,mtk-xhci"; @@ -361,6 +370,21 @@ mmc0: mmc@11230000 { status = "disabled"; }; + thermal: thermal@1100c800 { + #thermal-sensor-cells = <1>; + compatible = "mediatek,mt7986-thermal"; + reg = <0 0x1100c800 0 0x800>; + interrupts = ; + clocks = <&infracfg CLK_INFRA_THERM_CK>, + <&infracfg CLK_INFRA_ADC_26M_CK>, + <&infracfg CLK_INFRA_ADC_FRC_CK>; + clock-names = "therm", "auxadc", "adc_32k"; + mediatek,auxadc = <&auxadc>; + mediatek,apmixedsys = <&apmixedsys>; + nvmem-cells = <&thermal_calibration>; + nvmem-cell-names = "calibration-data"; + }; + pcie: pcie@11280000 { compatible = "mediatek,mt7986-pcie", "mediatek,mt8192-pcie"; @@ -412,6 +436,18 @@ pcie_port: pcie-phy@11c00000 { }; }; + efuse: efuse@11d00000 { + compatible = "mediatek,mt7986-efuse", + "mediatek,efuse"; + reg = <0 0x11d00000 0 0x1000>; + #address-cells = <1>; + #size-cells = <1>; + + thermal_calibration: calib@274 { + reg = <0x274 0xc>; + }; + }; + usb_phy: t-phy@11e10000 { compatible = "mediatek,mt7986-tphy", "mediatek,generic-tphy-v2"; @@ -553,5 +589,4 @@ wifi: wifi@18000000 { memory-region = <&wmcpu_emi>; }; }; - }; -- 2.34.1