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: 13018678 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EEAC0C04A95 for ; Tue, 25 Oct 2022 07:43:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=f/hGfrwnMhOVRX7cm/mY3k2KPSFfRkFZFxpavcHfejc=; b=HLMMnqOx3UVLrI ypt8jGqE+/FVL7MRgyijESNH7rQaJ/poATk91FyswKfmH4QER1NuiTjIlXxjZeEFKCnG2HJJs4U2i F7R/J0X6sq1p4hF/1rfLhcqxh6E5N1/vP0eaukYiiIAxiziYUOjozfSHfT1mZOWc353Dh+KDz92qq Bmob3pfgSrBWS/DTW9BA+DzUmP8QZAjLlJZ7c7aJPAIVBlngYa/vgVjygiGrLIIdvgr7/WC8KaPhW sAs0CHucYoc9XNxXtrMRGCtOqNHh4dx64d4bo2lehX42behZm1cMZmbbFwagVn2tIJDk1i52bpqwY UP4UMgeKNEBmeGWUsQtQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1onEau-004CoQ-5M; Tue, 25 Oct 2022 07:43:28 +0000 Received: from mxout1.routing.net ([2a03:2900:1:a::a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1onEaH-004CW8-Ib; Tue, 25 Oct 2022 07:42:51 +0000 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221025_004249_790475_3730C5C3 X-CRM114-Status: GOOD ( 11.96 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Ulf Hansson , Wenbin Mei , Sam Shih , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski , Matthias Brugger , Chaotian Jing Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org 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(-)