Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp27925lqp; Tue, 11 Jun 2024 13:23:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXvUNxQGcAZYR4gbn/5sQCXOeF+tm2KcLuqjGKK5Rzqvhz0R9LtfI3DTih2XnT1pp1h4gM4opew9izhZYRrRqQbOts3xcDFObDNOYvY+g== X-Google-Smtp-Source: AGHT+IEZ/AYUuo5yrApjiWUdSLYne77jZu8u6oWu/8ukHR22YG8Utj5GP8TymEh8dw4P4ySmiajC X-Received: by 2002:a17:906:28c1:b0:a62:5094:817 with SMTP id a640c23a62f3a-a6f34c9a737mr256584066b.11.1718137403136; Tue, 11 Jun 2024 13:23:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718137403; cv=pass; d=google.com; s=arc-20160816; b=R2UAjP8j5SvFQ1y/24wuy+oTuJZ2t7oQTgQPzpc0SDD97grOOoxnF2HXZNWdAka7Nj aEHq6g6KfD4kiCdWb05en4v7YujHqb1mYGOEUmpyYmQWrGNyuDYSHuKZq8dekvLD634s GhOlRv0UCFFsDcW2pQKxUL6zAelvtoXfakPI5aoj3SFy7CVRbVPIIvE3gbGZ5zYnl2FG m24bk3VcgSertTtBp9AgrNUJq90FCWf9U6IsbxNHnGsQTj77poS9+d4XzMyk9YLHhWAR ueLd2RXZb1h58g2rvjSMeE4SzmJdEZekyR0ZNOr8FhsU3cW09uyGiTUzpCV8KxUVPBQS 3PRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=aFBtzTvr6DyiNs69YwXVUngPz6pZKgoPBuhsXwZhIY0=; fh=mcQsZJFVxCuMifTc0yFlv877g2rORsOphkrJ+/ljDtQ=; b=lSIcaWtjeQPBATZfBQtZSiAt3zmODrsWoFmnjljbtq6vZN+O30doe9MXRFC1umomhE n8xsRapjnPD1LpfW6Q4Ekl0ofmAK9vvDYJxFZvajlL187lNsXHhh9WcdgWFZdZ5RcXSD jMe+Y3oBWvboI7/Gqfu42EkzhKtingBjvlbGoF1HmMgGzxt7ZOOOd3DlXOukHiEtYwIs L2IROYE0jMbfhwMB8u4ncYWYKADEl/mFFOf1qSIPUNUDXqNeD+Zgvyoyg00JoetQgqcC jHhYf1GN0TyQPFaGHNIRsfqBydKxeMLdAwzzsS6Rbjzr5V56wrJfw0WqJuP3dUNqI+Zp 8aBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TUVtHTD+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-210572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210572-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f444b0da4si14330566b.95.2024.06.11.13.23.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 13:23:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TUVtHTD+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-210572-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210572-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id D8EB81F2185F for ; Tue, 11 Jun 2024 20:23:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B85ED1514F0; Tue, 11 Jun 2024 20:23:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TUVtHTD+" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CC70F7350E; Tue, 11 Jun 2024 20:23:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718137394; cv=none; b=WsMoowsAO/I+REqRoxcN2VSFo9rOt1qvl9KQxIn5L+fxPW+6Rc+A/XQ+MIMBaEiJeB71hksJT2S3JSbxyDqc2+aQKBrPXrVfanrhahz62oxiIkvvk47PUxU2VBEshbK+cO8TaaPOlUmJFVrdMdM2u3z4LFE2C0hhye2BoBYcTww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718137394; c=relaxed/simple; bh=56NOMgdsoxv7ugc+ao6X6J5QmSuvu4JChgfjXogleMI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Fy1J9EBA65DbVrk8il+eIlwN/v32SYVJqWh7dnlDtxbdoBiL+vOVGU5izWpliwLrEmyE0fA2Z1gbqCJt4EoEbVXXuWQRIXvZ/8eP3czz/6LU8uZ+lsFt8hQu5JyWOoagMv+dcWItq9XJM2KH3oehsoE2d7GY9g71FLqUUx9PzU4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TUVtHTD+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id E708AC2BD10; Tue, 11 Jun 2024 20:23:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718137393; bh=56NOMgdsoxv7ugc+ao6X6J5QmSuvu4JChgfjXogleMI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TUVtHTD+w/kTSIrjuW9puv0jtLqV5sx4w5q2Sq5hPhdc/gbV9VUlDReL9JiSnuzXq Vno81Y9nhfHacE7rS+MKwGs+UAVaTcbHX+ZyoFhmPHlhBh2ZL4qEIdrDj4VDPX4/4J KxQNFqcKrS6Ds/JYog6j/FJLtwHh24UhhgBQ9lwxkBqZjMF490WVFxoJ4p0lCZhQt4 TIsxSktoFBXqKlhSJFKYr7mwKUXYufcall3mTa/cdnz74amEMeXZd9ReaZZdBtQ/50 dQh+bcge7VuRkTxZbPLYyqzYi+9J/AVNR7MeNWeO4MSZuTTX/i//UtDiCPnSofEMz3 JuTWOdSrUCVgQ== Date: Tue, 11 Jun 2024 14:23:11 -0600 From: Rob Herring To: Frank Li 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: <20240611202311.GB3003237-robh@kernel.org> References: <20240611-ls_waring_esdhc-v4-0-d0d8a5b3f3cb@nxp.com> <20240611-ls_waring_esdhc-v4-2-d0d8a5b3f3cb@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240611-ls_waring_esdhc-v4-2-d0d8a5b3f3cb@nxp.com> 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). Rob