From patchwork Tue Oct 25 07:42:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 637 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp863206wru; Tue, 25 Oct 2022 00:43:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM71MGhp4Yj3k4fz74/1TWn9sY2WLJ1j5FQZxBsP7a/sxXYfOz23CRC9ZonaawssWYVafA2O X-Received: by 2002:a17:903:2342:b0:17c:ae18:1c86 with SMTP id c2-20020a170903234200b0017cae181c86mr36468492plh.5.1666683805600; Tue, 25 Oct 2022 00:43:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666683805; cv=none; d=google.com; s=arc-20160816; b=wHdlSo7AxsJvUAbklioug7mbNmDTOOAO8GOH6BRwwjwETX7rKfH7+lvAUNQ7Cpeqgk VD4cJ4EHugf8DAKrFyW+RO5XuphCY6+eZfl5/o+fKHJOI9a3cA4Jjve/pO+YnUI9XnNV if8zEX2st1eVtEgKuZGoS3BAxErjJHQW7QluDO3LHi2j3jh5tkTFThZe37MaxiWexr0/ METCqqzp5b5ePcfopmSWdDz4eZde6180UPT23penRBdvY7Tt+bhi+4838PNA47R9KCkY V8xLN1MhL0Ad25RGPo9d8Ge2wjBSo1CV0nd+Nt2JU2QgzjE7fSJ1qtnNS+mAtXnmSGnR GjlQ== 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=f/hGfrwnMhOVRX7cm/mY3k2KPSFfRkFZFxpavcHfejc=; b=dAKZs0tUZSTdDASW0rgEOgWw8gBGiYaxYBf0lW2S3GTqOQ90cfiksUX/j6499Znoy4 hMxyzj14i846XYOjXFP5ymMRkKOeTy5mE4qD7fu3h5h6JfnDnxBDXWLSdmlOHv3uQt// no8NDrkFVRbYDbO+9c3sunx9yxBJg1vXRQwzRNo9ax/I/eaBsbN+quCjytDNwLExRlBP RU0/k0TKEFyA29vVoUgnIfSoCe2+KeJiPEAvWYxUqRK9KyBAs51y/70PLvfSmXGl5o7Z ZJKRjWm8FTIu9rRNFkFpUbVPg7isVbaK9GtQZ+zmI7ptdIdTa67RcRQ4xsbtGuhu2SNO 2UUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mailerdienst.de header.s=20200217 header.b="Nm/E7WnA"; 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 q24-20020a63e958000000b0046f1082320csi2139811pgj.742.2022.10.25.00.43.12; Tue, 25 Oct 2022 00:43:25 -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="Nm/E7WnA"; 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 S231963AbiJYHmu (ORCPT + 99 others); Tue, 25 Oct 2022 03:42:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231951AbiJYHmq (ORCPT ); Tue, 25 Oct 2022 03:42:46 -0400 Received: from mxout1.routing.net (mxout1.routing.net [IPv6:2a03:2900:1:a::a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAC5415627F; Tue, 25 Oct 2022 00:42:44 -0700 (PDT) Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout1.routing.net (Postfix) with ESMTP id 7CE83403E1; Tue, 25 Oct 2022 07:42:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1666683762; 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=f/hGfrwnMhOVRX7cm/mY3k2KPSFfRkFZFxpavcHfejc=; b=Nm/E7WnAuZ3Ps2L3++5tumhrmHVB9IaL7vb907rsL9ohxuu9pGBSxWmEcIwlev12m0d/6s y5i6EfsULUw+5Y/eQlZ42fDSZE6tpCoc9yLJ97+UesUgGwNfE0cfPMFHfQruDPnCWd/0kB H/qlv9cSsLp9el50IDdsVJsMb2aoIhY= Received: from frank-G5.. (fttx-pool-217.61.152.57.bambit.de [217.61.152.57]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 55801360310; Tue, 25 Oct 2022 07:42:41 +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 0/6] Add mmc-support for mt7986 Date: Tue, 25 Oct 2022 09:42:32 +0200 Message-Id: <20221025074238.18136-1-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Mail-ID: d27fab61-19f8-4c93-835c-c4d13b36beb1 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?1747644637899328356?= X-GMAIL-MSGID: =?utf-8?q?1747644637899328356?= 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) v4: - squashed part 1 (compatible) and 3 (SoC specific clock config) - new mt7986 clock bindings based on info from mtk - re-add mt8183 reg boundary Frank Wunderlich (3): 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 support for Mediatek MT7986 mmc: mediatek: add support for MT7986 SoC .../devicetree/bindings/mmc/mtk-sd.yaml | 149 ++++++++++++++---- 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, 136 insertions(+), 36 deletions(-)