From patchwork Fri Sep 20 08:38:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13808348 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 9E228CF58F0 for ; Fri, 20 Sep 2024 08:51:37 +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=gT2RF7jns1eZm4iFgSUdoY+bcOaQqGhahQcgK59xcso=; b=N1NR9XBSuSv6mfF6iQlHgM+914 GbVEj0upkwUwUORd6QkSUfDQeuR8vwflDsLkvTgVleieJ5uSXPs4npYbVzklAuyEqOhbVoJnA8plF s2aPOUasvFicbpbjI8Bog1TkH/a76pIyzcT0t5CnnK7jr28VIL2Eonn07BQ5K5Elk6xPRZBwG8lmR 2JgnWPNJYWfGB/2mEWYZGzv0HwUko9TtW0f8gXBrqhki5J6xfJyYHxN41hNEC7ZQC68ED8pLML5Wp xEeQzs23bU9ywOaaYHmhx1YT8hxe08tdmcT/rnNIQ2Ork4/hg1IVBPAkGj9RM/fPEAOzWuP+dn2ca mzCM1Vgg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1srZMO-0000000BpgE-28az; Fri, 20 Sep 2024 08:51:28 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1srZ9W-0000000BnL9-1DMP for linux-arm-kernel@lists.infradead.org; Fri, 20 Sep 2024 08:38:13 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-42cb58d810eso17603855e9.0 for ; Fri, 20 Sep 2024 01:38:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726821489; x=1727426289; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=gT2RF7jns1eZm4iFgSUdoY+bcOaQqGhahQcgK59xcso=; b=TV4fq++DeL4dLwqBZEJth2lN8tkdESg1mqlq937CSTdm54qsPhOFtchHaHIU89Bejg umyJ8uiBDdQqtujKScSuZIDf87YU58uBuQuw5N5WQ5QkSnwoaeKHkBG/H+MizlL04aH3 RgNvM1HOueeAYsOwxCfKAV9T3DsRSNuIPqIULgOOr1H+sro7mqgapE9Fbg5nz52oFYeE q/vxWN2kH//w9kq/PcNJSPgOca7vLOYVZHy6IHOfsAD1BHYmHqs1T0Jqs1Q9kT3+cgbW nqbQuG3iAmdQN39zafb3qmKe3h7nsIYsslja6WWIazpTVQyIM+dzm7g/a9Bo8lizQ3r+ A9Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726821489; x=1727426289; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gT2RF7jns1eZm4iFgSUdoY+bcOaQqGhahQcgK59xcso=; b=cjioldPK98rl24BOe7GoYyUpZ8wWKdHsa/qgXRx5RWiU6YHf74GN5uLADDgsERA9Zg D0LeKXh1nntFTDtsDSpCGnTsmvXMEmV5FucBOrAkZLcBYa4vrZBsv0qkd0j+BEdewoIc IgwOnVUujCgPlMFJ6+ERywgB8ro4q40rmF2szqLwBIpj8MK813ad2hNW2iQFYlAn3VDl ADfNyn6r7Tj68Qo2H6Lp3RO1PDLTmKkXE0KmW/+6vx2gmwsnu8/yD4+OxcVKCeK3No2g oEDzZtr6kTGA0pH75fAkQmM3kxeemZssjdrnbwbhmso736zXspqUf35j9aZYe4F9ctZh I/Fg== X-Forwarded-Encrypted: i=1; AJvYcCVFMFmzYUag7/T0YCq200IFc2v+I0mfJvTrlNvx5cleRtfJNAI7FQRGS4iZzgHapsarw9RaUdIG2o7wPKcVHFbk@lists.infradead.org X-Gm-Message-State: AOJu0Yydi0rlCiKewzTtzHlrvyAAZmVdiCDc0pQsGbswl9AehmcPKGOb /M1jXd9IzbUz3tj47gM8vuiFTKKxOP+PCSKRmOViXRPLiNRx7ACs3hR9bqT0eVA= X-Google-Smtp-Source: AGHT+IE5iYFX6WbTBCf8hPKKmvc2byWHvUXMxBGORLFXUMBKGWVjztPI3IQQ7+Y9YV7SsSQ/lBAm2w== X-Received: by 2002:a05:600c:444d:b0:424:a7f1:ba2 with SMTP id 5b1f17b1804b1-42e74480c34mr32809545e9.17.1726821488647; Fri, 20 Sep 2024 01:38:08 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e7540e2c1sm43099165e9.2.2024.09.20.01.38.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2024 01:38:08 -0700 (PDT) From: Neil Armstrong Date: Fri, 20 Sep 2024 10:38:03 +0200 Subject: [PATCH v2 1/3] dt-bindings: mmc: controller: allow node name to be named slot@* MIME-Version: 1.0 Message-Id: <20240920-topic-amlogic-arm32-upstream-bindings-fixes-convert-meson-mx-sdio-v2-1-5aa8bdfe01af@linaro.org> References: <20240920-topic-amlogic-arm32-upstream-bindings-fixes-convert-meson-mx-sdio-v2-0-5aa8bdfe01af@linaro.org> In-Reply-To: <20240920-topic-amlogic-arm32-upstream-bindings-fixes-convert-meson-mx-sdio-v2-0-5aa8bdfe01af@linaro.org> To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=822; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=j4Lbv6zNfqApM1V0yGgeKWlfIsHLow2v2D7sYIjkoo0=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBm7TRtOO5ZDGB2QmQUkPJ/06kTzIWKKiisCP4shXUQ InsXEMyJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZu00bQAKCRB33NvayMhJ0e2nD/ 9IWH1wZJU9XdD6gMI2xMEZU8T0xA9K+1KFRbOZVINbrRwYyTirYYoTlr3Xm8nG6AJ7LXYMa8QLahEw 9U7ToR/R/hBkPgUyTbYdpkLxsahke9cMoCgPiiO6XKceTjn+YHkOx5RVOCt/n/Suj1sxZXenLO7tAn ztn7BAmhv42WPi0Z6+6gqekvb2Yro7qJLFCvScppDy3MUeYRAq6gNqfjkUuWorrPg45lMkFVcjD+RN PPaqGpZcSg3+r5slvgETedy5DUwt0qPG4WupRFtfBrZ0JSI2tUE5MtRSLkAWGO0aghjCFcoqrKDxdb goO5xpfV3aapOLYmzF+VaSGCtMoJQyETFJ5UbnjPSZZL7uKM1wkcpS7pVpG/gFs3pwxTYb4u3zKq5B wiQFNSLylTCparrRpM3p/ttLUJWqKrz6tv6Bvulda8v95d71BPn1O9xofO/AOR+sL2weGWs9g0HESg 3qPSTlC5RWI9wrY/7F3tdWGcZ4K6GbrWKXxLf1pWcv63Hj82CETY+mt6ku8cNfChUSX1itt3Lz19oh Qeh074UwOJ+ivJ+pHI5dFrQhDFLnhRkl5OvqTSj3ec2AkW3dHDUxYYi69r2Os1zhr1LSrTOOsUfWdI uz5/RuAmJ4pMcld9lwSnU9WGNcBZUmwoVy0rDB6jeOkJ+zlp+ky7hp00ZLOg== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240920_013810_436371_C89C2F6B X-CRM114-Status: GOOD ( 11.12 ) 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 In preparation of supporting the mmc-slot subnode, allow the nodename to be either mmc@ or mmc-slot@ Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/mmc/mmc-controller.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mmc/mmc-controller.yaml b/Documentation/devicetree/bindings/mmc/mmc-controller.yaml index 58ae298cd2fc..f797c32ea688 100644 --- a/Documentation/devicetree/bindings/mmc/mmc-controller.yaml +++ b/Documentation/devicetree/bindings/mmc/mmc-controller.yaml @@ -20,7 +20,9 @@ description: | properties: $nodename: - pattern: "^mmc(@.*)?$" + oneOf: + - pattern: "^mmc(@.*)?$" + - pattern: "^slot(@.*)?$" "#address-cells": const: 1 From patchwork Fri Sep 20 08:38:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13808349 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 CCA44CF58F1 for ; Fri, 20 Sep 2024 08:52:46 +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=50X9LprKoNeeESL+1kpHxKrSynXSTK2sGLyRt4LI2AY=; b=WAk6MCWrzOvgziwYobpALvha8A vs6BobxnF0EbTbsSAh8rvFq5Ww6thScIDv6h7EkN9YMToT8ddxepuAjH7C/+bG6zAwsk5iAGSdpqF svuXMCWiHftCBe36IDZ/CuBj9/ZWIO10FQsAeQ9fn16aD7kwNDwmOJXAiWXNn4etMFjyEV0MD2Zqs YfiAaA5IGRR7iTzuXRt4WKLas2Sll+gjF6tmUXZalQkBEnI1yQNmhoebL6BuisBSHut7GZZaMWNut 7pwH0vhoT1edhn4vG8FtfTRq+8pVntisaN87adV3cqqc68KPsFKnGVrDXjDvARcSB+63LcHzkz5oo bzun33Yg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1srZNT-0000000BpoZ-1RbL; Fri, 20 Sep 2024 08:52:35 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1srZ9X-0000000BnLc-0FgI for linux-arm-kernel@lists.infradead.org; Fri, 20 Sep 2024 08:38:13 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-42cb2191107so14241595e9.1 for ; Fri, 20 Sep 2024 01:38:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726821489; x=1727426289; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=50X9LprKoNeeESL+1kpHxKrSynXSTK2sGLyRt4LI2AY=; b=MZrPs4Uunend7uG+mm6XUP1u+tnKS612nWhHh2dQMRVDC4LQIr1Jq2fa3Lw6X4fRtx vX6zVTbg6LG3UBuA7ViqHAZZr4tWjAMGJDByEeQCMo+XcjhKjt6twkt5a82CEOHhqjK1 R3EWRmMLuqS/9usQnj6U3HnG4/vy5yK1/nG+ZlFbeseNCujAGuMCWAgJDo+De9TxatOJ IiI+x9KifeGu+1dPRxQSsQCHq26RBRheWtI8w7ibYTo2NgPKr0hc1qhqWr/WcHXcYqwM /6IkZjQPmWqCfYpToGmTQJ4CdfFiUAoDcNnRaF7hn88wL1su1ozuV3Ed0S7e0nthrnEU aDxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726821489; x=1727426289; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=50X9LprKoNeeESL+1kpHxKrSynXSTK2sGLyRt4LI2AY=; b=mbrBs9lnQaOGNi3B/cpIEV9+lyslrH9PCOYvCd8/xaul2nCNutcwHXhxut7/rURKqt StedoTNcXsZIS7qyAxuAMKB30yXLy1Bt0SMOrijSO2LkjIWPZtglVr7YJuAzLv3+0o+w qo4uVL9707wirRGcV/aWZdk8ke9b6jAgJMZki3ntE5mknElEGmhRXjBV8GzMlavoGRQl nU1qCXKxyRGQbxAKv+7VSCrZwbbZiCBcrJsJAS9+ZGG60d9SoEnAOy3P5P3jZkiMXq3q DR8JiEvkhqQA4O7ISa7yE96t3KYTmHNB7vpw+rVbXHolP1TW8gv2NBOfDBFF6Z5hL7N/ odjg== X-Forwarded-Encrypted: i=1; AJvYcCWPuRh92zF9gNnYYf+Sue0ho+CNoEDMLYXAHjPOScmNuDJ0h2WhDgP2TjOwaX1BtQ/ODqsbtq6L+7dNUyoAWzCE@lists.infradead.org X-Gm-Message-State: AOJu0YyzHaL62JNO+b8Z51Zy0RWjZTHTVhWoOEml159dwvIJi4l8wzML QFQ2Ur5R5fvl0D8QEYs95/Eq2oNbxZYlEtNx1NM0As0xFaEZxhrFImUplZQDDahvaEc8gFIVrP1 t X-Google-Smtp-Source: AGHT+IF0N3nJ0v0xMCJWoXiR1L2taB/SeE+T/bQehDWKai9p6z1i/Ea7/Tq7rP7fxtkgVZzA+A6MjQ== X-Received: by 2002:a05:600c:4f81:b0:426:6eac:8314 with SMTP id 5b1f17b1804b1-42e7c15b3b3mr11936645e9.1.1726821489528; Fri, 20 Sep 2024 01:38:09 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e7540e2c1sm43099165e9.2.2024.09.20.01.38.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2024 01:38:09 -0700 (PDT) From: Neil Armstrong Date: Fri, 20 Sep 2024 10:38:04 +0200 Subject: [PATCH v2 2/3] dt-bindings: mmc: document mmc-slot MIME-Version: 1.0 Message-Id: <20240920-topic-amlogic-arm32-upstream-bindings-fixes-convert-meson-mx-sdio-v2-2-5aa8bdfe01af@linaro.org> References: <20240920-topic-amlogic-arm32-upstream-bindings-fixes-convert-meson-mx-sdio-v2-0-5aa8bdfe01af@linaro.org> In-Reply-To: <20240920-topic-amlogic-arm32-upstream-bindings-fixes-convert-meson-mx-sdio-v2-0-5aa8bdfe01af@linaro.org> To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1400; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=kNCAWhKmcmtpyB2uacECJO/JKXg8Fz3C8WIqjPA3amY=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBm7TRuv0TNIP3Dfopqh/6/jNdlr+f2fiJ+hNO2E2xl JMCDBbGJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZu00bgAKCRB33NvayMhJ0QvMD/ 4if1rpppxeuzEJQ/h4qKYR491G86sLv9/x5vaqFt7TYk8916m05notBJpCcIVuJY1a1Pj0NdbOctq7 IektA8ey9J9E2Yk9+6ZdIV0ApMO93QnYE2e3JCKngTKF87AU7c7r19fLbZBDV6+b1Nzw8mICKKfHDA SYyC/eWFn2UM1x7wWL1RnwGhYxDdgkIY3U+7X0Nl54ySgYxhDMDP75nvsK6lMkbX/AnHv8EnyERYSS ZwdkxvuxjYarBz0zxaHX0/s/GeFFZJZQGVZ0rENXSt62Gto0C1tOVCfoQWLVj7Pu+9IVyBZXgc4kTj 4mkTJrUoMwiVg0CvQRhX+1wqEaztErQzFQqbIBZDtUfK7tmE9JDK37QpABpJqaN37u+b71T01UzMjx E6C8QzpOJMY7lbc7utY0Oz3FuhZhhUNi4MgBIlkrtaRirck9CuR1GwR4A0/wanM506YMOkCGAulW6K Qmj1GtydIWT4nmNwzO3a8LDSMHbZJRMtUnZYa233jms4jPGGyLHCiKYuZoOPyMSwvKSDB++qOuqm7I jQBZlA//mggE5gQOontemh4/hyqBaSuBKbARQgzIJKf4i2TpUOMDHxPbco6wRf37PeIY79ckFKAZkn MuujdtIppczEYhmT9h9gxclS7u8Sa6ie87RX/O8arYmALxf/Wf3+jjKmeRXQ== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240920_013811_139064_CFB0FE83 X-CRM114-Status: GOOD ( 12.35 ) 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 Document the mmc-slot, which is a subnode of a multi-slot MMC controlle, each slot is represented as a full MMC controller, the top node handling all the shared resources and slot mux. Signed-off-by: Neil Armstrong --- .../devicetree/bindings/mmc/mmc-slot.yaml | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/Documentation/devicetree/bindings/mmc/mmc-slot.yaml b/Documentation/devicetree/bindings/mmc/mmc-slot.yaml new file mode 100644 index 000000000000..c30eda4fd2a6 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/mmc-slot.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/mmc-slot.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MMC/SD/SDIO slot of a multi-slot controller + +maintainers: + - Ulf Hansson + +allOf: + - $ref: mmc-controller.yaml + +properties: + compatible: + const: mmc-slot + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + mmc-controller { + #address-cells = <1>; + #size-cells = <0>; + slot@0 { + compatible = "mmc-slot"; + reg = <0>; + bus-width = <4>; + }; + }; + +... From patchwork Fri Sep 20 08:38:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 13808350 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 D5A0ACF58F6 for ; Fri, 20 Sep 2024 08:53:52 +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=M26p8HJUGVrSTve7LtSl4MnedM6VlYwh3DdAdGmuv7c=; b=A/LOqnvB+k0MUpN+9KpHpr6X2G sBsIUvjHh9IPYURsNDXF7oGFCcBy+AodYBA7ZVc0VUM2MFpsYwbDfqhrircbNPBQR8LCBL/0nXiRl aWTA3LoBH4iSHriWquUC+C7NsN2Ius7hXmzcIRZKgYYlCIDGDEfs+GSnPgYECiIkAYdc4yz0ElQmq FRK2LO1WssKBx/Mu+cnFmXsShjVYbhDDX6FrEg9o2R1Sg6X43crcIfuNetoZ5bfCTlSmzjP/xoa8x QI+Xsa/z6rrOVxjxCUyrV+Jrk6nKjzelvVHKElgDq9XTta14r1UmQWrPeLMVPa4YtBeFIY+TTmN8Z 5Knff8Jw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1srZOZ-0000000Bq1F-17k5; Fri, 20 Sep 2024 08:53:43 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1srZ9Y-0000000BnMd-2eog for linux-arm-kernel@lists.infradead.org; Fri, 20 Sep 2024 08:38:14 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-42cb6f3a5bcso21243855e9.2 for ; Fri, 20 Sep 2024 01:38:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1726821491; x=1727426291; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=M26p8HJUGVrSTve7LtSl4MnedM6VlYwh3DdAdGmuv7c=; b=XrS++gbdB/WuFmN1q1ckOsIGB1nIERtNKYctk1KFyh73pgdk1c3fmV7ZvPh2AvUbzc H/yDxj2GcVIjN6a4VMAjpZ75d5IlioibdaTqiWtNq4qgoBo05JqZiB4sGgdXxikiaRZl H/vrJhaCLHFBmfkXocjf5R7WUfrpCDr8Y9VG6xRlqUsDvfmSd6SR0LHsEdZEDjiJ7a5k Zun0RBWzBDEYtxqgXc9ouJEcNIQtwQK2yGk/nis3SmukqdBb5ZERI35pHEtXJir7YTG1 gTywHuDOP4xPonacBquFnofUIM/tNPqt35OooGAXM8ky7guILrXpP+/U305Lfn4QGioF O70w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726821491; x=1727426291; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=M26p8HJUGVrSTve7LtSl4MnedM6VlYwh3DdAdGmuv7c=; b=VyEEWO6GmDv0qC0NFehAr/N+UzoUXtFiSCZn8frh7stichehABR9NdMMAAVkPmcNQ4 k3qkvs5W7YuYSmUB1IMisbH+pyxL6pVaWDIttXJ6keNp+62I/4lEyzpnU9qHRgHez8G3 AmP1QThnGp0RHsnHL3z9YfKeql/ODWTVqDh3aAXz6+DK7ciLPDg0o/CDyOa5iEw0cZm7 vxF6IDASbOuOP0xiNGHXjZasqasym/Pbz6RH9VTBU9eiC9VpOXcDfwgFDIkUBS/T9GXi 7IZmJFYG6cNEZp4bHVHtKsHXBsRX9ks65Kt7n18cLp/TS8vanA2PoeKT1nmDcj1znKLx nZ0w== X-Forwarded-Encrypted: i=1; AJvYcCXg0DB0Wur6iMJSV6XDbjGLGs5Ig8eOaYa3LWxdSlO7Wb8givEFUw+msaK6rRME57oJ3wi9/B26Nil5aZnpzGk3@lists.infradead.org X-Gm-Message-State: AOJu0YzRtO358Id3+/uEQLVBEkSuikQCLWT4l0gI/n3K5g/aHtkDxYa2 BPSXCMkAwbFsv6icQqm9XGR6tAyUuh7dV1Fyt+fsFmbYJOTSN/F0zsKT/viaca4= X-Google-Smtp-Source: AGHT+IGu0mJn0TEAtjrxCTFxsE8k5t1vGcbdWZEZvHC/A/1yKOwaWCwpTcH4rvcoPgrQPnL4UVJgQw== X-Received: by 2002:a05:600c:314c:b0:42c:bb58:a077 with SMTP id 5b1f17b1804b1-42e7ac30863mr19117735e9.14.1726821491058; Fri, 20 Sep 2024 01:38:11 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:52eb:f6ff:feb3:451a]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e7540e2c1sm43099165e9.2.2024.09.20.01.38.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2024 01:38:10 -0700 (PDT) From: Neil Armstrong Date: Fri, 20 Sep 2024 10:38:05 +0200 Subject: [PATCH v2 3/3] dt-bindings: mmc: convert amlogic,meson-mx-sdio.txt to dtschema MIME-Version: 1.0 Message-Id: <20240920-topic-amlogic-arm32-upstream-bindings-fixes-convert-meson-mx-sdio-v2-3-5aa8bdfe01af@linaro.org> References: <20240920-topic-amlogic-arm32-upstream-bindings-fixes-convert-meson-mx-sdio-v2-0-5aa8bdfe01af@linaro.org> In-Reply-To: <20240920-topic-amlogic-arm32-upstream-bindings-fixes-convert-meson-mx-sdio-v2-0-5aa8bdfe01af@linaro.org> To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.14.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=5098; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=7CJFNsK+RYsiPatWJUwXv7bSU3rHGoSDbNBW/V45qdo=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBm7TRuyUKbSWggrLcYL3U67aC98p+hgvoXseunmRTZ QSonzOGJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZu00bgAKCRB33NvayMhJ0SxZEA DD/tHmAUJB6hYWVHojaA5NrWqA/Nhi/mZY7G4EnGnwGWzTLVeD3recvdof38Itt1vty9fYc9qrP3na gsszZfV0hOSwZcvJA5SERhRfc4yljd7GjhRuSRBh2C0wzumWXqJm7xcZLxkR+4f/jXGcPaem46tfc0 CSNZ9meAoaRHWFSzCTnQx3F2NPI1SXnyfLkRNJHZMtli0FNwoXbtd4sfW/IUG47YrfjaWvUcG1+yws IqE+8jNZx72J1mCfktuUNB3jC3e9mf2tMAvvGt3AFH5DogngSiZSN6oL3Lh+GNNYmmjENyvota1ryH kOZlHb2J+deIdbL3YbmTmMKpnzVw+FmT1wt81kB1avqCMxEFs1XtpSc+wDyEi5vTrrXSD/GXnMtaFt 9Vc1aFOcxRfQCQl70a98MiR3j/rkFW2+4teKte7lEQ7339p0N4Gz1WkVNiVmK6elb2RqwJ7cfd/tIO mnzJ72REGtGtAhgOSZvUc3pJAIKerQ1U+bFABnqUtu1geaTzNw8zTXg0E+l2PGGRRip1plVIQrrdJt I7QIT2ikwZwuqGYOC3Gu4rVcdmugVx28ghj+5VjM8Cs6EnIfglsavmD3vZdal4C4bem+M6VTpU7+I2 HAo+g5zS5Be191z30RM9QCH/mjcBEvG7BptWhtHO3tJnCumJY1VQuSMNZtjg== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240920_013812_771623_677B5300 X-CRM114-Status: GOOD ( 19.20 ) 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 the Amlogic Meson6, Meson8 and Meson8b SDIO/MMC controller bindings to dt-schema. Signed-off-by: Neil Armstrong --- .../bindings/mmc/amlogic,meson-mx-sdio.txt | 54 ------------ .../bindings/mmc/amlogic,meson-mx-sdio.yaml | 96 ++++++++++++++++++++++ 2 files changed, 96 insertions(+), 54 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.txt b/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.txt deleted file mode 100644 index 8765c605e6bc..000000000000 --- a/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.txt +++ /dev/null @@ -1,54 +0,0 @@ -* Amlogic Meson6, Meson8 and Meson8b SDIO/MMC controller - -The highspeed MMC host controller on Amlogic SoCs provides an interface -for MMC, SD, SDIO and SDHC types of memory cards. - -Supported maximum speeds are the ones of the eMMC standard 4.41 as well -as the speed of SD standard 2.0. - -The hardware provides an internal "mux" which allows up to three slots -to be controlled. Only one slot can be accessed at a time. - -Required properties: - - compatible : must be one of - - "amlogic,meson8-sdio" - - "amlogic,meson8b-sdio" - along with the generic "amlogic,meson-mx-sdio" - - reg : mmc controller base registers - - interrupts : mmc controller interrupt - - #address-cells : must be 1 - - size-cells : must be 0 - - clocks : phandle to clock providers - - clock-names : must contain "core" and "clkin" - -Required child nodes: -A node for each slot provided by the MMC controller is required. -NOTE: due to a driver limitation currently only one slot (= child node) - is supported! - -Required properties on each child node (= slot): - - compatible : must be "mmc-slot" (see mmc.txt within this directory) - - reg : the slot (or "port") ID - -Optional properties on each child node (= slot): - - bus-width : must be 1 or 4 (8-bit bus is not supported) - - for cd and all other additional generic mmc parameters - please refer to mmc.txt within this directory - -Examples: - mmc@c1108c20 { - compatible = "amlogic,meson8-sdio", "amlogic,meson-mx-sdio"; - reg = <0xc1108c20 0x20>; - interrupts = <0 28 1>; - #address-cells = <1>; - #size-cells = <0>; - clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>; - clock-names = "core", "clkin"; - - slot@1 { - compatible = "mmc-slot"; - reg = <1>; - - bus-width = <4>; - }; - }; diff --git a/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml b/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml new file mode 100644 index 000000000000..3b665396169d --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdio.yaml @@ -0,0 +1,96 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/amlogic,meson-mx-sdio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Amlogic Meson6, Meson8 and Meson8b SDIO/MMC controller + +description: | + The highspeed MMC host controller on Amlogic SoCs provides an interface + for MMC, SD, SDIO and SDHC types of memory cards. + + Supported maximum speeds are the ones of the eMMC standard 4.41 as well + as the speed of SD standard 2.0. + + The hardware provides an internal "mux" which allows up to three slots + to be controlled. Only one slot can be accessed at a time. + +maintainers: + - Neil Armstrong + +properties: + compatible: + items: + - enum: + - amlogic,meson8-sdio + - amlogic,meson8b-sdio + - const: amlogic,meson-mx-sdio + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 2 + + clock-names: + items: + - const: core + - const: clkin + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + +patternProperties: + "slot@[0-2]+$": + $ref: mmc-slot.yaml# + description: + A node for each slot provided by the MMC controller + + properties: + reg: + description: + the slot (or "port") ID + enum: [0, 1, 2] + + bus-width: + enum: [1, 4] + + unevaluatedProperties: false + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - "#address-cells" + - "#size-cells" + +additionalProperties: false + +examples: + - | + #include + #include + mmc@c1108c20 { + compatible = "amlogic,meson8-sdio", "amlogic,meson-mx-sdio"; + reg = <0xc1108c20 0x20>; + interrupts = ; + clocks = <&clk_core>, <&clk_in>; + clock-names = "core", "clkin"; + #address-cells = <1>; + #size-cells = <0>; + + slot@1 { + compatible = "mmc-slot"; + reg = <1>; + bus-width = <4>; + }; + };