From patchwork Thu Dec 19 04:10:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dharma Balasubiramani X-Patchwork-Id: 13914462 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 F36F2E77184 for ; Thu, 19 Dec 2024 04:12:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:Message-ID:MIME-Version:Subject: Date: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=5YjR1tyQl/oDBUV3cScFcAdLSTnIx4Rd7y/1iY17wcQ=; b=YgXosw6xwo8XTS PP+NgDmLPACRCgoTCOVGzdqmh1q00emi/Cink+gzJDmVc0bMquTitUcNTT20spV3BM3HgKKP0h4yG uPqcpqaqAnoj7DeVkIFfzAc2s4qJdTd8ytUBO8QmvwpNwVqMbQXSXLXj4rNFMK7KEAIzx+t2n1gRY vcryc4HdiSpJroMcSPecSFdQdzPzQXHjg+oaCfJWYxKWhkSlgMw9o5i3h2hNHqd8+egxV3ToNDD7S 5Q5BrR8hbYimOBfXHbBQbB1HpZ3yOJZPwNeztHEtaCEJRn/SOHcPpFGYt0+B/AjDzbkQ7DvEKRtH+ z4OhqO6nzjJqeg860hRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tO7tz-00000000lzS-3yWf; Thu, 19 Dec 2024 04:12:43 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tO7ss-00000000lto-1iCC; Thu, 19 Dec 2024 04:11:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1734581494; x=1766117494; h=from:date:subject:mime-version:content-transfer-encoding: message-id:to:cc; bh=R2Wn9SYot7N14emTkPFRNkyiryUGhE+kyUJk2LjZOi0=; b=EBr8rPR4102+y7IML+FcQbOJ8Ug8bOxtvFabhmxFOCRlNjAPq/K1OpKQ Q39vZLtvgF8ZZD2c08L07xjjwNKq+ysSqJDQgFfWoGKDBZdx7CehZyhNW m+UJaYggpgTyHfJ5tCFwZlZeZQ8v0Min+HAlrpozHUydAO1txnVMJmvv6 /ksEkUe7PA1rZbEF6bsKXcQPyf/6FftWF5T5jrZd/MBYALbHFVjDw3Z2a sGcOpQdAQbB4kGshMo5HCLaEdLY5SavKvO37kBSboEV/da0XZ03ZH7hUu BbKMaeDVa/MUuurc6yGPHjtHUl+KvE8Y+GGIC65aw2EsIRjP5o/feyCMF g==; X-CSE-ConnectionGUID: Bu64aKVFRiuMCGIiLDlv2g== X-CSE-MsgGUID: rY+Ot2OJREaaV8hnCrck1A== X-IronPort-AV: E=Sophos;i="6.12,246,1728975600"; d="scan'208";a="203189664" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 18 Dec 2024 21:11:31 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Wed, 18 Dec 2024 21:10:51 -0700 Received: from [127.0.0.1] (10.10.85.11) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Wed, 18 Dec 2024 21:10:46 -0700 From: Dharma Balasubiramani Date: Thu, 19 Dec 2024 09:40:41 +0530 Subject: [PATCH] dt-bindings: mmc: move compatible property to its specific binding MIME-Version: 1.0 Message-ID: <20241219-mmc-slot-v1-1-dfc747a3d3fb@microchip.com> X-B4-Tracking: v=1; b=H4sIAMCcY2cC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxNDI0NL3dzcZN3inPwSXQNTcxMLC8uUxNREYyWg8oKi1LTMCrBR0bG1tQA n+/BZWgAAAA== To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , "Martin Blumenstingl" CC: , , , , , Dharma Balasubiramani X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1734581446; l=1926; i=dharma.b@microchip.com; s=20240209; h=from:subject:message-id; bh=R2Wn9SYot7N14emTkPFRNkyiryUGhE+kyUJk2LjZOi0=; b=E+4ohOGm0CaZHEhi41ta2R+gPmJ7QEzV7VjPBewgBaV6JA/zWVQkda++p+wMyWejCmzWZGXVu wG8dVRWrIxcCsm7OfEMT6IptgaUCI0vnKZNd5+qBf+W2cNXEuM2Zpz5 X-Developer-Key: i=dharma.b@microchip.com; a=ed25519; pk=kCq31LcpLAe9HDfIz9ZJ1U7T+osjOi7OZSbe0gqtyQ4= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241218_201134_731028_92187DC3 X-CRM114-Status: UNSURE ( 9.74 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@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-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Move the `compatible` property into its specific binding to make the MMC slot more generic and modular. Signed-off-by: Dharma Balasubiramani --- Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml | 4 ++++ Documentation/devicetree/bindings/mmc/mmc-slot.yaml | 7 +------ 2 files changed, 5 insertions(+), 6 deletions(-) --- base-commit: 7fa366f1b6e376c38966faa42da7f0f2e013fdab change-id: 20241219-mmc-slot-0574889daea3 Best regards, diff --git a/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml b/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml index 022682a977c6..7600a4988eca 100644 --- a/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml +++ b/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml @@ -54,6 +54,10 @@ patternProperties: A node for each slot provided by the MMC controller properties: + compatible: + items: + - const: mmc-slot + reg: enum: [0, 1, 2] diff --git a/Documentation/devicetree/bindings/mmc/mmc-slot.yaml b/Documentation/devicetree/bindings/mmc/mmc-slot.yaml index 1f0667828063..84c4605658e0 100644 --- a/Documentation/devicetree/bindings/mmc/mmc-slot.yaml +++ b/Documentation/devicetree/bindings/mmc/mmc-slot.yaml @@ -20,19 +20,15 @@ properties: $nodename: pattern: "^slot(@.*)?$" - compatible: - const: mmc-slot - reg: description: the slot (or "port") ID maxItems: 1 required: - - compatible - reg -unevaluatedProperties: false +additionalProperties: true examples: - | @@ -40,7 +36,6 @@ examples: #address-cells = <1>; #size-cells = <0>; slot@0 { - compatible = "mmc-slot"; reg = <0>; bus-width = <4>; };