Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp489223lqp; Wed, 12 Jun 2024 07:37:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVAkGkoWOktC2UyZGK4iQq1OoOxQ0JKrfykwhZlu4Ymel42w7HtCDfp1Avl9kREZcOL6PkBmSw7xadr6+IkPGH+ZHdQTmH3NqhjQeRaag== X-Google-Smtp-Source: AGHT+IGlstoIdof6S54haYGusJYl5jSldLLsjeIO0OBKgbrnYBeq3hYj8yWPysdTuUG14B5mik5U X-Received: by 2002:a17:90a:c68a:b0:2c2:12d:fa01 with SMTP id 98e67ed59e1d1-2c32b4a138amr8672387a91.11.1718203065976; Wed, 12 Jun 2024 07:37:45 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4b68d6dd5si556561a91.75.2024.06.12.07.37.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 07:37:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211679-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=PxuPfFmM; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-211679-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211679-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D872A284763 for ; Wed, 12 Jun 2024 14:37:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B399B17E463; Wed, 12 Jun 2024 14:37:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="PxuPfFmM" Received: from EUR03-VI1-obe.outbound.protection.outlook.com (mail-vi1eur03on2072.outbound.protection.outlook.com [40.107.103.72]) (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 8C11D17E466; Wed, 12 Jun 2024 14:36:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.103.72 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718203020; cv=fail; b=Qs4sJP19rI5H9cj/skVG4oOl3NoytII7UD7zmEGZEL+dyf6jFj77/0GkQN/DPZmEEvByJ3d4CyHpHu9zwlgFY+46lZX0UI5asdGMmTOnqd5bllN6+xI0YLaA9FGJT1AvKZrQDnuhNlgjrD4tGnPDD5BdWtBrN+EJo9n/u4G57iQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718203020; c=relaxed/simple; bh=ZDWRmj2Ohpcn0g/j/x42JDtu48plH+FZvg8fT2rbZco=; h=Date:From:To:Cc:Subject:Message-ID:References:Content-Type: Content-Disposition:In-Reply-To:MIME-Version; b=T8p/iR52meD8q+GP0VhSRD+NhVB7tDW7IRU8XF54h3DMZD2v/27JxdXz3xyklwiG8Pv4xrqci7mqcAodCDEtftt/Pgm/0NqTtFrDUC2iCNLJif6HYkhUElFSGkYUwQgAkF8mLlMso3uOKwuiuiYnCAXAnDrYwcGC5FBKhWF+tDM= 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=PxuPfFmM; arc=fail smtp.client-ip=40.107.103.72 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 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Tljj/m6JSn9hqEUUzWnb9bTWUHhBoCsesg6M7Fxltdvrsu8hA0YPilUUbQx8zq6WXibdSqq4JyCdZrm1ny3Talv93ts5utOwCjmZbjqZWzHFRwTpRqBvt600aQrgR6G9/kxpr8uyA9TL23vk5BmqMTVFceyZoYMPEKQt+oWjK1K/+4rC8WemEFHRoA/cX3n8RYhrOhLUVgSmMljpQhkP+0d2JCr/nXYeM+oJhtbxNK8eP4yFdIK3JNK7ye0+pM792eHwF8OpFKDvfeloZ9FioihHeklaQTzL54G3LYd3NGj23afrV7yYims7Cn5PtwhEuutFiPXJYLoibpnWrHWXEg== 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=YPDA2sIE4yEDkMfPIxHFrhtZUV7nqEzh3+gMGZrP6tM=; b=Lq/fKgRMw3LOyUOUoP9mGhLReTcCXAwdpBD80BohPJkqXJvkPbYNQbmD8QRrkrlHFTwWFajsAcxkvkYeCOc+a62qvhjctqQ6YwLIQQ6YiTsXW+ARO0x+yVpvSHkiYfZEFyfwX7I5gou4JNxZ+TNNm6mdPzgzI8R3FZXBt+O1yw6fv5l9mg8//dHKFvC0SdQ6/WimtaxrcV7vqynQA6HEI0K1IB0oNWP+oYhX5BSU6iu1w0HHeBxcnEpizpVzhhpKrntSLlE1cFxx89+apSJmDGJBR86qLMz7IH0/E2zgANtAxKY9U24O78MJspbwFG0xUMW5wx7LYfoP/QOxb6Il0g== 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=YPDA2sIE4yEDkMfPIxHFrhtZUV7nqEzh3+gMGZrP6tM=; b=PxuPfFmM3gvCyzQTzAibF81/cSvjofRsOpSjUyuZ+0jI7T2QfCw5lNzPP1/6KNh6yz3cRhXtmj44GWgiLWUzYQRTMM8qQ63iDPkmSWhiUbT4qDVfWrFuIa5NBvAOcPzifmOTTP9UzAcCpdWm1MwmYe+d1lRUsdsOG9/b19v/pwE= 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 DB9PR04MB8218.eurprd04.prod.outlook.com (2603:10a6:10:24a::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Wed, 12 Jun 2024 14:36:55 +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; Wed, 12 Jun 2024 14:36:55 +0000 Date: Wed, 12 Jun 2024 10:36:46 -0400 From: Frank Li To: Rob Herring Cc: Ulf Hansson , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev Subject: Re: [PATCH v4 2/8] dt-bindings: mmc: mmc-spi-slot: Change voltage-ranges to uint32-matrix Message-ID: References: <20240611-ls_waring_esdhc-v4-0-d0d8a5b3f3cb@nxp.com> <20240611-ls_waring_esdhc-v4-2-d0d8a5b3f3cb@nxp.com> <20240611202311.GB3003237-robh@kernel.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240611202311.GB3003237-robh@kernel.org> X-ClientProxiedBy: SJ0PR03CA0070.namprd03.prod.outlook.com (2603:10b6:a03:331::15) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DB9PR04MB8218:EE_ X-MS-Office365-Filtering-Correlation-Id: 124be509-f42e-45f9-bbb1-08dc8aed1b4e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230032|376006|366008|1800799016|7416006|52116006|38350700006; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?i3IhzMz9hxlKNoU9pftge9TELJSc2Y8qlSM3NwM+E1bblKhn1m2HY1/c86q4?= =?us-ascii?Q?iDJvo9imPyV8IV8/cwNvD9ewVduW18Xa7lHtEc5jKplIFQF2O0hUZmezNYJJ?= =?us-ascii?Q?H/kOf7mtYdSzSuxNoRs3ZLS/3SqhONK2Tg7Y4BPJ9rjCwdzuM+jkKyJXvkuI?= =?us-ascii?Q?MRdyELXBgFL0rBrCl1YXtCh3/kc7OENy9pNcEnIgy5PTKIGrbynJGlWDIGiG?= =?us-ascii?Q?zA7aZqcq2U0SzK3CRjUnVUL5Tjxj5UbLdGtRjrxAmsEjl2BujhaaYq2aOYZY?= =?us-ascii?Q?sNnu7UhsQ2SKhzmfFFivj2QCKjTd6Tv07/Qcp0G93P88J2bNkhLeIl3zRsIL?= =?us-ascii?Q?a5XD5xM6+LoH8nb+/i+0UcchelPMfTzV45fpI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Q?Id077Bq8/ThnwNqUpJ8gKkJmMDAlfcbUppON/o6poltWa76pK3lGm3kj60md?= =?us-ascii?Q?a+ihwUfG0v4mtViV2Filct4qEvG+BT+6ZHQ0tICD0d88oGWRNfuzZvyGjZCE?= =?us-ascii?Q?sH3ULiQ=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:(13230032)(376006)(366008)(1800799016)(7416006)(52116006)(38350700006);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?oWDPmcHdEWq6jqhndtWVkUA+5turB6L1K30P/TY2TrHtH7cKG3TrkH1GJE0S?= =?us-ascii?Q?53hfCUxZfxh6fEW4Mn6Tsw6dTlWS2LK33Mh/r7S3D3a/t59PjHD198pGlmyQ?= =?us-ascii?Q?H1bwBFAstMa46zNXLHqBaSyJ7fG9/Z3R2sG8vvcGDL/sPA6sAPfDjurgFVL0?= =?us-ascii?Q?lBnLpcbjEHf60I/qr8D/47PhkMCCw8DwpyGOJ+VeQ5cUrzNOhNojoQ3Rqgqo?= =?us-ascii?Q?DoT2WAdTEty+tl3FbsDwbqyRMyRzxNE5x9nPMdw7AzOi/6NJSbtpDzjnZ5k8?= =?us-ascii?Q?eUxzPTnpGPuQz9kDQ2kvj4HPsp0fegUn11nILJAiRrQpPi28nUm+GucZyCoD?= =?us-ascii?Q?whcA6j5lKQYmtLyy8NdONdkAoJjpCLDDUFEiMX/VmCiSyOKWMC0ZCJqj6UU2?= =?us-ascii?Q?Bk0nOtBUFGiJx1Bn1ZzXJEB602cdxVVqJauSQ+BLIDUu2xgPyDA0DZZoBQqj?= =?us-ascii?Q?bHUaQ7AN3lODNmVznAVTU/aEetn6UbpgnkmCVq9UOvI0pOGebFxloUr5bren?= =?us-ascii?Q?J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mI5BskHMIKpuhp8?= =?us-ascii?Q?hOawCLyKMFTocSHyqntrSaTPZ5K74x1qqp+28fJCETm7kAB08u+Dtz0cheHx?= =?us-ascii?Q?MENeZc/KX3g24XVeVCDtXzAy5/evnb6ZZ/hg+l+fwYPz2c1dQy6qjBCiZ454?= =?us-ascii?Q?3lq463wpVbyfCT7PVCs9NjtVRdnigMukr5oRhVtq?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 124be509-f42e-45f9-bbb1-08dc8aed1b4e X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2024 14:36:55.1091 (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: 7/a+0hQjyWrNjdI9Cf+fidvJM5UU8zorjLA+2gZ+vA8YzkSX5RYd/c3+ph8pQJKjm1dQ+Ya2Im08XSl0aIo26g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8218 On Tue, Jun 11, 2024 at 02:23:11PM -0600, Rob Herring wrote: > On Tue, Jun 11, 2024 at 12:01:47PM -0400, Frank Li wrote: > > According to common mmc core, voltages-ranges should be matrix. > > > > Signed-off-by: Frank Li > > > > --- > > Not sure why it impact other mmc yaml's voltage-ranges. > > 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 | 17 ++++++++++------- > > 1 file changed, 10 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..05815b837219d 100644 > > --- a/Documentation/devicetree/bindings/mmc/mmc-spi-slot.yaml > > +++ b/Documentation/devicetree/bindings/mmc/mmc-spi-slot.yaml > > @@ -27,17 +27,20 @@ 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 > > + minItems: 1 > > + maxItems: 8 > > From what I remember, SPI mode doesn't support voltage changes. > Switching to 1.8V came much later in the spec. So it should be > 'maxItems: 1'. Or better yet, make the outer 'items' a list (of 1 > entry). I don't understand "make the outer 'items' a list (of 1 entry)." Can guide me how to write it? Frank > > Rob