From patchwork Tue Oct 4 11:56:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 1685883 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=eqMZrlTZ; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4Mhblq4wQSz1yqj for ; Tue, 4 Oct 2022 22:56:55 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229819AbiJDL4t (ORCPT ); Tue, 4 Oct 2022 07:56:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229788AbiJDL4s (ORCPT ); Tue, 4 Oct 2022 07:56:48 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F45B23BFD for ; Tue, 4 Oct 2022 04:56:47 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id z4so20784407lft.2 for ; Tue, 04 Oct 2022 04:56:47 -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; bh=jko8CACmQdyH7KyTrf/qnIJsFbwoqds1JxVgFKlDoJI=; b=eqMZrlTZoKxHhQtUEUf1645E0mKMAjbR7pCLbL1nG/4vORnzhsn4r5YM1uk+cNtZgS 5+pAIR04kpZM0kANkSzdAICYh/Z7WpBsRsjhUT5PDZmxJCtMwwV6yFrujojsXUCgkD4l k6IjIZMsQrNUSBMymlYgAh8j4Ri2WnONfIVADvaiH/kMg94W03faoDZ99kwCow0/o15e YydCkEXWXVCcn+jUUBdhzYJhZEgZnlTaERIQiUBXCGWgXxDtt1YeK3qlkFNKKf4tE9E5 Zuf/TQA/KNXTyciBOS85G3k2eiY0ZTOunmxfiNSyrZA4ranKlDd+qXE7bzRKmkgdQTow Yqwg== 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; bh=jko8CACmQdyH7KyTrf/qnIJsFbwoqds1JxVgFKlDoJI=; b=3NYXQvkmFwtJxJDY6SxzBaKCboseGw+sH3ooUGG2jr/ierZwJALc8ucAGGj4l+DuRc WSgsd47QdkghmzuthEId7N3cvC6rzLnglVls/3MW702QGuWcsKMGhoKfX5l9Vl0Hwtrd 19Ogw8pwmBG3MZq9mZistgvEPb6aTVpkSdSlw3WdDF8fxNCQHxhCk/+Bf6zwi5Mn9o5c mYYpWld9F7w1LASrzrIM6M8OEmREtKsc68wLZBFsjCkrV1sX3XEJ5YYauEeB8LD2ZTYK XGAOdfMiW7FVwJ8a7JgEpLLo62iSz3LGwSCGo7T4ycPyJ45jrwkIaBuQHVfFGwrDnGAc XWXQ== X-Gm-Message-State: ACrzQf2vZ5muiulX1Oy2/N74ZXdBpCQQMBnY+Ersy5yWTqQ/3XxxEsti knZHr4+brYpH+Y0D3aKc/OY1iw== X-Google-Smtp-Source: AMsMyM5TiCfrSWojaKL8yKcKCS4JnJI9c+RTAWdhLYBoUWbuT2QKjcuB1gsdR5aAxRK/k6oedqd3lA== X-Received: by 2002:ac2:4e88:0:b0:4a2:2fa8:9bd8 with SMTP id o8-20020ac24e88000000b004a22fa89bd8mr3737735lfr.621.1664884605512; Tue, 04 Oct 2022 04:56:45 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 04:56:45 -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 1/8] dt-bindings: iio: addac: adi,ad74413r: use spi-peripheral-props.yaml Date: Tue, 4 Oct 2022 13:56:35 +0200 Message-Id: <20221004115642.63749-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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: devicetree@vger.kernel.org Reference the spi-peripheral-props.yaml schema to allow using all properties typical for SPI-connected devices, even these which device bindings author did not tried yet. While changing additionalProperties->unevaluatedProperties, put it in typical place, just before example DTS. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- .../devicetree/bindings/iio/addac/adi,ad74413r.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml b/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml index 03bb90a7f4f8..2e8dad9278f2 100644 --- a/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml +++ b/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml @@ -58,8 +58,6 @@ required: - spi-cpol - refin-supply -additionalProperties: false - patternProperties: "^channel@[0-3]$": type: object @@ -103,6 +101,11 @@ patternProperties: required: - reg +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + examples: - | #include From patchwork Tue Oct 4 11:56:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 1685884 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=juGB9XDL; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4Mhbls56gGz1yqj for ; Tue, 4 Oct 2022 22:56:57 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229962AbiJDL4z (ORCPT ); Tue, 4 Oct 2022 07:56:55 -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 S229830AbiJDL4v (ORCPT ); Tue, 4 Oct 2022 07:56:51 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D88125E9C for ; Tue, 4 Oct 2022 04:56:48 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id o7so13503755lfk.7 for ; Tue, 04 Oct 2022 04:56:48 -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=awlDJOwZPKSY5u+OaE9sW3tkpC8Xce3ufjEna4Auwe0=; b=juGB9XDLeDtxWA9Qf15ABu3s9cmSa/vekBmsm40CZZYOV57LoYPnNyGOLtuf0Y+hC3 fCOwfytjEjTIbIDuhS9k+0zI9nXkkCGg/ViULV7BOuQHkH1g5f0AM6HZJxur3EHwRf8h ObaG1dLKS7mylBAPPsy6qmbzsVejb57p7EkKWySgEX5umhyZ2EWNaqeYPpUugHbpMR5S fRCKhPS1ntIwfyNys8yawwmRzKtkK5GYjvJggW4p4iVdCargu/5Jkg9pHgQw89OodEOv 27MkiLANAjZvn+oXptgGwUdnCmJn7w9esJGR9RIB8j6KXc2LsuhKtU67RvQhy3pb7YBC z9dA== 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=awlDJOwZPKSY5u+OaE9sW3tkpC8Xce3ufjEna4Auwe0=; b=2aCzDILKIVEmmu6L2WwzRSEkIxDOa8RrGoWQ9DDoPHm+jyj21WxtQjCPHVGXMbbIzg 2qiqTEEv0uRNn80g7I9lVlRF+crA4gKLzUFFnM+NTZS3b1GeI4vGtg0UbrCQSbcRf747 ldcysJj410+bngPZuOJZADcfwmIw7dwvIWj/Mgg5aUfgGnC7LRk/Fqj4H0FX1FIkVYHW Lh04hK04rlW/BTPoZTDQNkiH9c262FMSxObMy5x2nirNkIaVwupA3Kvgrk3kJYeetF6F viIko4ydUUtDnarB4lpqisFnTmAtjuabSqny2dLN/v7Thv6t6zG5ugcgklLsIptQrfES Eo/g== X-Gm-Message-State: ACrzQf1Gc1NHDMFks3pOWTPiYFXZ09Kb4eamEmFyIPsTNFhMtX2CRh/6 T72GFA0ACinftzeENx9QINy4hA== X-Google-Smtp-Source: AMsMyM77lAova/vK6lHlTNE7AAkvvu4Xfs36TTtnqIfmn8CxGSLy+6vrKg1tqL/ynremV5PxyKMdsw== X-Received: by 2002:ac2:4564:0:b0:4a2:504b:51a0 with SMTP id k4-20020ac24564000000b004a2504b51a0mr1296854lfm.12.1664884606599; Tue, 04 Oct 2022 04:56:46 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 04:56:46 -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 2/8] dt-bindings: iio: addac: adi,ad74413r: improve example Date: Tue, 4 Oct 2022 13:56:36 +0200 Message-Id: <20221004115642.63749-2-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 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: devicetree@vger.kernel.org Improve example by: dropping unrelated properties (status and cs-gpios) and using generic node name. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- .../devicetree/bindings/iio/addac/adi,ad74413r.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml b/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml index 2e8dad9278f2..58b3ae14ccaa 100644 --- a/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml +++ b/Documentation/devicetree/bindings/iio/addac/adi,ad74413r.yaml @@ -116,10 +116,7 @@ examples: #address-cells = <1>; #size-cells = <0>; - cs-gpios = <&gpio 17 GPIO_ACTIVE_LOW>; - status = "okay"; - - ad74413r@0 { + addac@0 { compatible = "adi,ad74413r"; reg = <0>; spi-max-frequency = <1000000>; From patchwork Tue Oct 4 11:56:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 1685886 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=V+255m3z; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4Mhblw1vvHz1yqj for ; Tue, 4 Oct 2022 22:57:00 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229927AbiJDL45 (ORCPT ); Tue, 4 Oct 2022 07:56:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229788AbiJDL4v (ORCPT ); Tue, 4 Oct 2022 07:56:51 -0400 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF4D8240BD for ; Tue, 4 Oct 2022 04:56:49 -0700 (PDT) Received: by mail-lj1-x233.google.com with SMTP id s10so15031944ljp.5 for ; Tue, 04 Oct 2022 04:56:49 -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=CkVLRt6oEZ54xF22urRfcES2f955CNvMgQuZB8MJX3M=; b=V+255m3zUgj9duoQq2iOXmX8d2fQw1ChL2ZkjolZ8LH3y5rX+qWCadCkwZ4hnu8fjG AqjF9WEMbWB3JWhnON4XbCkoazXaarunre1JRGUyG+uEAp1ogfHJnxy/IZjXDxeBANce pj7GTUmBlXSrV8WOCmBBCBLvDZrbIdwZ1Crgk0p7qduNecgHwCoTtxw7HJeuXVanbq6m IeeKJUx7JuxgF8CwMh8uU2Wy5XiyOTy0P+Yrma1az3Dirz/qGT4lMMMpS7KAkqm3XJXv Q1dLS6VNiF/yxLwP4MmjUi4IwwFm+LixjXHA7W9ZFgJpdcfnuZcVHnW1cQ/RltiUFNtv nFsQ== 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=CkVLRt6oEZ54xF22urRfcES2f955CNvMgQuZB8MJX3M=; b=CA7vYRNkJCXV5zzJjexOlgDDdJVvUwKfdhGX9BBvFvPPGS/exz1EyeHSzdJGkgL1qM 03juWVPfssTwbgw9rd3HxEC+MvD8rTqyHyLxqhVO7eNfaJtngI1pAA5HsS9ZGMsdYIJB Mapr+ek7+P2I7QWeELYVsVt/430McYji+J4LMVQQ3r8pIlhlobRQsXPiyNsdH9eYF26M mWduulI6UrxXetYrav3UqKKNSyLY1wo0p90yYooj1suUhq7KCfsOhETeb7WsSspSfpKN AB5kW254/9G8zLQlldkuERPebxFe0Ts+Nnqx/T1shmBxqhCrQ/jSKwQsXc9Bc6/Fuyv+ SbMA== X-Gm-Message-State: ACrzQf2sU1pRjdyyadpdfqfnUod3dDmfZV7t1VDpbGMj9JNSE9B+ioJk XAEzAMhwhv8m9iEjrV2ndnqCoQ== X-Google-Smtp-Source: AMsMyM52Uz3CLl59/iIWiiBHl8yzdccky+00QtKyUWTIWybkGAQ+P+yYRGj65BG22CuT2293jgfy4Q== X-Received: by 2002:a05:651c:b13:b0:26c:679f:ea66 with SMTP id b19-20020a05651c0b1300b0026c679fea66mr8610289ljr.516.1664884607920; Tue, 04 Oct 2022 04:56:47 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 04:56:47 -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 3/8] dt-bindings: iio: frequency: use spi-peripheral-props.yaml Date: Tue, 4 Oct 2022 13:56:37 +0200 Message-Id: <20221004115642.63749-3-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 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=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: devicetree@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. While changing additionalProperties->unevaluatedProperties, put it in typical place, just before example DTS. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- .../devicetree/bindings/iio/frequency/adi,adf4350.yaml | 7 +++++-- .../devicetree/bindings/iio/frequency/adi,admv1013.yaml | 5 ++++- .../devicetree/bindings/iio/frequency/adi,admv1014.yaml | 5 ++++- .../devicetree/bindings/iio/frequency/adi,admv4420.yaml | 6 +++++- .../devicetree/bindings/iio/frequency/adi,adrf6780.yaml | 5 ++++- 5 files changed, 22 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/frequency/adi,adf4350.yaml b/Documentation/devicetree/bindings/iio/frequency/adi,adf4350.yaml index d7f20b8518e0..43cbf27114c7 100644 --- a/Documentation/devicetree/bindings/iio/frequency/adi,adf4350.yaml +++ b/Documentation/devicetree/bindings/iio/frequency/adi,adf4350.yaml @@ -160,13 +160,16 @@ properties: 2: +2dBm 3: +5dBm -additionalProperties: false - required: - compatible - reg - clocks +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + examples: - | spi { diff --git a/Documentation/devicetree/bindings/iio/frequency/adi,admv1013.yaml b/Documentation/devicetree/bindings/iio/frequency/adi,admv1013.yaml index 23f1f3b55abb..fc813bcb6532 100644 --- a/Documentation/devicetree/bindings/iio/frequency/adi,admv1013.yaml +++ b/Documentation/devicetree/bindings/iio/frequency/adi,admv1013.yaml @@ -70,7 +70,10 @@ required: - clock-names - vcm-supply -additionalProperties: false +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false examples: - | diff --git a/Documentation/devicetree/bindings/iio/frequency/adi,admv1014.yaml b/Documentation/devicetree/bindings/iio/frequency/adi,admv1014.yaml index 2716c1e8fe31..ab86daa2c56e 100644 --- a/Documentation/devicetree/bindings/iio/frequency/adi,admv1014.yaml +++ b/Documentation/devicetree/bindings/iio/frequency/adi,admv1014.yaml @@ -104,7 +104,10 @@ required: - clock-names - vcm-supply -additionalProperties: false +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false examples: - | diff --git a/Documentation/devicetree/bindings/iio/frequency/adi,admv4420.yaml b/Documentation/devicetree/bindings/iio/frequency/adi,admv4420.yaml index da7fe85ec92e..d4b92481af81 100644 --- a/Documentation/devicetree/bindings/iio/frequency/adi,admv4420.yaml +++ b/Documentation/devicetree/bindings/iio/frequency/adi,admv4420.yaml @@ -37,7 +37,11 @@ required: - compatible - reg -additionalProperties: false + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false examples: - | diff --git a/Documentation/devicetree/bindings/iio/frequency/adi,adrf6780.yaml b/Documentation/devicetree/bindings/iio/frequency/adi,adrf6780.yaml index 3a8ea93f4e0c..f11391ab4b62 100644 --- a/Documentation/devicetree/bindings/iio/frequency/adi,adrf6780.yaml +++ b/Documentation/devicetree/bindings/iio/frequency/adi,adrf6780.yaml @@ -113,7 +113,10 @@ required: - clocks - clock-names -additionalProperties: false +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false examples: - | 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: 1685885 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=y3naKPl7; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4Mhblt1vx7z1yqj for ; Tue, 4 Oct 2022 22:56:58 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229981AbiJDL44 (ORCPT ); Tue, 4 Oct 2022 07:56:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229914AbiJDL4w (ORCPT ); Tue, 4 Oct 2022 07:56:52 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E43227B37 for ; Tue, 4 Oct 2022 04:56:50 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id bn8so1595778ljb.6 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=zVUjIRCKgoWBgJ/Yp1HhdWp1MNNevGJb22sNuWSbiQg0U6g3L6IHLZ70VO9DUTx1Nx cnKu2J8qSlw94X3NwDs7mWhQkqKrP//W/m/aCaoH0JfHnwz8Y/Ic9JjdMHUrKxw0VYxG E2owve4OoiYJaoI9yFEoZ9VWTneeScjgj/AV3Ul5OjZv2QENYk57mb0YCk1ogHbzPAK1 oMU22dSTCzGaZ67xLAKb06MtZIbLg2zPg7ePoKUFcZ4HrJSMmRQpCJSv9dgJML0jUF0q 8bvd96M+e9Bnz7MHscYG+0LvRC9JKwu66sxkGHLowcIg7TqAQZBzeo0mesnRqmc2yjJk kZmQ== X-Gm-Message-State: ACrzQf0JWzR3X1GHQEMbNQb7yBdloaBesPaOjKEo7NXMjz3jwXyAVFop 6fM7eYEgVIaEHGsconON2II5SQ== 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 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=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: devicetree@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: - | From patchwork Tue Oct 4 11:56:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 1685888 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=GtTSsAkt; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4Mhblw51HXz23jR for ; Tue, 4 Oct 2022 22:57:00 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229978AbiJDL46 (ORCPT ); Tue, 4 Oct 2022 07:56:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbiJDL4y (ORCPT ); Tue, 4 Oct 2022 07:56:54 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8E0129C99 for ; Tue, 4 Oct 2022 04:56:51 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id p5so15007135ljc.13 for ; Tue, 04 Oct 2022 04:56:51 -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=DsQgmXA7UbLknyyT7b+mvq0JGpkzpgAolizOzOWF2Fw=; b=GtTSsAkttFYOl9LXE6InT2E4mV9ojxT2XV57bS6cuLHHZNX/Zu0OSsHnN3MUghbWVX Um3Cs3HY1xoBdqyRKv6eaGGBGo2k/kf3E2fHz0xIS22wayVYRzF6kjatxGDFoMFRiGSl mD7MsRi9hHoxsxCYv4fI6BxXS/wy6UX9MIGX0XbAhWz1lHmq++nMoxzuXK2y0jVr4ni8 UBEquRcNtXWQ46xXiaCXT2aN/NgZ584ZSI6viiGBcXZr8vOSVB3xK501A8oneUSAg7f8 ly+t0SiYOVRuKCeM+FX6lDpZkm2UVBTRikmhUftQj22RGOJTBOGw2bSgOt0kZmFA3iN9 aOMw== 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=DsQgmXA7UbLknyyT7b+mvq0JGpkzpgAolizOzOWF2Fw=; b=1AxsdVajuPzTYIiUVbvmuaDxke0Di4berikeaDKh3GQGeVZfKqY4ziMZkxC2Xa8gYK saxtdGY25WEclefd6sP6No66V71r9FQE8m5eZboNUC401j5r7N72t4BdByEu7ijQI6Q3 xj3siQOWs1Vvmx9ABzak9QIej7mJuZJKB8SJN9CfIlkTDGuMGpCwvpqrjyW82MtkKpCo q1A8RsA7b/wOMgeKV7SiQAPhUlMhZvNPnEizRxZvsYdOwRBpgCQekEYzbl94Av2uUUDW GP4K+/3WgqqoSXgdAkVx+3WQQtkCVob8mC2weJ8V8yzdydxVweM2hNzUY8/sbm636Qxw Ct7g== X-Gm-Message-State: ACrzQf3WGVCUfwvsu9kOSEcmBXX5EnKkJUUoemtFlD5NsxFPU6qNKZEN kshEiadFL3OgO27s8YsXwa/hag== X-Google-Smtp-Source: AMsMyM7lE9ny5lPGYQDKgn0ZIaftf7U2RTdy+XrMhKPHLkLBTBxzJBi1Y+8QBxslEHmMFpLDRx6pzA== X-Received: by 2002:a2e:84ca:0:b0:25d:77e0:2566 with SMTP id q10-20020a2e84ca000000b0025d77e02566mr8543337ljh.78.1664884610081; Tue, 04 Oct 2022 04:56:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 04:56:49 -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 5/8] dt-bindings: iio: imu: adi,adis16475: use spi-peripheral-props.yaml Date: Tue, 4 Oct 2022 13:56:39 +0200 Message-Id: <20221004115642.63749-5-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 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: devicetree@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 Reviewed-by: Nuno Sá Acked-by: Rob Herring --- Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml b/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml index a7574210175a..5dbfae80bb28 100644 --- a/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml +++ b/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml @@ -79,6 +79,7 @@ required: - spi-cpol allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# - if: properties: compatible: @@ -107,7 +108,7 @@ allOf: dependencies: adi,sync-mode: [ clocks ] -additionalProperties: false +unevaluatedProperties: false examples: - | From patchwork Tue Oct 4 11:56:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 1685887 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=QZMQW7Il; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4Mhblx2Ftsz23jT for ; Tue, 4 Oct 2022 22:57:01 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229992AbiJDL47 (ORCPT ); Tue, 4 Oct 2022 07:56:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229960AbiJDL4y (ORCPT ); Tue, 4 Oct 2022 07:56:54 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D42C2248F2 for ; Tue, 4 Oct 2022 04:56:52 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id q17so15022128lji.11 for ; Tue, 04 Oct 2022 04:56:52 -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=djq8t4QxKMBmEOxi2elhjqtO/Is16cDEASRN118TFbY=; b=QZMQW7IlxaliINrGlEAbcfMBnTtgPZxr6S5vZirizUlbA/BzTU6Dmez3Ovw+Qaotb4 Z2MFtiLqWqrZkee0lsKoct2YOhLKh4MtygYrx3cBbSqja+EUN0j3wSuBrCPJoTbxD076 g8Z8sKTIdgZDZlAPC5/6C0ogZvnj4XM7t4PeeN4xE7fAwZ50lmJ/vZiIU9O2UDQHUBjc QX0K908aPVDTQFpKYaT1Hkh3el8f7GwAJZ8Pd+qWTEskPdcEbyFrwfOth7FWb9lyOSpA yfUkYczgJak0m65FP8WGd7KmfnAKGKjcTh3CD86EydB/KzWV7C/nbexbwVmSL4fb18Sm vT8A== 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=djq8t4QxKMBmEOxi2elhjqtO/Is16cDEASRN118TFbY=; b=a2ZE2yaSxylkDZJAolLlMxYNfKoXCF6xIZPxGIVAyY1MMDWtMoLiVVg2RFxm7Fovbi 2jHCkU6af1f/WC444leGUtbKncQkPqkrk8jlothHLDyc3hZqcw98KhHnoxn5uGtFxH0F ZvhaHUduVCfz8ccnPDx5B/kS4JmskBI7zbBl2IV0UQCLPbI4uBkxLfwPbSAdM8DlC+eQ Rl3EX1ex8Jk7hFA/qwIgnUHN0xKKdW7kliKtJ9ijXqIELyUvFWSbNHzxek8isW/r/lko j4uErscBV5J5L+qYo2deVIDlBs2t0v1A8XGBgx6gTqgdpGlWgovtLpPOCfdIUH1KW0Rw NyUA== X-Gm-Message-State: ACrzQf3g/Tdp4P0HOa4xU9lU/U1hpQAHUW8PvylL70dZ3/54F8DbyAJf PFr5qtSzHqw0Jqe9ttuq92W8eg== X-Google-Smtp-Source: AMsMyM4uExW7RGtfOlS/wpmkIJvTsmbYHmXwXvWdC/EpmN8O7KdZ9SUCcl16A4711lrNKfj4TffMJQ== X-Received: by 2002:a2e:bd0e:0:b0:268:c03b:cf56 with SMTP id n14-20020a2ebd0e000000b00268c03bcf56mr8311295ljq.393.1664884611220; Tue, 04 Oct 2022 04:56:51 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 04:56:50 -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 6/8] dt-bindings: iio: pressure: use spi-peripheral-props.yaml Date: Tue, 4 Oct 2022 13:56:40 +0200 Message-Id: <20221004115642.63749-6-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 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=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: devicetree@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/pressure/meas,ms5611.yaml | 5 ++++- .../devicetree/bindings/iio/pressure/murata,zpa2326.yaml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml b/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml index 4f06707450bf..7fed750fa3ff 100644 --- a/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml +++ b/Documentation/devicetree/bindings/iio/pressure/meas,ms5611.yaml @@ -30,7 +30,10 @@ required: - compatible - reg -additionalProperties: false +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false examples: - | diff --git a/Documentation/devicetree/bindings/iio/pressure/murata,zpa2326.yaml b/Documentation/devicetree/bindings/iio/pressure/murata,zpa2326.yaml index d6103be03460..c33640ddde58 100644 --- a/Documentation/devicetree/bindings/iio/pressure/murata,zpa2326.yaml +++ b/Documentation/devicetree/bindings/iio/pressure/murata,zpa2326.yaml @@ -33,7 +33,10 @@ required: - compatible - reg -additionalProperties: false +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false examples: - | From patchwork Tue Oct 4 11:56:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 1685889 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=IV1A51iw; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4Mhblz6tNPz1yqj for ; Tue, 4 Oct 2022 22:57:03 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229768AbiJDL5A (ORCPT ); Tue, 4 Oct 2022 07:57:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229821AbiJDL44 (ORCPT ); Tue, 4 Oct 2022 07:56:56 -0400 Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 036812613E for ; Tue, 4 Oct 2022 04:56:54 -0700 (PDT) Received: by mail-lj1-x22f.google.com with SMTP id o17so1782836ljj.2 for ; Tue, 04 Oct 2022 04:56:53 -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=FdyEVIPJeiAfJdqp4U03o0jzRRrkJ/p0h+cO275MuNs=; b=IV1A51iwnwkACHlwdVnEHgmak5oRPhrYXOKjD29XRWl1mnOWHx/8MMswIE7lU7EwfA JmvWXZBTUQ/SpZCihwvpAxnrDnJvLFe1IZyThu3Remop4VoyutrAmZiZ3lbOJuyy1661 Ne1Yw6B/bjAKY4JdJDao5JsURYjkjcXZ+UzthB5uhsURjE+Hiqm0sCBh7qlf9K7WnmPp 3ZQ6hcemC7vCRnc20RPeGhcrM8K50+MJjrxqv02Tf0HjHH7AuXeC9D43VyUDKJWS+jNS Szu2u1SG38NMuZdsDoZv3Xtm58qUKBfGCSd8SzywCX2zY1DS7ymVgXQuDlGcpsUfXXuc al+g== 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=FdyEVIPJeiAfJdqp4U03o0jzRRrkJ/p0h+cO275MuNs=; b=r5Yy5yAX3Eqpc4zs7SbOW6O9izby4zOMznh5PrMJ/a4j/QI5vyZVg8Nx1ZpqVOV7MJ wlaoJMn8zUTJSdLIHBIW8dI5YuDz7FRObEplfbK6wbnO2pKWKZxakqCDoqevR7/tZa6t ZpXRWay4SDxUDUbCCl+EQa3skBQ19ZFsTz3jobhIjDmVlyci6FLfBJlBYEj/DbcpQlk+ STsDQiuO6jt5PIa/wj2L5DpDhwbqlilkt0Q5oAik7gae+3kXwdh7+bCKEL2vEHDV3PQE BAdC/+/9RXpkZsRCpo8vc1Vp7pDz8m4yrYzw/f1N1qiePyWSNKzvicTJ9wlr9gg0/TL1 3yAg== X-Gm-Message-State: ACrzQf0Pv0OqpwT6vjHs1DvW0+IXg6UpKxeqHn9szlFa9FEOiN5iD3j9 d8dNl7dPL/usnkGLryhtg7FdIQ== X-Google-Smtp-Source: AMsMyM7zqGLppwXRatoi+n/B8NSWlFwlBda9n4lQBF9CxHCY1/Bew+a4xSek+KaDXhro4APt1Dxg5Q== X-Received: by 2002:a05:651c:903:b0:26d:d930:e3cf with SMTP id e3-20020a05651c090300b0026dd930e3cfmr3734839ljq.232.1664884612416; Tue, 04 Oct 2022 04:56:52 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 04:56:51 -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 7/8] dt-bindings: iio: proximity: ams,as3935: use spi-peripheral-props.yaml Date: Tue, 4 Oct 2022 13:56:41 +0200 Message-Id: <20221004115642.63749-7-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 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: devicetree@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/proximity/ams,as3935.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iio/proximity/ams,as3935.yaml b/Documentation/devicetree/bindings/iio/proximity/ams,as3935.yaml index 7fcba5d6d508..710d3b9a86d9 100644 --- a/Documentation/devicetree/bindings/iio/proximity/ams,as3935.yaml +++ b/Documentation/devicetree/bindings/iio/proximity/ams,as3935.yaml @@ -49,7 +49,10 @@ required: - spi-cpha - interrupts -additionalProperties: false +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false examples: - | From patchwork Tue Oct 4 11:56:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 1685890 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=CLxvrhc4; dkim-atps=neutral Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by legolas.ozlabs.org (Postfix) with ESMTP id 4Mhbm03wqNz1yqj for ; Tue, 4 Oct 2022 22:57:04 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230007AbiJDL5C (ORCPT ); Tue, 4 Oct 2022 07:57:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229987AbiJDL44 (ORCPT ); Tue, 4 Oct 2022 07:56:56 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ECF62FC1E for ; Tue, 4 Oct 2022 04:56:55 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id x40so4367069ljq.9 for ; Tue, 04 Oct 2022 04:56:55 -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=sAksLRSTBpIX5Idm9PSytUBYqco/yvgpYmCooGsVRBk=; b=CLxvrhc4qOsB4L8p7ekMsM+MubH5VYK9f9SDJRH5QF5gLdGWNLjj+sADlcwhbfAAPL s0ZcMoyT4zWzD+s4ef+1RcIAshRCJo9CYob4E222PAu+pDNWm+MFcDSTjLIIWWIoxxbs HwYFkPMa0FGJtuhDz8ch1X4juuuTkqoxGj59VVuX9r6JStu/W65Billb6p2n9EuvbHaU SiRlXlELB5m4HdkZU29WS9R0EXwQLpXr8/eKdYovMwXD+eD6kadgWnPnCN8gOFNAAB0G HyV1Rnztd2DA30TbTtIjP3k4gFl0w+yePnu9yZy65ZUAaz2Ixs8yM15xnDomzdOE9QkT NADg== 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=sAksLRSTBpIX5Idm9PSytUBYqco/yvgpYmCooGsVRBk=; b=Dpn9iEHbWsZ6yI2dk9nLMc/Zmyx64d25L7TCNlFlk8QsehHH9DirW/xssygEsgb8+b 5yVbwkFGH+/Oar2MdEsXIvRsUk8f2F4Vqes805NroHtyeXJXrKaB2+7eZ9aXQQo5Zkcy l+9kQujdYGT14OJqrClgsRcZeDrDJTUHyq6YsLi1uasSQd5yM/bf9+9FTFqCv/Nqvhcv wzpg3Eg9G1RHAggBRy58QxDHom4NiXsW0Av7bAo7AD1Xsy3seDURsEVZBN72KJCucAt7 ORI5KpuXBPsAAcj9exXpk6rwdlqLYhEkISU8ERVUkB1BX4Yt4Aa7FTXSRQVYKZsncvQl y0NQ== X-Gm-Message-State: ACrzQf2zS0Lssj3TPri6Ppz5JoympjaHGa3i8q5FyPzCTsjOSBgFu7fi 06zb6/GetGIsKOr3VL2zzsQkFZ8kn7dkOg== X-Google-Smtp-Source: AMsMyM4BT9AZ/MQjlPeoZdVC4GyxjWlEVvasTULnuQzJpO/CY5vTc1I6fl7KtOvzdN7rbJBTA8Zsbw== X-Received: by 2002:a2e:a791:0:b0:26c:4fad:957 with SMTP id c17-20020a2ea791000000b0026c4fad0957mr7772516ljf.263.1664884613519; Tue, 04 Oct 2022 04:56:53 -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.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 04:56:53 -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 8/8] dt-bindings: iio: resolver: adi,ad2s90: use spi-peripheral-props.yaml Date: Tue, 4 Oct 2022 13:56:42 +0200 Message-Id: <20221004115642.63749-8-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 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=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: devicetree@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. While changing additionalProperties->unevaluatedProperties, put it in typical place, just before example DTS. Signed-off-by: Krzysztof Kozlowski Acked-by: Rob Herring --- .../devicetree/bindings/iio/resolver/adi,ad2s90.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/resolver/adi,ad2s90.yaml b/Documentation/devicetree/bindings/iio/resolver/adi,ad2s90.yaml index 81e4bdfc17c4..b24e5a202a48 100644 --- a/Documentation/devicetree/bindings/iio/resolver/adi,ad2s90.yaml +++ b/Documentation/devicetree/bindings/iio/resolver/adi,ad2s90.yaml @@ -33,8 +33,6 @@ properties: spi-cpha: true -additionalProperties: false - required: - compatible - reg @@ -43,6 +41,11 @@ dependencies: spi-cpol: [ spi-cpha ] spi-cpha: [ spi-cpol ] +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + examples: - | spi {