Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp1157206rwl; Fri, 4 Nov 2022 10:23:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Hl8N4teCy2KLyWh7HNCbjdgzzuy2SNn2R1m31y04ChA3LcGJdVf15o5AI8Q8ZG3SZDlhw X-Received: by 2002:a17:90a:f507:b0:211:e623:da5b with SMTP id cs7-20020a17090af50700b00211e623da5bmr55849353pjb.37.1667582591444; Fri, 04 Nov 2022 10:23:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667582591; cv=none; d=google.com; s=arc-20160816; b=LugKUfXRMRjqytc3WUKvyg6T6A5AfY+ygVkTBPfTXNNWQm7IBj9hovt6LDg7DOlgfw 45/Py0hyHpHZn2dUWWf4eTb1UDSv5q/vvwBSYQwvKgxmARUhqJ4sBtVGJizJNgRUuz48 e2LQ1pJHC/lZGBp5C2pXNYeU9yyjNHBCdbVs5KHTSU8jdn3Fjl85q5hrygvK5K6Z3wur O8FLf9fwKnfqw/rbedXRPNHZ9pKmki+6ASraSL600OeeL3SSM+jPeHJ+n21mvF2A9myh odKgNdNOnSKbVkflrK52bTvHOOt/dYpHaakmb5OTO5OiUIPGQXVkeioFh8QmhfRavCNh OYhg== 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=nOs3glUYlVlOGkD+d61vafn3z8WhEZloC5kNYhM2+Ik=; b=RPuTipoZD+3ROhTEqsc8cY2kmFNMlpzejJrV4YYkQWx/MnapbYWFfz5oZWkCazZn9Y WyIzRdVjAFfISkvwBusRBUxpcjT1IsKSIxYD9luTlDepPbn9R14DlXCnF3Q8CtmPQ3aV upg/SOKrWH33VxfKjD1MQ4nxe7DwvGlf4hNefiph2BMUopIq12oRdbXXgOvpyo6Pxy3Z 2DAIG9Q2KY5/h/6OlNlO1kgC5OPMcwFLOeJzVg511F0QQal4ZktbsPXxA3ZByoBcxCsc lxsBCdZ3I+F5/pqHikEExArtm3+yTi6go+dOYovaw3kBFT7W6bgPilv2T6TIoO9RSvxv HfBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nZUFy5qS; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c15-20020a17090ab28f00b00212da239399si3234477pjr.186.2022.11.04.10.22.59; Fri, 04 Nov 2022 10:23:11 -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=nZUFy5qS; 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 S229964AbiKDRQH (ORCPT + 96 others); Fri, 4 Nov 2022 13:16:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231361AbiKDRQE (ORCPT ); Fri, 4 Nov 2022 13:16:04 -0400 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EC4740471 for ; Fri, 4 Nov 2022 10:16:01 -0700 (PDT) Received: by mail-qt1-x836.google.com with SMTP id hh9so3389337qtb.13 for ; Fri, 04 Nov 2022 10:16:01 -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=nOs3glUYlVlOGkD+d61vafn3z8WhEZloC5kNYhM2+Ik=; b=nZUFy5qS+kcKRgiQerq9t6LWsQUJdfZxNClFWjXBy7+MNVNqdh5yPYzabdmEppfDTD abMT22yv+qtHAYFUPLVTem0XhAMmHq96kPDp2rTluaG3S4mgJrbs1DagGbCmTBNy2M/g rPqvqrPDyEnXn56ct9+FxhqTdIihgUPUWQbi+W4e/xcguUuLnZH3+drBpnnGC7Uq2H0z gO0qwKIRiHA5uw2FLLFHvR6Xxz0meJrJSzEXlM1MyAIOIfGao0KmHKXnq1Kr8f1UQ/pd HVT8+aQpBh5+anU8cH28jop/Zy8vaZRpZ42HO2jBKMzAMcDahCaKyDC7ZfWPUlqhAyae 8XGw== 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=nOs3glUYlVlOGkD+d61vafn3z8WhEZloC5kNYhM2+Ik=; b=RMtTH8FwLx1X9wNJQPvSPL/kft4fFANTrO7yD2ylS0BqcVfw0Dg3Wq4toiK1ASHu1L 32iEczXpBMP5kwL+cpOPv5QkETMhpfNmPxwBRt5Uq74srkj6H2Fpa+b39UxAU1Q8w6Iy A+ytYaRMv60KDio5iODDcJjUfNPi0IO/geMiMdZI8oBt13BI/4UpWFt6HUU++cBkGaw6 Rpfr3jxcnejwx5SQG6sQThxVx25vG966cvKBhDirMHi4VDwYr9XNYmc4W2FLHjhQ2cqo BAFkFEsE/Evv6XRyj9qBC6mhdZt4S0lT3lwYsotxAWKSifGOvBQFPOOj+X0dMwHj4FXO MsNQ== X-Gm-Message-State: ACrzQf3tmav+u9kT7GhkV5gTrZotXeXm3LggHOg6Kh4Z+RzbX/4lW8Sn C+nzM9JVm4zI7AjQlKVkHQgqew== X-Received: by 2002:ac8:5e50:0:b0:3a5:6a35:f440 with SMTP id i16-20020ac85e50000000b003a56a35f440mr2413122qtx.46.1667582160898; Fri, 04 Nov 2022 10:16:00 -0700 (PDT) Received: from krzk-bin.. ([2601:586:5000:570:aad6:acd8:4ed9:299b]) by smtp.gmail.com with ESMTPSA id j8-20020a05620a288800b006fa4cac54a4sm3274901qkp.133.2022.11.04.10.15.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Nov 2022 10:16:00 -0700 (PDT) From: Krzysztof Kozlowski To: Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3] dt-bindings: net: nxp,sja1105: document spi-cpol/cpha Date: Fri, 4 Nov 2022 13:15:57 -0400 Message-Id: <20221104171557.95871-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: X-Mailing-List: linux-kernel@vger.kernel.org Some boards use SJA1105 Ethernet Switch with SPI CPHA, while ones with SJA1110 use 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 --- Changes since v2: 1. Add allOf:if:then, based on feedback from Vladimir. Changes since v1: 1. Add also cpha --- .../bindings/net/dsa/nxp,sja1105.yaml | 27 ++++++++++++++++--- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml b/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml index 1e26d876d146..ac66af3fdd82 100644 --- a/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml +++ b/Documentation/devicetree/bindings/net/dsa/nxp,sja1105.yaml @@ -12,10 +12,6 @@ description: cs_sck_delay of 500ns. Ensuring that this SPI timing requirement is observed depends on the SPI bus master driver. -allOf: - - $ref: "dsa.yaml#" - - $ref: /schemas/spi/spi-peripheral-props.yaml# - maintainers: - Vladimir Oltean @@ -36,6 +32,9 @@ properties: reg: maxItems: 1 + spi-cpha: true + 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. @@ -109,6 +108,26 @@ $defs: 1860, 1880, 1900, 1920, 1940, 1960, 1980, 2000, 2020, 2040, 2060, 2080, 2100, 2120, 2140, 2160, 2180, 2200, 2220, 2240, 2260] +allOf: + - $ref: dsa.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + - if: + properties: + compatible: + enum: + - nxp,sja1105e + - nxp,sja1105t + - nxp,sja1105p + - nxp,sja1105q + - nxp,sja1105r + - nxp,sja1105s + then: + properties: + spi-cpol: false + else: + properties: + spi-cpha: false + unevaluatedProperties: false examples: -- 2.34.1