Message ID | 20231023140534.704312-3-ramona.gradinariu@analog.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1320937vqx; Mon, 23 Oct 2023 07:06:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGa71gn8LC5Tkt3DkZJECN9mizDkbN1bu2qJjN1pN7lorBOSkm134T4VCaXowI3lEAkdz4I X-Received: by 2002:a05:6a00:1827:b0:6be:18a9:8f60 with SMTP id y39-20020a056a00182700b006be18a98f60mr7958808pfa.16.1698069982272; Mon, 23 Oct 2023 07:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698069982; cv=none; d=google.com; s=arc-20160816; b=mIUoVlpTWnHPB3mLsyiv11JS0DfnAV1OIcvDiS65df9699NYrHenTBCAvljNCDJhmB TBE4MoD+ljiNbcD+y/1UVdig7ykmJS7pymck0jAyiVOEqZttfMzEGjoh1ipETTCzix4w oUm4AnBfOSZ6ch4g52Nsdvvoz9tms50AILHWvo1C67N+PY2Ef6lW7xFnerzgDvTgEr34 /vdJNCApeajFz1jUMbqZtzHoZU5kyoACeU7QdIY2XCGxac3WcUc4r5NTO2jTHhFRE1V6 GAbE5RCfdSlOBPLMezkNvigrA6U96TCwKPDOmQrtac0nTX5jPCdUxLeFcKHLP4pjF+U0 arPw== 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; bh=mLUiBBCVTNmluJh5/K86hq+uaJV9OFbT5nzJyNLcMIU=; fh=gFp5MordTjJEvYeDIMFqr/fwGBuFLVzJJBWwOclbTK0=; b=NACL1rz0weGQ4POqHWsGiNfmEujIm40OIL2itjXGRARzixDKu54r/+SsQe5ZtP3hE3 7zhF10CqFENvdWPpc9BcI3MDzgn9hq/QS1QrLY5LP3Y1jsVar3VE+uxNW5UwjlCXjKeQ 5uDaWK2N8x+c0q+Ps8LP2S9B2u8ycrH2hC8G2VUGukEX36t4DftwLUqbO7QeyhJzWRos eFY59gwWeOUxf4aFXM30edMAip0gSDmgcvsl4rtcxgN0dhdOddckHykOz/RZAUKfpARH NHZAlZI2J+kNA63cgx8Kyyec/z765f2eySXUeUoysTIzCymg4IkzQEPihluKL9QbY5KC xIYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q22-20020aa78436000000b0068fc9c6eafdsi6322974pfn.137.2023.10.23.07.06.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 07:06:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=analog.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 49F82806B04C; Mon, 23 Oct 2023 07:06:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233097AbjJWOGL (ORCPT <rfc822;aposhian.dev@gmail.com> + 27 others); Mon, 23 Oct 2023 10:06:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233005AbjJWOGD (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 23 Oct 2023 10:06:03 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF2E6D73; Mon, 23 Oct 2023 07:06:01 -0700 (PDT) Received: from pps.filterd (m0167089.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 39NBaHOV021645; Mon, 23 Oct 2023 10:05:58 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3tvugj860b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Oct 2023 10:05:58 -0400 (EDT) Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 39NE5v1K015818 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 23 Oct 2023 10:05:57 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBMBX9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.14; Mon, 23 Oct 2023 10:05:56 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Mon, 23 Oct 2023 10:05:56 -0400 Received: from rbolboac.ad.analog.com ([10.48.65.174]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 39NE5djT030054; Mon, 23 Oct 2023 10:05:46 -0400 From: Ramona Gradinariu <ramona.gradinariu@analog.com> To: <jic23@kernel.org>, <nuno.sa@analog.com>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <conor+dt@kernel.org>, <linux-iio@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org> CC: Ramona Gradinariu <ramona.gradinariu@analog.com> Subject: [PATCH v2 2/3] dt-bindings: adis16475: Add 'spi-cs-inactive-delay-ns' property Date: Mon, 23 Oct 2023 17:05:33 +0300 Message-ID: <20231023140534.704312-3-ramona.gradinariu@analog.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231023140534.704312-1-ramona.gradinariu@analog.com> References: <20231023140534.704312-1-ramona.gradinariu@analog.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: MYOMRAODzDXYK7exRix7NpM7tK8zChKn X-Proofpoint-GUID: MYOMRAODzDXYK7exRix7NpM7tK8zChKn X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-23_12,2023-10-19_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 phishscore=0 malwarescore=0 spamscore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 clxscore=1015 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2310170000 definitions=main-2310230123 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 23 Oct 2023 07:06:21 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780555429929415959 X-GMAIL-MSGID: 1780555429929415959 |
Series |
iio: imu: adis: Use spi cs inactive delay
|
|
Commit Message
Ramona Gradinariu
Oct. 23, 2023, 2:05 p.m. UTC
The devices supported by adis16475 driver require a stall period
between SPI transactions (during which the chip select is
inactive), with a minimum value equal to 16 microseconds, thus
adding 'spi-cs-inactive-delay-ns' property, which should indicate
the stall time between consecutive SPI transactions.
Signed-off-by: Ramona Gradinariu <ramona.gradinariu@analog.com>
---
changes in v2:
- added default value
- updated description
- updated commit message
.../devicetree/bindings/iio/imu/adi,adis16475.yaml | 6 ++++++
1 file changed, 6 insertions(+)
--
2.34.1
Comments
On 23/10/2023 16:05, Ramona Gradinariu wrote: > The devices supported by adis16475 driver require a stall period > between SPI transactions (during which the chip select is > inactive), with a minimum value equal to 16 microseconds, thus > adding 'spi-cs-inactive-delay-ns' property, which should indicate > the stall time between consecutive SPI transactions. > > Signed-off-by: Ramona Gradinariu <ramona.gradinariu@analog.com> > --- > changes in v2: > - added default value > - updated description > - updated commit message > .../devicetree/bindings/iio/imu/adi,adis16475.yaml | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml b/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml > index c73533c54588..135ccdd5c392 100644 > --- a/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml > +++ b/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml > @@ -47,6 +47,12 @@ properties: > spi-max-frequency: > maximum: 2000000 > > + spi-cs-inactive-delay-ns: > + minimum: 16000 > + default: 16000 > + description: > + Indicates the stall time between consecutive SPI transactions. You can skip the description entirely, it is coming from spi-peripheral-props. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml b/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml index c73533c54588..135ccdd5c392 100644 --- a/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml +++ b/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml @@ -47,6 +47,12 @@ properties: spi-max-frequency: maximum: 2000000 + spi-cs-inactive-delay-ns: + minimum: 16000 + default: 16000 + description: + Indicates the stall time between consecutive SPI transactions. + interrupts: maxItems: 1