From patchwork Tue May 30 20:12:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 101098 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2444001vqr; Tue, 30 May 2023 13:32:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ZQ9KGMsHt8nTPPXJpyvbaWtVjdDyUY+HVNhMPu2FAeTyeTvi6yCNq3GErTKyK8ASZkd41 X-Received: by 2002:a05:6a20:12c7:b0:111:366:ee9f with SMTP id v7-20020a056a2012c700b001110366ee9fmr4068885pzg.48.1685478742182; Tue, 30 May 2023 13:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685478742; cv=none; d=google.com; s=arc-20160816; b=ltAuPE7HtB8+IYup2t6TUEo/4QOdi+r+Cnbl8FQYlZbcXvyt7JWpC6D98FtAnpiHbN GwZBARLr/3y7WZAPBFN6LuxvdW6NVEAcWPm8iMqc+zIuCHayeBcCFjbPRIrim8axCDeP +EixC01u701mTAElFi0jH9bNaYU08CdQ8+R8FAXFH3T4KwQLryRdBoDGRaS4wTdA2X8W LD14E1Nk1EynB+W435Kt27V8CROMiDrzuFJS8xPgo3awbYDo1Jad/7+X7EXbNczuJHrj sygPVi1o8lp+fSuneMfLasaLBUjOFABBTGMPUt0O2dIbPGx2FcHIZxO1+xow7fozRDr7 Yq+g== 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=bXh/enNCt6k/VhDbW4GU/2xM8uza5LciUBEJxVS6EdI=; b=Jlxw/1CDH1WSlniYCkXg9IrICwoeWu7jhbtXf+V7BMjBtKbjExvRLmx85nACzj+Rpz KhrWoN40TuL40ZoWUAcizgNVNqeW5FHhWLycaJq0akjKYTJWAkrr3hwvtyY0kW5FnTp+ wZNVq2xWbfiy9AwaV3ODmLs5YCleZRF5QstitKH0o9Pk536iKej8hFqPWRZhGvIvCItd aNUfiQamUDBYqkYUH+8rsQCGU07QY+Be1ZVHJ1MWnuF/id47pk8pZjm3rDo1GgYKazZH EImdg1Xpct5WAvbBqwgdbQ8lef5daIj5lcRVZPnlq03uYbOAUJdH3VhpNyoo5ERQFsXv R1/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=CI8BBcYb; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x71-20020a63864a000000b0053fb3688fadsi1984295pgd.144.2023.05.30.13.32.09; Tue, 30 May 2023 13:32:22 -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=CI8BBcYb; 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 S233276AbjE3UNm (ORCPT + 99 others); Tue, 30 May 2023 16:13:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232847AbjE3UNg (ORCPT ); Tue, 30 May 2023 16:13:36 -0400 Received: from mxout3.routing.net (mxout3.routing.net [IPv6:2a03:2900:1:a::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25A24106; Tue, 30 May 2023 13:13:35 -0700 (PDT) Received: from mxbox1.masterlogin.de (unknown [192.168.10.88]) by mxout3.routing.net (Postfix) with ESMTP id 9E38062608; Tue, 30 May 2023 20:13:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1685477613; 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=bXh/enNCt6k/VhDbW4GU/2xM8uza5LciUBEJxVS6EdI=; b=CI8BBcYbvix0dTim705n4OMjImZz6V/xlQ/NOsayZsWYdaz0AMBFPnx4W2blggIxZ/o0QE Njfo1MNnEJtOuhKnGyrFzzIdLc3sxhRtuv5vSk5vRDlUurCYgBuof80wfqZi0fplupWlY5 xzgWfpJE1thUuH9z6qij6vrdS68CrYI= Received: from frank-G5.. (fttx-pool-217.61.157.145.bambit.de [217.61.157.145]) by mxbox1.masterlogin.de (Postfix) with ESMTPSA id 649944092B; Tue, 30 May 2023 20:13:32 +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 v3 2/4] arm64: dts: mt7986: add thermal and efuse Date: Tue, 30 May 2023 22:12:33 +0200 Message-Id: <20230530201235.22330-3-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230530201235.22330-1-linux@fw-web.de> References: <20230530201235.22330-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: ad369705-4d0d-4dc7-9ee8-39fb1ed9b23d 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767352557922988853?= X-GMAIL-MSGID: =?utf-8?q?1767352557922988853?= From: Daniel Golle Add thermal related nodes to mt7986 devicetree. Signed-off-by: Daniel Golle Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- changes in v3: - efuse compatibles in one line --- arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 36 ++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi index aa9e679b78e2..ad4fd77b65a7 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi @@ -337,6 +337,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"; @@ -375,6 +384,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"; @@ -426,6 +450,17 @@ 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"; @@ -567,5 +602,4 @@ wifi: wifi@18000000 { memory-region = <&wmcpu_emi>; }; }; - };