Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3167271iog; Mon, 27 Jun 2022 10:30:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v8Nfdy0vM8FEA8VRX57A6tT43nxhKzeLXVdSYjjWhbeU9PmNWhteHyC9Vh53nY8zoRk3ZA X-Received: by 2002:aa7:c6d9:0:b0:435:706a:4578 with SMTP id b25-20020aa7c6d9000000b00435706a4578mr18332598eds.24.1656351038248; Mon, 27 Jun 2022 10:30:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656351038; cv=none; d=google.com; s=arc-20160816; b=GTMhffE55nj2Y7J5lqlIAl8Rq6AtXyfM005l1QWJWjj9X5la58IAw6e06YqLBqtRTf OCkLkfEHv0i4auSQjgUVB/JUdWU5/YQdBKCzMT8bQHbeH1OUOzR/+6501he1nFzqecnV 8BFu+9URIW2fwrBLufE91Q3ancmQxyfty1SE1SpVc4B1VLza4mLntAu7eBjYB8g9KKNO P/sFcAyt4gIyu7+HS9iYToZUPMgig2SqcgfKqZrAbwnX2HGfJDjD8dFHbWoUJScTx+ox fyjGPkHZTVFCQFVdrW9FiI8UuvjSqJLfcXzJp9zHHfRkttMPXcBziNJPGu8bRowudMVA PwSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=An//ZVIBHusXq7ojPg64QggrwNUop5VEk57ILCBBv0U=; b=juIJi4NR5gJ/9DLzOlYl7J+UHAJLkrStoKCk80ODN6orgSsQ2jkRJ8CTJW9oQscLbd T4QnRQwwtPSnqkenyJXaE2TigJY5FYxYLTox5P66COX7EACSvkj/L6Nh82/8mR0QAfzP DE3P93dDa/wUY79QGKLQPu7pE9ibeluD0xAIN0UG9ZuiHSDTbQcZZf7slt7V+JlkrhrG Xo+BuUbA2WDyyuC69rD3H6/M/MjsObsX2wnVymwhOsbQzlIjnlIgs93frp3r703dIGhY cij2192RO510R/SVcUI0QU9b8GVk+7Pax5aod8YdsSsSbDI/mfZmIN/GG0HL4Ims31+2 bF1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a14-20020a170906368e00b006fdd67c8b07si362680ejc.419.2022.06.27.10.30.13; Mon, 27 Jun 2022 10:30:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239899AbiF0RPH (ORCPT + 99 others); Mon, 27 Jun 2022 13:15:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36252 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239893AbiF0RPF (ORCPT ); Mon, 27 Jun 2022 13:15:05 -0400 Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAB325F78; Mon, 27 Jun 2022 10:15:04 -0700 (PDT) Received: by mail-io1-f48.google.com with SMTP id m13so10313561ioj.0; Mon, 27 Jun 2022 10:15:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=An//ZVIBHusXq7ojPg64QggrwNUop5VEk57ILCBBv0U=; b=CBvltL9en7zdkd9Xbno6IFiA1P8DymS8Gudymsubfx04HeE6ItR2ZXg0GNd1YjS0SH deDSIU1Oan8FUDNwy0eRx3NqYxVz3wqQFNjVXnICkPtBr3F/E5pUfB9LNKUGoOJ41yfv 0JOaHXAizkwDaSwkoSFrNnxMDfh/mPYKNquwrTgZp926JWK62pzfcsWcA+p7+k3EEsnb fdA7Dm5wXFDTYKifNPw7k4jnAowpjYfQI8RZGEEW8YE1Kmf9FKYL+iW1G3cmxP2ZJtpS VFcR90HTjQoSaJ9FVaRZU+P/UsaN0iwHq/MuEQ6dC9qLklCFDzaDN9PxxHHSRsyaJplY NSkg== X-Gm-Message-State: AJIora8r9OCtTrGY2XShKEJdvNxtPWs9KQrrS3qJnNnQzS/A3NQ5HDAU +cz5lB/nQjqwkD1VCiVegQ== X-Received: by 2002:a05:6638:3387:b0:33c:9f9e:5a17 with SMTP id h7-20020a056638338700b0033c9f9e5a17mr2713672jav.12.1656350104060; Mon, 27 Jun 2022 10:15:04 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.253]) by smtp.gmail.com with ESMTPSA id a23-20020a056638059700b003320e4b5bb7sm5118946jar.57.2022.06.27.10.15.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 10:15:03 -0700 (PDT) Received: (nullmailer pid 2608313 invoked by uid 1000); Mon, 27 Jun 2022 17:15:00 -0000 Date: Mon, 27 Jun 2022 11:15:00 -0600 From: Rob Herring To: Conor.Dooley@microchip.com Cc: fancer.lancer@gmail.com, mail@conchuod.ie, airlied@linux.ie, daniel@ffwll.ch, krzysztof.kozlowski+dt@linaro.org, thierry.reding@gmail.com, sam@ravnborg.org, Eugeniy.Paltsev@synopsys.com, vkoul@kernel.org, lgirdwood@gmail.com, broonie@kernel.org, daniel.lezcano@linaro.org, palmer@dabbelt.com, palmer@rivosinc.com, tglx@linutronix.de, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, masahiroy@kernel.org, damien.lemoal@opensource.wdc.com, geert@linux-m68k.org, niklas.cassel@wdc.com, dillon.minfei@gmail.com, jee.heng.sia@intel.com, joabreu@synopsys.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, alsa-devel@alsa-project.org, linux-spi@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH 06/14] spi: dt-bindings: dw-apb-ssi: update spi-{r,t}x-bus-width for dwc-ssi Message-ID: <20220627171500.GA2600685-robh@kernel.org> References: <20220618123035.563070-1-mail@conchuod.ie> <20220618123035.563070-7-mail@conchuod.ie> <20220620205654.g7fyipwytbww5757@mobilestation> <61b0fb86-078d-0262-b142-df2984ce0f97@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <61b0fb86-078d-0262-b142-df2984ce0f97@microchip.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 20, 2022 at 09:06:34PM +0000, Conor.Dooley@microchip.com wrote: > On 20/06/2022 21:56, Serge Semin wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > On Sat, Jun 18, 2022 at 01:30:28PM +0100, Conor Dooley wrote: > >> From: Conor Dooley > >> > >> snps,dwc-ssi-1.01a has a single user - the Canaan k210, which uses a > >> width of 4 for spi-{r,t}x-bus-width. Update the binding to reflect > >> this. > >> > >> Signed-off-by: Conor Dooley > >> --- > >> .../bindings/spi/snps,dw-apb-ssi.yaml | 48 ++++++++++++++----- > >> 1 file changed, 35 insertions(+), 13 deletions(-) > >> > >> diff --git a/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml b/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml > >> index e25d44c218f2..f2b9e3f062cd 100644 > >> --- a/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml > >> +++ b/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml > >> @@ -135,19 +135,41 @@ properties: > >> of the designware controller, and the upper limit is also subject to > >> controller configuration. > >> > >> -patternProperties: > >> - "^.*@[0-9a-f]+$": > >> - type: object > >> - properties: > >> - reg: > >> - minimum: 0 > >> - maximum: 3 > >> - > >> - spi-rx-bus-width: > >> - const: 1 > >> - > >> - spi-tx-bus-width: > >> - const: 1 > >> +if: > >> + properties: > >> + compatible: > >> + contains: > >> + const: snps,dwc-ssi-1.01a > >> + > >> +then: > >> + patternProperties: > >> + "^.*@[0-9a-f]+$": > >> + type: object > >> + properties: > >> + reg: > >> + minimum: 0 > >> + maximum: 3 > >> + > >> + spi-rx-bus-width: > >> + const: 4 > >> + > >> + spi-tx-bus-width: > >> + const: 4 > >> + > >> +else: > >> + patternProperties: > >> + "^.*@[0-9a-f]+$": > >> + type: object > >> + properties: > >> + reg: > >> + minimum: 0 > >> + maximum: 3 > >> + > >> + spi-rx-bus-width: > >> + const: 1 > >> + > >> + spi-tx-bus-width: > >> + const: 1 > > > > You can just use a more relaxed constraint "enum: [1 2 4 8]" here > > 8 too? sure. Then no constraints needed because the common definition already has this presumably. Rob