From patchwork Tue Oct 4 11:56:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12998194 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2121C433FE for ; Tue, 4 Oct 2022 11:56:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229988AbiJDL45 (ORCPT ); Tue, 4 Oct 2022 07:56:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229760AbiJDL4x (ORCPT ); Tue, 4 Oct 2022 07:56:53 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E77627CD6 for ; Tue, 4 Oct 2022 04:56:50 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id s10so15032004ljp.5 for ; Tue, 04 Oct 2022 04:56:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=oor+/XzLjMSEgH0pJqAodEYXAhv0OcEOQd7y9LkgWE0=; b=y3naKPl7UHsnUbh1WTuVB6HRgYVboggyVObMeecYPoviy9g6Mrj+4MfXic4whfoUF1 KBGVvT/xdvAqn3lZe0CyU443OquGZUpAj5nFESwKpLcYXjFrUKyoU5FXn5D+IUq9vIVA TDyg13onLhI2+HYCILMF7HjgwfTFVdNllG+sh/kJfLoXU98ZNdwur9hbfKrN5qo0twtD GBNjgxme1UtXUVfUaq6YgPs/VSBVDK+BgKF+kC4dKaC20/oGeDlri328rtIQE9me/5Tu rU3dx5taYA+ErY/PaI97gJoUC+M6zUY5YVrCnn0Z/ZlwavBkRWubHQfqnd9wSsTc1ZQ7 LwKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=oor+/XzLjMSEgH0pJqAodEYXAhv0OcEOQd7y9LkgWE0=; b=k8PL6FvACZTzZclM92JfQUMF+gejMTn3lbFHOQQTbTD4ofBDQZRccWlX+0CJu7w7Y4 Y0a1p89NrU5gA3t8EbaYtxOB2Y3wzzMVI7j+AcUea3L/d2ndKSWZcfZC0g6YPnS/Ngdj J2WgpO6ajshnBrkzWmGnoHFjgxRfQ1q1lFPbL05ICSt5UWH/51/cKlHYhkgv+APBsXYV lA5cvmrcB2h08etSRHXOqdf3WhVVhngzpv951Togc2UUT58FcHZFfpggXnORL4SwcWjH qvO2by22DcQ1khYjVcjFC6RN6OvUA744/0+dd1/u5wtcCyTWvKlR7pYi01hVOmzqnOsC X2jA== X-Gm-Message-State: ACrzQf30qgVJBJuHPnwAjFzk9GuRZ7PAzdB6WzVAscqOtrNdGNC3SsD2 ZRhKMFLQBlnH4yzwiZOrt63E1Q== X-Google-Smtp-Source: AMsMyM5MD/zl9gjI6RrO+7AupUtFquRpqK6jLsTQQGg5kg0/vTn9sXz6ljJbizTxZDpkYVx6ySCaAQ== X-Received: by 2002:a2e:a495:0:b0:26d:8a96:c5c7 with SMTP id h21-20020a2ea495000000b0026d8a96c5c7mr7808183lji.439.1664884609023; Tue, 04 Oct 2022 04:56:49 -0700 (PDT) Received: from krzk-bin.. (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id w8-20020a05651204c800b004a03fd4476esm1878971lfq.287.2022.10.04.04.56.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 04:56:48 -0700 (PDT) From: Krzysztof Kozlowski To: Cosmin Tanislav , Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Antoniu Miclaus , Nishant Malpani , Rui Miguel Silva , Nuno Sa , Cristian Pop , Tomasz Duszynski , Matt Ranostay , Matheus Tavares , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 4/8] dt-bindings: iio: gyroscope: use spi-peripheral-props.yaml Date: Tue, 4 Oct 2022 13:56:38 +0200 Message-Id: <20221004115642.63749-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221004115642.63749-1-krzysztof.kozlowski@linaro.org> References: <20221004115642.63749-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org For devices connectable by SPI bus (e.g. already using "spi-max-frequency" property), reference the "spi-peripheral-props.yaml" schema to allow using all SPI device properties, even these which device bindings author did not tried yet. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- .../devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml | 5 ++++- .../devicetree/bindings/iio/gyroscope/nxp,fxas21002c.yaml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml b/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml index 662ec59ca0af..0ae2464b9bc4 100644 --- a/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml +++ b/Documentation/devicetree/bindings/iio/gyroscope/adi,adxrs290.yaml @@ -38,7 +38,10 @@ required: - spi-cpol - spi-cpha -additionalProperties: false +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false examples: - | diff --git a/Documentation/devicetree/bindings/iio/gyroscope/nxp,fxas21002c.yaml b/Documentation/devicetree/bindings/iio/gyroscope/nxp,fxas21002c.yaml index 3f57a1b813e6..2c900e9dddc6 100644 --- a/Documentation/devicetree/bindings/iio/gyroscope/nxp,fxas21002c.yaml +++ b/Documentation/devicetree/bindings/iio/gyroscope/nxp,fxas21002c.yaml @@ -56,7 +56,10 @@ required: - compatible - reg -additionalProperties: false +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false examples: - |