Message ID | 20221102161211.51139-1-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp6828wru; Wed, 2 Nov 2022 09:18:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Z7VvGecUuQiQ3ralORVdjumDHfqXqMUVeiPoC0bvY4I33an8OtIhVHcDbyhROYEwtJ0yC X-Received: by 2002:a65:4ccc:0:b0:470:1a0a:a821 with SMTP id n12-20020a654ccc000000b004701a0aa821mr676790pgt.447.1667405917791; Wed, 02 Nov 2022 09:18:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667405917; cv=none; d=google.com; s=arc-20160816; b=ITWU+EKQ0hP5pTOJnyAIWHj7UrNROfOn7+MQoZ0rIqg+yGCXjHbf8XBn4j0ns9gVMD s2EHmCgkg0WiuGXNLLit4/9YOlN/qbsWT4Fudxm/s6IIL3Fy1VCS9L/NAfrOVWBi/Ht5 C327TVmpbNrj+joWlkShz3puk+eE+geOY/GVPDLS13TFk1kQbEoVejzgVWU2XAxgB5cM Ymy6HGDU0nlQpkcrqXa2hJWg2H8PcKeBX4xhUnAMDU80CS9Z9ycN2uAhRlXCtjAOWowG 40adGxteKmHxsowC0DaO+U6tjyl0Cjog5dem+CTDB8EnATkkV3T6HYsdjbZxsHMRpRMy MP+Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=+k46DBLcoCo3dRtPWgKGi27HQ6890qJkjOHhJG/OTD4=; b=kZ20DrR5i6S2sswNZx5esTz2g/qOXjynNLQ1HNrmYQ3KubjvYG+mVEtZFGGPe6fBsx LwXbBfFILX6YtpMJBOeeFaLWlya4SSHjhJdydLcqogxMghREn/nLoAxiUeAs55e9lnp3 3nD826qP089TOv+WM4LY9Ub1VBZB7TdBMQgKgAKO7GlFZdeVx1N1L3IWmRrUFGgOorWW tFLbcJ3XOkbxgeaPeOmVFVr1YTpFB4xMzuB2dCFPmZdYSe5+TM9vF1QKWuoe3IL5A6x2 fYIbysp2degNfxZtY9YoEmJcep2g3jROUeAC8JE1FNNiQAtdeZGZH3OP8DPkCSPiozZQ ywMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lpZHL444; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r74-20020a632b4d000000b00439befcd2b7si15634006pgr.725.2022.11.02.09.18.23; Wed, 02 Nov 2022 09:18:37 -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=@linaro.org header.s=google header.b=lpZHL444; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231332AbiKBQQ1 (ORCPT <rfc822;yves.mi.zy@gmail.com> + 99 others); Wed, 2 Nov 2022 12:16:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231779AbiKBQOZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 2 Nov 2022 12:14:25 -0400 Received: from mail-qv1-xf35.google.com (mail-qv1-xf35.google.com [IPv6:2607:f8b0:4864:20::f35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 957302C67E for <linux-kernel@vger.kernel.org>; Wed, 2 Nov 2022 09:12:15 -0700 (PDT) Received: by mail-qv1-xf35.google.com with SMTP id u7so12742954qvn.13 for <linux-kernel@vger.kernel.org>; Wed, 02 Nov 2022 09:12:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+k46DBLcoCo3dRtPWgKGi27HQ6890qJkjOHhJG/OTD4=; b=lpZHL444MjaOGE7ePEMjfaD14yNrbOlNu054yVz8GPhDIzb+2HJAG8MOD68DWWCWp+ 8W04hunQV6twCx2v1SY+9oBptITK1UBYixs3+5dMZf7ucBlekZGDkIxvwD5sJDtOUNf4 lDVSQIB3TgRshOBNYE/6f7pONQQVQ7VfyzQU3Ezu68cNplD4sg1bgI3n5iZtnJdAFq1a e5ROv6coqDBGKeAferYVuXMGdAExxgqWTxxC7bG5DwbeeRhEgevFKZO1klsVa8hzAxPY j9f+B7AMEL9CbNqMlZWQIhmOTJHmt7P6fycs3aDIbhAj1WkoKifDM1XZ4uuefDpLMszu LKcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+k46DBLcoCo3dRtPWgKGi27HQ6890qJkjOHhJG/OTD4=; b=kYHsuOYM4LpiXtqmG5nMUzfLVNrFmMscUI3iilwnOgwXMghcPdHFkUzDNy9norKpCB YQgJ4vywuvAlP8YptSKDLACAdyKTrMkWe/5ecmhFzjv7xaDP870zrLLQxi7JqlHpR08x H68JpdLzAAb1czZqrSQs8PMrB8Y+tzYDA4DSrwe0DIcvjxtVCmcJzyC/PpcaZ29vAR2V o0YisNIGwr8UA5yRapU6aX6wnKsMw+/KwEpSy5y/E0fPaola0HxT8m7ZfkQktFnx6Tnb 2PyhuKI3wcX9XjXVrIPa6hBiwwC03wpQieSNWt3feLlQ/ZnmH7caAOsMWN6zFthJyU7/ DL6A== X-Gm-Message-State: ACrzQf2T2P+lmdVYv2WcuW0rKpoeJ8AUERUaiijLfsz/2MxXamZNCpQs 3Y1QPUHwPZr1lC8uUHwAL2mOkA== X-Received: by 2002:a05:6214:300e:b0:4bb:717e:72a with SMTP id ke14-20020a056214300e00b004bb717e072amr21460970qvb.15.1667405534760; Wed, 02 Nov 2022 09:12:14 -0700 (PDT) Received: from krzk-bin.. ([2601:586:5000:570:28d9:4790:bc16:cc93]) by smtp.gmail.com with ESMTPSA id s2-20020ac85282000000b0038d9555b580sm6778985qtn.44.2022.11.02.09.12.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 09:12:14 -0700 (PDT) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Andrew Lunn <andrew@lunn.ch>, Vivien Didelot <vivien.didelot@gmail.com>, Florian Fainelli <f.fainelli@gmail.com>, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH] dt-bindings: net: nxp,sja1105: document spi-cpol Date: Wed, 2 Nov 2022 12:12:11 -0400 Message-Id: <20221102161211.51139-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 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 autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748401827973772150?= X-GMAIL-MSGID: =?utf-8?q?1748401827973772150?= |
Series |
dt-bindings: net: nxp,sja1105: document spi-cpol
|
|
Commit Message
Krzysztof Kozlowski
Nov. 2, 2022, 4:12 p.m. UTC
Some boards use SJA1105 Ethernet Switch with SPI CPOL, so document this
to fix dtbs_check warnings:
arch/arm64/boot/dts/freescale/fsl-lx2160a-bluebox3.dtb: ethernet-switch@0: Unevaluated properties are not allowed ('spi-cpol' was unexpected)
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml | 2 ++
1 file changed, 2 insertions(+)
Comments
On Wed, 02 Nov 2022 12:12:11 -0400, Krzysztof Kozlowski wrote: > Some boards use SJA1105 Ethernet Switch with SPI CPOL, so document this > to fix dtbs_check warnings: > > arch/arm64/boot/dts/freescale/fsl-lx2160a-bluebox3.dtb: ethernet-switch@0: Unevaluated properties are not allowed ('spi-cpol' was unexpected) > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml | 2 ++ > 1 file changed, 2 insertions(+) > Running 'make dtbs_check' with the schema in this patch gives the following warnings. Consider if they are expected or the schema is incorrect. These may not be new warnings. Note that it is not yet a requirement to have 0 warnings for dtbs_check. This will change in the future. Full log is available here: https://patchwork.ozlabs.org/patch/ ethernet-switch@1: Unevaluated properties are not allowed ('#address-cells', '#size-cells', 'fsl,spi-cs-sck-delay', 'fsl,spi-sck-cs-delay', 'spi-cpha' were unexpected) arch/arm/boot/dts/ls1021a-tsn.dtb switch@0: Unevaluated properties are not allowed ('clocks', 'reset-gpios', 'spi-cpha' were unexpected) arch/arm/boot/dts/imx6qp-prtwd3.dtb arch/arm/boot/dts/stm32mp151a-prtt1c.dtb
On 02/11/2022 14:35, Rob Herring wrote: > > On Wed, 02 Nov 2022 12:12:11 -0400, Krzysztof Kozlowski wrote: >> Some boards use SJA1105 Ethernet Switch with SPI CPOL, so document this >> to fix dtbs_check warnings: >> >> arch/arm64/boot/dts/freescale/fsl-lx2160a-bluebox3.dtb: ethernet-switch@0: Unevaluated properties are not allowed ('spi-cpol' was unexpected) >> >> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >> --- >> Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml | 2 ++ >> 1 file changed, 2 insertions(+) >> > > Running 'make dtbs_check' with the schema in this patch gives the > following warnings. Consider if they are expected or the schema is > incorrect. These may not be new warnings. > > Note that it is not yet a requirement to have 0 warnings for dtbs_check. > This will change in the future. > > Full log is available here: https://patchwork.ozlabs.org/patch/ > > > ethernet-switch@1: Unevaluated properties are not allowed ('#address-cells', '#size-cells', 'fsl,spi-cs-sck-delay', 'fsl,spi-sck-cs-delay', 'spi-cpha' were unexpected) > arch/arm/boot/dts/ls1021a-tsn.dtb I'll add cpha, but fsl,spi-cs-sck-delay are coming from unconverted schema - spi-fsl-dspi.txt. > > switch@0: Unevaluated properties are not allowed ('clocks', 'reset-gpios', 'spi-cpha' were unexpected) > arch/arm/boot/dts/imx6qp-prtwd3.dtb > arch/arm/boot/dts/stm32mp151a-prtt1c.dtb > Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml b/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml index 1e26d876d146..a73905a50ee5 100644 --- a/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml +++ b/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml @@ -36,6 +36,8 @@ properties: reg: maxItems: 1 + spi-cpol: true + # Optional container node for the 2 internal MDIO buses of the SJA1110 # (one for the internal 100base-T1 PHYs and the other for the single # 100base-TX PHY). The "reg" property does not have physical significance.