From patchwork Tue Oct 25 13:29:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 10785 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1008442wru; Tue, 25 Oct 2022 06:32:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Y6OZ4DZVi8aqHr6WKbKXxhbtLFqHqTF1UVnjQCrsGK0m2pHGz6WhJIJsG6StS3alf6eJ6 X-Received: by 2002:a05:6a00:80b:b0:56c:cde:1a77 with SMTP id m11-20020a056a00080b00b0056c0cde1a77mr5661597pfk.57.1666704721088; Tue, 25 Oct 2022 06:32:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666704721; cv=none; d=google.com; s=arc-20160816; b=ukNkX5WFuIZpJytiM8ZcJx/0rWAOthm5LOqhJFyJDoZJIyHLw2ofVXYToD8yMr2mtG Ey4pp8+6aXoBQ16temp9F8U5L1yop2sHsqiOMwV7HYhKV6RWstlA/iGq+WlhcLiOtFOP an6Rd63Y3QrkmRJweiQKgwKBvsqIPhQpBApu6/hZeHfG8oWPTJ43NlyEed58vR3EU+sX TSWrhQAT+B+E9Thpj+qRTfoNGJEb+M6hUszXRHDnsl+CEz2/J+wVZUK8HiakrK8/cfQD bBS0YSd09W90jRs5jukc8s6dD+p+UU4YHc/VB5QtvQq7N0stbth4BD5ZLgg+uvSii7iY 1Yow== 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=LQeSh/pBJDVBg/MMj+kl2WiFRSEeEXsZMVhkSlhYgNg/rN1HVrW5tJpkOXWL/EQmHK fnX0fE7W0+9tpR9UXkcIFlCbfaLgVAxclX0kR2jGGNtUwyp37cQUmSe7cKT2+8ODSmNm veXJezpOt0B9EhVx31SAHWj2erNec80MPtrrbKo6/6Tc/vcNPokaGb5T0OWDTjN+H7Ys yKrU6a0tq1nSVQgeM4loHcMSjGPEs3j4SnntFkYKfDhrDT1crKSWCURDMoOoVJ+YQH5Z sstz7CsssWrjR9U0iCLKUYEKKp+Bxnj7B12Ind5/ZQo3pXpGZN3tywAKGQAQ5I7b84Xe Qazw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=vU5Gta+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 81-20020a630354000000b0041c506dde92si3172955pgd.636.2022.10.25.06.31.47; Tue, 25 Oct 2022 06:32:01 -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=vU5Gta+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 S232868AbiJYNaV (ORCPT + 99 others); Tue, 25 Oct 2022 09:30:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232825AbiJYNaM (ORCPT ); Tue, 25 Oct 2022 09:30:12 -0400 Received: from mxout4.routing.net (mxout4.routing.net [IPv6:2a03:2900:1:a::9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB50BDEF13; Tue, 25 Oct 2022 06:30:01 -0700 (PDT) Received: from mxbox1.masterlogin.de (unknown [192.168.10.88]) by mxout4.routing.net (Postfix) with ESMTP id C1A5D1025EB; Tue, 25 Oct 2022 13:29:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666704599; 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=vU5Gta+sTAyNnclvdMa1mPapNQxHT2bo3oZfzMJg4hTzgHhgmXXkx/A88WP0oZ/uZbiJFz GzTBZY2xXdAHOyKVX69O1fg/bVrQ1/Ha+shwF39e7ofPiG4SKV1Oka99dU4fAjEuandQZR btJr89gnqgYy2O7Xmcrrb3Tg592WmNU= Received: from frank-G5.. (fttx-pool-217.61.152.57.bambit.de [217.61.152.57]) by mxbox1.masterlogin.de (Postfix) with ESMTPSA id 992A4403A9; Tue, 25 Oct 2022 13:29:58 +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 v5 1/6] dt-bindings: mmc: mtk-sd: Set clocks based on compatible Date: Tue, 25 Oct 2022 15:29:48 +0200 Message-Id: <20221025132953.81286-2-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221025132953.81286-1-linux@fw-web.de> References: <20221025132953.81286-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 22076d22-0fc1-48b2-8540-d60d145b0ee7 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?1747666569893192976?= X-GMAIL-MSGID: =?utf-8?q?1747666569893192976?= 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 Reviewed-by: AngeloGioacchino Del Regno --- 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 13:29:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 10787 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1008468wru; Tue, 25 Oct 2022 06:32:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4XaKP4obmvpB/4fYrET4kk+3Oxd5nylv0pqTpTbrtcxBu2NpQdgSUsxPobLcieBYewXKi7 X-Received: by 2002:a05:6a00:c91:b0:562:aa06:2848 with SMTP id a17-20020a056a000c9100b00562aa062848mr39841889pfv.2.1666704723136; Tue, 25 Oct 2022 06:32:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666704723; cv=none; d=google.com; s=arc-20160816; b=tqGilR6nVwJzdYlJYIR0Pc/9rCuC/OBlzYJKHTdmjMJO0h2pQENOY7FPYO+r0wekkT ngPCSN1xd0wIddbBjK7MpcGHpgHiUTamo2JxbpljJ49qbNGpxiR5WqHOZa88AbuDWI+K XjQiUwHA1gLtALuJePjySh8mqtmkrdQCbqj3p17QxiMMW0YaN7171EGC2vZzAJotuSNS WiGrhSOMj7wWasdSIohWRx6uLXnvbZd2/qNqwJI5Dv0h7z9aebJnMDnZNRZtgkKzY0uJ mcOBlpIGMOrmffTkbnYrsSzjZTQdSiQCOv453QQnBbycT+KhSaaAO4mdHAn4gcBFAdbQ AiMg== 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=bMnJc+k3BQCb5bXYfRL3MsvClm+VDOd3dvG9NLKDvOQ=; b=dg4tmtI+XHjls3ufd3Z5eQQJKJ7nWO/L1kWSfgMX9Sq5Q96A8xSmTk/U8vwzNwKTgi xqhMF++Hm3gdEAjQUYgnspGkPjHfDGnh2lfJ9qsQnDuMyuK4l0lllEVo6mhMeAEF7/lx 5Y0HJIeWMi2RefibYM3HdUo3zuz/4HC02Wf7cNrQ66C1gubE8MLn5WNDbT1U1JG9Q7Rx K4/u+IvfjEJFy2FJyTXzHr0iWsobvY859oV3p55aFT6mLcEipDTooDPklp+59E4c9j+t SLMdkDoSiOFOlUpUhgGjUQFYlxdHZd7Ulup3hel4MeY3KD0sehz4VQVh4Os/9t4IAsvM lJog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=bqmjXLDA; 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 q3-20020a17090311c300b001789a178e33si3668001plh.428.2022.10.25.06.31.49; Tue, 25 Oct 2022 06:32:03 -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=bqmjXLDA; 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 S232846AbiJYNaR (ORCPT + 99 others); Tue, 25 Oct 2022 09:30:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232662AbiJYNaL (ORCPT ); Tue, 25 Oct 2022 09:30:11 -0400 Received: from mxout3.routing.net (mxout3.routing.net [IPv6:2a03:2900:1:a::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 394FBDEF25; Tue, 25 Oct 2022 06:30:02 -0700 (PDT) Received: from mxbox1.masterlogin.de (unknown [192.168.10.88]) by mxout3.routing.net (Postfix) with ESMTP id 9F3AD6269B; Tue, 25 Oct 2022 13:30:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666704600; 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=bMnJc+k3BQCb5bXYfRL3MsvClm+VDOd3dvG9NLKDvOQ=; b=bqmjXLDAHMMTdEesmQZpRVjFUesGHRW4pFIElh7RlDZ3fk2PHkd3CB6WZcs0tUkYoyeic2 ZMfInO8tsZY1OT3/41+sXPu0C46qltffdlN69AXlPNukYwyOpyYQUCwW8Tn0gGEh3gYlm0 66CrMJL7mR/wOBgeD2FvM08GgIvhxWw= Received: from frank-G5.. (fttx-pool-217.61.152.57.bambit.de [217.61.152.57]) by mxbox1.masterlogin.de (Postfix) with ESMTPSA id B857340112; Tue, 25 Oct 2022 13:29:59 +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 v5 2/6] dt-bindings: mmc: Add support for Mediatek MT7986 Date: Tue, 25 Oct 2022 15:29:49 +0200 Message-Id: <20221025132953.81286-3-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221025132953.81286-1-linux@fw-web.de> References: <20221025132953.81286-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: a777fd38-8390-4268-8bed-ccfa143c1ccc 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?1747666571762638291?= X-GMAIL-MSGID: =?utf-8?q?1747666571762638291?= 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 Reviewed-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno --- 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 v5: - drop quotes around clock names --- .../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..6f8ecb4788eb 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 13:29:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 10784 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1007909wru; Tue, 25 Oct 2022 06:31:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Xr8McuVS5y9N6BdXlDxGlklQD44+RweyD+Mcd+kb8QvmnO1xWiY+pcyucS/DXF9C4EEmE X-Received: by 2002:a17:90b:3e86:b0:20d:ab3e:bc50 with SMTP id rj6-20020a17090b3e8600b0020dab3ebc50mr44839471pjb.53.1666704671493; Tue, 25 Oct 2022 06:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666704671; cv=none; d=google.com; s=arc-20160816; b=Uy4Vf7d2ovwZPstmb4K16YkPpyWgUY2ZsdF0BtcE10YIFbsCdqJGCuUTUW4prY75uC Wha6ndVptYAkuZ5GosyTeL+VB826fGEajelb9dQ3eh/8+mRC3w2oCStE68Nk77K4yGwj I4/3ITI3eoG8faNDaNJ0WU/GhuzEKZdjm8jehwj6lMIIMtAYCwiPn0w7o5Kjlkd60DhF PK5buIQWBQUEnmfofICQnh7wQfy1qcS3hKL0+gxoarKDUVmUSV859Gf6FaaDNalv2hP3 IEBDxOZasBIbkBZFIBPF8dwoYuAQRGrrkkg9QzU1ETAQQMRNavCeZsPBq0WXvqcbGzK9 jB9Q== 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=vKyJpsH3H/lS/dhwHp5CaPiHoRIOZukC91IMi1HY/Xu1VgOZIyP/lUT72NW8rtrx4a Lz6+eSKMYXWUB5jGZyqcW8n216dDUKvo/CViBgesJJX6fkO2X+DHKBCp+dUI3R7dKJHd fdRb2Qjc5q3QjdqKO4bcHsG2B+r6m+h/Rt1pSphIQumMV2hD4I7hFpta2Gl0u1AO1lda eA5XuC095cQ22HJtL3aOX55jALWJCzRicSXC/Fl5spG9WXEbQ0Qe4IW7a0bPTkDuioYQ g/0VngvUY3jhwbjjPRVfqyW1/aDiEASGvJx2ap/KYfxeYvSWuyS5FXJRRAOiF56gDi5L q3Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=qMwAso86; 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 79-20020a630452000000b0043c594305besi2713711pge.500.2022.10.25.06.30.57; Tue, 25 Oct 2022 06:31:11 -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=qMwAso86; 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 S232832AbiJYNaN (ORCPT + 99 others); Tue, 25 Oct 2022 09:30:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232435AbiJYNaK (ORCPT ); Tue, 25 Oct 2022 09:30:10 -0400 Received: from mxout4.routing.net (mxout4.routing.net [IPv6:2a03:2900:1:a::9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 398B9DEF29; Tue, 25 Oct 2022 06:30:02 -0700 (PDT) Received: from mxbox1.masterlogin.de (unknown [192.168.10.88]) by mxout4.routing.net (Postfix) with ESMTP id 7B21E1025EC; Tue, 25 Oct 2022 13:30:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666704601; 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=qMwAso86Hp7ltBOtgNKFpe/kVMJdUg34CtwFxfD3b+e4f3STZK7P3oc9v9AaTkRQ0HcSe8 PNGlN1mBQ13PQhsAaH+JwtO+F1kGJMdMqIZE/3otG2dGX1/kvEx5qKHC3IaIlpg4Qlu9yV kRaMVhOY8jxUxd/3Z1l/sMrWhwysKmo= Received: from frank-G5.. (fttx-pool-217.61.152.57.bambit.de [217.61.152.57]) by mxbox1.masterlogin.de (Postfix) with ESMTPSA id 9B149406DF; Tue, 25 Oct 2022 13:30:00 +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 v5 3/6] arm64: dts: mediatek: mt2712e: swap last 2 clocks to match binding Date: Tue, 25 Oct 2022 15:29:50 +0200 Message-Id: <20221025132953.81286-4-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221025132953.81286-1-linux@fw-web.de> References: <20221025132953.81286-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: f049c69f-c4f7-41cc-b7ee-c69fafc39865 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?1747666517515157215?= X-GMAIL-MSGID: =?utf-8?q?1747666517515157215?= 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 Reviewed-by: AngeloGioacchino Del Regno --- 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 13:29:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 10786 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1008459wru; Tue, 25 Oct 2022 06:32:02 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ilG4DizKmaZOQPetY61zGvcDo/7bs4cLlSrFe8F+8GaQXkk8N1WsQaykzJZD+Z78LuMr3 X-Received: by 2002:a63:1508:0:b0:438:eb90:52d1 with SMTP id v8-20020a631508000000b00438eb9052d1mr33431367pgl.252.1666704722268; Tue, 25 Oct 2022 06:32:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666704722; cv=none; d=google.com; s=arc-20160816; b=YpJvw7WKZrJ5ctDfpb1e2kQW1t9whVlZOuAdZ9qb2bNiS68Tl/p+7j/75s0pWXio+s kuDpLgWrUGymQ/Oc2H0BTxk9QNNjf3Kw2a0hopOi1eJ6WxkWPIbPxDitr8Z8JOZZUwiv 65IPdryxNv6TJ1mSldgBqTXnKCPOHNn64ynFzq/AuqSSG5MSC6w9TwNaySsEqUPeBk9u I9O3MpaWKJjVPZaUZ0ctL9OwGX8G2uV4Ih5r3xBrIJpTL80pKX8A0feyRfxABh+iYk8R JIkriWF0R/zOTgtwkPNOW+dnwQMr5Zi8/FBWihAFvoiQO6V50iYA2dH6Q2nLYP0LBks9 TxVQ== 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=+KqTA8X1WXkJtVBHAMBvpE4UsH8pqMLqQ8SW7LYnkls=; b=ewGFqh2jc1KNGoLvMC8D/9c7OM9vlTWleSrdV7PIrQpzCMhkwOtTUsk2kJAhUc2rCl Lt//8epKpawP6q8MZDsP/IJhNvzUIo4gv13F96H7J8925LmCB6a8EmSJDg5Rlc9d9pg0 0ncBGIDHKZDZaYp0Dz5/eqZVRwA7xLGQgVe+osB4K5gczAWu4q5GOUXSJv7gtqMtpayv M2bSaY2G4eKgLHCyLQZRkXhy3RnVT683/jGSGHMlu3W4N/hu6bpuGJU5SRv/KWbCc9KP ZbgD0XDMP4B0+8PVZUqzOxDu4AsCWKVBYZ0hRYJJb7SnTcTQsdoVQpI1xndyg7y0Eqzm kwpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b="opW/QX8e"; 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 q29-20020a63751d000000b0046265702353si3119751pgc.203.2022.10.25.06.31.48; Tue, 25 Oct 2022 06:32:02 -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="opW/QX8e"; 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 S232854AbiJYNa0 (ORCPT + 99 others); Tue, 25 Oct 2022 09:30:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232457AbiJYNaN (ORCPT ); Tue, 25 Oct 2022 09:30:13 -0400 Received: from mxout1.routing.net (mxout1.routing.net [IPv6:2a03:2900:1:a::a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CE2D3B9AF; Tue, 25 Oct 2022 06:30:05 -0700 (PDT) Received: from mxbox1.masterlogin.de (unknown [192.168.10.88]) by mxout1.routing.net (Postfix) with ESMTP id 13D0341BE4; Tue, 25 Oct 2022 13:30:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666704603; 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=+KqTA8X1WXkJtVBHAMBvpE4UsH8pqMLqQ8SW7LYnkls=; b=opW/QX8eaW2XDxkaSJahYnIs5eBiv750GyW+oBsM+qMEVoweVMIeqowiBmMDWn2RsjCskU 2lV9Ccfj4LIqULGTmrQpiCRdk+RNih3ByUauYP8R5XgIs52rN6BmEponUB8Jt/Hg1bxDXU ykeKwF5UClaWz8Bj8o3jG9DIbybyVVM= Received: from frank-G5.. (fttx-pool-217.61.152.57.bambit.de [217.61.152.57]) by mxbox1.masterlogin.de (Postfix) with ESMTPSA id 830C44055F; Tue, 25 Oct 2022 13:30:01 +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 v5 4/6] arm64: dts: mt8183: drop drv-type from mmc-node Date: Tue, 25 Oct 2022 15:29:51 +0200 Message-Id: <20221025132953.81286-5-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221025132953.81286-1-linux@fw-web.de> References: <20221025132953.81286-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: dc44d099-0e74-475c-a740-2cf015df65f2 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?1747666570674992938?= X-GMAIL-MSGID: =?utf-8?q?1747666570674992938?= From: Frank Wunderlich This property is not defined in binding and driver. Fixes: cd894e274b74 ("arm64: dts: mt8183: Add krane-sku176 board") Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- v5: - add fixes-tag --- 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 13:29:52 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 10788 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1008863wru; Tue, 25 Oct 2022 06:32:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7lVgBu35sjYVf3hk3wWSg1SvABkPmncWnUFojAxzjTuGDr/qptwi+oNHqaVvTm74ydjYma X-Received: by 2002:a17:90b:4b48:b0:20a:8ea4:a18d with SMTP id mi8-20020a17090b4b4800b0020a8ea4a18dmr80370831pjb.75.1666704750074; Tue, 25 Oct 2022 06:32:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666704750; cv=none; d=google.com; s=arc-20160816; b=0t1jLrv284JXG9cn9Dq2ZhWBDvvRMolqrQ9UYBOOt5F4VzsLDgDrBRN/OpRcplXrpl 0QlUz4kvi4dDeIy4zi0xnLT//nHQa1o0kFZMdUt9pXfsAiYAhW5etbsZtp3FaBxJZx9C 7yM4IN6kDNGMj8o0I1xeTEdSDOAUtvw4N4tUJZSWTt6O/xe9G3nfEPQuun1AGPhpi10Y 1fMMlDXvlDNxrAcNw0QkHPOimSLWnb9V570BVSU7nAStfqAdJOiDzxQcwFVH7yBnbXZR NfPwm5i6B3UWctQ7VvQJydyH/TjDC8xuwfahXFwODlUab6ItA8cvrM68vTsKi70azsPG oUtA== 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=5FbSf9twERvETDm4iNLtIwwA/uZDMLwNyqcMb0P1AC4=; b=lux70iGxLhpUV0zmRMdGRusCDQnTYqWLq/InPnftZ5TXty5uQc43n5/OmziCnn+VCi RYRhaVRN0SFFvD+cfrk/pPfbJnlCsg93Ncgg+lFAXY7VRmDPNIpMLxQn3a1lEvc/3826 HyZ7g4AkV3L8O2PngGuaT4ivlOU5k8DpVKaujEokKFgNs5ubm+0+rMbmYsKA3wmxguRO +w+ikhn0SDf8vJQIEbUpCg40vYl53qleap6WbJZaM6ryyy2rmQ3fcpEU53RikSvKhu8p KRSVPPA9ma1PbwB3BN/W05w+qynIGZS6H+gX05b8Q3fzDWkWoUgIYN4hvQfSyRmUyDYA Q/3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=M70gzvNj; 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 i6-20020a17090a974600b00200b5c30f73si3035342pjw.106.2022.10.25.06.32.15; Tue, 25 Oct 2022 06:32:30 -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=M70gzvNj; 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 S232871AbiJYNa3 (ORCPT + 99 others); Tue, 25 Oct 2022 09:30:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232834AbiJYNaN (ORCPT ); Tue, 25 Oct 2022 09:30:13 -0400 Received: from mxout3.routing.net (mxout3.routing.net [IPv6:2a03:2900:1:a::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CFB0E195F; Tue, 25 Oct 2022 06:30:05 -0700 (PDT) Received: from mxbox1.masterlogin.de (unknown [192.168.10.88]) by mxout3.routing.net (Postfix) with ESMTP id 09BF96269E; Tue, 25 Oct 2022 13:30:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666704604; 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=5FbSf9twERvETDm4iNLtIwwA/uZDMLwNyqcMb0P1AC4=; b=M70gzvNjSVP8os7+u68LOoPoxFjVqN2sNM94ZSip68YoZaZWBiDq6X5/GLh9K5vR4sIDyX CXXOQi7DAIeSKHHYbQ1pGknvpu5cFVEpRVwvixzDdRzdhyFOmXTPr+qHjglaOirSs5jLBL J2dVYr50qTuaeyR9oO17e9ssuKTku3s= Received: from frank-G5.. (fttx-pool-217.61.152.57.bambit.de [217.61.152.57]) by mxbox1.masterlogin.de (Postfix) with ESMTPSA id 9E7CF406DF; Tue, 25 Oct 2022 13:30:02 +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 v5 5/6] arm64: dts: mt7622: drop r_smpl property from mmc node Date: Tue, 25 Oct 2022 15:29:52 +0200 Message-Id: <20221025132953.81286-6-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221025132953.81286-1-linux@fw-web.de> References: <20221025132953.81286-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: da3b5ec5-4663-4d83-aad4-cc50a829ea61 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?1747666600011633594?= X-GMAIL-MSGID: =?utf-8?q?1747666600011633594?= From: Frank Wunderlich This property is not defined in binding and driver. Fixes: 2c002a3049f7 ("arm64: dts: mt7622: add mmc related device nodes") Fixes: 0b6286dd96c0 ("arm64: dts: mt7622: add bananapi BPI-R64 board") Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- v5: - add fixes-tag --- 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 13:29:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 10789 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1008977wru; Tue, 25 Oct 2022 06:32:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7dMoiFMkLuVB5RU4bxFr18aAkBqBireGt7sC1Hp03GmpNIIlC8h3ZEUGOxACtzcg+IOhw5 X-Received: by 2002:a63:234c:0:b0:46f:1b7:438b with SMTP id u12-20020a63234c000000b0046f01b7438bmr9629686pgm.516.1666704770551; Tue, 25 Oct 2022 06:32:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666704770; cv=none; d=google.com; s=arc-20160816; b=aZAg8lqyEzoIXP0jiv/XSZQ6miQ3OFsXK/UisWEQJrQ5QsO+A9z+bZU0MSN1OsIK6s dwsfcrvimVv7wvCcxAXr7GYMeG4FFpe4v31GTRq5z5zL/gSI5hWDfIuZ0jvI/JplJqvq SDXue0DOj3VIQ1m/4cGFANCDEBgmjHKozNmIu1tgN8jjlV8mQZB/BeVQa0+E4i0VS7CL 6YLf5Fabm8z49rxDRYid/gY+JssrZtmwb6QWQKXjo0mB8A1npuCXyiWMJknXZR++oiVv Xx9RlIcCSXrrCwWPXnejDbplQqK5GNmMMdGT7WDj30t3J7csi/K9OwGcYwSbwi6Y7EH1 xuUA== 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=WAjUi/ga04HIkMa7Z+d3a+gEhyr0vQRbkNFGR/WcXSQ=; b=EgVKL4bpQBcf5Ovgekw/8ojeqo6iTBnUJ7Sm20xXFy35TDZ+c3sj6I3c/hMGtNtKoV +k6pOTC7Nr48zVmuG54WX1bpbUkIAsJS0umT5n0oSZlM6B2OpcqWzDbX2r7kJhaVWxLt cdqLF6mGrSwegOrwAT8fPcri5/xFQD4IpAyzprMWBeCZRnkj39Ts6VuLs30WB/CLbYw5 f7VPcBVRh35te/Oxg8/JyeH1d7m5KspV9A1KjbxErSn0nUgzF2xAqEqkkq4LJp9yNQZ1 aIhEZaIieaR2oAW1+c2YlqSC3HwAdGKI/9voQ3r+uQZzx4tfIALVeWl2O+SQRke12V1Z tEUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=a5RrdKXt; 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 m15-20020a170902db0f00b001841134e3b1si3149206plx.160.2022.10.25.06.32.36; Tue, 25 Oct 2022 06:32:50 -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=a5RrdKXt; 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 S232906AbiJYNag (ORCPT + 99 others); Tue, 25 Oct 2022 09:30:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232870AbiJYNaV (ORCPT ); Tue, 25 Oct 2022 09:30:21 -0400 Received: from mxout3.routing.net (mxout3.routing.net [IPv6:2a03:2900:1:a::8]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19D3EBE1E; Tue, 25 Oct 2022 06:30:13 -0700 (PDT) Received: from mxbox1.masterlogin.de (unknown [192.168.10.88]) by mxout3.routing.net (Postfix) with ESMTP id E8EC66269F; Tue, 25 Oct 2022 13:30:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666704605; 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=WAjUi/ga04HIkMa7Z+d3a+gEhyr0vQRbkNFGR/WcXSQ=; b=a5RrdKXte/35yjTwJvGKlVu5lgtfaA7v8j1tRHeFzSb/Chcec/eCRJ2ZqMfBHTT693Xgeb HrxtY11z0KvK+6S2M9U/M19WTdMha7FL5FB2m6y/nQhOUXwVae58Z90w3vslj9vZOkp5k9 Da+b9cEx1/aAIzTH1Ytotn9CmBWH/mk= Received: from frank-G5.. (fttx-pool-217.61.152.57.bambit.de [217.61.152.57]) by mxbox1.masterlogin.de (Postfix) with ESMTPSA id EAD5A40112; Tue, 25 Oct 2022 13:30:03 +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 , AngeloGioacchino Del Regno Subject: [PATCH v5 6/6] mmc: mediatek: add support for MT7986 SoC Date: Tue, 25 Oct 2022 15:29:53 +0200 Message-Id: <20221025132953.81286-7-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221025132953.81286-1-linux@fw-web.de> References: <20221025132953.81286-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 481834d9-7b72-49f9-bee4-d48e2eac2acb 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?1747666621262933733?= X-GMAIL-MSGID: =?utf-8?q?1747666621262933733?= 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 --- v5: - add reviewed-tag --- 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},