Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1280153iog; Sat, 18 Jun 2022 05:33:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vb42z2gn0/R7OxFZkwsgNBMrmZk6MW+joI5ZSsPTAwwxQsNuCEBKX09DcklOmLxzMut9r6 X-Received: by 2002:a63:3ec6:0:b0:40c:407e:1c15 with SMTP id l189-20020a633ec6000000b0040c407e1c15mr9125955pga.417.1655555613928; Sat, 18 Jun 2022 05:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655555613; cv=none; d=google.com; s=arc-20160816; b=RRdSZuxiuNgknGJWQJsfokN3GH3k/mp1x6NhEqgs9Cnwxuf3M/hEbTp5jgL/3lHdpy TsI02M4VV7JVxyuZ0xtlPddn1N+NpqgHpLuuRcX0O6xGPrxN+Hp6N23pdNcf4i0Z6Y2Z JPIkrsZaXGMrIUaxaneqDzpSRryF2rXKlIZNNuQ16yRV4RhSUaW+ee+3QDOz2Ud1C9bo C5tXeKObwkf3RD22lJMNAxLRF6NRb0kv5WpKu2TIQKMNUPmhCX99LRqZFRAMiH7aEJhB 2gIHCZzwcCWznlIS7UKfuZw9TempPgUCa5y9wv/GF1hgIeEomwIvK3Dl0vEfLu3Ds/th DCkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Xc3yLaPJl3fJMhU7mLPNTXUDP5YmMspTrPH6skgYH5k=; b=CuBRNApMesxMm+R97mx9c8ADV8L4ylC2d25m7CNbiuSfzBuJt3bsP5DFoOOLyXfjlN YUWYiIReBDyRBilyOPri67hXFiLOD1XpBbxWZfjul9/FQFWF/YbPAEaYQroRxyrkilL6 QzwuzVi7ZjFI18isuiJhrquiNxlVK95CFC9UugWIt6lwFu3rkNhag9NV0F9RhhnCrXDm BjWTEPpgwiXufZc2nO06w5WzbhB9ika195OXy6IUDS+hNEW2cAVvgo2nUg/ihlPbUaeT 8u/u0pu87xsou/yaZj9dlBAWSBX00l0zTaCiS2bw/AAKU3a/GiFzZJ5rXQImErVZBCLQ +RWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@conchuod.ie header.s=google header.b=WWI5aigp; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id on10-20020a17090b1d0a00b001e866c2c666si13957061pjb.94.2022.06.18.05.33.21; Sat, 18 Jun 2022 05:33:33 -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; dkim=pass header.i=@conchuod.ie header.s=google header.b=WWI5aigp; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235047AbiFRMcn (ORCPT + 99 others); Sat, 18 Jun 2022 08:32:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234444AbiFRMcL (ORCPT ); Sat, 18 Jun 2022 08:32:11 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 524C81D315 for ; Sat, 18 Jun 2022 05:32:10 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id q9so8799732wrd.8 for ; Sat, 18 Jun 2022 05:32:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod.ie; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Xc3yLaPJl3fJMhU7mLPNTXUDP5YmMspTrPH6skgYH5k=; b=WWI5aigpx63NXABwWobIVtxzeWyDWABcTlqhEd7p5galGx1leb4l0QUX6DRW4V7R2/ 7tCNkKvAuMxDi861SOauKvR8OiOrKRFQWKbf/UOyK4ZoNWlOxvSKeVmw3Pjw/ViKSDBb bJGQhxOX2sak4JARX2cUY3oHghGpdM5DQO1bngmpG9k9r1Q9YO+8El+G/rDrBCypfz88 jYj4Hwbu5WXw7XC7sEypXuV849AqQEAwqdgU0LsiCYfp++8WMxNxdrDQLMOhAiSs1NIp AxnI+k8juFNCyik85P9Aotl91uS4CXhVavQDoNI3Z5E9qqRGU5RemiTnsiZNhX6+GfbW +y3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Xc3yLaPJl3fJMhU7mLPNTXUDP5YmMspTrPH6skgYH5k=; b=sc3PzBtHtrRmbuz+tXAc8ffwHqBHztKv3JcCVUxWIrI1JxF2QPs0sMBi5wWLGePTZZ G2nbNUgfORzb74uY8KoSSxrCpg+9qbLWUBe+DMDFcauzK5cWstdIjPI1u/Cyw2aSjzM2 c+1MXrW6XCpgRtj726euCXluDVHrlon4Gv64POIncc3TYmXlgXlmEK4K1ZG9lX2GZuWU iGGhhvODwufhhO1EEVpvMFbUh8uMA4/VToiHib8uHocRJkOVXweULPxgY9XVGUmfgXuZ gRceqiKiq/efOB3+q4VRN+VsvJgg94IoF+PLXBlomqs5voO8XbCWIfkdzzYA2M+EbfSS vrug== X-Gm-Message-State: AJIora83vR5DCVW0FrXtoDdDyhn226+6Osvn6F7x49IE4StpOaGO1EYW DAC/j8r6FkhMrsNsa8VfblbLjQ== X-Received: by 2002:a05:6000:1789:b0:219:2aa8:7159 with SMTP id e9-20020a056000178900b002192aa87159mr13617696wrg.474.1655555529797; Sat, 18 Jun 2022 05:32:09 -0700 (PDT) Received: from henark71.. ([51.37.234.167]) by smtp.gmail.com with ESMTPSA id az10-20020adfe18a000000b00210396b2eaesm9292305wrb.45.2022.06.18.05.32.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jun 2022 05:32:09 -0700 (PDT) From: Conor Dooley To: 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 Cc: Thomas Gleixner , Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , 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 Subject: [PATCH 06/14] spi: dt-bindings: dw-apb-ssi: update spi-{r,t}x-bus-width for dwc-ssi Date: Sat, 18 Jun 2022 13:30:28 +0100 Message-Id: <20220618123035.563070-7-mail@conchuod.ie> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220618123035.563070-1-mail@conchuod.ie> References: <20220618123035.563070-1-mail@conchuod.ie> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 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 unevaluatedProperties: false -- 2.36.1