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: 12998191 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 0DAE4C433FE for ; Tue, 4 Oct 2022 11:56:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229844AbiJDL4v (ORCPT ); Tue, 4 Oct 2022 07:56:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229760AbiJDL4t (ORCPT ); Tue, 4 Oct 2022 07:56:49 -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 416BF240BD for ; Tue, 4 Oct 2022 04:56:47 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 10so20803023lfy.5 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=Fp5dfruvYjhDdPu11OeXJTKyXxpHSyEzc0pikgLZpiEpRm38SICsP4sUEhb1RYey81 KS8+Jh+7pwT/zQtNAC8eA4gq6hu6R+9D/g8WG/iV7QP4UR0IGLZSdxBHRSiUwR5kr5k2 GLXPA5kSxwMgwaTILOZUxluOT4DF55VKBFBfWoyrIFtLjNz7K7P2yseZw8RNuhhrrWy0 gv3FIlkV4S5/UXaqKKRTNhqVhBDjOBgBDBOZCvKSfpgUhEwWRNytyW/ZofAQBN1KCo/P hkV/rELYxl3g/4cJ2CKPmo6PDo8F7YRQzx8UVjbPrMmorLzbAzooAFtvcw1iBCD2VwLI 7nqQ== X-Gm-Message-State: ACrzQf19kYcYPygpmto28PoWN3TjFXqDa0srKgcqYu++k3W6qOiS1S+v bwMIQo/0d0NYL7LU6MxbUNvCyA== 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 Precedence: bulk List-ID: X-Mailing-List: linux-iio@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