From patchwork Thu Jun 13 14:32:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 804027 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2040.outbound.protection.outlook.com [40.107.7.40]) (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 C2219145A11; Thu, 13 Jun 2024 14:32:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.7.40 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718289153; cv=fail; b=RXIBTW0jJh0k0NDa/aft9STGdW71FqzcK7aHc3tnU0MXJ8HrGx3qoyq5jMzr/0P92cvZHsCMFdp+B9s5iDukMz8/6wNBVUlED4iBuHeL1lXB4Ch3b7gKLVsFWZVSMffxUvxXDm3MpOCymirKNF2VGxgQ+ytOO62z+UkZ4Rl4zvU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718289153; c=relaxed/simple; bh=6n+jH3bYnRgBJcQ8Scjf6ACZpXnSsURnGHPdQ5Th0eQ=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=K+JhULSTpq8sO6PhD3GOMZMgEo88uPwlbvAe58EEK6AXrjNElHKr1Ri/Q0FmakK9UlwX02hOKu3Z/LGwi6eegjteNzGPvB3obz4+xftdb2b6YhVTABzdYehMuMXcZTnm+3dlDgOqsz3eTGmTdGZ6rAgYXrzaJj0uC/L5SIhGXcU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=sBS+irIG; arc=fail smtp.client-ip=40.107.7.40 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="sBS+irIG" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n3XIiJobWC32v87DbZpWNwwWcIBo6gf8m7kqgmqwAeR/jR2K0vnykMIQ//+adjNOODaR/x6OWsuzsXtDNNib/JWyeS/cwGBVVenWtZ9RZle5otShYB6nqS6JZT4bmNi+2/m2L5PFy4sBomQNprlFcXU4CDlTg42Bc7ilMdcZmFoU21y4BrnnHe85/wWhrmWepj/fCeDunCrx0eMP435cwxxolJwMWP1r7dd8xAcvc4Dp6nDntc1RfxUYKi9sq/z6df3c9bNYvih/yYSmnKyBPA/lSrCuANBAy3k6squ6IN3MsHXppzU5XsWxP98FgwjNH2po0qLurTLpbS2CqS4cUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tsEiS/KZUKgrdg01xN+BkWHiE7QHU51id+SVG44/d+g=; b=b59Xd8gYi8bvfzkWbrMQhZEBceVMaolA2xWG5cUm1LFXT/BbEqSFGR6YNyLxZcE4lOps1YKLQ4v5d19dCssxoj3fQ6kKOJnA7ghdkucRQrjDdxM4Frn/lvKjE3jtZgwJYTOrm8YBaeNnZcyO3CySI/lW02esOkcZr+nELEDYckPnjrBmZaHLT5g49ba7UpKlw6hVUE/9kphjiCsW9VfUIu4Wqk19T0e42wg/jrlYYgFxPa2pjtvWi8sfXNPHLe6mRS4K4dC6KITduzL/c79dC9ChqZZLc7YQuDmpmhkmCEA7a2CcEUgn7HOzwm0fBMyIYSQ3WL435ynuKd16dzXFAw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tsEiS/KZUKgrdg01xN+BkWHiE7QHU51id+SVG44/d+g=; b=sBS+irIGVQOR+3dH2Xs3VSIWRMEST9p/o+Xup6sAOwV58bncr4G9peZC9p6Gd8ezra45iq3mBsvcAVtW6WmrETIq4iwvPlmdCxZ6lUgi1ojxbXZU/x8dXPCAnwn6O6rbwd71MUZFfwWD8oKxahw5AlxzIlmOYsXe5mYuNigZgHk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by PAXPR04MB8256.eurprd04.prod.outlook.com (2603:10a6:102:1c6::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.20; Thu, 13 Jun 2024 14:32:29 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%2]) with mapi id 15.20.7633.036; Thu, 13 Jun 2024 14:32:29 +0000 From: Frank Li Date: Thu, 13 Jun 2024 10:32:05 -0400 Subject: [PATCH v5 1/3] dt-bindings: mmc: mmc-spi-slot: Change voltage-ranges to uint32-matrix Message-Id: <20240613-ls_waring_esdhc-v5-1-36644e2fe21c@nxp.com> References: <20240613-ls_waring_esdhc-v5-0-36644e2fe21c@nxp.com> In-Reply-To: <20240613-ls_waring_esdhc-v5-0-36644e2fe21c@nxp.com> To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo Cc: linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1718289143; l=1718; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=6n+jH3bYnRgBJcQ8Scjf6ACZpXnSsURnGHPdQ5Th0eQ=; b=4u7rb5K8mtnpZn8RuzSrhb+fQQd2PBh4KPpbjwIA/AxJw5wofg84RCHGEu/4yZBRE45hTyIPy rygpECpvNAvCMj15ycGz5pRq/ojbF6nMxWJUMWrXyq9O9ZyRBm6FX1m X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR03CA0017.namprd03.prod.outlook.com (2603:10b6:a02:a8::30) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-mmc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PAXPR04MB8256:EE_ X-MS-Office365-Filtering-Correlation-Id: 5d622081-ee9b-42ac-388c-08dc8bb5a73b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230035|1800799019|366011|7416009|376009|52116009|38350700009; X-Microsoft-Antispam-Message-Info: =?utf-8?q?wPR6EJEDo57nyjJ4AnbhA5zFakF6Sva?= =?utf-8?q?Lbt7Mx7Od1x0ttCBtpLUFlk3j09KxFVCOUwnxq3P6gM5dAKJcoi999Z5UVtCSgkcj?= =?utf-8?q?07iZxa2Ak1qQ14V0ie2y/TCzAybdtQqmKH9+dG1duMzakxgdJVNo44YxlIIjIvOw5?=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MuiqUZh8ebtPAZMI0f7cgT/7kNQVZF2Bace347PGgwfCiXmbjzqTfxe5d+VvEIb?= =?utf-8?q?NoHo8RwP6VK2noHmO+tjMGOIP5EZXkeHDVQBI9l+y54XMO55o3sV88swHHbLc1OUI?= =?utf-8?q?/3A3O2+Hc/wHttUQW5vRj23uUX140gMsoCofP5VE3AmJy8UWtMMitvhxSJgnSbusg?= =?utf-8?q?Xoh7vyScP8xG0/DIsmtlPups21Tnh7J/kX+hKtSg41UZU8bXKcbCrKQpr/TNZ/QF3?= =?utf-8?q?pA2fVU6+GWUD1kNmKR/ze0C0nO3rHd/Cn6+X0gWQiDoIkC7qWN9oKlbw=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR04MB9642.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230035)(1800799019)(366011)(7416009)(376009)(52116009)(38350700009); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?WnWO1WDE7RRjCsCL3yDxls7f4P4L?= =?utf-8?q?lHTazKdcNp1q02bPHsdYJnaofCs2yXkY8IigZgm2CgUKV8OwW0jK7RNSvkHp3p4iG?= =?utf-8?q?XYbVwexxP8gdxOF/hd/ucIusBVPiY3CUw9LsJjTERasrasBfQB3GDIu/iB2B+lYMn?= =?utf-8?q?vp7r+8TQFc6r+U+vHdl1rLKCq/WeEZVfIL8Q8ljqIXGsFPVxSrWygBu3r2Wmm+mKP?= =?utf-8?q?BpHT+gnF6UymbcE/NSbNjxIWPztshOxQazUS7P+0w6EVguTIasAgNzDCWsv3TmdyT?= =?utf-8?q?u5IaXD1us7B0u4s8XXFSPD1ul4KfF4OMwZ552t3+TsV++N+YxgVqoprXsV7cccvN3?= =?utf-8?q?XNPJjb0W/RDJs4ULrzTHsy1AB4MJDVAnwY/tQ8nTNX12IH3Kt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3YlRHC5T2?= =?utf-8?q?HMC0sMBHRYBlX63yurtcWNrhlleTlO6EEihvUjEr6i8ccsbrWdRSQYbEQ7uTqbG1R?= =?utf-8?q?gC5KFix1c8o5nAVwQzU8yqNsmMcQkXTw05JhHS9WNHm69nTP3K22ZO59VywNX/jny?= =?utf-8?q?uoWK73l8qy639o3eMStIFYH4lAwcvQr6jLTChjnYulQ+LLb5R/TgZ2iOkBjptZxw0?= =?utf-8?q?BL+DBCn6K1uWIKDI4pPG/icup4lnyLZGEyg1D6hgV2oDiEbp3kRlpyh8zNO0GXsIa?= =?utf-8?q?PrRG9cYwfNaC?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5d622081-ee9b-42ac-388c-08dc8bb5a73b X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2024 14:32:29.1737 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /2A0LPMcB9Iw1wzCEWSqo87ZaBs5Y3ZwoWtVKhk71tN01kc6+UiuNnwxwEnjNtO4xQcogOcZUi3XeKv3APWWmQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8256 According to common mmc core, voltages-ranges should be matrix. Signed-off-by: Frank Li --- Change from v4 to v5 - Change maxItems to 1 Not sure why it impact other mmc yaml's voltage-ranges. Rob's answer: It's a quirk of the tools. When decoding properties, the tools only know all possible types. Types are global, not per binding. Sometimes it can be figured out, but cases like this cannot be. --- Documentation/devicetree/bindings/mmc/mmc-spi-slot.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/mmc-spi-slot.yaml b/Documentation/devicetree/bindings/mmc/mmc-spi-slot.yaml index 36acc40c7d181..6e2cdac6a85da 100644 --- a/Documentation/devicetree/bindings/mmc/mmc-spi-slot.yaml +++ b/Documentation/devicetree/bindings/mmc/mmc-spi-slot.yaml @@ -27,17 +27,19 @@ properties: maxItems: 1 voltage-ranges: - $ref: /schemas/types.yaml#/definitions/uint32-array + $ref: /schemas/types.yaml#/definitions/uint32-matrix description: | Two cells are required, first cell specifies minimum slot voltage (mV), second cell specifies maximum slot voltage (mV). items: - - description: | - value for minimum slot voltage in mV - default: 3200 - - description: | - value for maximum slot voltage in mV - default: 3400 + items: + - description: | + value for minimum slot voltage in mV + default: 3200 + - description: | + value for maximum slot voltage in mV + default: 3400 + maxItems: 1 gpios: description: |