From mboxrd@z Thu Jan 1 00:00:00 1970 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 lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (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 20F23F53D84 for ; Tue, 17 Mar 2026 05:57:20 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4fZh734tmtz2yjm; Tue, 17 Mar 2026 16:57:03 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=211.20.114.72 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1773727023; cv=none; b=XJ/QVTWiNG9RxxsaEh3a5VVcicGGFHuNPW+W6zAlhJBlKPqtbtk+OyMGVJCbxiC2Z+19YhhKPKXV0oR26I1ZsTV8Orkw2uus+i1w5hzdoQ3TIDkBN/XSiqiXMRZDv6d6I7hTZTErZETrwkMbdE1tOhNv3dnpSOXTwi4jOF5NOSjaCFafSx2mdZgLDXpArhWI/lZp5QocVlBBnK+oJbbtXdJR4rs0m6sOCOvkkfgb1q3rLlgNcHZEXp5Wzkc1iIrx32I2IS4YxcjbutZy/u2D3RhFcDoVANJ3CPfiSUEL4pulhYOMe9qj1O7J6fKP237JTqs1k+uzcoct/PPUTs6yLA== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1773727023; c=relaxed/relaxed; bh=PCN3c/UA45BOu9jA0C3CEzVv2oYbn8t8QaEA0rB5IgM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=b2aHlne+qTwwkHVvmY9osxihC5GJ0NSmRyJFmMNadGYiUPSVeTM2kmCuBuYsPFymjxxd3adMnOHckectUAmTH8EnSNuz04fE+qIYhMsJcEkdPCut6TU63jkSqvxzkvf0c4EQXGRdDZan803ElcgOSjv78ziLG994SL0435bxgYiR2bZQe0UVVYcP3cAdSs3m89u62VD9pSgXhKP3XEiHaPfAlX7zWNTJ5lxHseJKVxDPzIL0Fzi/5BFeu9nKfsaCIVZ5L3KzmrqZNuQ61tw/Y9Io8R74j4rDKx6W9DXbxI25fjwru4BAxg7OQc9zyY/jVTgp/0gIdKAucL037CfGiw== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com; spf=pass (client-ip=211.20.114.72; helo=twmbx01.aspeed.com; envelope-from=ryan_chen@aspeedtech.com; receiver=lists.ozlabs.org) smtp.mailfrom=aspeedtech.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=aspeedtech.com (client-ip=211.20.114.72; helo=twmbx01.aspeed.com; envelope-from=ryan_chen@aspeedtech.com; receiver=lists.ozlabs.org) Received: from TWMBX01.aspeed.com (mail.aspeedtech.com [211.20.114.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4fZh725zWMz2yhv; Tue, 17 Mar 2026 16:57:02 +1100 (AEDT) Received: from TWMBX01.aspeed.com (192.168.0.62) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Tue, 17 Mar 2026 13:56:42 +0800 Received: from [127.0.1.1] (192.168.10.13) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server id 15.2.1748.10 via Frontend Transport; Tue, 17 Mar 2026 13:56:42 +0800 From: Ryan Chen Date: Tue, 17 Mar 2026 13:56:42 +0800 Subject: [PATCH v2 1/2] mmc: dt-bindings: sdhci-of-aspeed: Add AST2700 fallback compatibles X-Mailing-List: linux-aspeed@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20260317-sdhci-v2-1-39b1f063061b@aspeedtech.com> References: <20260317-sdhci-v2-0-39b1f063061b@aspeedtech.com> In-Reply-To: <20260317-sdhci-v2-0-39b1f063061b@aspeedtech.com> To: Andrew Jeffery , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Ryan Chen , Adrian Hunter , Philipp Zabel CC: Andrew Jeffery , , , , , , , Ryan Chen X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1773727002; l=2276; i=ryan_chen@aspeedtech.com; s=20251126; h=from:subject:message-id; bh=r1t1AZJ8z8H7pfOnc5U9FTp34IAllMI9HGRGoRCQodA=; b=0FGyjAaMtMOrLQQgrAvtSsvbidn/Q/mka34Kb4XpmawERthR0b1oiv51HX39qaNydpLidjVp3 2U5Yx8sqaQ9DAY3cHhUeDpaQ+OXdjNNIXPBP6RYTPubsGHxz/uSBwi6 X-Developer-Key: i=ryan_chen@aspeedtech.com; a=ed25519; pk=Xe73xY6tcnkuRjjbVAB/oU30KdB3FvG4nuJuILj7ZVc= Describe AST2700 as compatible with the existing AST2600 SD controller and SDHCI bindings by requiring fallback compatibles in the device tree. Also require `resets` on the AST2700 SD controller node. Signed-off-by: Ryan Chen --- Changes in v2: - add missing blank line - modify ast2700 compatible items const --- .../devicetree/bindings/mmc/aspeed,sdhci.yaml | 39 +++++++++++++++++----- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/aspeed,sdhci.yaml b/Documentation/devicetree/bindings/mmc/aspeed,sdhci.yaml index d24950ccea95..9c8e068964a1 100644 --- a/Documentation/devicetree/bindings/mmc/aspeed,sdhci.yaml +++ b/Documentation/devicetree/bindings/mmc/aspeed,sdhci.yaml @@ -22,10 +22,14 @@ description: |+ properties: compatible: - enum: - - aspeed,ast2400-sd-controller - - aspeed,ast2500-sd-controller - - aspeed,ast2600-sd-controller + oneOf: + - const: aspeed,ast2400-sd-controller + - const: aspeed,ast2500-sd-controller + - const: aspeed,ast2600-sd-controller + - items: + - const: aspeed,ast2700-sd-controller + - const: aspeed,ast2600-sd-controller + reg: maxItems: 1 description: Common configuration registers @@ -38,6 +42,21 @@ properties: maxItems: 1 description: The SD/SDIO controller clock gate + resets: + maxItems: 1 + +if: + properties: + compatible: + contains: + const: aspeed,ast2700-sd-controller +then: + required: + - resets +else: + properties: + resets: false + patternProperties: "^sdhci@[0-9a-f]+$": type: object @@ -46,10 +65,14 @@ patternProperties: properties: compatible: - enum: - - aspeed,ast2400-sdhci - - aspeed,ast2500-sdhci - - aspeed,ast2600-sdhci + oneOf: + - const: aspeed,ast2400-sdhci + - const: aspeed,ast2500-sdhci + - const: aspeed,ast2600-sdhci + - items: + - const: aspeed,ast2700-sdhci + - const: aspeed,ast2600-sdhci + reg: maxItems: 1 description: The SDHCI registers -- 2.34.1