From patchwork Sat Oct 12 14:38:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13833975 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 C59A7CF2566 for ; Sat, 12 Oct 2024 14:40:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=WjedSfGqOZ6oiuD35CvJlq2+oXWPBYIhR55p8Lmk7Yo=; b=Jr9x/af1GTsLI++ny1SMyYSpiG YqgmBK/1vAt3VcT2VXV4zT6FNLcSaKAh22h5w36sEnwXfv/RQEYsNoLHWyB64DtNE8nDT8jN+iPgT /7M5W/mYG46i2QZIQjFk1u/QFkpNC1VyC9eS/elTh8/aQt1q6DHt3nkIBRhiDttUHdkXZM+7Km+03 oTAgObjaIrOFeRPQM3uq0NrizqsMR/2rBhusxK+S72v8H94CkPeOyrHhyOvxGjPAv92jfNezFdAGK JcZCGMIR/ABDIUx6qfLa+w45qb8LdHxpGTLer/oXkAdu4IS1wIjl9ZiV7XpI8ylr4PLcUmVz3jaZq TkYBh81g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szdHq-00000001Lhr-49jN; Sat, 12 Oct 2024 14:40:06 +0000 Received: from mxout3.routing.net ([2a03:2900:1:a::8]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1szdGT-00000001LWH-0Wlq; Sat, 12 Oct 2024 14:38:43 +0000 Received: from mxbox1.masterlogin.de (unknown [192.168.10.88]) by mxout3.routing.net (Postfix) with ESMTP id D3C5F6017B; Sat, 12 Oct 2024 14:38:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1728743917; 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=WjedSfGqOZ6oiuD35CvJlq2+oXWPBYIhR55p8Lmk7Yo=; b=omm14/GgR1mtmtlZZ3caHMuuXQgoNmEd2xuXZTKfZutsMfsJb6lQZIRJbodey0YjSHxHh0 LJe2W3EiLJ5yR7FmXK+tyWogGY4Bs2fxDaP7QOxPoSCiSlsbMOAZpyW9ppjuqx8HuTcWbH 6iza6RTINaKRG+zFMS27jIPyu+dZzyo= Received: from frank-u24.. (fttx-pool-217.61.155.16.bambit.de [217.61.155.16]) by mxbox1.masterlogin.de (Postfix) with ESMTPSA id D5FB840147; Sat, 12 Oct 2024 14:38:35 +0000 (UTC) From: Frank Wunderlich To: Chaotian Jing , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Wenbin Mei Cc: Frank Wunderlich , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, daniel@makrotopia.org, john@phrozen.org, eladwf@gmail.com, ansuelsmth@gmail.com Subject: [PATCH v4 1/2] dt-bindings: mmc: mtk-sd: Add mt7988 SoC Date: Sat, 12 Oct 2024 16:38:22 +0200 Message-ID: <20241012143826.7690-2-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241012143826.7690-1-linux@fw-web.de> References: <20241012143826.7690-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 54124e21-5cc7-400c-a9a6-663ac3c6d7a2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241012_073841_496660_E63F139B X-CRM114-Status: UNSURE ( 8.16 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Add binding definitions for mmc on MT7988 SoC. Signed-off-by: Frank Wunderlich Reviewed-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno --- v4: - drop minitems because of errors v3: - fixed minItems on clock-names too v2: - fixed minItems to 4 --- .../devicetree/bindings/mmc/mtk-sd.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml index c532ec92d2d9..a51d3bd08d94 100644 --- a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml +++ b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml @@ -21,6 +21,7 @@ properties: - mediatek,mt7620-mmc - mediatek,mt7622-mmc - mediatek,mt7986-mmc + - mediatek,mt7988-mmc - mediatek,mt8135-mmc - mediatek,mt8173-mmc - mediatek,mt8183-mmc @@ -263,6 +264,27 @@ allOf: - const: bus_clk - const: sys_cg + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt7988-mmc + then: + properties: + clocks: + items: + - description: source clock + - description: HCLK which used for host + - description: Advanced eXtensible Interface + - description: Advanced High-performance Bus clock + clock-names: + items: + - const: source + - const: hclk + - const: axi_cg + - const: ahb_cg + - if: properties: compatible: From patchwork Sat Oct 12 14:38:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13833976 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 5BAA9CF2568 for ; Sat, 12 Oct 2024 14:41:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UaDhF10SS6RhxqXi+RrAJwgaKwDFw9LZ+vBZFwz0rD4=; b=d7dYWhnS3h/iLI3eWNZhV3RyTI jPYe4GHgUDu/56c2AopImRIIqn0tAkK8IaEyaphFmxYzAJDDBw/K4Ua7qzfXS3TV06Gu45so2bdcd 2gxHQgeLBOHyR/H4Ac48OSyteyXPY5nSr35FaI0p2WzcJoHz9w24XfcBqJFROAQ7HyOptTR+bJhjB bnbG96B1V3ZHl7H+E5JpKXK8et6w2cCHXo58uyTTvsCzWBWO/lTa+qHjSNnM+gYK1NO8VtfqIhLPr bOQD4LV87j4D/2y/rHdomp1RaN+tMPlIBPnZ+uqm+311H2kNH8Hy3vPUhZUzLV9FLfTcHXxh64Fnp LnWNRQ9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1szdJD-00000001M1C-2Vkr; Sat, 12 Oct 2024 14:41:31 +0000 Received: from mxout4.routing.net ([2a03:2900:1:a::9]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1szdGT-00000001LWI-2299; Sat, 12 Oct 2024 14:38:43 +0000 Received: from mxbox1.masterlogin.de (unknown [192.168.10.88]) by mxout4.routing.net (Postfix) with ESMTP id BC341100305; Sat, 12 Oct 2024 14:38:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1728743917; 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=UaDhF10SS6RhxqXi+RrAJwgaKwDFw9LZ+vBZFwz0rD4=; b=UNyd+OKN5i7UKNGbpU5QvhGkG18ZWX2nM+oOivTQx7bcmYRwy6Q93B6qiP6dVetPy3ekIp T87veGPabnrMqRlpgOec2XuPiYnHGbZE9ZX3YCi2EE51bIqvdLZn0EyP4Yz4HBG/Pbjf0x szfuxTKoVEpMLkZembHabWCSYsfotcA= Received: from frank-u24.. (fttx-pool-217.61.155.16.bambit.de [217.61.155.16]) by mxbox1.masterlogin.de (Postfix) with ESMTPSA id C790940192; Sat, 12 Oct 2024 14:38:36 +0000 (UTC) From: Frank Wunderlich To: Chaotian Jing , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Wenbin Mei Cc: Frank Wunderlich , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, daniel@makrotopia.org, john@phrozen.org, eladwf@gmail.com, ansuelsmth@gmail.com Subject: [PATCH v4 2/2] mmc: mtk-sd: add support for mt7988 Date: Sat, 12 Oct 2024 16:38:23 +0200 Message-ID: <20241012143826.7690-3-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241012143826.7690-1-linux@fw-web.de> References: <20241012143826.7690-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 81c63b52-cdcf-46c0-90ed-8ce7b26ea792 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241012_073841_691779_F14F8E98 X-CRM114-Status: UNSURE ( 9.54 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Add support for mmc on MT7988 SoC. We can use mt7986 platform data in driver, but mt7988 needs different clocks so for binding we need own compatible. Signed-off-by: Frank Wunderlich Reviewed-by: AngeloGioacchino Del Regno --- changes: v4: - explain mt7988 compatible with mt7986 platform data in commit description v3: - reuse mt7986 platform data instead of copy --- drivers/mmc/host/mtk-sd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 89018b6c97b9..aaf27fd211c1 100644 --- a/drivers/mmc/host/mtk-sd.c +++ b/drivers/mmc/host/mtk-sd.c @@ -629,6 +629,7 @@ static const struct of_device_id msdc_of_ids[] = { { .compatible = "mediatek,mt7620-mmc", .data = &mt7620_compat}, { .compatible = "mediatek,mt7622-mmc", .data = &mt7622_compat}, { .compatible = "mediatek,mt7986-mmc", .data = &mt7986_compat}, + { .compatible = "mediatek,mt7988-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},