From patchwork Tue Oct 25 07:42:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 10570 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp863177wru; Tue, 25 Oct 2022 00:43:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6mjWzDUMCblKP8ikbTRH6n6dMiJzQwR6lq2uSWo37F11mL/fkEKG0NPbD2uOiEaO/olH+y X-Received: by 2002:a05:6a00:2289:b0:56b:b912:4800 with SMTP id f9-20020a056a00228900b0056bb9124800mr11305035pfe.62.1666683809373; Tue, 25 Oct 2022 00:43:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666683809; cv=none; d=google.com; s=arc-20160816; b=CrB1tzzsU23Taj+uaXj0KkC4SwaQcLG5WSCpzGNtVDTrbsEsLEnb3z3dGXD1IAX6xY SRR3NSk/62h81KB+3RPHKGK8ojUHb43VpdhwAqpetAkaPsdVz8Zdo2Jw7rQocdhzkP/h zku+A/DRUlPrYmB4diG4gXXMaxRiIXs2wzTR7m/5WZYUHbb4CcCgToxdajKmDPxjA6lA WXPNyhDcAmdRR3Wnu4jQQdWEy7l9FY/1skOi/Wylpv0oqqqy3+edEmM7Bfg7RLdGYEI4 K44pO2E+KsMg0CvDSvIFC97w5vcG6k9LrqIeN3ie96FRWHyE2gX0dR+F1Hplwrzd72oS lkQA== 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=t6qFQWHmKSFyBCgF8VJRGuHsK4Ei7rkne6tsfke6P0E=; b=Jf3ario052PJb7hfFTPtYFmyUkt2CxCWnXA+vxItfMTQvyggYw5fwVPDaOK+ao8T3l oM7RnRtf+YmFVKnMoYc/TAXoxLnYJtzNGfPfd9PY/Y5Ly+3WPfP6emsgiwD9DQ+92/6s OmWqm7CA1A+2KnWEnJ9rggYMZqlS5WsxueiX7h9eHvY7d5FuJEb0j+cJTFQILbG/ib4K nVn5hUiXQyUvzxHN7cJCKO1P5aETM1a1uVKBbzRBIYB2OMnJpxZcV+G9tmO8p9C0sMNB URqBWaqwvHnEgTEGZvPQWaWeGjeqAbqElbh2ayywhch5QR0L2z/ftAEhjx35pmrjloP4 8uVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=hvp3OaNL; 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 bk13-20020a056a02028d00b0043954dec8c1si2072035pgb.615.2022.10.25.00.43.16; Tue, 25 Oct 2022 00:43:29 -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=hvp3OaNL; 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 S231991AbiJYHmz (ORCPT + 99 others); Tue, 25 Oct 2022 03:42:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231953AbiJYHmr (ORCPT ); Tue, 25 Oct 2022 03:42:47 -0400 Received: from mxout1.routing.net (mxout1.routing.net [IPv6:2a03:2900:1:a::a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C47B515A94C; Tue, 25 Oct 2022 00:42:45 -0700 (PDT) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout1.routing.net (Postfix) with ESMTP id A2A4241A41; Tue, 25 Oct 2022 07:42:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666683763; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t6qFQWHmKSFyBCgF8VJRGuHsK4Ei7rkne6tsfke6P0E=; b=hvp3OaNLPnEHPkvGEL6eRRA9k8zTbF/FAYyKsOIh60ozxvTYJ0LwF+VPhCs8fE3IJcVpud vrrdMxch6mdP/czn3jY8VMGqsyB804SyyA42hmrIMJtrxF9i/au67HLGBIxTdqT07ZREGI fDE9khkSOwxBlAYGvB7tPpOOE1PbEY4= Received: from frank-G5.. (fttx-pool-217.61.152.57.bambit.de [217.61.152.57]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 654A4360953; Tue, 25 Oct 2022 07:42:42 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Chaotian Jing , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Wenbin Mei , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sam Shih , =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Krzysztof Kozlowski Subject: [PATCH v4 1/6] dt-bindings: mmc: mtk-sd: Set clocks based on compatible Date: Tue, 25 Oct 2022 09:42:33 +0200 Message-Id: <20221025074238.18136-2-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221025074238.18136-1-linux@fw-web.de> References: <20221025074238.18136-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: cd1a738d-76ed-44e9-8321-d6fe3baf420a 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,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?1747644642031520717?= X-GMAIL-MSGID: =?utf-8?q?1747644642031520717?= From: Nícolas F. R. A. Prado The binding was describing a single clock list for all platforms, but that's not really suitable: Most platforms using at least 2 clocks (source, hclk), some of them a third "source_cg". Mt2712 requires an extra 'bus_clk' on some of its controllers, while mt8192 requires 8 clocks. Move the clock definitions inside if blocks that match on the compatibles. I used Patch from Nícolas F. R. A. Prado and modified it to not using "not" statement. Fixes: 59a23395d8aa ("dt-bindings: mmc: Add support for MT8192 SoC") Signed-off-by: Nícolas F. R. A. Prado Signed-off-by: Frank Wunderlich Reviewed-by: Krzysztof Kozlowski --- v2: - add this patch v3: - add blank lines and change "not" to matchlist - reorder entries - make generic first then order alphanumeric - rewrite commit description - drop soc-specific mt8183 - constraints were also set for it above v4: - re-add mt8183 reg-minitems --- .../devicetree/bindings/mmc/mtk-sd.yaml | 123 +++++++++++++----- 1 file changed, 93 insertions(+), 30 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml index d8e1e2e9adf2..0cedeb12892d 100644 --- a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml +++ b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml @@ -10,9 +10,6 @@ maintainers: - Chaotian Jing - Wenbin Mei -allOf: - - $ref: mmc-controller.yaml# - properties: compatible: oneOf: @@ -48,27 +45,11 @@ properties: description: Should contain phandle for the clock feeding the MMC controller. minItems: 2 - items: - - description: source clock (required). - - description: HCLK which used for host (required). - - description: independent source clock gate (required for MT2712). - - description: bus clock used for internal register access (required for MT2712 MSDC0/3). - - description: msdc subsys clock gate (required for MT8192). - - description: peripheral bus clock gate (required for MT8192). - - description: AXI bus clock gate (required for MT8192). - - description: AHB bus clock gate (required for MT8192). + maxItems: 7 clock-names: minItems: 2 - items: - - const: source - - const: hclk - - const: source_cg - - const: bus_clk - - const: sys_cg - - const: pclk_cg - - const: axi_cg - - const: ahb_cg + maxItems: 7 interrupts: description: @@ -190,15 +171,97 @@ required: - vmmc-supply - vqmmc-supply -if: - properties: - compatible: - contains: - const: mediatek,mt8183-mmc -then: - properties: - reg: - minItems: 2 +allOf: + - $ref: mmc-controller.yaml# + - if: + properties: + compatible: + enum: + - mediatek,mt2701-mmc + - mediatek,mt6779-mmc + - mediatek,mt6795-mmc + - mediatek,mt7620-mmc + - mediatek,mt7622-mmc + - mediatek,mt7623-mmc + - mediatek,mt8135-mmc + - mediatek,mt8173-mmc + - mediatek,mt8183-mmc + - mediatek,mt8186-mmc + - mediatek,mt8188-mmc + - mediatek,mt8195-mmc + - mediatek,mt8516-mmc + then: + properties: + clocks: + minItems: 2 + items: + - description: source clock + - description: HCLK which used for host + - description: independent source clock gate + clock-names: + minItems: 2 + items: + - const: source + - const: hclk + - const: source_cg + + - if: + properties: + compatible: + contains: + const: mediatek,mt2712-mmc + then: + properties: + clocks: + minItems: 3 + items: + - description: source clock + - description: HCLK which used for host + - description: independent source clock gate + - description: bus clock used for internal register access (required for MSDC0/3). + clock-names: + minItems: 3 + items: + - const: source + - const: hclk + - const: source_cg + - const: bus_clk + + - if: + properties: + compatible: + contains: + const: mediatek,mt8183-mmc + then: + properties: + reg: + minItems: 2 + + - if: + properties: + compatible: + contains: + const: mediatek,mt8192-mmc + then: + properties: + clocks: + items: + - description: source clock + - description: HCLK which used for host + - description: independent source clock gate + - description: msdc subsys clock gate + - description: peripheral bus clock gate + - description: AXI bus clock gate + - description: AHB bus clock gate + clock-names: + items: + - const: source + - const: hclk + - const: source_cg + - const: sys_cg + - const: pclk_cg + - const: axi_cg + - const: ahb_cg unevaluatedProperties: false From patchwork Tue Oct 25 07:42:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 10571 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp863232wru; Tue, 25 Oct 2022 00:43:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6rkVKtwuOm3x8WjVR5XEAVbPbUG/30C1RQY1lJHWO8AwqXbsK1cZw2BcCU2dXhZZr9vU0n X-Received: by 2002:a63:101:0:b0:460:6d90:3f81 with SMTP id 1-20020a630101000000b004606d903f81mr30473130pgb.545.1666683820725; Tue, 25 Oct 2022 00:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666683820; cv=none; d=google.com; s=arc-20160816; b=E1vCourPNCe24ddDjdppu3Ffu3wVvTSzeeOXHwdYzpAYWF9yx37fK1RVUqBod/1TRM zrW8cq7zo7XUjqsZrFtoUtdkW/xLL/4tsB1qz4jJD2mukRXotyYa0g6do9l1c4lSzlYp 1L7z2urlMbgYE2tLqm7+Suh/FNO6Co6Jy4UAoDZ8w5yXEmJQOKrIMlXjaScxBpHECjZ9 Nc5YkJ+pOBKvGIzi+nEuxhiR/5h+1IVjFh1jf/XTkGKcHOsOBbSM7beqmNZgJZe/+9+O Px/swa5/OUPWzQsOkS0nrTmA+ISFLoXEaXdnG9vc0NEHVSney47On9JN39Go6nwO/hBe 3REg== 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=xStNbI+qmIaGoqmahuZTp38b/5MuCsHvo39qK7NqrGI=; b=T+15J943trenVvWsywFqfols+nwoZh9j8SjAxhoD9A/pgo1dyRLxPFhwMynjR7Xolp 1fF0C2CZyBhIhYBSRw2+lWAkFEBjThYAHLPk7n+HnX03ofWPrzXBGi+jqgTXc4c7e4IO 7oalqiU5+50XzMgLESESaq/ihXF37Wase24SvXHZLf+AikXp71RaD4Xr1KYXqGQ72vmr VfCFT+V8VfGBSzdvf/+GgN0Rig/LTfPb+/JDKFhNHK4j8kcfqf9ZJTp59YJMTqxxdoCU rCx9zvqFLlbKqW8HcP9S5uV9t3CygGzxp5ko5hbGEWaoIHI1Z6A/+o441XgcU62G05EU niIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=lomFOLxp; 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 c5-20020aa78e05000000b00565ba4c501asi1946653pfr.276.2022.10.25.00.43.28; Tue, 25 Oct 2022 00:43: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=lomFOLxp; 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 S232010AbiJYHm6 (ORCPT + 99 others); Tue, 25 Oct 2022 03:42:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231947AbiJYHmr (ORCPT ); Tue, 25 Oct 2022 03:42:47 -0400 Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2897A14704F; Tue, 25 Oct 2022 00:42:46 -0700 (PDT) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout2.routing.net (Postfix) with ESMTP id 9BB7460480; Tue, 25 Oct 2022 07:42:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666683764; 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=xStNbI+qmIaGoqmahuZTp38b/5MuCsHvo39qK7NqrGI=; b=lomFOLxpiIWu8V8qmQhQnF6Y/moZ2CQBEQdTOpHqktPJE59xh52PYsY5OTw1w0Tn9Fy/+F 49YKxFWUzuJuhLgPyAiA5MTDv8YmCxkvLId4zdVNnP0LJhlCeiDbol50A6lDXUI9R/oHC4 jCzJ+fzqkruukNKihN4A1yZEu9FOZuo= Received: from frank-G5.. (fttx-pool-217.61.152.57.bambit.de [217.61.152.57]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 93B1F360678; Tue, 25 Oct 2022 07:42:43 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Chaotian Jing , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Wenbin Mei , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sam Shih , Sam Shih Subject: [PATCH v4 2/6] dt-bindings: mmc: Add support for Mediatek MT7986 Date: Tue, 25 Oct 2022 09:42:34 +0200 Message-Id: <20221025074238.18136-3-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221025074238.18136-1-linux@fw-web.de> References: <20221025074238.18136-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 42c42f34-b7e4-47a3-8309-8ce7891be767 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,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?1747644653967673933?= X-GMAIL-MSGID: =?utf-8?q?1747644653967673933?= From: Sam Shih This commit adds dt-binding documentation of mmc for Mediatek MT7986 SoC Platform. Add SoC specific section for defining clock configuration. Signed-off-by: Sam Shih Signed-off-by: Frank Wunderlich --- v3: - drop assigned-clocks/assigned-clock-parents - fix clock description v4: - update binding for mt7986 (new mtk version) - squashed part 1 (compatible) and 3 (SoC specific clock config) and so dropped Ack from Rob for 1rst Part --- .../devicetree/bindings/mmc/mtk-sd.yaml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml index 0cedeb12892d..a7fb54416717 100644 --- a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml +++ b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml @@ -20,6 +20,7 @@ properties: - mediatek,mt6795-mmc - mediatek,mt7620-mmc - mediatek,mt7622-mmc + - mediatek,mt7986-mmc - mediatek,mt8135-mmc - mediatek,mt8173-mmc - mediatek,mt8183-mmc @@ -237,6 +238,31 @@ allOf: reg: minItems: 2 + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt7986-mmc + then: + properties: + clocks: + minItems: 3 + items: + - description: source clock + - description: HCLK which used for host + - description: independent source clock gate + - description: bus clock used for internal register access (required for MSDC0/3). + - description: msdc subsys clock gate + clock-names: + minItems: 3 + items: + - const: source + - const: hclk + - const: "source_cg" + - const: "bus_clk" + - const: "sys_cg" + - if: properties: compatible: From patchwork Tue Oct 25 07:42:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 10572 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp863240wru; Tue, 25 Oct 2022 00:43:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7FEVC0dGCY3Q+ecDS/ali4d6oceO9TKseDancSHkZl4i3Rdhqo1hGLq7AeQjYkaJC5Aika X-Received: by 2002:a17:902:aa8b:b0:178:8f1d:6936 with SMTP id d11-20020a170902aa8b00b001788f1d6936mr37724196plr.168.1666683822553; Tue, 25 Oct 2022 00:43:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666683822; cv=none; d=google.com; s=arc-20160816; b=pnp7JJbHRnIfAFXcwZak16/2GnP4/+mV83k2o/9JAjOmE9cdonlGWADfS63QYIBfce 7oo8F/TaFF3Z34SadHtjelmb/ACKqxVYdAuwiHLVYVvDNNfhTKZD46xk4BQh0REa6ioD liFAefjeqevzxl1YvUHum6v28GaWoQlqNY51xJZwsJW2gyg/dZoFTDdGOppnpXlxILz+ mOyaDDVUwi7PWovI3ZS++CQwTR5oPt4i/w8+4LzD6Mtd1jlUK/kVgdwBUNJEQWWa1LWc E6Hh1c8rURqYWSInwRp0p6QWdgH9XNU3J/obeBKGgBlNadOuriXDz2ETTNLuvDSUyKGT hfFw== 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=m0tnr5ZD8EC2va1ebYMWM4ouc4PlgDpshSSnTTqC0Pw=; b=HnhZnNNm7FtO3kLk7+ykl9Sda7o9ivIp0rPXI9b2m1EFLHw6DlfN93Sk/nWVwAwbjR QU7t/e39hKWKAuEUUYPaGDdwMNhgBEbWFwP9zf+D/XQs1S7NWVj3jgoXDBNJN9gBh7QI 4RdqwHGQCVRQYrl2Cy97s9Wb+9REnG1LJRNX0mbsI9i0NiqcENIE39roQ5WTlI8WEb3v yWKTCWjpV1x+HFxP62Blc6kAQc2eeL7t1AcuFSmUPCg2fVYiPnbapPzf/+ec7xt2o9mQ 0ObyL9UcJTdCDPvOlILTERAUIzMI0od3+1JUtWAIkTHG2s8hO43s+XJ+EDiSk0SnE0oI lxNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=T6ILDSnt; 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 jj12-20020a170903048c00b00176e85e5ceasi1903169plb.405.2022.10.25.00.43.29; Tue, 25 Oct 2022 00:43:42 -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=T6ILDSnt; 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 S232020AbiJYHnD (ORCPT + 99 others); Tue, 25 Oct 2022 03:43:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231938AbiJYHms (ORCPT ); Tue, 25 Oct 2022 03:42:48 -0400 Received: from mxout3.routing.net (mxout3.routing.net [IPv6:2a03:2900:1:a::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C4BB15A8E7; Tue, 25 Oct 2022 00:42:47 -0700 (PDT) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout3.routing.net (Postfix) with ESMTP id 7DC3B625BD; Tue, 25 Oct 2022 07:42:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666683765; 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=m0tnr5ZD8EC2va1ebYMWM4ouc4PlgDpshSSnTTqC0Pw=; b=T6ILDSntEIQG1Lxfaudwh18uKwgDURHsEnVpRrwudk2wmE2Nkv4pRrC3LEClFMoMwqm0hc M0oO2pzuiWZ290pHr7+ZhSZS6zoobZ1BARZR9XVeAauja3LOvKGf2ueZy6Jva3oQP4iWjQ ChVGPvjSSNCMsG7zcQBx+RTlHoaVGXc= Received: from frank-G5.. (fttx-pool-217.61.152.57.bambit.de [217.61.152.57]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 9EB97360310; Tue, 25 Oct 2022 07:42:44 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Chaotian Jing , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Wenbin Mei , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sam Shih Subject: [PATCH v4 3/6] arm64: dts: mediatek: mt2712e: swap last 2 clocks to match binding Date: Tue, 25 Oct 2022 09:42:35 +0200 Message-Id: <20221025074238.18136-4-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221025074238.18136-1-linux@fw-web.de> References: <20221025074238.18136-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 2109dc3c-1eb0-4146-986b-e8934a220a40 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,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?1747644655937382969?= X-GMAIL-MSGID: =?utf-8?q?1747644655937382969?= From: Frank Wunderlich First 3 clocks for mt2712 need to be "source", "hclk", "source_cg" so swap last 2 of mmc0 to match the binding. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi index e6d7453e56e0..9dc0794fcd2e 100644 --- a/arch/arm64/boot/dts/mediatek/mt2712e.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt2712e.dtsi @@ -766,9 +766,9 @@ mmc0: mmc@11230000 { interrupts = ; clocks = <&pericfg CLK_PERI_MSDC30_0>, <&pericfg CLK_PERI_MSDC50_0_HCLK_EN>, - <&pericfg CLK_PERI_MSDC30_0_QTR_EN>, - <&pericfg CLK_PERI_MSDC50_0_EN>; - clock-names = "source", "hclk", "bus_clk", "source_cg"; + <&pericfg CLK_PERI_MSDC50_0_EN>, + <&pericfg CLK_PERI_MSDC30_0_QTR_EN>; + clock-names = "source", "hclk", "source_cg", "bus_clk"; status = "disabled"; }; From patchwork Tue Oct 25 07:42:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 10573 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp863539wru; Tue, 25 Oct 2022 00:44:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6A8i+VsjltACETli03m5Iee6ySkIr2vaLHoSOwCytwLRXXcJX25D/xvbccPd13r8VgnSgw X-Received: by 2002:a17:90b:190c:b0:211:ab56:35e6 with SMTP id mp12-20020a17090b190c00b00211ab5635e6mr32035415pjb.159.1666683884188; Tue, 25 Oct 2022 00:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666683884; cv=none; d=google.com; s=arc-20160816; b=LYXGhNmwnvdzOtxVAHru9XeveOftHNKYYASSj2i3Z7TcCOCaK0pf+6opihfqXX7q9u 4k8CEuiVJrlpcC35sjociPh7AyJwGIcTZHEjez0aGG/uyrCygQpz2E21QtAcxXQ5CT7m NZj8pKI7L3iUAh89J9voaKVQPZ/0OClXxfoXtbVfS42UplwMt6ueQFN7z9uTQEWfVoeO 81pUmjl/u9JmbkptaDZ0h8bT3wuPRw/z5juZNQEAFJFNKWOe717TRzPuHQF1BbzYDDEU pWh1HHUwvGNwwePwwY7rH5HP3Jb+MDxwEBMftf3OLW1hqPcrfD3bQM4s6F5AZgHpGV+9 zlcw== 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=DkHMIRX0PtZEilJiS4bmFZHJWooEn5VptusI4EzbSkk=; b=ovu2Oonj9Kas71dHdsKH8yMeIlXAazykZZFjvnaN9GJwJ9Wc5ulumwZNxpXocORc3Y hKxGxbJShNa7/XJpt+fjwmVRFsC9K9tbcCYIaD1GHTv6fS46mxAE/83u+WaGYtqAkXcf M3UQUdl9zi8KLfiOFdGrLRYYmrY+/0OyzjHXufX0+UBHFbNmKNEa5PwFIykKjI6uoFtD bYBIgLrQnls20u900xARH9Fppr7NrZW7URUIvRk4rIyF64N+jdjn80IG+Q1oVtbPSsCS nY2j0WPsHY4V5PzZ1fWCoxkFh4BdzzrB7H4U2anFWdeh+xWaPYywXzkd/3tf9c4wamS7 NY8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=uii0EGfl; 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 v202-20020a6361d3000000b0043c0b4f2b68si2056268pgb.318.2022.10.25.00.44.30; Tue, 25 Oct 2022 00:44:44 -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=uii0EGfl; 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 S232031AbiJYHnI (ORCPT + 99 others); Tue, 25 Oct 2022 03:43:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231949AbiJYHmt (ORCPT ); Tue, 25 Oct 2022 03:42:49 -0400 Received: from mxout1.routing.net (mxout1.routing.net [IPv6:2a03:2900:1:a::a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A3CD15B112; Tue, 25 Oct 2022 00:42:48 -0700 (PDT) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout1.routing.net (Postfix) with ESMTP id 65B6841A53; Tue, 25 Oct 2022 07:42:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666683766; 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=DkHMIRX0PtZEilJiS4bmFZHJWooEn5VptusI4EzbSkk=; b=uii0EGflDVHmZsFI4cwZvKqaivOyyCORh4gP+CB++8htVc5HQvIu1nzmMN4hxsymo/gW/y Bp2cLCT2PxbrtmnzVpN+ujHJWNnIA2TZUgurl5N+iwt3YbfdEHyyVVn0we+8Q1fy5iqIjX cniK5etOARelxAzrZK9Jc62RniO09qo= Received: from frank-G5.. (fttx-pool-217.61.152.57.bambit.de [217.61.152.57]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 7818B360953; Tue, 25 Oct 2022 07:42:45 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Chaotian Jing , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Wenbin Mei , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sam Shih Subject: [PATCH v4 4/6] arm64: dts: mt8183: drop drv-type from mmc-node Date: Tue, 25 Oct 2022 09:42:36 +0200 Message-Id: <20221025074238.18136-5-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221025074238.18136-1-linux@fw-web.de> References: <20221025074238.18136-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 2d6ddf6b-49f9-4c48-bfbe-4b9b7499098e 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,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?1747644720770749312?= X-GMAIL-MSGID: =?utf-8?q?1747644720770749312?= From: Frank Wunderlich This property is not defined in binding and driver. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi index b4b86bb1f1a7..0c9b18c16c89 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi @@ -378,7 +378,6 @@ &mmc1 { mmc-pwrseq = <&wifi_pwrseq>; bus-width = <4>; max-frequency = <200000000>; - drv-type = <2>; cap-sd-highspeed; sd-uhs-sdr50; sd-uhs-sdr104; From patchwork Tue Oct 25 07:42:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 10574 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp863546wru; Tue, 25 Oct 2022 00:44:45 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6dhVCcLxR6bDubWBNaSqQU2DoK5R15shS6zG35HlA8TBazjSSteLNBA+5nODLNmMiVsU1S X-Received: by 2002:a17:90b:1e43:b0:213:1efe:9815 with SMTP id pi3-20020a17090b1e4300b002131efe9815mr8296319pjb.164.1666683885477; Tue, 25 Oct 2022 00:44:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666683885; cv=none; d=google.com; s=arc-20160816; b=qClGo+Y81JmiVMqXcefY2F6qMX9emneMQNqWAFojayzGuDHuQM5YB5wtAkBtosQTdd +6wybW5PPJiFNPFQHbG8VTeLCvOdiRiSDnGFyGDdmwltcpt2HSRDLzjyZ8Bv0nos5YYT sgENSKjHAYMU49hhunWQmh4evjeyyOBdw67dyf3vfi0NoW7LBxQBrNqHvVfSFGy+fE7J W1WA9KI+EShLZ2jMUhdO7tTJym11Js/lrHc0vvnTCfPMqfcj1bwvMM9VgQsiinciaPyp 0QglCsZvfGjFsuM0M4XE6+d0KqwolbvUVrHr8sTuepqR3forD2WNxTHO1Tu/GDk+K3Et RRJg== 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=rMnfisK/hDmrrndbTYh3V3/FJiHDh0xeFPqPbDK9Zow=; b=qx38XfnOeLNQC7UEtRK03UlUzBGu32eVBglQ0LxDv5oq1j5jnA4QxcqbrOKpfdxNQq phy9jrfjPSrUzr4KAD496uWRpcgjPFKSGhwemVz/DHkGb6YPIwVGa3EwhXXdNE0G9egO tC6gwdCo/llJraPBZHWuFWvLX3eQkhwBRYl1Pw8BcDQ5aWndSgRZPp7hFIzXVcNlHLBw gDQnGDGHo/FbkZBF6DaqLApr34gANIdy9Jh8PTSHuXzqgraAsPPo5jcUVm7skdBqNqn4 aWXaLIEFDcguWPg/U8a7IVmJ6bfRqtz4zc+RPhnkEGrid0VTnCUYZZnLq5osSHWe3jeO SHjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=f1mP4aqj; 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 k62-20020a633d41000000b004588a5bd0bfsi2162924pga.569.2022.10.25.00.44.32; Tue, 25 Oct 2022 00:44:45 -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=f1mP4aqj; 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 S232041AbiJYHnM (ORCPT + 99 others); Tue, 25 Oct 2022 03:43:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231962AbiJYHmu (ORCPT ); Tue, 25 Oct 2022 03:42:50 -0400 Received: from mxout4.routing.net (mxout4.routing.net [IPv6:2a03:2900:1:a::9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A60415B124; Tue, 25 Oct 2022 00:42:49 -0700 (PDT) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout4.routing.net (Postfix) with ESMTP id 49E41101A65; Tue, 25 Oct 2022 07:42:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666683767; 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=rMnfisK/hDmrrndbTYh3V3/FJiHDh0xeFPqPbDK9Zow=; b=f1mP4aqjq5wkxMN5gPtEtu1ev81iuwEq2o1/t294TVA5GLsOJfiDpG/+dQdPp5rHqOX4gT BbXjpilXS9X9MJqJpN3rHND/g7+LuXmnPVY9gK6Ipgk4lxo6ZxggClrvPwqJ3PeNphnrmE NEAtreI1L/FMSRqwN8ybCJWKRuKRNu8= Received: from frank-G5.. (fttx-pool-217.61.152.57.bambit.de [217.61.152.57]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 5AA4D360678; Tue, 25 Oct 2022 07:42:46 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Chaotian Jing , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Wenbin Mei , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sam Shih Subject: [PATCH v4 5/6] arm64: dts: mt7622: drop r_smpl property from mmc node Date: Tue, 25 Oct 2022 09:42:37 +0200 Message-Id: <20221025074238.18136-6-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221025074238.18136-1-linux@fw-web.de> References: <20221025074238.18136-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: ca207c87-d84f-4200-b533-1ad5a24f085f 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,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?1747644721468761121?= X-GMAIL-MSGID: =?utf-8?q?1747644721468761121?= From: Frank Wunderlich This property is not defined in binding and driver. Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 1 - arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts index d3f9eab2b784..af3fe61e4093 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts @@ -235,7 +235,6 @@ &mmc1 { bus-width = <4>; max-frequency = <50000000>; cap-sd-highspeed; - r_smpl = <1>; cd-gpios = <&pio 81 GPIO_ACTIVE_LOW>; vmmc-supply = <®_3p3v>; vqmmc-supply = <®_3p3v>; diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts index 36722cabe626..b74e774c6eba 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts @@ -208,7 +208,6 @@ &mmc1 { bus-width = <4>; max-frequency = <50000000>; cap-sd-highspeed; - r_smpl = <1>; cd-gpios = <&pio 81 GPIO_ACTIVE_LOW>; vmmc-supply = <®_3p3v>; vqmmc-supply = <®_3p3v>; From patchwork Tue Oct 25 07:42:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 10576 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp863806wru; Tue, 25 Oct 2022 00:45:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5tmQ9cUjKiyV1JWn92dAWuDhhfNwQvDhs6zOqZayZQffnepJGJIFrTHpPTXyBqfjbrli3G X-Received: by 2002:a17:90a:6845:b0:210:7ef5:ab99 with SMTP id e5-20020a17090a684500b002107ef5ab99mr34138345pjm.80.1666683924572; Tue, 25 Oct 2022 00:45:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666683924; cv=none; d=google.com; s=arc-20160816; b=DrSmHYFjrsVAJ6o+jKhhBCfpoyHpzYI0szViLpzEHY4FudOU3u6KiThoZ/j1Wqweap fParE5KaaR664AwC09wq38jBsTkDmDzIx0832pZBo68lUN9aQTtDMj0AKy5bw4+4vmrZ V8OYXvVj0r9VpTgS2dVRHOcuBgRx/BWSp+kO1ujsQ6wN1qE3GFUTDE7SjnhokYdSoVEb s3WEY9PH7B00KAAAZHSTgVLrfZ1feKEPBnnEuzUHWbpK5XF4r0vQkOSKMzh6CLrp11vm JZgEBnyBdShyf2JPJVZ9qtc5oDrIH4BUpmqS4gZN403YZqHoajV3r4nch/k9oaVj2ZBb 57Ag== 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=9YIiUZlTrjdPAMVHM7klpVqQezdSDroJaCTYC5nvEj0=; b=L/+jygS5AHzKEf6l6gikckjylSSPevFmyGZayQL4f44tHHWGK4aUWYvRGccAb1vx5m 7W/SHqGLovih144+U+V/A+kjTHwzzDQD8rlv9MO+VOwBrPWvpgzXzVIt46laBWKWjIRQ CtMoGLpBOgQQ+9pmABsiL7v20sB+hQDFnAQ5u26tMYWMvlPMPmJC/ptyY1V2hZDH+urL Yif0Skb84zczXDToW5Nc8erAmUZYJi/QIDzB92NmTmcvZZLjgJvhyQme7vRaRlc2bSWJ y+Zi6pI0CMZ9wYtUBoCjKBfSpFpfiDDFH/ZGTK9zQQi9mol9NTrVrr0TIF0TCKgE7U7U BaNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b="jjN/qTIW"; 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 p21-20020a17090a931500b002121890521csi10476786pjo.119.2022.10.25.00.45.11; Tue, 25 Oct 2022 00:45:24 -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="jjN/qTIW"; 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 S231969AbiJYHnS (ORCPT + 99 others); Tue, 25 Oct 2022 03:43:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231985AbiJYHmy (ORCPT ); Tue, 25 Oct 2022 03:42:54 -0400 Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8810215B302; Tue, 25 Oct 2022 00:42:49 -0700 (PDT) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout2.routing.net (Postfix) with ESMTP id 368D96050E; Tue, 25 Oct 2022 07:42:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666683768; 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=9YIiUZlTrjdPAMVHM7klpVqQezdSDroJaCTYC5nvEj0=; b=jjN/qTIWkHOJVJ7PLMaZt76lgdWzdRJfbGiWQBZdFB0eS8q6aObyaaf1zHwfzxl/f0YuWL rEjAcxTdKxCMrs9CDg8hMrwGBo5/uTuS1WcvjF+L8LmSXN1B1EzhrpcuwLjij4YUkM2cME 3YVnp8HK28SNNMifWjrjPeUDj+lUd5o= Received: from frank-G5.. (fttx-pool-217.61.152.57.bambit.de [217.61.152.57]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 3EF9B360310; Tue, 25 Oct 2022 07:42:47 +0000 (UTC) From: Frank Wunderlich To: linux-mediatek@lists.infradead.org Cc: Frank Wunderlich , Chaotian Jing , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Wenbin Mei , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sam Shih , Sam Shih Subject: [PATCH v4 6/6] mmc: mediatek: add support for MT7986 SoC Date: Tue, 25 Oct 2022 09:42:38 +0200 Message-Id: <20221025074238.18136-7-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221025074238.18136-1-linux@fw-web.de> References: <20221025074238.18136-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 698909de-f190-41ca-b759-7c49a09373a3 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,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?1747644763165269415?= X-GMAIL-MSGID: =?utf-8?q?1747644763165269415?= From: Sam Shih Adding mt7986 own characteristics and of_device_id to have support of MT7986 SoC. Signed-off-by: Sam Shih Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- drivers/mmc/host/mtk-sd.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index df941438aef5..3f7f3a1e0df8 100644 --- a/drivers/mmc/host/mtk-sd.c +++ b/drivers/mmc/host/mtk-sd.c @@ -552,6 +552,19 @@ static const struct mtk_mmc_compatible mt7622_compat = { .support_64g = false, }; +static const struct mtk_mmc_compatible mt7986_compat = { + .clk_div_bits = 12, + .recheck_sdio_irq = true, + .hs400_tune = false, + .pad_tune_reg = MSDC_PAD_TUNE0, + .async_fifo = true, + .data_tune = true, + .busy_check = true, + .stop_clk_fix = true, + .enhance_rx = true, + .support_64g = true, +}; + static const struct mtk_mmc_compatible mt8135_compat = { .clk_div_bits = 8, .recheck_sdio_irq = true, @@ -609,6 +622,7 @@ static const struct of_device_id msdc_of_ids[] = { { .compatible = "mediatek,mt6795-mmc", .data = &mt6795_compat}, { .compatible = "mediatek,mt7620-mmc", .data = &mt7620_compat}, { .compatible = "mediatek,mt7622-mmc", .data = &mt7622_compat}, + { .compatible = "mediatek,mt7986-mmc", .data = &mt7986_compat}, { .compatible = "mediatek,mt8135-mmc", .data = &mt8135_compat}, { .compatible = "mediatek,mt8173-mmc", .data = &mt8173_compat}, { .compatible = "mediatek,mt8183-mmc", .data = &mt8183_compat},