Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2510721rdb; Wed, 21 Feb 2024 09:43:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVhJ5eTkZx4Yxk8XCnceqkT3TB0lut5nEe7VMgVO76DrokzZ4HMXMJLvmH4H8vFNCJjc69kmfgInWoDuyK0uF09MgSO0hyAlGWuqXXzxg== X-Google-Smtp-Source: AGHT+IFXRMYFFYK6vm8C+L29ukKmwZ2xGNnMrPcHSmAlZ5dnh4LmBITvznqyCS++ksl+oU4cKdmA X-Received: by 2002:a17:906:3593:b0:a3e:c472:2df with SMTP id o19-20020a170906359300b00a3ec47202dfmr5640606ejb.56.1708537410846; Wed, 21 Feb 2024 09:43:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708537410; cv=pass; d=google.com; s=arc-20160816; b=MB76XzWPH0B/wUy/C6oJql3PD8GqE+RqLrMXUHdV+SxcOqkvThYC2zIxrBj1TjGXbD A6IsFe8EhKOQckTdlwXi+sIy9Gj1c/vV21Xd/AsceeF4xKH1+rQiEOo2JUoGD7cu26Ri IG0cVVwtKpMRMGXmM5DvTww/2cyO4nlME4i04wa/QM+GWqouECi5rLehvHwOvpdx0mdK v7zuhYK1wqqGUzCPTGuyPp8cXalPgzcxsCKdcBvhzjpcwQfEpH0C3/i2v7kXi0hEZrKb I0Y5wubR5TqUbcl7uVLU+KQHqDP/Dt5DHicm9+YdETLkElmjVucvCsEMvzuQtnLkuUKU fcIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=VheZNo9yCCqTQF5T9o+5TquWnx0F5WDAR2kTFR9wmnU=; fh=qQxEX0N6POy+RUztDELbQOoRNTHOvfe8n73y6qb0Mso=; b=uL1ruUYC11EjhgWah+/xXO9RKDDuyx6eOfzW+N6/cxjEQQ2HctEPe0OOtWshP4SSjb +pL89LJF6x/oH5iTwQYZpV8OOJJ7E4QpR0temYFCl/g+n0ozJL9to+vvxVCSM0t+6kwj qQn8diTdDf956OeSK0P7SuWkIQxjIGQyTSWJacofdKACCshwqp6+mnz4+dQ5S1C65E3J F5I9X/9dqZB/lIVbNZiE5XI8h7zHNNPZXIA4x0WJSG7Qqtqu7OxPrxYxuVVpYfsXzpov ftD22nHQYPyM8KDgaCnKAwz+ibKjcylfCp9yLLT6Q39tkOz/R+VMkvJz5dbm/m3cboi/ gP2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-75210-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75210-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qw11-20020a1709066a0b00b00a3ee9305aebsi2050757ejc.862.2024.02.21.09.43.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 09:43:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75210-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-75210-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75210-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8C6F91F2242E for ; Wed, 21 Feb 2024 17:43:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5CD7784055; Wed, 21 Feb 2024 17:43:26 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 338A683CD0 for ; Wed, 21 Feb 2024 17:43:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708537405; cv=none; b=SclC4s9kz4Qm+h+JpzaoI3mU8wFXhQ3G2JKSasknWY8ZiXes6jMgy+NOKy/t7O0IEv1l6i2fdEQkdpB5gjlLDRUb1S/cacyBpQBa2qlGeFpZ2GrAOzi3VmQ7bI9cOkKkSzvNptTnM7a4tBpOJgvx4Scl2yqFcenFelY2KQqmDwE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708537405; c=relaxed/simple; bh=x1whNrwYpej7zBfBOVkC3JBgqGT5iobnkHLXgVKm50M=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=eTnUWCcyJGBlbvz3eJNZjwo41K9meL/9V6ivcqH4bO6j0OYdAoVRWzeJQd6uEUxJLh/4vyB/3GpLeCqM9F9cLSbBPEqFDYLtsmQM4PqsbjoOP1wrpoQbcOR2eg32St9vx2eTXQ5BttUg4iD+W01QukhChpkWE/vuaSMV+gzN1CQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from dude02.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::28]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rcqcd-0001Z2-FM; Wed, 21 Feb 2024 18:43:07 +0100 From: Marco Felsch To: jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, hns@goldelico.com Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: [PATCH] dt-bindings: iio: gyroscope: bosch,bmg160: add spi-max-frequency binding Date: Wed, 21 Feb 2024 18:43:05 +0100 Message-Id: <20240221174305.3423039-1-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::28 X-SA-Exim-Mail-From: m.felsch@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Make use of the common spi-peripheral-props.yaml to pull in the common spi device properties and limit the spi-max-frequency to 10 MHz as this is the max. frequency if VDDIO >= 1.62V. Signed-off-by: Marco Felsch --- .../devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml index 1414ba9977c1..3c6fe74af0b8 100644 --- a/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml +++ b/Documentation/devicetree/bindings/iio/gyroscope/bosch,bmg160.yaml @@ -22,6 +22,9 @@ properties: vdd-supply: true vddio-supply: true + spi-max-frequency: + maximum: 10000000 + interrupts: minItems: 1 maxItems: 2 @@ -33,7 +36,10 @@ required: - compatible - reg -additionalProperties: false +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false examples: - | -- 2.39.2