Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp485979imn; Wed, 27 Jul 2022 11:32:01 -0700 (PDT) X-Google-Smtp-Source: AGRyM1umXxrW29WSFauLDuP0z0/8I9IIV6RdLhCmxC7v/5JebyzoUxMdwIcWVeQRUla7f3OY91b+ X-Received: by 2002:a05:6402:5108:b0:43b:e395:d2fb with SMTP id m8-20020a056402510800b0043be395d2fbmr21263287edd.260.1658946721400; Wed, 27 Jul 2022 11:32:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658946721; cv=none; d=google.com; s=arc-20160816; b=AeeIVyDRmQ+KiMHwkmI3cb3+ZR5sbKwKKmWNIOgVZGsFuScM19FGG4mkO8e3/Ppzlm SnPEg2w/GiNr5u4Q5a1CiIksCKzt0eJuSlhHon/1BhNFXyRpLnjs3SOhAPY9dJ1455au YiEiqCrmurXx/zSgQfWyfAw9RY6bEM+1KvNs2jVaJ3zt7SUGpG1cJIjh3b+hmcwkBnYQ k3dFHXq0on1+9bA0qhDC7KewJhIDnAaXCzlyiNAI1kwcE/PymRbtGvCvEZeleS/O+cRB QvxF/nt3l0UBPhXvxEqeoK53y1vU3bJ0hcgAJijIkqSEeC56trm+qNUhPEm8Kjcp1y62 OqMg== 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=ZNmQiW5AvIOtEUDHlEIUtIO/nCYrI/d8smXZXTrIU/o=; b=PEyScV05VrMR/rfaOvci1z+5wk5q2Fik+tci8M/19KymiYc7HRq57Vi8hIVrLEL6fe 5AceaywqyaW6ndIOJsd8phz4vr3Scetsz6fcsym3Ao0a37I1+rUzI3tFjMi24hSaUQrz iEUI1pygbeYLhTVDxISU+lNOC/o+HTx+JR57tir6JNVGfBMvyRlwNnQjCMyjtFT0sZ+W TAVQbMgSr5jw6DcvaCgikLbNbSs5fFmW6iM3uL+GyH2ijh90V1/tHm/wzeStmQkSc1IT SgyOoPo0gQKkGAgrAGmH4kAZi36sm+ahoWCkXWJ0xl/iP6n6RxRhNdI7j10Eue9TwyJP aZ8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iWVXqzqf; 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 i16-20020a0564020f1000b0043b6a4c1f1bsi3690988eda.143.2022.07.27.11.31.36; Wed, 27 Jul 2022 11:32:01 -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=iWVXqzqf; 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 S242356AbiG0Rbh (ORCPT + 99 others); Wed, 27 Jul 2022 13:31:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242296AbiG0R3U (ORCPT ); Wed, 27 Jul 2022 13:29:20 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD28E52477 for ; Wed, 27 Jul 2022 09:47:38 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id p10so20432389lfd.9 for ; Wed, 27 Jul 2022 09:47:38 -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=ZNmQiW5AvIOtEUDHlEIUtIO/nCYrI/d8smXZXTrIU/o=; b=iWVXqzqfgZWyU6q37aPpBdfPk83KO2tiGk/vS4ImIdjeT2Dl+ubQlKovcWSMO8KLi+ XwvXqv6Se2XkUBte+uexnIyqDWxxfM0u0eOWoES6PD0zssoj//+yD59C9yD0hTc0h9xd OJYba76JcO8JmYRV/v0dPrIFWkYQk785XpnZrV7QFo/tnpdo/SW9GYzql8UngmibcjR7 cJBtJKoQGp8m9zCsbIAFltb5r3tLwcBSLBei7BirzZAUDtF8jJpMjxo2m8OYcqfkXqoh RVXUhQDUyJMgPmr640Dn12uoRvcqGywVXK2mIhMMU7GyeDheyh8xdE88NXCTLjDQlvPY 1p9A== 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=ZNmQiW5AvIOtEUDHlEIUtIO/nCYrI/d8smXZXTrIU/o=; b=t5qH3BPQY9eXCUPuN/0zjDJeOG99N0Sv/4XDQJVvPNGiHXH5JvT3oq66AZah/FpP7h pslnGabuAqsxjTEBTDjQZAm5TWVn9SK7cNXctNygrMTZVMaqbe5fGn7T8udpb31WyX9d Q/SOYcXQn7AESvsZ34jaWTWREt0dSHgA5V+lsjbbTMY6h/NxkSH9q4nOiy6lIh30VGLg SNh56zbdtBYaMJbgSCe8U0zJBKv61Khd06WdPJoR1i9cxA4NWhw3dwj53vpbtKlsJe8a /J4yIMRXk1lGnqIL3urfshUxjL0+dg9th3YIoMmq1HyF93JyXT9Oeu9zWFVH8aUEbIii ipwQ== X-Gm-Message-State: AJIora87eMEEu9gP9ANGC1jB2alSrQkQrvElL4fxXh1sOCt1llPKQNPq 4kzWdW8jE5LVngeed+XF6UPIDQ== X-Received: by 2002:a05:6512:c16:b0:48a:97b2:e060 with SMTP id z22-20020a0565120c1600b0048a97b2e060mr4471424lfu.660.1658940450562; Wed, 27 Jul 2022 09:47:30 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Jul 2022 09:47:29 -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 09/10] dt-bindings: iio: samsung,sensorhub-rinato: use spi-peripheral-props.yaml Date: Wed, 27 Jul 2022 18:46:45 +0200 Message-Id: <20220727164646.387541-10-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=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: 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 --- .../bindings/iio/samsung,sensorhub-rinato.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/samsung,sensorhub-rinato.yaml b/Documentation/devicetree/bindings/iio/samsung,sensorhub-rinato.yaml index a88b3b14d6bd..dd2ae2bd1ad7 100644 --- a/Documentation/devicetree/bindings/iio/samsung,sensorhub-rinato.yaml +++ b/Documentation/devicetree/bindings/iio/samsung,sensorhub-rinato.yaml @@ -40,10 +40,6 @@ properties: description: Reset the sensorhub. - spi-max-frequency: true - -additionalProperties: false - required: - compatible - reg @@ -52,6 +48,11 @@ required: - mcu-ap-gpios - mcu-reset-gpios +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + examples: - | spi { -- 2.34.1