From patchwork Wed Oct 9 16:55:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13828908 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 D4DD5CEE338 for ; Wed, 9 Oct 2024 17:43:57 +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=zoeJuySVhg+mmM+pa9MiXw+rnOgF1Rwkix0HnxJwfrk=; b=gQRNq0eblJaXEmkNqliKIv4fo/ 60kizVgj00FcDagxLK9y5yr6JMRwFsz187iJVLbcDVZi79DpIZut57EEmEtUmwuI7zWtA8+C6Qe7S URW97UM/15tAdFzCxH0Q5MW+KmaiMnQgPM+BeR6EN07lehVU9T+7OQV819MEEdMefV+ApRcvuNnFG Sq2atJ3Y2kxD/zf+TAbryiKZ0w+5BmZHGrW3wx1ZEQ+pBcG4BSgvwtcEZ0jCQZI8gk0r0zZ4XWM81 FtfIa02mzayDGsEjBcxfNkr24lmmZG9rh5uhcdiUmtua6Ao3vwlfT2IG5RhRh+fD62MR6VgpM169g hnJceixQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1syaiy-0000000AERL-0sGu; Wed, 09 Oct 2024 17:43:48 +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 1syZyc-0000000A5DW-0OQo; Wed, 09 Oct 2024 16:55:55 +0000 Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout3.routing.net (Postfix) with ESMTP id 5B6E26166E; Wed, 9 Oct 2024 16:55:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1728492952; 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=zoeJuySVhg+mmM+pa9MiXw+rnOgF1Rwkix0HnxJwfrk=; b=Y1ff18U0ZhCacPpVdUmC/yzs9sXTwitx/8LRYJJicOcSWYHbWM/WiRA6WTG24Iw4k+Vzij anu2mCSN5u0N2T3YgK+shwrRwasa6ooVZ9aEWqeDw+RFsgEg5oYEAfFWzIo0tIPy9YhU5b pIwVhAQVEzPwTk01liyhl8IPh4LEmyQ= Received: from frank-u24.. (fttx-pool-217.61.150.182.bambit.de [217.61.150.182]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 750E51006CA; Wed, 9 Oct 2024 16:55:51 +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 v3 1/2] dt-bindings: mmc: mtk-sd: Add mt7988 SoC Date: Wed, 9 Oct 2024 18:55:41 +0200 Message-ID: <20241009165547.5959-2-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241009165547.5959-1-linux@fw-web.de> References: <20241009165547.5959-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 87771506-25b3-4f4d-8bef-9c43895fea05 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241009_095554_387417_2872D012 X-CRM114-Status: UNSURE ( 8.58 ) 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 --- v3: - fixed minItems on clock-names too v2: - fixed minItems to 4 --- .../devicetree/bindings/mmc/mtk-sd.yaml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml index c532ec92d2d9..bec0577b7508 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,29 @@ allOf: - const: bus_clk - const: sys_cg + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt7988-mmc + then: + properties: + clocks: + minItems: 4 + items: + - description: source clock + - description: HCLK which used for host + - description: Advanced eXtensible Interface + - description: Advanced High-performance Bus clock + clock-names: + minItems: 4 + items: + - const: source + - const: hclk + - const: axi_cg + - const: ahb_cg + - if: properties: compatible: From patchwork Wed Oct 9 16:55:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 13828928 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 2F27ACEE338 for ; Wed, 9 Oct 2024 17:45: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=Xvumcaz9LMidfFIP90W2O23YVGZiQ4aWOQ5hzZZ1KJ8=; b=gkBs9+TCknkzDbNo/5Zxl2yYsD Ymp25yaYdyahWmPQvJiZoaPRC4DXRUumrE325IIgK056MpLkTFfyUDNCPP6sNwuAUzcncpBnCXtxG kFCEP2Tuux/PH4+MW6DtSMI95JqpEFYy1+GyeXRtKXOr72gKzPr7ANidl5fsSuWfAF9v2jimwup5t qEud4exy/FECHQsEAEO3fq2cCkePYZi+tLSn68lFr6Q5KZMb6Kx+RG34Aws8GmwNz3i6mqHt8vQli ks8RqRN54QWBXwS+OuU2dzOSmWQwX7BkG0GGw51B1aHOFmaO53lQfF8YO0FMPU1R2gA33saa8uXe+ NzqVkq4Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1syakI-0000000AEzm-2mR9; Wed, 09 Oct 2024 17:45:10 +0000 Received: from mxout1.routing.net ([2a03:2900:1:a::a]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syZyc-0000000A5E3-3D46; Wed, 09 Oct 2024 16:55:56 +0000 Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout1.routing.net (Postfix) with ESMTP id 39BBD4105D; Wed, 9 Oct 2024 16:55:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1728492953; 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=Xvumcaz9LMidfFIP90W2O23YVGZiQ4aWOQ5hzZZ1KJ8=; b=nPwcRHUEdi6VOFAYuJfqkaRKXg+zoRGehoAnpSu8pmhXdrkaodzkaKgLCZA/artmtNARhU TOPz4uu6OIu9KUog53WqrKHvvYp3nv1LnZVl8hifc03gpgOHRrI29Qv0gHsTqjlGH/MlsE rITFFt3dFttNChPQadjUARm8CHdnzvk= Received: from frank-u24.. (fttx-pool-217.61.150.182.bambit.de [217.61.150.182]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 4F06310030B; Wed, 9 Oct 2024 16:55:52 +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 v3 2/2] mmc: mtk-sd: add support for mt7988 Date: Wed, 9 Oct 2024 18:55:42 +0200 Message-ID: <20241009165547.5959-3-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241009165547.5959-1-linux@fw-web.de> References: <20241009165547.5959-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 4d18607f-4818-410b-874c-06e44f110b2b X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241009_095555_620686_006F06FA X-CRM114-Status: UNSURE ( 9.56 ) 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. Signed-off-by: Frank Wunderlich --- changes: 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},