From patchwork Fri Apr 21 13:20:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 86306 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1068557vqo; Fri, 21 Apr 2023 06:30:49 -0700 (PDT) X-Google-Smtp-Source: AKy350ZobSnVMFsPs62BFzFbIN6FwTCCsIBR/a18vtUBxnLkJeNNYFQLSALBQEjRhqjhJ2WDX/ap X-Received: by 2002:a05:6a21:788a:b0:f2:339d:50ed with SMTP id bf10-20020a056a21788a00b000f2339d50edmr5501762pzc.60.1682083848950; Fri, 21 Apr 2023 06:30:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682083848; cv=none; d=google.com; s=arc-20160816; b=u/8TOoTwe7hlJmMhGQ5UOt0QSE2r3iKG96OjclyXBWXE0EVGn/h16yPIVAhwJPtdVd UwEBRookWbfJKnhV5GEu/88xSHjOTST79pszmJQ9dQFKa8FT71YiZQsuWR/QWa+dmyjI XkgQZd5NrhuGd5rKjpFJ4dgxtLBkwlelo5IO3utY9F8FF03VFZmWrlTqZ0eu1/E9ENYe LZ0JlyyvrQxI9n+sz8nBoy34MBL7tuTSwoVqRzdOuk68OEphigzGdx/V43B+UEDD1XC8 ZeSdJPq8MZegvNlBIbHsgJ20XtYv0nKtxpNtkCenlGd+TAknLqEyyRgCBlXBUyDHZzth BmlA== 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=mHOqo4HIEyB7ktMTIGmhNIv8WSv4OG8N14TT+vETEfY=; b=mH7KSPIAk45q8jMsJavdMeJTdRmNKGqRAzVcSpeJPHdQqyCN1A/rZgUU/atLoC6eFp LrvHHrkkvB9gbEo2OFZnmC6ywwvv7Xkh6q4WskZECzV5gT1JNBWw1DzyaQEyVLdLRtlz oSPfBGjQIAU1AMyqyvLofIMe4xPUcCfzIAqc8GNTQEz0RGUDFwYCqM+fcNxDCYPDuvXW 0mw2wvRD9NSIMWz4CnrOmr4eHya3yMxk3FQ94gYmMr1w1TmXWfZQYt0oM9czgPN1zP/3 R/UUrTsWAch8bf/WzL+SioA1z5oByi5/0DUb4Xm0F41XmhxXecNpFIHsUMw1eb0PqJy6 +SQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=o9E6v+gu; 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 k196-20020a6284cd000000b0063b886a1786si4401194pfd.22.2023.04.21.06.30.35; Fri, 21 Apr 2023 06:30:48 -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=o9E6v+gu; 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 S231459AbjDUN35 (ORCPT + 99 others); Fri, 21 Apr 2023 09:29:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231226AbjDUN3v (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 7A73110E0; 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 97F093FC7E; Fri, 21 Apr 2023 13:20:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1682083254; 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=mHOqo4HIEyB7ktMTIGmhNIv8WSv4OG8N14TT+vETEfY=; b=o9E6v+gujiezFk2NdyxP//YaF1oxEfhftHFfrnGRImu9HuaQolymY5kM3gNHsJeAy3XTcT BaAX02pfjXln71AVTA/54satIDDLpKKxyPvWL2zzG/ODhhyB4qC+YSKTVQ0ZYsluGYZnqa aT2nhtcB7b+smEtXP4BPqhv4T50YKWo= Received: from frank-G5.. (fttx-pool-217.61.159.143.bambit.de [217.61.159.143]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 9E0A810078A; Fri, 21 Apr 2023 13:20:53 +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 1/7] dt-bindings: nvmem: mediatek: efuse: add support for mt7986 Date: Fri, 21 Apr 2023 15:20:41 +0200 Message-Id: <20230421132047.42166-2-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 X-Mail-ID: 360423d2-8823-4f65-8664-11db58bb00fa 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?1763792754194958222?= X-GMAIL-MSGID: =?utf-8?q?1763792754194958222?= From: Frank Wunderlich Add compatible string for mt7986 SoC. Signed-off-by: Frank Wunderlich Acked-by: Rob Herring --- Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml b/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml index 75e0a516e59a..e3894f9d566e 100644 --- a/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml +++ b/Documentation/devicetree/bindings/nvmem/mediatek,efuse.yaml @@ -27,6 +27,7 @@ properties: - enum: - mediatek,mt7622-efuse - mediatek,mt7623-efuse + - mediatek,mt7986-efuse - mediatek,mt8173-efuse - mediatek,mt8183-efuse - mediatek,mt8186-efuse From patchwork Fri Apr 21 13:20:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 86314 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1075755vqo; Fri, 21 Apr 2023 06:41:38 -0700 (PDT) X-Google-Smtp-Source: AKy350Zr9T88tyL2h1tynTPqiLaaybReOnNAP5kR8pJKiXdWOrFkjI8U0NwffZ6XHdA3bBSo70bS X-Received: by 2002:a05:6a00:178b:b0:63a:fb40:891a with SMTP id s11-20020a056a00178b00b0063afb40891amr7525407pfg.2.1682084498341; Fri, 21 Apr 2023 06:41:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682084498; cv=none; d=google.com; s=arc-20160816; b=xgmxGwaoh5yNfgPoTZ1a+9SPB2RiWZt4q38hG3HssNF4XBaKhsyvKVfyH/WHUCtHoR 81D57Nf5Lelp+fR41LftMAACkjNj+BvUesJZ89xWKD3yui7WAZjPaZUZE3uAypWOBJ1l oGVZa8mMbwMkRenEHlnnK5BuxtoCgo2pHpXM5Zff4xYWKFlwLxXwm82xBvpp0YqffiZ0 D5AfuPHCyQMLqKsnG9c77vVyf+kgLr9vGPN1GZAeH23YK1+fFYigvgrtGKLmGrih3zGj BWdP7g4cfZY/tw8gkc9nHDlKe6swr3SXR6S6RDggSRyYcFAq5pQcrKPZhiqPogz3uewk WouQ== 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=Ing+04FHy9azxnBKKQYS9GlB1I/nT9NemmbN45zAZMM=; b=EWtj2t8PsfPfs2Bp4ppqq92kxziD3+qu9z76GUEJBIrArEXNk5oMZdbtVtRAuJ7Y8t KdTweJXqFuwdtvPQW3t0HVShBwbSDKOF1/eVPk3Gx8wA+4jFQYiSLQ4A3f3iAt5/ZI+H NBgHl/5Qpek2ZnTqyQlPdfnhW5t6q4jrzRfJ04eBwwxMEYeA1MR6szDdH+aMFiW/3lh4 PuVkY3T8GepDzb+ypTwWMvXmIILpZNZanWFZbpVMq2UUHWxGeNp+yUVBwCcoUya8Hf1V p1IDWZX31q0Yna7y6Jsoy6X/RvSKAQN9thDRztHteUKWQ7qCMbpHnXQRLavzHzn/Fij3 DVHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=lRZMmgZ9; 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 u71-20020a62794a000000b0063601bd1cc9si4287636pfc.321.2023.04.21.06.41.26; Fri, 21 Apr 2023 06:41:38 -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=lRZMmgZ9; 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 S232459AbjDUN1D (ORCPT + 99 others); Fri, 21 Apr 2023 09:27:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231731AbjDUN05 (ORCPT ); Fri, 21 Apr 2023 09:26:57 -0400 X-Greylist: delayed 361 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 21 Apr 2023 06:26:56 PDT Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48B6BC17C; Fri, 21 Apr 2023 06:26:56 -0700 (PDT) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout2.routing.net (Postfix) with ESMTP id 7886660518; Fri, 21 Apr 2023 13:20:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1682083255; 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=Ing+04FHy9azxnBKKQYS9GlB1I/nT9NemmbN45zAZMM=; b=lRZMmgZ9DFw3/xJxUm5Z5jLlPJ053LKjmLH+F05gwNMKu4OYyBzXU/kmxcBbEr3H1x0XBO NKKnBUVRVDDUfzZs1gvsfj5dO0k3q7avNXWtKlVO5+5Ph+PsEE2pXjiSAyoNDjquKCnHHI 6hPYevKIoGCYQyXb6j2SCIOta0OlqF8= Received: from frank-G5.. (fttx-pool-217.61.159.143.bambit.de [217.61.159.143]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 82DA310072A; Fri, 21 Apr 2023 13:20:54 +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 2/7] dt-bindings: iio: adc: Add support for MT7986 Date: Fri, 21 Apr 2023 15:20:42 +0200 Message-Id: <20230421132047.42166-3-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 X-Mail-ID: 53b6faa0-46e6-4992-a972-e498238c0908 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?1763793434709018095?= X-GMAIL-MSGID: =?utf-8?q?1763793434709018095?= From: Frank Wunderlich Add compatible string and specific clock property for mt7986. Signed-off-by: Frank Wunderlich --- .../devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml b/Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml index 7f79a06e76f5..6168b44ea72c 100644 --- a/Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml @@ -26,6 +26,7 @@ properties: - mediatek,mt2712-auxadc - mediatek,mt6765-auxadc - mediatek,mt7622-auxadc + - mediatek,mt7986-auxadc - mediatek,mt8173-auxadc - items: - enum: From patchwork Fri Apr 21 13:20:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 86315 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1075768vqo; Fri, 21 Apr 2023 06:41:40 -0700 (PDT) X-Google-Smtp-Source: AKy350bbwRQRu+P8VPiGRw0itdPX3dW7DsCjBUsTbBtUd2+7iHLU3PvanBSQzqzcMZtvKeJmEtc1 X-Received: by 2002:a17:902:ab58:b0:1a2:87a2:c910 with SMTP id ij24-20020a170902ab5800b001a287a2c910mr4451008plb.53.1682084500069; Fri, 21 Apr 2023 06:41:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682084500; cv=none; d=google.com; s=arc-20160816; b=VOmiAxJs3x/3hlXHOpQN/DO87hKSAQ61+jyHkjWh4HBn8nOaWMfnnMwGJlvY67GTsH X8nYN5Fe+QWLWcO2c/z4xeDyUBGCwWUI/Bh94tcV5x6LM7QwvabdxZ6Cuup4/R+yDBsi tox3e8O+d8FEMpbUc6wiFPw1pZ5xUzWogwcKwzN4V8Tr/XXfL0HKbSutaIjVZ/fMkEIG bPqAkXOBgd7YWr3+GOHQohOo7Y5D6ZGzVmnrqT+xhJLXXKb1ix0KKkJ8MAbNdx5889j8 zshEpey0JHDhrzaYjdrbhYduOfZSI0qv7nYqPYy/8uLOFYKmE2IK5jB3p7s5BZ1hSQOL Z7Pw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13-20020a170902684d00b0019ca19614c7si4309381pln.69.2023.04.21.06.41.27; Fri, 21 Apr 2023 06:41:40 -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 S232083AbjDUN3y (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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763793436869935235?= X-GMAIL-MSGID: =?utf-8?q?1763793436869935235?= 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>; }; }; - }; From patchwork Fri Apr 21 13:20:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 86309 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1070970vqo; Fri, 21 Apr 2023 06:33:55 -0700 (PDT) X-Google-Smtp-Source: AKy350Z2YASfYWpjOPdJFCDVSGqgXJ165uRQMm0I0QvTB7KG9hOBzVhctFPUencOcBZ1M9qgp0x+ X-Received: by 2002:a17:90a:1b4b:b0:23f:962e:825d with SMTP id q69-20020a17090a1b4b00b0023f962e825dmr5702781pjq.1.1682084035046; Fri, 21 Apr 2023 06:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682084035; cv=none; d=google.com; s=arc-20160816; b=kB5QXLSqSlJlgFY05eaQnSKwah67mLv0IViF53wDOXlYQM2dOCzPqoYPR2+j2Ib4a+ wyyb/Gj7VktXbI8ETIAjA8bmrNjpCwmV+8Lb4P29CEpu9fbA8klIdzGl2c3lkl1oEw3a hGiOATVHSEr8skS8XdX5QhQxQ+R5P1LvUov+YXyi/Kwj7aozVwtEvVLAGI+LmGmtYAc1 lCQsoPfT/mMfbcE4f+g/C0NwC8cbk4TjZMiEZcWQBZs2sgg9LhbO+etZLZdJSw8FGG69 jrZFZzbOPGPRGerfH4s2dpqi/uo1gCgDRjAkhq5dgJIBdhHSG6PUWEqsthWDiWVzqLkH YkLA== 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=xrmWdssTBgZOrykp/nvNV4GPcLmobxUOfAu5yBCmoZs=; b=z9imxreYm76bT29Iblh/V5SKML5POc60v5BOH6vPnI4p6VtKlo+uIcBvjQ49ndQMYy siwni53xaRNs1f2cjYvXt6eGe4xW4x3tsq68KOr518BACYenBi1lui8QtwsJEZnPvlwx bYqvruYS9Xq3Ye1DBIVT46jgcM25gO0GQZtTFZShYNXPC+AiqimkZDXLo/AT41zmfFlS 7NAfFHdnIYTnkYHUM7Wf1OtFSo/Uc7y3qsNRt7EcGDXBr70ZDbLORsbcYGD8qN9vicGv MLDp85hghgRk+wRybNQzwccc+uxgUvOr/APVcz/bOU0y/I2/iaXD5pY55XsUk7NaPETp BPBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=rmYesXrO; 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 ls9-20020a17090b350900b002477ddfa2f3si4866189pjb.182.2023.04.21.06.33.39; Fri, 21 Apr 2023 06:33:55 -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=rmYesXrO; 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 S232360AbjDUN07 (ORCPT + 99 others); Fri, 21 Apr 2023 09:26:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230148AbjDUN05 (ORCPT ); Fri, 21 Apr 2023 09:26:57 -0400 Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56061C675; Fri, 21 Apr 2023 06:26:56 -0700 (PDT) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout2.routing.net (Postfix) with ESMTP id 37C5460659; Fri, 21 Apr 2023 13:20:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1682083257; 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=xrmWdssTBgZOrykp/nvNV4GPcLmobxUOfAu5yBCmoZs=; b=rmYesXrOV1tW9rPiprxVCKZWeIwOco4ylGe3KzI65UFoIx25kGWF9brnoWGjxgS1iR1Bcd ZZfgQQcxHlqVGWQy8rtZBDYpWXtdq+JBj2XdNVES3fs2GH1mCUmIz7eQkh2DfCJHlrwER0 Nu00aK7bkcyDZiCrFEGHCcJXLxadK60= Received: from frank-G5.. (fttx-pool-217.61.159.143.bambit.de [217.61.159.143]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 442C410072A; Fri, 21 Apr 2023 13:20:56 +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 4/7] arm64: dts: mt7986: add PWM Date: Fri, 21 Apr 2023 15:20:44 +0200 Message-Id: <20230421132047.42166-5-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 X-Mail-ID: bde81c03-93b2-4a40-8fda-fbb03b5859d9 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?1763792948771758087?= X-GMAIL-MSGID: =?utf-8?q?1763792948771758087?= From: Daniel Golle This adds pwm node to mt7986. Signed-off-by: Daniel Golle Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi index a38965e23825..a409d5e845c2 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi @@ -240,6 +240,20 @@ crypto: crypto@10320000 { status = "disabled"; }; + pwm: pwm@10048000 { + compatible = "mediatek,mt7986-pwm"; + reg = <0 0x10048000 0 0x1000>; + #clock-cells = <1>; + #pwm-cells = <2>; + interrupts = ; + clocks = <&topckgen CLK_TOP_PWM_SEL>, + <&infracfg CLK_INFRA_PWM_STA>, + <&infracfg CLK_INFRA_PWM1_CK>, + <&infracfg CLK_INFRA_PWM2_CK>; + clock-names = "top", "main", "pwm1", "pwm2"; + status = "disabled"; + }; + uart0: serial@11002000 { compatible = "mediatek,mt7986-uart", "mediatek,mt6577-uart"; From patchwork Fri Apr 21 13:20:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 86308 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1069391vqo; Fri, 21 Apr 2023 06:31:51 -0700 (PDT) X-Google-Smtp-Source: AKy350ZsExjt8UKrwR5N8F8ZVtVcO/ofCTTAIWP1VcYqgUUD1RkGW+oyHjdphdVKHlLRZxmOM2tW X-Received: by 2002:a05:6a20:914b:b0:ef:890c:3005 with SMTP id x11-20020a056a20914b00b000ef890c3005mr6851618pzc.17.1682083911692; Fri, 21 Apr 2023 06:31:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682083911; cv=none; d=google.com; s=arc-20160816; b=vSksk4xx3CElg9ZYWuRC6i59BIDb5uNd+R4anFxZg7FIvtjUxKIf7HT6KuSOfKCpQY bFNiIy05/ftXXercCV/y5mGJTwFiOy63fkZetvyrDG7ozWyXahJV1FkUbrr5idouoqWF EAiPyHsmZa/Z7kh67FAEls9DUaKfkfSX6Gj/QuaODcJeFvaxcyGMIp/QtCqbFo0HnmIU bflrJEAOiANxVC6EEd3nfHQ/aned22J7QJAnb13KEFUrAj/x/Tze2MDZ3i1UVh+UlU5T O+5NoxYdOEUJ27/bMSddwD6fn3IFNXgVWxHzoC4DDHWrd5vA9y5G2rD0VaxsT6uQmBXE YtyA== 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=t44L4PTrhbK6D0p+6ylhl2O6MzEiiAOATjFq63Zbih0=; b=J3X8Sv+0OU4rFPAH1UUNspHPGoV8FpgmWAoTFQmHtVtTu0bajWEzWbsYhjh0pMYJLm /13d3XZA6uDEQrlxRQOg2EqHp20zDDFJ9npYo3p5GG6zldM6cvn1bLv37Y1LTMoEX7j4 QWWCCnAp7iKtw15OaLfjuYllMmxUqAqDgm5tKk1kKVrDdBgJMtfYeOq5FEZEyUpNNBnB KhwcZFsSvwlyA4PFmvBOpMXdp0Tah5OYMotYdU5nqxCJj09Cy2cHteZDxSYh3SiYSm72 o8H2IAhsyPrfAfSdZBhIbU2QP6M9zx2QwUc+1laIQEudyxIQTF3V3Gyp5x1SxQqoXsEU UrVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=um3C1eaz; 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 l190-20020a6388c7000000b0051446aaeaf1si4197900pgd.637.2023.04.21.06.31.39; Fri, 21 Apr 2023 06:31:51 -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=um3C1eaz; 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 S232392AbjDUNaG (ORCPT + 99 others); Fri, 21 Apr 2023 09:30:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232196AbjDUN3z (ORCPT ); Fri, 21 Apr 2023 09:29:55 -0400 Received: from mxout4.routing.net (mxout4.routing.net [IPv6:2a03:2900:1:a::9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F35E410E0; Fri, 21 Apr 2023 06:29:53 -0700 (PDT) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout4.routing.net (Postfix) with ESMTP id 23B3B10120C; Fri, 21 Apr 2023 13:20:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1682083258; 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=t44L4PTrhbK6D0p+6ylhl2O6MzEiiAOATjFq63Zbih0=; b=um3C1eazgsWx7DDRNeT2e+DxzwF4WC8m0/DlYPXzFbgljHNLd6wjLt/WNWOzkIWkwT3KnK eGX6kFXGwRaQuRY1eY0GFUWOtE4VUusjdt1S2pfe5FFwEcIdUYvhysVEcSlne0lt6sWrv1 5X1rCnQsMMD31XJKTYTJUoU6gcBYBU8= Received: from frank-G5.. (fttx-pool-217.61.159.143.bambit.de [217.61.159.143]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 2A9711007E3; Fri, 21 Apr 2023 13:20:57 +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 5/7] arm64: dts: mt7986: add PWM to BPI-R3 Date: Fri, 21 Apr 2023 15:20:45 +0200 Message-Id: <20230421132047.42166-6-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 X-Mail-ID: 2a9dabd6-f8f5-4683-b208-d6dbddd4de4e 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?1763792819313192133?= X-GMAIL-MSGID: =?utf-8?q?1763792819313192133?= From: Frank Wunderlich Add pwm node and pinctrl to BananaPi R3 devicetree. Signed-off-by: Frank Wunderlich --- .../boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts index 2b028141f1f7..782519429497 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts +++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts @@ -274,6 +274,13 @@ mux { }; }; + pwm_pins: pwm-pins { + mux { + function = "pwm"; + groups = "pwm0", "pwm1_0"; + }; + }; + spi_flash_pins: spi-flash-pins { mux { function = "spi"; @@ -344,6 +351,12 @@ mux { }; }; +&pwm { + pinctrl-names = "default"; + pinctrl-0 = <&pwm_pins>; + status = "okay"; +}; + &spi0 { pinctrl-names = "default"; pinctrl-0 = <&spi_flash_pins>; From patchwork Fri Apr 21 13:20:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 86307 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1068771vqo; Fri, 21 Apr 2023 06:31:06 -0700 (PDT) X-Google-Smtp-Source: AKy350ZEOgL/rWzq8oQAP/CdThG8XmBqVGidmOi4jeBnMcWM9geQy1ZtNJ3OeGh3TYab2GIleyzK X-Received: by 2002:a17:902:f544:b0:1a6:84be:a08f with SMTP id h4-20020a170902f54400b001a684bea08fmr6122827plf.64.1682083865623; Fri, 21 Apr 2023 06:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682083865; cv=none; d=google.com; s=arc-20160816; b=NdXHmIm0tOc8rmMP9bOg34pqJ1gKHK9VJRrqAArzxo+2bezFdLta+RsIJtN45wJzmk RsnArFGgRmfz40J+WW8i4tku8SvVnba0sJEpuvaxg0ldZacTtoPWwTEpV/Oir0QRBNei 0X6/NzetVIYuBlB17spE63k9fQibuqli7gFH97ByLVVFp25WXdQP2e6jILMMLnREFlL9 eGejv0ocuHnuPeJsweNaoPwxm9uc1iKFRsLMLQOrjVZZ7K86enq7xURlmQvEq3WFjD0f 0luvWXNsE22CRs3QmwPv+2e8bBaMgJEuKjYqkqMzewzubHlQeptfMNxEnkNbwWUxKVhd APIQ== 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=G0r0DPCZt1EU488fl2GZEqSoMWdqqn9V2ojnp3z0FnE=; b=uTHAvUxDcDe1Z5JXvEvM1UwdDJX5s7BtakL9szmEmLKIF+pbtNurPuL/UbyKR6PfNx CWAJozXC4CQ9KNtOo7D22Qqt8FBcmc429JF8MJS7SBtvmabfvvB9Kzn+27C2nJpaZ1mD e1PVSK+5ouxbv7O15+H0MBc+CxfsTAv3f9hOQmAoE3kjQkIib8Upg4TMva4E42CmZNhG D26Gd81HAwOFt15X5J1ZcO2Ls50xql0bj9V1CXtBR9s3RyWnUUnNAQDfl522Js7qjmI3 6Qz49IFRDVcDgGON/lJpjyTdQKEL78Rvo8E2eiTgt89OsvNH6lmJuJHlu6soIEAuqNIw gZSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=UR4nsX1r; 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 ij18-20020a170902ab5200b001a1b454e535si4163678plb.257.2023.04.21.06.30.52; Fri, 21 Apr 2023 06:31:05 -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=UR4nsX1r; 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 S232440AbjDUNaB (ORCPT + 99 others); Fri, 21 Apr 2023 09:30:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231923AbjDUN3x (ORCPT ); Fri, 21 Apr 2023 09:29:53 -0400 Received: from mxout1.routing.net (mxout1.routing.net [IPv6:2a03:2900:1:a::a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F736F2; Fri, 21 Apr 2023 06:29:52 -0700 (PDT) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout1.routing.net (Postfix) with ESMTP id 1C172403F3; Fri, 21 Apr 2023 13:20:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1682083259; 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=G0r0DPCZt1EU488fl2GZEqSoMWdqqn9V2ojnp3z0FnE=; b=UR4nsX1r2aXnxpPuEaO65hov5YFHqI6djkFgTMhrnWyj63ZWLuhJlewOo5544FPp1+UgP4 N6WAsS3x0rWze0vX0EseVtLBI5ZPUGU4jJBZpqERpBYsQISLw1Uh0JJv0RXYjQ8XEemfRa +ruFmmCim29eRZGRt1EDMjERyp7xULQ= Received: from frank-G5.. (fttx-pool-217.61.159.143.bambit.de [217.61.159.143]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 119EE10072A; Fri, 21 Apr 2023 13:20:58 +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 6/7] arm64: dts: mt7986: add thermal-zones Date: Fri, 21 Apr 2023 15:20:46 +0200 Message-Id: <20230421132047.42166-7-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 X-Mail-ID: 5d68a617-c55d-461a-a20f-0eeaabed9417 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?1763792771617498868?= X-GMAIL-MSGID: =?utf-8?q?1763792771617498868?= From: Daniel Golle Add thermal-zones to mt7986 devicetree. Signed-off-by: Daniel Golle Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 40 +++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi index a409d5e845c2..845b29a9664a 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi @@ -603,4 +603,44 @@ wifi: wifi@18000000 { memory-region = <&wmcpu_emi>; }; }; + + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive = <1000>; + polling-delay = <1000>; + thermal-sensors = <&thermal 0>; + + trips { + cpu_trip_crit: crit { + temperature = <125000>; + hysteresis = <2000>; + type = "critical"; + }; + + cpu_trip_hot: hot { + temperature = <120000>; + hysteresis = <2000>; + type = "hot"; + }; + + cpu_trip_active_high: active-high { + temperature = <115000>; + hysteresis = <2000>; + type = "active"; + }; + + cpu_trip_active_low: active-low { + temperature = <85000>; + hysteresis = <2000>; + type = "active"; + }; + + cpu_trip_passive: passive { + temperature = <40000>; + hysteresis = <2000>; + type = "passive"; + }; + }; + }; + }; }; From patchwork Fri Apr 21 13:20:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 86305 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1067728vqo; Fri, 21 Apr 2023 06:29:46 -0700 (PDT) X-Google-Smtp-Source: AKy350Zay2BBOLkYe6ZFewRLgn1S3lD0/nGaRPdtsmLqWVOTlimoQCow8PeS5P68vsEqMsi/cgfM X-Received: by 2002:a05:6a20:8e19:b0:f2:630e:f60f with SMTP id y25-20020a056a208e1900b000f2630ef60fmr2880130pzj.36.1682083786646; Fri, 21 Apr 2023 06:29:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682083786; cv=none; d=google.com; s=arc-20160816; b=ZAIZQIkL3EXjCjQJhYQBOrnTHxBvuuPA1I0QCH2iqa4ZJTkk2nZTbT5dpD0rnoA0PT gFh4x5Cnp7zjXZm/oVN0y4Po3byOHxgHT/OkmQM9Osm6C96mjHDYrlivKqLeZdmPozH/ TvtwLWyQ2jvdwE7k98KCgmx7qskS5uCnljf6wz5+cn+WMnN3GDgUe/rUPYE+J1L9zbEE vchBMxXRfFRUFQTfQVTP9qDPe9M7BQNownmY8aQUKSSg823S6fkQP4LL2IoelKiE7Qk6 pXwXJoUR5IfNKhN534f0pivjhQR4cx37MUqIV9sm1ZVs9b8C3Mcan4p6SOcPvkHZKtOT dNFQ== 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=NiNTNWADcq8Wf9sTDfcLcaA78qUAbBkS8piCK+YIth4=; b=KJUWaj0G10aEE7sqSfLBvjwfL8puexM5OZ9whRZv292HH7wLiuGgmTp21sOJKg2JOk qmzStAADJ78sX2ShMV39phLgfqxAHK4XS8YxTvfxAeXwd7PJpJfBM2j9gbO4HeUgvCOD tHnj/prtM0Baq0ywm/uCNgfkcRZjgy0qRv0RutfiHJCbbUU7M0Izyvs4VjpGZd1+bLBp fHWDwtzCjO/lWmSAmpKrLlmZ+hsepmUSTpsftdIYkwhWsUkIk6nlzcQoES1GrkbQVlYs eiPSNDWUz6qliEveLEbEoFm+uDVEojTxvCuUR/S/04yLQGwAffKxKZM8gyEIVQoI6h0b OhVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=GtRSq3+S; 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 v71-20020a63894a000000b0051a24ba4d74si4201176pgd.837.2023.04.21.06.29.34; Fri, 21 Apr 2023 06:29:46 -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=GtRSq3+S; 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 S232456AbjDUN1G (ORCPT + 99 others); Fri, 21 Apr 2023 09:27:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230148AbjDUN1A (ORCPT ); Fri, 21 Apr 2023 09:27:00 -0400 Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28483C17C; Fri, 21 Apr 2023 06:26:59 -0700 (PDT) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout2.routing.net (Postfix) with ESMTP id 12A946035B; Fri, 21 Apr 2023 13:21:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1682083260; 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=NiNTNWADcq8Wf9sTDfcLcaA78qUAbBkS8piCK+YIth4=; b=GtRSq3+StukDoPcXTwschldIT9Dh74lS8zWFW/HR3WD2Gprt28Ek92ULzH7jPn+2yEne+P rYmNv/xPJpdA8sGSw0z0zdh0s5oBGf0pny9jULvFO5WkAHYVQ2g4mVIWKCDCUFZD7dZA/V 21zP22t/SyrakEx5djdaovOHFlikY9w= Received: from frank-G5.. (fttx-pool-217.61.159.143.bambit.de [217.61.159.143]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 0DADE10078A; Fri, 21 Apr 2023 13:20:59 +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 7/7] arm64: dts: mt7986: add pwm-fan and cooling-maps to BPI-R3 dts Date: Fri, 21 Apr 2023 15:20:47 +0200 Message-Id: <20230421132047.42166-8-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 X-Mail-ID: ffa0c9e8-5f36-4bc6-80fc-5fd1b0adccf6 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?1763792688592599859?= X-GMAIL-MSGID: =?utf-8?q?1763792688592599859?= From: Daniel Golle Add pwm-fan and cooling-maps to BananaPi-R3 devicetree. Signed-off-by: Daniel Golle Signed-off-by: Frank Wunderlich --- this is based on Patch from openwrt. as my PWM-fan seems to need 5v pwm signal and r3 only provides 3v3 on 3pin-socket it does not work for me. --- .../dts/mediatek/mt7986a-bananapi-bpi-r3.dts | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts index 782519429497..29c018bbf29d 100644 --- a/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts +++ b/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3.dts @@ -37,6 +37,15 @@ dcin: regulator-12vd { regulator-always-on; }; + fan: pwm-fan { + compatible = "pwm-fan"; + #cooling-cells = <2>; + /* cooling level (0, 1, 2) - pwm inverted */ + cooling-levels = <255 96 0>; + pwms = <&pwm 0 10000 0>; + status = "okay"; + }; + gpio-keys { compatible = "gpio-keys"; @@ -132,6 +141,28 @@ sfp2: sfp-2 { }; }; +&cpu_thermal { + cooling-maps { + cpu-active-high { + /* active: set fan to cooling level 2 */ + cooling-device = <&fan 2 2>; + trip = <&cpu_trip_active_high>; + }; + + cpu-active-low { + /* active: set fan to cooling level 1 */ + cooling-device = <&fan 1 1>; + trip = <&cpu_trip_active_low>; + }; + + cpu-passive { + /* passive: set fan to cooling level 0 */ + cooling-device = <&fan 0 0>; + trip = <&cpu_trip_passive>; + }; + }; +}; + &crypto { status = "okay"; };