From patchwork Mon Oct 23 12:35:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Gradinariu X-Patchwork-Id: 156857 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1264733vqx; Mon, 23 Oct 2023 05:36:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHflOB7jSu5Bj6rI/u9dztGIgXqLMOUNSpbchVmNS6I6yze//E7YWaJ0vdZWe7jPIoMWX1m X-Received: by 2002:a17:90a:31c:b0:27d:4129:ecd9 with SMTP id 28-20020a17090a031c00b0027d4129ecd9mr6010000pje.26.1698064600556; Mon, 23 Oct 2023 05:36:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698064600; cv=none; d=google.com; s=arc-20160816; b=yhea+vpkuyn2ksDYFErgyY9tW1JLokyVg+mfan7f63t/nE8nEMQLhd1l46EAp4lwp5 1Oilr71pmqHpvTaWFEU9patY4P8MKo6ijUsV08mg6w4yKLk9hKnfHwDOZj/ATwsKrZns aOvlhwmHVmOCs5PoeIg0qibuR6bFjvNgryTK3MaI/BOfIeD/YUfzz0ph/lFcN0BpzCf2 lqNgz8UORD+wA1a1KrUtBfaNUMhJmU2yCcjhHSlCVNnIwQ6FZs88+4NnXXp2YY6XBVX5 M119mM3g7olqqn6AbhRajFRKEho4589oorcaCc2ZJ5kh478e6vwZBhEb/Dhwz+px9BmX JygA== 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=qiuan+JoR7JZmMFk0jBqmoI8DRhZEvzzd8v8SmskiOE=; fh=gFp5MordTjJEvYeDIMFqr/fwGBuFLVzJJBWwOclbTK0=; b=A818LIQayP+ZKIP9KWMS4RJs3hNNQs+n02bcqwcquT+HvU7nV1Yrz2HtmX9c7SDCiI qJj6dK/Zyt7kS1KttmHfd/RH1NzX8iyOzeSKnDcbbyxvubiroVAFngKuTrxmkSaGELMD mklzk1WImwFu07QWYYqaHS+T4uvYUtnUkS4LauKKK5CTQ7o/XfDushY6AlV93kwlGLis 03c6Q3c47km1ALslh/P/svFCUbohDROfcWmJKb8a4d1ewNANSJkLn/90YcLD4OMwN9j2 vf9VileELqdwbIzbMe0sjqQCo4L9IE4oqNWDok8Veroradq60Au98iZbhTfB41QWO5Tt aQNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id ml15-20020a17090b360f00b0027d1326d6c3si6068825pjb.121.2023.10.23.05.36.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 05:36:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 4072E808BE55; Mon, 23 Oct 2023 05:36:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233443AbjJWMgJ (ORCPT + 27 others); Mon, 23 Oct 2023 08:36:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231370AbjJWMgH (ORCPT ); Mon, 23 Oct 2023 08:36:07 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38153D6E; Mon, 23 Oct 2023 05:36:05 -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 39NB8ExR021705; Mon, 23 Oct 2023 08:36:02 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3tvugj7ftc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Oct 2023 08:36:02 -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 39NCZx54012918 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 23 Oct 2023 08:36:00 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) 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 08:35:59 -0400 Received: from zeus.spd.analog.com (10.66.68.11) by ashbmbx9.ad.analog.com (10.64.17.10) with Microsoft SMTP Server id 15.2.986.14 via Frontend Transport; Mon, 23 Oct 2023 08:35:59 -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 39NCZjdu025089; Mon, 23 Oct 2023 08:35:51 -0400 From: Ramona Gradinariu To: , , , , , , , CC: Ramona Gradinariu Subject: [PATCH 1/3] iio: imu: adis: Use spi cs inactive delay Date: Mon, 23 Oct 2023 15:35:40 +0300 Message-ID: <20231023123542.582392-2-ramona.gradinariu@analog.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231023123542.582392-1-ramona.gradinariu@analog.com> References: <20231023123542.582392-1-ramona.gradinariu@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: B_RqpLKz7ZpU8hEXjaRE3QD91StcXUCG X-Proofpoint-GUID: B_RqpLKz7ZpU8hEXjaRE3QD91StcXUCG 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_10,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-2310230109 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 23 Oct 2023 05:36:34 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780549779442868596 X-GMAIL-MSGID: 1780549786236620432 A delay is needed each time the chip selected becomes inactive, even after burst data readings are performed. Currently, there is no delay added after a burst reading and in case a new SPI transfer is performed before the needed delay, the adis device becomes unresponsive until reset. This commit is adding the needed delay directly to the spi driver, using the cs_inactive parameter, in case it is not set and is removing the additional chip select change delay present in adis APIs to remove the double delay. Signed-off-by: Ramona Gradinariu --- drivers/iio/imu/adis.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers/iio/imu/adis.c b/drivers/iio/imu/adis.c index bc40240b29e2..495caf4ce87a 100644 --- a/drivers/iio/imu/adis.c +++ b/drivers/iio/imu/adis.c @@ -44,8 +44,6 @@ int __adis_write_reg(struct adis *adis, unsigned int reg, unsigned int value, .cs_change = 1, .delay.value = adis->data->write_delay, .delay.unit = SPI_DELAY_UNIT_USECS, - .cs_change_delay.value = adis->data->cs_change_delay, - .cs_change_delay.unit = SPI_DELAY_UNIT_USECS, }, { .tx_buf = adis->tx + 2, .bits_per_word = 8, @@ -53,8 +51,6 @@ int __adis_write_reg(struct adis *adis, unsigned int reg, unsigned int value, .cs_change = 1, .delay.value = adis->data->write_delay, .delay.unit = SPI_DELAY_UNIT_USECS, - .cs_change_delay.value = adis->data->cs_change_delay, - .cs_change_delay.unit = SPI_DELAY_UNIT_USECS, }, { .tx_buf = adis->tx + 4, .bits_per_word = 8, @@ -62,8 +58,6 @@ int __adis_write_reg(struct adis *adis, unsigned int reg, unsigned int value, .cs_change = 1, .delay.value = adis->data->write_delay, .delay.unit = SPI_DELAY_UNIT_USECS, - .cs_change_delay.value = adis->data->cs_change_delay, - .cs_change_delay.unit = SPI_DELAY_UNIT_USECS, }, { .tx_buf = adis->tx + 6, .bits_per_word = 8, @@ -144,8 +138,6 @@ int __adis_read_reg(struct adis *adis, unsigned int reg, unsigned int *val, .cs_change = 1, .delay.value = adis->data->write_delay, .delay.unit = SPI_DELAY_UNIT_USECS, - .cs_change_delay.value = adis->data->cs_change_delay, - .cs_change_delay.unit = SPI_DELAY_UNIT_USECS, }, { .tx_buf = adis->tx + 2, .bits_per_word = 8, @@ -153,8 +145,6 @@ int __adis_read_reg(struct adis *adis, unsigned int reg, unsigned int *val, .cs_change = 1, .delay.value = adis->data->read_delay, .delay.unit = SPI_DELAY_UNIT_USECS, - .cs_change_delay.value = adis->data->cs_change_delay, - .cs_change_delay.unit = SPI_DELAY_UNIT_USECS, }, { .tx_buf = adis->tx + 4, .rx_buf = adis->rx, @@ -163,8 +153,6 @@ int __adis_read_reg(struct adis *adis, unsigned int reg, unsigned int *val, .cs_change = 1, .delay.value = adis->data->read_delay, .delay.unit = SPI_DELAY_UNIT_USECS, - .cs_change_delay.value = adis->data->cs_change_delay, - .cs_change_delay.unit = SPI_DELAY_UNIT_USECS, }, { .rx_buf = adis->rx + 2, .bits_per_word = 8, @@ -524,6 +512,12 @@ int adis_init(struct adis *adis, struct iio_dev *indio_dev, } mutex_init(&adis->state_lock); + + if (!spi->cs_inactive.value) { + spi->cs_inactive.value = data->cs_change_delay; + spi->cs_inactive.unit = SPI_DELAY_UNIT_USECS; + } + adis->spi = spi; adis->data = data; iio_device_set_drvdata(indio_dev, adis); From patchwork Mon Oct 23 12:35:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Gradinariu X-Patchwork-Id: 156856 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1264629vqx; Mon, 23 Oct 2023 05:36:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+MKJjV2gB3CuvyWvpexn/6QQ7P33SrqdrvniQc2/3ZncFFN1UAT8ONJmJgT7NNDYG5Az5 X-Received: by 2002:a05:6359:d1d:b0:168:e3c4:7a55 with SMTP id gp29-20020a0563590d1d00b00168e3c47a55mr1781941rwb.13.1698064591460; Mon, 23 Oct 2023 05:36:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698064591; cv=none; d=google.com; s=arc-20160816; b=AqU5Xx+onAvCFWYzLJm7zWvtzeMKL5YfCrrRf6HKsvEL1JtOD+Ish+wvUQCA6L05q5 5Ngdyo01pYeMdK/+1DuYafnmhNm9ao3VSh/wSuyS/UWVOajY6XZzfJ1p8sGkpLUCYF6u z51gtJCPTDlUcHg2PVnee1f18EOJznXpkIpeJ6RiyVvn0dg9O1jL/eTR1ChhSGMgw0W2 mZOjj4KZv56OxHSYNZCyVcvusTWA0Np6XkKvNoNRRr7JlTt51RK8p3O+XpmQXM5tzrJI 8HsGfWaRT1eeSapA7x5A476+0MCSkqwCsNQjOfzE52tsYtIG7ZManaG2Ilob0nPl88Zy tCYw== 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=lDAaBlZQX/9sQjsPSyPqhMedkzY6klsRb2OM+1lPMs8=; fh=gFp5MordTjJEvYeDIMFqr/fwGBuFLVzJJBWwOclbTK0=; b=WGTMIIWINMyKr6skgNohxGpYGzlHEWRqkQRknxTxwK4ZAEem1sjpXuz+7/wjYJQXcr o6YuklDKjJqsgfT1rn+eNPBGrN646krjt43tL/FQAgmrfG1ibgEP0Z6sY075PWbN+g8v 7JCecwvUJ0HMkw2aOQNVMydqJE2hfLmyg3RSzTMHkhEGxzUtrYMOAqSj9aAkwXBjRYVU x/lkIweoULucDv9DaXS1dGT6cHWIEfXI76RlU1vv2gjrjUTpncPivjQ9UYjlz0Y5jUco +2S6KLi4RA9JCAucwNZHnPQ3U1Cb1FpzVH0fxpOjWNKVHziRBMIhnRDGFDW3LblfOJZy tZNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id ca17-20020a056a02069100b005a1d8815ec0si6692987pgb.37.2023.10.23.05.36.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 05:36:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 631EE803EBBD; Mon, 23 Oct 2023 05:36:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233593AbjJWMgQ (ORCPT + 27 others); Mon, 23 Oct 2023 08:36:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231671AbjJWMgH (ORCPT ); Mon, 23 Oct 2023 08:36:07 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B59FB102; Mon, 23 Oct 2023 05:36:04 -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 39NC5WYC026150; Mon, 23 Oct 2023 08:36:00 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3tvugj7ft7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Oct 2023 08:36:00 -0400 (EDT) Received: from ASHBMBX8.ad.analog.com (ASHBMBX8.ad.analog.com [10.64.17.5]) by nwd2mta4.analog.com (8.14.7/8.14.7) with ESMTP id 39NCZxrf012915 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 23 Oct 2023 08:35:59 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBMBX8.ad.analog.com (10.64.17.5) 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 08:35:58 -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 08:35:58 -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 39NCZjdv025089; Mon, 23 Oct 2023 08:35:52 -0400 From: Ramona Gradinariu To: , , , , , , , CC: Ramona Gradinariu Subject: [PATCH 2/3] dt-bindings: adis16475: Add 'spi-cs-inactive-delay-ns' property Date: Mon, 23 Oct 2023 15:35:41 +0300 Message-ID: <20231023123542.582392-3-ramona.gradinariu@analog.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231023123542.582392-1-ramona.gradinariu@analog.com> References: <20231023123542.582392-1-ramona.gradinariu@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: lc5bRhMMn2xsc_RT2Ca6xbrdw6SNR5t6 X-Proofpoint-GUID: lc5bRhMMn2xsc_RT2Ca6xbrdw6SNR5t6 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_10,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=1011 mlxlogscore=973 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2310170000 definitions=main-2310230109 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 23 Oct 2023 05:36:28 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780549777205634110 X-GMAIL-MSGID: 1780549777205634110 Add 'spi-cs-inactive-delay-ns' property. Signed-off-by: Ramona Gradinariu --- Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml b/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml index c73533c54588..f01bf0ada0e8 100644 --- a/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml +++ b/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml @@ -47,6 +47,11 @@ properties: spi-max-frequency: maximum: 2000000 + spi-cs-inactive-delay-ns: + minimum: 16000 + description: + If not explicitly set in the device tree, the driver will set it to 16us. + interrupts: maxItems: 1 From patchwork Mon Oct 23 12:35:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Gradinariu X-Patchwork-Id: 156858 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1264854vqx; Mon, 23 Oct 2023 05:36:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEeTSQ5pNCGjFj+NuFrJgx3VAy4NyR7RJuLw+tJzqLol9T3FJc2dKHkFEPSs8fnPUaOwsLu X-Received: by 2002:a17:902:f392:b0:1c4:16f:cc3e with SMTP id f18-20020a170902f39200b001c4016fcc3emr4936371ple.35.1698064612504; Mon, 23 Oct 2023 05:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698064612; cv=none; d=google.com; s=arc-20160816; b=lmkkZZC+8D5T7BDaAteR6Os3wmP7YOWDqJEaUC5Q6FBXdE6zMM/tLt1glb5Kq42ZKI R1QbsS+z88IS49BQeQXsDrMlT5BA8BqkYV+f5PfR96++sXtyR0p0f87jLi7X7AmQvcj1 kWoFG/Rr/x59lrDLSqTnA06OlkCSjdD9Y4oe7c/m/rUNpBNuGSpcfMBMAsEGk230Dl5p zu3EMbysl6B+EjkGSqrdwmteTdO9Kmbjd0z+3KmccyOshW3Q4Loy2z9HrBtokPs+M6om FpAzaIMM/y8YtnirTmdoXE0rmQqSducEJyljp954pLNTPq3ZBjopuXw8YzEmgURh48QZ 1Zrg== 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=+gi1HntZRFuvQIrqZ0PuicKIoK+2ctKYwJTZjGiG/jA=; fh=gFp5MordTjJEvYeDIMFqr/fwGBuFLVzJJBWwOclbTK0=; b=TxlmvI9CPU2aPK+tlGAGgXz1ZTH6x3p9Sa7fNnkQeF+s6GKz7TW5dPSBmFu2llK14p GOmZ7gMydSafJAPIpdIHg4qhkRiBMel3uccy0RzvBe61exsWQRAPbyC5ZHbdGeCJq2w7 SGl8H6SCxVzl12DW8CX4bSSsnA1Wn7gN6VToJw0+2cYs6RDavOh1Y/jVEA/xPJWxAAuD Ey0d43kWUi0sIOn6epSLm0QMPTLYH47mZO4YKEeXvWKxyRXldvpe2jv5u2zrP/WNxqLx aBlpzHSy14PEPUIoRbhQHMFkJ7j4cZOKi2YLaJcod4EhAkK3JLjRxl81eDCz39wwrV5p M5bA== 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 k4-20020a170902c40400b001c5cf1c30cfsi6716687plk.435.2023.10.23.05.36.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 05:36:52 -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 E9B2C8068850; Mon, 23 Oct 2023 05:36:34 -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 S233606AbjJWMgU (ORCPT + 27 others); Mon, 23 Oct 2023 08:36:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233507AbjJWMgJ (ORCPT ); Mon, 23 Oct 2023 08:36:09 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0E8B103; Mon, 23 Oct 2023 05:36:07 -0700 (PDT) Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 39NBfTAS018126; Mon, 23 Oct 2023 08:36:03 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3tvuseydrc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 23 Oct 2023 08:36:03 -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 39NCa1Gb012929 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 23 Oct 2023 08:36:01 -0400 Received: from ASHBCASHYB5.ad.analog.com (10.64.17.133) 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 08:36:01 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBCASHYB5.ad.analog.com (10.64.17.133) 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 08:36:00 -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 08:36:00 -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 39NCZjdw025089; Mon, 23 Oct 2023 08:35:54 -0400 From: Ramona Gradinariu To: , , , , , , , CC: Ramona Gradinariu Subject: [PATCH 3/3] dt-bindings: adis16460: Add 'spi-cs-inactive-delay-ns' property Date: Mon, 23 Oct 2023 15:35:42 +0300 Message-ID: <20231023123542.582392-4-ramona.gradinariu@analog.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231023123542.582392-1-ramona.gradinariu@analog.com> References: <20231023123542.582392-1-ramona.gradinariu@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-GUID: kDawZ7TmKAsyvuJMglLC3ARE-F6KYtk4 X-Proofpoint-ORIG-GUID: kDawZ7TmKAsyvuJMglLC3ARE-F6KYtk4 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_10,2023-10-19_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 phishscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 mlxscore=0 mlxlogscore=903 adultscore=0 lowpriorityscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2310170000 definitions=main-2310230109 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: 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 05:36:35 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780549799434702593 X-GMAIL-MSGID: 1780549799434702593 Add 'spi-cs-inactive-delay-ns' property. Signed-off-by: Ramona Gradinariu --- Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml b/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml index 4e43c80e5119..3691c0be4f9d 100644 --- a/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml +++ b/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml @@ -25,6 +25,11 @@ properties: spi-cpol: true + spi-cs-inactive-delay-ns: + minimum: 16000 + description: + If not explicitly set in the device tree, the driver will set it to 16us. + interrupts: maxItems: 1