From nobody Thu Nov 28 00:34:50 2024 Received: from mxout3.routing.net (mxout3.routing.net [134.0.28.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D9BE41714CB; Sun, 6 Oct 2024 10:22:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.8 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728210125; cv=none; b=Bkg6fHtIl20tYUMfpCoOep6J+UXo6GWutkYbwYVfOKgdsC7U7jH/21nyfpdjCDKg/h967A+N0EZ7s2ZnJfkma4OnJGCx0B5rMK0+BE1U1jS7Lu/zz6IgM1Heky/rCofw2EgKfzqjRsmdWgh7sNL9x8LvMDbtmyfvUyNWwgqHas0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728210125; c=relaxed/simple; bh=3Hf1CYcr4RYuzo5/vGA5ISZAEVkdnCt8lrVDsIaOpxA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CLpgzaNWvUiHoZhqA/MYTlOUowsZnvuuoFO132sJ4A0z99mgbTb6jaMfQqfp0bHU9skrwrdBYhgmqL87Wgevw7NJTA9UzJeH6c41tjoos0k1BmigYLXFXWoY9WxVfuLSomafo9RfQLS0BYrIcEhuB+ojd8ZTluhQCn+ZNz5qpxM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=PYQRb81r; arc=none smtp.client-ip=134.0.28.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="PYQRb81r" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout3.routing.net (Postfix) with ESMTP id D51F460182; Sun, 6 Oct 2024 10:22:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1728210122; 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=fH5wQnoWOTiXLp9N8VUPFHb75jHSB86CAirXoIdZS3c=; b=PYQRb81rWjUX8inLx/+Md5kH6n2+4AnsoRvx6J1huta+A8f7HSTODPpnnpq/N7oWacMoDZ 0T3gbXRdb3TQ9tDD8qz8/kW4TWwhvHRgPsdLwPSPr/5MEvjSUSxH5XxcwD/0CZ2TK8t6XY yNMGSjc4mDTtB2N4EOTUvx84TjEUS0I= Received: from frank-u24.. (fttx-pool-217.61.153.101.bambit.de [217.61.153.101]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id 2476036030E; Sun, 6 Oct 2024 10:22:01 +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, linux-gpio@vger.kernel.org, john@phrozen.org, eladwf@gmail.com, ansuelsmth@gmail.com Subject: [PATCH v1 1/2] dt-bindings: mmc: mtk-sd: Add mt7988 SoC Date: Sun, 6 Oct 2024 12:21:48 +0200 Message-ID: <20241006102154.17087-2-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241006102154.17087-1-linux@fw-web.de> References: <20241006102154.17087-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: 0a46719d-9336-4af5-bfd8-2c62d6de095e Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add binding definitions for mmc on MT7988 SoC. Signed-off-by: Frank Wunderlich --- .../devicetree/bindings/mmc/mtk-sd.yaml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml b/Documentat= ion/devicetree/bindings/mmc/mtk-sd.yaml index c532ec92d2d9..db7d1c570aea 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 =20 + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt7988-mmc + then: + properties: + clocks: + minItems: 3 + items: + - description: source clock + - description: HCLK which used for host + - description: Advanced eXtensible Interface + - description: Advanced High-performance Bus clock + clock-names: + minItems: 3 + items: + - const: source + - const: hclk + - const: axi_cg + - const: ahb_cg + - if: properties: compatible: --=20 2.43.0 From nobody Thu Nov 28 00:34:50 2024 Received: from mxout2.routing.net (mxout2.routing.net [134.0.28.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 917A3171E43; Sun, 6 Oct 2024 10:22:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=134.0.28.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728210126; cv=none; b=r0/ZD3YZEOIbMEIo5ZdxY8wqyZLzWTq9xy3p+zLeJzLhgo7PoS3cL6wjx/vQmu78DdFsI+HsRclgzgUdSU0IRcLBEcOgEKx2Yc+e1yB9hhjSAqioLT3pI7c4FwN4k0agPJRTK5vkWUKeZTjnFKSWqY2d243OQIxwf8SEUG5RlVA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728210126; c=relaxed/simple; bh=i0VDLMwDuMOVDGFP0bfNMFug3qcxk/uI24ZwMKQ5QrQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nlmtR06d8BZhh4y3FICpqUrY9aUr2Cc6GT4mOcAEsYZN9EU8YVYZFP5QGsr+ZBAkFreWOKTTmWGd7EaxN3R2hKGrEG1hGYvg0gGUu+wcR7JXiMpEtjSgjgj9WGHVE2HiFhJDZEK9B1HLIMlClxVIRF8L/drD5fJA77oA/mSU+uQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de; spf=pass smtp.mailfrom=fw-web.de; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b=R+fk4j5F; arc=none smtp.client-ip=134.0.28.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fw-web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="R+fk4j5F" Received: from mxbox3.masterlogin.de (unknown [192.168.10.78]) by mxout2.routing.net (Postfix) with ESMTP id 984D15FAA5; Sun, 6 Oct 2024 10:22:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1728210122; 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=iWad4mvVdtgpAklA0NUqnK9RzmPaXG2g9lgsXi99zSI=; b=R+fk4j5Fab1v3c/n9MksdNTtBgE4MO9zzKCsS4GFJcR1Gkbos9OuyWsg2aDT0fV6j03baP 5ZWoq13gkE0R0GV2hp9yjhA3K7vEDaHV364/A7RqUKLp/ZBcQjv7rEbZKo3eeMv9n9wO8Z HXqGM8zsVZ5eG1tVjZGHiK1b8MW+w9Y= Received: from frank-u24.. (fttx-pool-217.61.153.101.bambit.de [217.61.153.101]) by mxbox3.masterlogin.de (Postfix) with ESMTPSA id C2154360092; Sun, 6 Oct 2024 10:22:01 +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, linux-gpio@vger.kernel.org, john@phrozen.org, eladwf@gmail.com, ansuelsmth@gmail.com Subject: [PATCH v1 2/2] mmc: mtk-sd: add support for mt7988 Date: Sun, 6 Oct 2024 12:21:49 +0200 Message-ID: <20241006102154.17087-3-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20241006102154.17087-1-linux@fw-web.de> References: <20241006102154.17087-1-linux@fw-web.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mail-ID: 8f3b2bb3-02d2-4a96-891f-7c5b1e80bb8c Content-Type: text/plain; charset="utf-8" From: Frank Wunderlich Add support for mmc on MT7988 SoC. Signed-off-by: Frank Wunderlich --- drivers/mmc/host/mtk-sd.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 89018b6c97b9..6d5afe51a61d 100644 --- a/drivers/mmc/host/mtk-sd.c +++ b/drivers/mmc/host/mtk-sd.c @@ -571,6 +571,19 @@ static const struct mtk_mmc_compatible mt7986_compat = =3D { .support_64g =3D true, }; =20 +static const struct mtk_mmc_compatible mt7988_compat =3D { + .clk_div_bits =3D 12, + .recheck_sdio_irq =3D true, + .hs400_tune =3D false, + .pad_tune_reg =3D MSDC_PAD_TUNE0, + .async_fifo =3D true, + .data_tune =3D true, + .busy_check =3D true, + .stop_clk_fix =3D true, + .enhance_rx =3D true, + .support_64g =3D true, +}; + static const struct mtk_mmc_compatible mt8135_compat =3D { .clk_div_bits =3D 8, .recheck_sdio_irq =3D true, @@ -629,6 +642,7 @@ static const struct of_device_id msdc_of_ids[] =3D { { .compatible =3D "mediatek,mt7620-mmc", .data =3D &mt7620_compat}, { .compatible =3D "mediatek,mt7622-mmc", .data =3D &mt7622_compat}, { .compatible =3D "mediatek,mt7986-mmc", .data =3D &mt7986_compat}, + { .compatible =3D "mediatek,mt7988-mmc", .data =3D &mt7988_compat}, { .compatible =3D "mediatek,mt8135-mmc", .data =3D &mt8135_compat}, { .compatible =3D "mediatek,mt8173-mmc", .data =3D &mt8173_compat}, { .compatible =3D "mediatek,mt8183-mmc", .data =3D &mt8183_compat}, --=20 2.43.0