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: 612398 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 EF1C6C433FE for ; Tue, 4 Oct 2022 11:56:56 +0000 (UTC) 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 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 --- .../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:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 612397 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 ED78AC433F5 for ; Tue, 4 Oct 2022 11:56:59 +0000 (UTC) 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 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 --- 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: 612396 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 E2DEFC43219 for ; Tue, 4 Oct 2022 11:57:00 +0000 (UTC) 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 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 --- .../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: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: 612395 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 6A0AFC43219 for ; Tue, 4 Oct 2022 11:57:04 +0000 (UTC) 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 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 --- .../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 {