From patchwork Sun Oct 23 09:12:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 546 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1537322wrr; Sun, 23 Oct 2022 02:14:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7AO39frm1YXOBZBTFQW2UYoLWbLr/vY/2Fdf/uGqz7wnymsy7xvUurTYOaTSmiGU9Em9dt X-Received: by 2002:a05:6a00:140d:b0:528:5a5a:d846 with SMTP id l13-20020a056a00140d00b005285a5ad846mr6979630pfu.9.1666516454969; Sun, 23 Oct 2022 02:14:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666516454; cv=none; d=google.com; s=arc-20160816; b=VQP5NZGmS1sOUXbl9JXhZ+qbo7tnzD4mDwXsrDPeOs3zZdONdiQOyppFZes+bR7cfO byJc+9toxYE7+vRiyXW7uA/Wg/UNVANl+1MMih1YrikO75bBcpxGgWlkaCR6GYvAfv+y TxQCNyWo4AI0SDG6cR70rDXxUfpPvaYMQNM9YH2T9wKZ/49R6AWF/RWxmtTRzvuInNMz WMzTeFcRTDtr5Ao9xk6AyLZhJW+30M90gd4S6tBHQwoYBLH+I3y+MnNxDztnpiIQay2Q YzpaHz5oaS1AD7SwrjXrYfLejm5Q1b62D3e+qdk09GiYoMtWpJz4Fh1CXWA5nMX8/EhF JPXw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=j9mrW/hduerytVdojlo3APh7PbXTuuPGsPr25UCn24I=; b=nlzp2t7Zsd9y8j4UxKRQXbG2xPzlaHgkm8CUnIu4+L7zC6VImW8oc3eSo8WQdOXb1c 4Pipa9IJs6aoGJ1pGS+Whd34ZhyhrH3vwki19HHtjM0mf5B3hlJlXiGUdzeBdaoIQMPJ fbkKFIwn/lMy6Xy6/SYehDNF5EaQt842Y8LJEPXpJyvwwa7GbtHsXw/Ar3LHjajtk4ym nNP/IRC55aScHlcbxYoRZFgcLuOvpJLnmDaiAh6hEeh0zTYbKCBMLjDU+1oGVUUP8q4P qGaU9FtT16gqRkW8R5CIsGVOhk66ZxMv8+dA1iqYKAGrP9ibTV7plnU+HAAd4K5xaxU4 Ya+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b=dtlIyWt2; 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 b7-20020a170902b60700b0017f685c2e4dsi27895571pls.136.2022.10.23.02.14.02; Sun, 23 Oct 2022 02:14:14 -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=dtlIyWt2; 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 S230136AbiJWJNU (ORCPT + 99 others); Sun, 23 Oct 2022 05:13:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229728AbiJWJNO (ORCPT ); Sun, 23 Oct 2022 05:13:14 -0400 Received: from mxout1.routing.net (mxout1.routing.net [IPv6:2a03:2900:1:a::a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1895172B67; Sun, 23 Oct 2022 02:13:11 -0700 (PDT) Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout1.routing.net (Postfix) with ESMTP id 1C5F93FF91; Sun, 23 Oct 2022 09:13:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666516389; 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; bh=j9mrW/hduerytVdojlo3APh7PbXTuuPGsPr25UCn24I=; b=dtlIyWt2wZtE5M2hRo/zHb4KJqEPhBhZHm4bw2e9lKXBhlre/YjTRlZmw9M+zDFA8+aQos eIGyauZJl4MreJ5uItrhMuMup7QTTWfDdGF/H4KnN/5kIThqqfffeGY9ef9pVxkJTjqvHp GuFh9cuqHQpDbG2akYpg3RAyUWtSogQ= Received: from frank-G5.. (fttx-pool-80.245.79.234.bambit.de [80.245.79.234]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 26A6B10009F; Sun, 23 Oct 2022 09:13:08 +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 Subject: [PATCH v3 0/7] Add mmc-support for mt7986 Date: Sun, 23 Oct 2022 11:12:40 +0200 Message-Id: <20221023091247.70586-1-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Mail-ID: 34b86ec0-a10f-4bc5-a043-30f82e5b58c6 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 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?1747469135125231940?= X-GMAIL-MSGID: =?utf-8?q?1747469158460076109?= From: Frank Wunderlich I've noticed the mtk-sd binding needs a bit more work get into a more clean state. There are 2 properties missing that maybe need to be added later or dropped from devicetrees: drv-type (which is used in mt8183-kukui.dtsi and set to <2>) and r_smpl (used in mt7622-rfb1.dts and mt7622-bananapi-bpi-r64.dts, both times set to <1>) i don't know their function and boundaries and i do not find them in driver. I guess they are added by accident, so i removing them in the patches 5+6. v2: - add compatible based binding v3: - solve "not" statement in binding and reorder if statements,drop mt8183 - added patches removing invalid properties (not in driver) Frank Wunderlich (4): dt-bindings: mmc: mtk-sd: add mt7986 arm64: dts: mediatek: mt2712e: swap last 2 clocks to match binding arm64: dts: mt8183: drop drv-type from mmc-node arm64: dts: mt7622: drop r_smpl property from mmc node NĂ­colas F. R. A. Prado (1): dt-bindings: mmc: mtk-sd: Set clocks based on compatible Sam Shih (2): dt-bindings: mmc: Add compatible for Mediatek MT7986 mmc: mediatek: add support for MT7986 SoC .../devicetree/bindings/mmc/mtk-sd.yaml | 137 ++++++++++++++---- arch/arm64/boot/dts/mediatek/mt2712e.dtsi | 6 +- .../dts/mediatek/mt7622-bananapi-bpi-r64.dts | 1 - arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 1 - .../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 1 - drivers/mmc/host/mtk-sd.c | 14 ++ 6 files changed, 124 insertions(+), 36 deletions(-)