Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp483403imn; Wed, 27 Jul 2022 11:28:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uMa1rIzPKYsm/iheAXHvFr5UjkOQgbU9xO+qKFjkYIDbMdJDss8bR9Z8Cu20OuSIe3qOde X-Received: by 2002:a65:6056:0:b0:419:78b3:e612 with SMTP id a22-20020a656056000000b0041978b3e612mr20543264pgp.252.1658946479810; Wed, 27 Jul 2022 11:27:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658946479; cv=none; d=google.com; s=arc-20160816; b=K3CBEVIGYgZFnFQJmlDsbtffx3RLLdWHg7IcXThyFBbcpNCP2Ow2hdPVS1MyuP5ocO 2EwcbGSXKOPsN01xrHmlEJ8TFjLT7poKUvMi1RlJ7JClifYmF5qEJBc6BSuRka65KOav IzAsBSOdCa+XlNl1ybWjE/ODaekJqrfdYHu0rG6PysZsgxRtPZKQcgA6CystaYuHx9Ci oL0A1AlE+gXBOADJQswMb1gcQk2o99U93OF5q1gOoF/TLFyBj79DLTbQ4mk/ZCutV6E4 dE+NcYOnLYfXydilZE8ktYDLLZVM+xj+TcJv7WCOALn4ogaZ0KTVTdiVoQIOJ1AsrX47 gB0w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mXw/gx1TvWDFNgjG1qr/pqI36Mmqb6KSC/b/lR/QsLU=; b=0mr3AMmx8H12A7coDiyCMOJ8uPDnYEM9ZfHEzXUSqI837JNKmp8alNgGOXZD3TDhxM yq+neTbhrraege1POrYQP2nQz54lOyO53BoK1HWhwziO6hv1Z6hfRcu86xQ7DEFu1lXr GhJrpiAGHrDymGhetWzyI0eSrmXUncLDZtVit2SnoWRz3rpT0RMSTZLhYMGYvNsfCVWn U1tkiQVXtn57LEZUlKKTFevzGw0w11HcNq97FKWW+luUi678dcxGTavNvFg3jEY3qlxR +oafBjSwl/1mepySpWJq/haS+AnPdF91f+bvqv4fE3BBLS9221BiewIURa9OUUaZbhWa 1YzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=layrHSzu; 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 v14-20020a637a0e000000b003fe046301d2si23585716pgc.527.2022.07.27.11.27.44; Wed, 27 Jul 2022 11:27:59 -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=layrHSzu; 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 S242177AbiG0R2a (ORCPT + 99 others); Wed, 27 Jul 2022 13:28:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242146AbiG0R1c (ORCPT ); Wed, 27 Jul 2022 13:27:32 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0812C7E83E for ; Wed, 27 Jul 2022 09:47:14 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id v21so1863211ljh.3 for ; Wed, 27 Jul 2022 09:47:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mXw/gx1TvWDFNgjG1qr/pqI36Mmqb6KSC/b/lR/QsLU=; b=layrHSzuuv7WZaKIMxqMlq4RK1ZL55arpJ65jtX7RdCUtFejuIaL8Knr9jz9MPtQKa igjYvSZ7O12G4rPWOkL6+xA/t65NoZGrKQFnnZ8lsn6tYFWQFIaBT+PRnfSXjl4vmNPA zRpZP3PKnU0ia3VaEVGFu4o/i1c1z8g6RjQz8SM1A4n329tpp8JeQNmbqX3HpN8bbNc9 DzW/KCI3QSS+5TMzXtB9XuXEfHWaomVMtzZSZRnmtlRaKVWIyb+/4Yf5rFrsES3ShMUx Y67Fvc9DW12vdPuz0tv6k2Q43OjsUTwYy6HsU1dMrrFrwwUcgFcGPTZ/U1Eb35abgpDX +P4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mXw/gx1TvWDFNgjG1qr/pqI36Mmqb6KSC/b/lR/QsLU=; b=Pb9ZhGyzelbWK9RYtTHZH7Vf2PkhGIsK/pX+eBgwO/h4hUcZM3sIlzsjDZQ1gj+P20 IRlN6uiunTl5Fhs5AJ5wUmQOu6RHjZQVrwwmkprHCQbg9+HTohuhhhEPsEeZDeNPT5+i 3Y4tV7zCB15NakrYFQpmOJ3L//FxlexcLztxoN4buymuDchYBQ8yapLhq0rDyb1G20aL MOPmimMCZoMyKbcmN/UqMB5ADZJHzLsbWhWfsoFCMvT7+pNGSZNo2JdPimH+3XAznbgp rRYVY4H+CBcKZMc+OrX03Lv0+tntWZJi5EU3syGXJw47GB0PmjUlTQyUqtiWrZx/cPen zeRQ== X-Gm-Message-State: AJIora97lskbSp5cUFWffgzOaQAJy12CNeZ/vF3qBgboOfqKJAv2d2IE qoWGMN7lDj6p45tb/oo5Rq/tPQ== X-Received: by 2002:a2e:844a:0:b0:255:46b9:5e86 with SMTP id u10-20020a2e844a000000b0025546b95e86mr7505870ljh.388.1658940430765; Wed, 27 Jul 2022 09:47:10 -0700 (PDT) Received: from krzk-bin.lan (78-26-46-173.network.trollfjord.no. [78.26.46.173]) by smtp.gmail.com with ESMTPSA id 18-20020ac25f52000000b0048910301774sm3375149lfz.307.2022.07.27.09.47.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jul 2022 09:47:10 -0700 (PDT) From: Krzysztof Kozlowski To: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Lucas Stankus , Puranjay Mohan , Cosmin Tanislav , Alexandru Tachici , Marcelo Schmitt , Marcus Folkesson , Kent Gustavsson , Tomislav Denis , Oleksij Rempel , kernel@pengutronix.de, Antoniu Miclaus , Ricardo Ribalda , Dragos Bogdan , Jean-Baptiste Maneyrol , Lorenzo Bianconi , Stefan Popa , Linus Walleij , Stephan Gerhold , Mike Looijmans , Joachim Eastwood , Tomas Melin , Sean Nyekjaer , Beniamin Bia , Patrick Vasseur , Charles-Antoine Couret , Vladimir Barinov , Miquel Raynal , Philippe Reynes , Jacopo Mondi , Akinobu Mita , Alexandru Lazar , Oskar Andero , =?UTF-8?q?M=C3=A5rten=20Lindahl?= , Bogdan Pricop , Angelo Compagnucci , Matt Ranostay , Dan Murphy , Gregory Clement , Phil Reid , Michael Welling , Lukas Wunner , Robert Jones , Chris Coffey , Slawomir Stepien , Sankar Velliangiri , linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2 03/10] dt-bindings: iio: amplifiers: adi,ada4250: use spi-peripheral-props.yaml Date: Wed, 27 Jul 2022 18:46:39 +0200 Message-Id: <20220727164646.387541-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220727164646.387541-1-krzysztof.kozlowski@linaro.org> References: <20220727164646.387541-1-krzysztof.kozlowski@linaro.org> 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 Instead of listing directly properties typical for SPI peripherals, reference the spi-peripheral-props.yaml schema. This allows using all properties typical for SPI-connected devices, even these which device bindings author did not tried yet. Remove the spi-* properties which now come via spi-peripheral-props.yaml schema, except for the cases when device schema adds some constraints like maximum frequency. While changing additionalProperties->unevaluatedProperties, put it in typical place, just before example DTS. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/iio/amplifiers/adi,ada4250.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/amplifiers/adi,ada4250.yaml b/Documentation/devicetree/bindings/iio/amplifiers/adi,ada4250.yaml index 5277479be382..c15da155d300 100644 --- a/Documentation/devicetree/bindings/iio/amplifiers/adi,ada4250.yaml +++ b/Documentation/devicetree/bindings/iio/amplifiers/adi,ada4250.yaml @@ -27,14 +27,15 @@ properties: Enable internal buffer to drive the reference pin. type: boolean - spi-max-frequency: true - required: - compatible - reg - avdd-supply -additionalProperties: false +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false examples: - | -- 2.34.1