Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2646015iog; Mon, 20 Jun 2022 01:23:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tmyEyVtl6WN0YEYvs7xv9JaJ9Unu8iD6OTVhYj/ITtsbEosmU0Rzz6yBH+uX7q4qgJ+NCh X-Received: by 2002:a17:902:7486:b0:16a:cfc:7f49 with SMTP id h6-20020a170902748600b0016a0cfc7f49mr13509269pll.135.1655713392199; Mon, 20 Jun 2022 01:23:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655713392; cv=none; d=google.com; s=arc-20160816; b=ARrlQ5NUj9FnK6MSXVcv5foNorGrw6zvoLEc0BigPNstPqsNASMM0AWYZjSlxGFWJ5 fkIhGGyauD0Kygw+eBs+lFe9LEy9hTC31HuYOybPYTAftRw4IHEIULpaHqPO0vxJlt+9 W+C9WYxw+e7VZIiBC8h1hFcDtdj0nOkfR1+i0tyZmcGThy36eGCMf64tA7nPF3SwoOy9 TuWoE21MNWVnKAfp8eSBu13oEXqGY6tFyFxEr6y91hbc2SyncT4lPyVx9ArkWtndlQ4S SNui2qtp1k9PCzbkfRoayKfsxkir7zPLHQ7EN0VKddRS5BK00VKYYICuXw3NWterY9Ez WR7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=U6iOgcYMqJ9zOwx1P0bKGX4G545U6AIxu9kHxZeyUd0=; b=Ht4vE63ETbRh4qF2jF5BlUl1RVI9elFrES1ZW9vdjJOpjRm8PnGG/947CTm/f06qbI mQqZxDp3suqXzAXTvSLcJ8RKnxzOGGPjKMRpDu3C/MguOMDJyovmEgmqrqY+eflP/g6C O7+inDx6s6gFM/QvimlegApq1IqqMM0o8fzub9f00KWWfOk+NiYCPE/VThm6zjU+0lAW qeK+ZzXR+1dR7jZ4LUmHiXt3HtNIMOQq4jE4vJJtqNKWLUnZ19SfcOrLSROX7W1NpM5V p35XbTsu7qJVAX7fpuICiluUX8pTTZfYx+suUDjFgoDqkKyue0xBDSwmIvKHgVvijx7i mgaw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t16-20020a63d250000000b003f5cfdbddadsi14391050pgi.396.2022.06.20.01.22.58; Mon, 20 Jun 2022 01:23:12 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239751AbiFTIC3 (ORCPT + 99 others); Mon, 20 Jun 2022 04:02:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239731AbiFTICV (ORCPT ); Mon, 20 Jun 2022 04:02:21 -0400 Received: from mail-qv1-f51.google.com (mail-qv1-f51.google.com [209.85.219.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 271C31145D; Mon, 20 Jun 2022 01:02:20 -0700 (PDT) Received: by mail-qv1-f51.google.com with SMTP id c1so14516545qvi.11; Mon, 20 Jun 2022 01:02:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=U6iOgcYMqJ9zOwx1P0bKGX4G545U6AIxu9kHxZeyUd0=; b=J3htXg1EPv1BalqywQs3Ybn4KQ+idKLCI1sqx15OBE6cn6qnP0H6CeCGhARK4Md01b QPmOnK6+OdCTdpKftctxpvXg64MonaqNOdOoQnN+1vVSioiNIkK26N3SAQfG2W6Q0APA BA/euf01jTM0PpO90YxA9W3vnXTES/HIQt6OqHZqmChe6/jJ2NCzPP5IcmOIR5y8Zngv Gv09K8KdzYVxjEF/n4MbtNr4djM4pZgeydVPo2w6SYbMw71LmJeQ+Ss+k8b1n2BMeumt pnq3qQVbivlh/vO6+bDzyz2TB2k3adouB5zd2sgdU//O378xNqKMTNhbOo9isNkiOd97 UI1Q== X-Gm-Message-State: AJIora9wJzcoVZFdarqMgw0xfmetd8DtxF8b+JgTEohnUBTvpPxCnyWy jM85VA1R7lCSZRnWJjTTR4ggQVWYT7K6qA== X-Received: by 2002:ac8:5915:0:b0:304:f2f8:f254 with SMTP id 21-20020ac85915000000b00304f2f8f254mr18791942qty.303.1655712139119; Mon, 20 Jun 2022 01:02:19 -0700 (PDT) Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com. [209.85.219.176]) by smtp.gmail.com with ESMTPSA id j17-20020a05620a289100b006a6d7c3a82esm11798285qkp.15.2022.06.20.01.02.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Jun 2022 01:02:17 -0700 (PDT) Received: by mail-yb1-f176.google.com with SMTP id v81so17621539ybe.0; Mon, 20 Jun 2022 01:02:17 -0700 (PDT) X-Received: by 2002:a25:bd41:0:b0:668:c259:f6c2 with SMTP id p1-20020a25bd41000000b00668c259f6c2mr15091616ybm.365.1655712136748; Mon, 20 Jun 2022 01:02:16 -0700 (PDT) MIME-Version: 1.0 References: <20220618123035.563070-1-mail@conchuod.ie> <20220618123035.563070-7-mail@conchuod.ie> In-Reply-To: <20220618123035.563070-7-mail@conchuod.ie> From: Geert Uytterhoeven Date: Mon, 20 Jun 2022 10:02:05 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 06/14] spi: dt-bindings: dw-apb-ssi: update spi-{r,t}x-bus-width for dwc-ssi To: Conor Dooley Cc: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Liam Girdwood , Mark Brown , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt , Thomas Gleixner , Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Niklas Cassel , Dillon Min , Heng Sia , Jose Abreu , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, 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 Hi Conor, On Sat, Jun 18, 2022 at 2:32 PM 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 Thanks for your patch! > --- 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 These two also depend on the board (SPI device + wiring). So all of [1, 2, 4] are valid values. > + > +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 > > unevaluatedProperties: false Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds