From patchwork Fri Aug 30 08:14:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dharma Balasubiramani X-Patchwork-Id: 13784538 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 02525CA0EED for ; Fri, 30 Aug 2024 08:19:33 +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:CC:To:In-Reply-To:References :Message-ID:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=PuweAZCRNBH97je/8gXbT5kG10lbX0RRUWz0Gh3yNSA=; b=MSYswgbbPw2iNSDls+lsp76mdL pyVknRRMgEDlNZ73En1Pgm6hZ16sbnAeyk/5W0iDBu8cy4moitBOBQQys0zSDyqrTq49ne8aH3Gor 7tv43WSvjP3L9ZoXZtRdgZu85ec9u+fD5JuWOFVrLIBHx9oMj233ASyqcvdgzP3uGG95Np4Hq3uyP vHt0ZuxFxqUgJMxiz7CGGaFjDw0+8kS9BzX4ZlWTr1BMQBPeLanGvS/hr6uHGC4N8ZfhoNlJ3lHDP 6PMNtRqFYNjYl6Enrm+ORlr3xWKDsSbQGM4w0jN/pKuZ64xTOcDhFby01MLuO72i8njg/MGpe+9sQ tWyWOuLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjwqm-00000005JAL-0VHg; Fri, 30 Aug 2024 08:19:20 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjwmu-00000005I7g-0Ggb for linux-arm-kernel@lists.infradead.org; Fri, 30 Aug 2024 08:15:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1725005719; x=1756541719; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=cXz8s+dhfH4eKyccckZok1ImPOM6qL8TnvX2vihUKbo=; b=DCcDfv4QZXnHCt2t3GfUfsKcKWzmtGWJZuxwBf/0lIGTY16oDKA9pej7 CuFYYvOF1NMaDIDgLOKCeoxq8GhcZiySaJvSRI80GLTrinAwsSItAS60a wbVq+bPvQboxM3ZDPnsr3kie8MGXWIy8Y54f2MnR6ThskzpQCYD0/Mz6W YphHZM8VQ4qa7ON/m9YM+YwVD3UAqL6DY0fYkjuZMlHHFUTc9ISu3IJ7Z dizxYwJHdV26sqpqSwW+LZ9CSkcvd7OvpuIUV7GUfLjnIX+Irx1f9HEgi jeeFiIKgW8X7mErFnnw/lMcOAOTcMgxcnBse4xBgcAZKCrLyMptSDEXEf A==; X-CSE-ConnectionGUID: VAeSbLWdTTSEy+nkApU6cw== X-CSE-MsgGUID: lM7pOji4TxyAmCkBKi6y0w== X-IronPort-AV: E=Sophos;i="6.10,188,1719903600"; d="scan'208";a="34149872" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 30 Aug 2024 01:15:15 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 30 Aug 2024 01:15:15 -0700 Received: from che-lt-i70843lx.mchp-main.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Fri, 30 Aug 2024 01:15:10 -0700 From: Dharma Balasubiramani Date: Fri, 30 Aug 2024 13:44:58 +0530 Subject: [PATCH 1/2] dt-bindings: mmc: sdhci-atmel: Convert to json schema MIME-Version: 1.0 Message-ID: <20240830-atmel-sdhci-v1-1-01e3ec8c9804@microchip.com> References: <20240830-atmel-sdhci-v1-0-01e3ec8c9804@microchip.com> In-Reply-To: <20240830-atmel-sdhci-v1-0-01e3ec8c9804@microchip.com> To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Aubin Constans CC: , , , , Dharma Balasubiramani X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1725005704; l=3153; i=dharma.b@microchip.com; s=20240209; h=from:subject:message-id; bh=cXz8s+dhfH4eKyccckZok1ImPOM6qL8TnvX2vihUKbo=; b=f6M5yP9ZTCiHo2kVszlFZCJfwDDzmYmHS3XaTqQCXMZ6oAjEKQhZFGWrUIWGqykySy0wus//y buC2zHIuYUUDb6qdPTAO9d+MrDrX75nD4wUCkRSdQYQ5G9EtaU8hN96 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-20240830_011520_262681_1C8E0820 X-CRM114-Status: GOOD ( 13.14 ) 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 Convert sdhci-atmel documentation to yaml format. The new file will inherit from sdhci-common.yaml. Note: Add microchip,sama7g5-sdhci to compatible list as we already use it in the DT. Signed-off-by: Dharma Balasubiramani --- .../bindings/mmc/atmel,sama5d2-sdhci.yaml | 98 ++++++++++++++++++++++ 1 file changed, 98 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/atmel,sama5d2-sdhci.yaml b/Documentation/devicetree/bindings/mmc/atmel,sama5d2-sdhci.yaml new file mode 100644 index 000000000000..91d18b2545e1 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/atmel,sama5d2-sdhci.yaml @@ -0,0 +1,98 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/atmel,sama5d2-sdhci.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel SDHCI controller + +maintainers: + - Aubin Constans + - Nicolas Ferre + +description: + Bindings for the SDHCI controller found in Atmel/Microchip SoCs. + +properties: + compatible: + oneOf: + - enum: + - atmel,sama5d2-sdhci + - atmel,sama5d3-sdhci + - atmel,sama5d4-sdhci + - microchip,sam9x60-sdhci + - items: + - enum: + - microchip,sama7g5-sdhci + - const: microchip,sam9x60-sdhci + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 2 + maxItems: 3 + description: | + The sama5d2 family includes three clocks: `hclock`, `multclk`, and `baseclk`. + For other families, including sam9x60 and sam9x7, only `hclock` and `multclk` are used. + + clock-names: + minItems: 2 + maxItems: 3 + + microchip,sdcal-inverted: + type: boolean + description: + When present, polarity on the SDCAL SoC pin is inverted. + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +allOf: + - $ref: sdhci-common.yaml# + - if: + properties: + compatible: + contains: + enum: + - atmel,sama5d2-sdhci + then: + properties: + clocks: + maxItems: 3 + clock-names: + items: + - const: hclock + - const: multclk + - const: baseclk + else: + properties: + clocks: + maxItems: 2 + clock-names: + items: + - const: hclock + - const: multclk + +unevaluatedProperties: false + +examples: + - | + #include + #include + mmc@a0000000 { + compatible = "atmel,sama5d2-sdhci"; + reg = <0xa0000000 0x300>; + interrupts = <31 IRQ_TYPE_LEVEL_HIGH 0>; + clocks = <&sdmmc0_hclk>, <&sdmmc0_gclk>, <&main>; + clock-names = "hclock", "multclk", "baseclk"; + assigned-clocks = <&sdmmc0_gclk>; + assigned-clock-rates = <480000000>; + }; From patchwork Fri Aug 30 08:14:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dharma Balasubiramani X-Patchwork-Id: 13784539 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 0DE98CA0EEC for ; Fri, 30 Aug 2024 08:20:22 +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:CC:To:In-Reply-To:References :Message-ID:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=t9sYZ32G9hEj058ozrKbh9qB0TY5fuP4Ljli+QKtsfU=; b=s+QvUVISxVuqbNYMTl1A+HusFj 84cpTCncGwwcVu6/2CZSPI5tlHuQVaNEr0A04EbdedtY2wduLCpDbaz80SFlSyBylVMcBCENjl2sZ R44Y+UbL6iTXx+4Ot6ENFO07F7XbzmUfj1ui6/ndya1gyC9aEa2RMI1/q/wZbmzZezy2DirxxOyZW QrUkZaGNiXci701tAf789EwueK9tiM6clyC3GiPZCj5p+30jcaS0ubDb8EnX7bTzEONaUaf83K57/ MGhxdcb0WqfVN5CxQ3G0CiRO4KOlqOu/FIcxCiqQxDo7MyoahowbizLeyGV7OneVmDlLuAYV2BaO3 VzowgD2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjwrb-00000005JLO-1yhE; Fri, 30 Aug 2024 08:20:11 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjwnM-00000005IHK-3MXz for linux-arm-kernel@lists.infradead.org; Fri, 30 Aug 2024 08:15:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1725005748; x=1756541748; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=zeiNe3RDjxa0ANwXXvSkRZhe0L3aObfW49MAHahbOCs=; b=2PC4XuGXFAVX/qXGRiEtPZMJucSszA8JZQ6ZrWM+fb2Ffo/caMrZ5nok Sx6ZuL4kbhxV1gog3ErwSBit9ZBsfY6iLSkWfEuMTmjtX27SFzpTtTpsG V09ZAhLGFYmcQKUJcvH2NCfw2HDBWoXzDkeUUm1zSkAfktWZjB+/yIN3H GWPMMK6JG3yHJT9nGBPxBIR0GmAsHjZjnr8Rnw6IuAKsgf+oe4lY3INo9 fJyRs5mA789VDYerzJUG6NAR+IR5hEJDKlVrc5/AkTsjzvZtc6N7fWhC9 6slBJqgbf4ovU/ENGu+ew+rQJOdXqDM+6nN59nSjtMGEftesW69iWQcvt Q==; X-CSE-ConnectionGUID: Foej+J7cSxe5AcBBVpoV/A== X-CSE-MsgGUID: zEDWijkdSXChZwKVKZtMzQ== X-IronPort-AV: E=Sophos;i="6.10,188,1719903600"; d="scan'208";a="31025518" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 30 Aug 2024 01:15:46 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) 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; Fri, 30 Aug 2024 01:15:20 -0700 Received: from che-lt-i70843lx.mchp-main.com (10.10.85.11) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Fri, 30 Aug 2024 01:15:15 -0700 From: Dharma Balasubiramani Date: Fri, 30 Aug 2024 13:44:59 +0530 Subject: [PATCH 2/2] dt-bindings: mmc: atmel,sama5d2-sdhci: Add sama7d65 compatible MIME-Version: 1.0 Message-ID: <20240830-atmel-sdhci-v1-2-01e3ec8c9804@microchip.com> References: <20240830-atmel-sdhci-v1-0-01e3ec8c9804@microchip.com> In-Reply-To: <20240830-atmel-sdhci-v1-0-01e3ec8c9804@microchip.com> To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Aubin Constans CC: , , , , Dharma Balasubiramani X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1725005704; l=903; i=dharma.b@microchip.com; s=20240209; h=from:subject:message-id; bh=zeiNe3RDjxa0ANwXXvSkRZhe0L3aObfW49MAHahbOCs=; b=6CfAxaOWcDzV0c4qjJvHh+w9Qyasy4tMQCiQd8jrfW42/2rQxid5XAjNDedfVajB07aEzqzbv 5PvuIPXGK1aAbZ8Cmh90uQajzzTz+lp7zmqa21ccnge0bIikc3kE+Pq 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-20240830_011548_942926_88552135 X-CRM114-Status: UNSURE ( 8.74 ) 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 Add mmc binding documentation for sama7d65. Signed-off-by: Dharma Balasubiramani --- Documentation/devicetree/bindings/mmc/atmel,sama5d2-sdhci.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/atmel,sama5d2-sdhci.yaml b/Documentation/devicetree/bindings/mmc/atmel,sama5d2-sdhci.yaml index 91d18b2545e1..31b3c719b3e2 100644 --- a/Documentation/devicetree/bindings/mmc/atmel,sama5d2-sdhci.yaml +++ b/Documentation/devicetree/bindings/mmc/atmel,sama5d2-sdhci.yaml @@ -25,6 +25,11 @@ properties: - enum: - microchip,sama7g5-sdhci - const: microchip,sam9x60-sdhci + - items: + - enum: + - microchip,sama7d65-sdhci + - const: microchip,sama7g5-sdhci + - const: microchip,sam9x60-sdhci reg: maxItems: 1