From patchwork Fri Oct 27 14:03:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Gradinariu X-Patchwork-Id: 158942 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp627791vqb; Fri, 27 Oct 2023 07:05:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IErPA/oNqQyPygMRBNUeUsRv54dkXHl+upSHqsj2zQnbCliyuwqw/2jyhNrB20NBFi8AiS3 X-Received: by 2002:a81:d308:0:b0:5a8:60ad:39a4 with SMTP id y8-20020a81d308000000b005a860ad39a4mr2648416ywi.3.1698415525865; Fri, 27 Oct 2023 07:05:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698415525; cv=none; d=google.com; s=arc-20160816; b=zQmbujp6WNheO+dr1pB8gY82lhLo9d/w9drdwOx88oPBqYrVtPn3sqR5m8CITQ5zeX LhPE8NBuaKAijmSJT0kHZMuX3YwbOr9GE8vdRUIWpLk89bMkJqTJnYzJo4kYOzkq4vsJ PlHYZNpKvDnktDYhZlx8pNAp/Pd+o58nLB9Or5+Sbjf5u0TRROBjI2/oMzRziR2kG7+q z18hmvl24VkJ9ozcx3oCtMP1B/Em57viZi3OvEbQSwWqAD7GCKyfvgh2hYzF+KKdS26j nz5IgO/QQtMP5iHIW1ttt5zCln4fyie53sSTAlyFPklQzw6WRWMpx6jqFRbkNUJ4ECqu Kubg== 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=MDCfFm0dWjn1Hav42RWIY1THwXvpUd9ysn0y0w+5cemm78IreNJDcnS+fVvEuu9w1E tVksbAAQ+Mq7XYvt3nhudQlezA7eyvN8lgW2WHwnaeyCcuuEk6wzLbcFB3UbPjX539AW LYy6uWJzPUVkteEV6A+9sGOG/4f8HmHnU0aM/hHvCCyhevwtAYFbK6dJpmQB97NleqTO 0809ai0kVFVBXNoHq4mhnWs6zHpNb3jUa+jW9fxUa3509bSDCyPVoDJrAbFsNiVlhQcQ quRxvuLvJ96VYxyTkSTfQGcxuNCEw/XHOWE/DNXJxMDEcfkld9dq2dHPkXdM7MPMZOpk 1LqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id y128-20020a0dd686000000b005a81db314fdsi2671521ywd.420.2023.10.27.07.05.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 07:05:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 85A2A8351CC6; Fri, 27 Oct 2023 07:05:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346088AbjJ0OEy (ORCPT + 25 others); Fri, 27 Oct 2023 10:04:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346055AbjJ0OEu (ORCPT ); Fri, 27 Oct 2023 10:04:50 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D63AEFA; Fri, 27 Oct 2023 07:04:48 -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 39RDhIDS028809; Fri, 27 Oct 2023 10:04:16 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3tyx01pa80-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Oct 2023 10:04:16 -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 39RE4FFO048297 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 27 Oct 2023 10:04:15 -0400 Received: from ASHBMBX9.ad.analog.com (10.64.17.10) 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; Fri, 27 Oct 2023 10:04:14 -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; Fri, 27 Oct 2023 10:04:14 -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 39RE40ha022983; Fri, 27 Oct 2023 10:04:06 -0400 From: Ramona Gradinariu To: , , , , , , , CC: Ramona Gradinariu Subject: [PATCH v3 1/3] iio: imu: adis: Use spi cs inactive delay Date: Fri, 27 Oct 2023 17:03:56 +0300 Message-ID: <20231027140358.328699-2-ramona.gradinariu@analog.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231027140358.328699-1-ramona.gradinariu@analog.com> References: <20231027140358.328699-1-ramona.gradinariu@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: NBektEkTcVs1YbqTrsoCrRS82pAJoKDJ X-Proofpoint-GUID: NBektEkTcVs1YbqTrsoCrRS82pAJoKDJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-27_12,2023-10-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 adultscore=0 mlxscore=0 malwarescore=0 impostorscore=0 clxscore=1015 phishscore=0 suspectscore=0 mlxlogscore=999 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2310240000 definitions=main-2310270121 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 27 Oct 2023 07:05:09 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780917749402724014 X-GMAIL-MSGID: 1780917758036179160 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 Fri Oct 27 14:03:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Gradinariu X-Patchwork-Id: 158941 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp627434vqb; Fri, 27 Oct 2023 07:05:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGmk3MfWUDLhJbNwcZCyWbtib/4yVr4m5jaChwRIVn51RCyZuj6iuvwRoVl5oh8SpRP4N8n X-Received: by 2002:a81:b721:0:b0:5a7:da0d:e4ee with SMTP id v33-20020a81b721000000b005a7da0de4eemr2983624ywh.16.1698415504179; Fri, 27 Oct 2023 07:05:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698415504; cv=none; d=google.com; s=arc-20160816; b=ZkUV46vU0Ubua3O5M0JNfOQHb5FxhLyVuIWLQr8MSbUDpZ4oZxmfnN7KrChwb4DlZ9 wGK1pnYlaekR6pa9KTHbVnIYDAagmCM8j1YSonnxvla/TJ/qyclw8ZoHrLME3XQIDD18 /OfaZBKdQjG0/v9/fYxnNCDQlkCB3eVS5F5nG0wo2CoAjqsQaoWQOjgBTg4NLhLsf5dj h9ePEzcwaol81GlWj431x5RyQjtAXgSqnMDVRIfPycDpP8B/AhGI7kKOAsAlA/2A/kVq HU7sijktpl0L5Bzrf4QTfpcBRi3LYqjquIYL0w7M80DDxPAMzqweEm+rhFtCK2WUzSlV ceKg== 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=y7nv8+ZEXdZxuVbCJ2I8TWjfMnCQLUn/n6ergKkcTks=; fh=q6c4zBgFhLuddwaUwYP7JY14u5j0N4BCWlj0zpBhTP4=; b=gQhtFA0DAV74w6hK3s297zWOez4BvED89Ls2CiSBO4thyhOZOYUTW7uvcZfMREYPzH ACCvsRo22pnSvdfFr1PinDabqm1fqiNdqoV2os2itBpzPVIW5nW4HFqaM0kvmnfnQ1P9 5hQDRhOnIDr8GxYYfJrVkw+/BGr/eiYUrjvnHeJmR4MuZ2AUZ46mVEZA7/tvLVrr5ZeJ hUpW5j+AWGHr0y0uxOBvE7EkjBkCAjHRm4pAu6Z5CaeauY+ulsWP6EjjcRtJtWdscyoV GDeHjvYByDxLDBIJ2ofVbWpqfl9rTjfdjESFH2+1CDiQAbwIcOPNo9GFmb+VT+gapL3/ XAHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id i77-20020a0ddf50000000b0059f5d9d0d7bsi2402732ywe.414.2023.10.27.07.05.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 07:05:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id CECC38351CC5; Fri, 27 Oct 2023 07:04:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346046AbjJ0OEv (ORCPT + 25 others); Fri, 27 Oct 2023 10:04:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346016AbjJ0OEu (ORCPT ); Fri, 27 Oct 2023 10:04:50 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 729ADD6; Fri, 27 Oct 2023 07:04:48 -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 39RB1GmZ028823; Fri, 27 Oct 2023 10:04:17 -0400 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3tyx01pa82-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Oct 2023 10:04:17 -0400 (EDT) Received: from ASHBMBX9.ad.analog.com (ASHBMBX9.ad.analog.com [10.64.17.10]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 39RE4GKE052742 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 27 Oct 2023 10:04:16 -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; Fri, 27 Oct 2023 10:04:15 -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; Fri, 27 Oct 2023 10:04:15 -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; Fri, 27 Oct 2023 10:04:14 -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 39RE40hb022983; Fri, 27 Oct 2023 10:04:07 -0400 From: Ramona Gradinariu To: , , , , , , , CC: Ramona Gradinariu , Krzysztof Kozlowski Subject: [PATCH v3 2/3] dt-bindings: adis16475: Add 'spi-cs-inactive-delay-ns' property Date: Fri, 27 Oct 2023 17:03:57 +0300 Message-ID: <20231027140358.328699-3-ramona.gradinariu@analog.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231027140358.328699-1-ramona.gradinariu@analog.com> References: <20231027140358.328699-1-ramona.gradinariu@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: kVJ37_Qe97q7G3ejgiVY6TT9HsmxqoUp X-Proofpoint-GUID: kVJ37_Qe97q7G3ejgiVY6TT9HsmxqoUp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-27_12,2023-10-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 adultscore=0 mlxscore=0 malwarescore=0 impostorscore=0 clxscore=1011 phishscore=0 suspectscore=0 mlxlogscore=999 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2310240000 definitions=main-2310270121 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 27 Oct 2023 07:04:58 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780917735429310345 X-GMAIL-MSGID: 1780917735429310345 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. The specified minimum time may not be sufficient for all configurations. Signed-off-by: Ramona Gradinariu Reviewed-by: Krzysztof Kozlowski --- changes in v3: - removed description - updated commit message Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml | 4 ++++ 1 file changed, 4 insertions(+) -- 2.34.1 diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml b/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml index c73533c54588..9b7ad609f7db 100644 --- a/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml +++ b/Documentation/devicetree/bindings/iio/imu/adi,adis16475.yaml @@ -47,6 +47,10 @@ properties: spi-max-frequency: maximum: 2000000 + spi-cs-inactive-delay-ns: + minimum: 16000 + default: 16000 + interrupts: maxItems: 1 From patchwork Fri Oct 27 14:03:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ramona Gradinariu X-Patchwork-Id: 158943 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp627799vqb; Fri, 27 Oct 2023 07:05:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE28lAKHHbDLH5jxieHg5pBWjQt5oE2EGsagnUIa+ttYkuQfvNnyYoZERJPn5bRMD8ydBki X-Received: by 2002:a05:6870:938b:b0:1e9:f0fe:6ba4 with SMTP id b11-20020a056870938b00b001e9f0fe6ba4mr2841029oal.11.1698415526224; Fri, 27 Oct 2023 07:05:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698415526; cv=none; d=google.com; s=arc-20160816; b=qFBWBHnVI6m2t1vrV1u1TfgZHqUWrz8yG+bDWFmLGVXVBDFp/oXQQS/9Wc58T7W1ps e5OObod/SOgXFB2orG2XGaoSVyCcmr90Z64NWOS0aY/97PrqttMis5feGZX7BTWLVaEp s75hSIySevjcNohOeTA8z6sJOIv5AQHi8/ZiuF+/IbtSR34OzKIGjtqU4u3VzIk3Cl+/ 5RnEQ6gq8OY0Qlc7UIa+hzvcuhNWxeVSODI2BvRWrnw1Y2LjIxIh0/GJ4vxkr8lTiETV NAjPg8fCt9A39EHEdX4q3V9qwnYr0PBajybKKi9d04GHtI4UhLQmL6mGQ9OWfQT9jy/5 W72Q== 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=tf8mlIUAFLtHWRG+POmU8tJf7w++k+SHWHCLx+vXVVU=; fh=q6c4zBgFhLuddwaUwYP7JY14u5j0N4BCWlj0zpBhTP4=; b=bjcUJc9oWPy4UWyqbhootVS6UUKJBAKrj8GZIxf9t5Osi8hgWIP5yiw8orB37bDVkW ASK89cQtVrWbyckE3ar2LhiBKesPZ0o0hNlkUrsyFCCI1z7OFPzeIMkRPgifLvVRJ2tz +5zxuRooTgPqRxn/bRWO1eCngOvNlhgiBgr2eC9pDyt4KR6ptg9/YKrnWNUVlq55crpC mIAO+GeU0er1ryOnEv4UZFretS+6aZlYHjTCvS7KCcOUHP73ibwecPsGbid06DMyGLyw fGU/cvRLr0AIfsh60IE9LqApBT9xag/tKT68hh16MIWu5cb7km7K+uZuz52hbqRTf9xs z4/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id w7-20020a056870a2c700b001dd5ca8e6f9si470404oak.272.2023.10.27.07.05.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 07:05:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id A0B3C8332E8D; Fri, 27 Oct 2023 07:05:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346097AbjJ0OE6 (ORCPT + 25 others); Fri, 27 Oct 2023 10:04:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346076AbjJ0OEw (ORCPT ); Fri, 27 Oct 2023 10:04:52 -0400 Received: from mx0a-00128a01.pphosted.com (mx0a-00128a01.pphosted.com [148.163.135.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 635A1C0; Fri, 27 Oct 2023 07:04:50 -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 39RB1Gma028823; Fri, 27 Oct 2023 10:04:20 -0400 Received: from nwd2mta4.analog.com ([137.71.173.58]) by mx0a-00128a01.pphosted.com (PPS) with ESMTPS id 3tyx01pa89-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 27 Oct 2023 10:04:20 -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 39RE4I3q048300 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 27 Oct 2023 10:04:18 -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; Fri, 27 Oct 2023 10:04:17 -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; Fri, 27 Oct 2023 10:04:17 -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 39RE40hc022983; Fri, 27 Oct 2023 10:04:09 -0400 From: Ramona Gradinariu To: , , , , , , , CC: Ramona Gradinariu , Krzysztof Kozlowski Subject: [PATCH v3 3/3] dt-bindings: adis16460: Add 'spi-cs-inactive-delay-ns' property Date: Fri, 27 Oct 2023 17:03:58 +0300 Message-ID: <20231027140358.328699-4-ramona.gradinariu@analog.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231027140358.328699-1-ramona.gradinariu@analog.com> References: <20231027140358.328699-1-ramona.gradinariu@analog.com> MIME-Version: 1.0 X-ADIRuleOP-NewSCL: Rule Triggered X-Proofpoint-ORIG-GUID: i09VU6HRxbq9GHHEBk8fb73x9FrSS4iJ X-Proofpoint-GUID: i09VU6HRxbq9GHHEBk8fb73x9FrSS4iJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-27_12,2023-10-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 adultscore=0 mlxscore=0 malwarescore=0 impostorscore=0 clxscore=1015 phishscore=0 suspectscore=0 mlxlogscore=982 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2310240000 definitions=main-2310270121 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 groat.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 (groat.vger.email [0.0.0.0]); Fri, 27 Oct 2023 07:05:23 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780917758896216614 X-GMAIL-MSGID: 1780917758896216614 The adis16460 device requires a stall time between SPI transactions (during which the chip select is inactive), with a minimum value equal to 16 microseconds. This commit adds 'spi-cs-inactive-delay-ns' property, which should indicate the stall time between consecutive SPI transactions. The specified minimum time may not be sufficient for all configurations. Signed-off-by: Ramona Gradinariu Reviewed-by: Krzysztof Kozlowski --- changes in v3: - removed description - updated commit message Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml | 4 ++++ 1 file changed, 4 insertions(+) -- 2.34.1 diff --git a/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml b/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml index 4e43c80e5119..4cacc9948726 100644 --- a/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml +++ b/Documentation/devicetree/bindings/iio/imu/adi,adis16460.yaml @@ -25,6 +25,10 @@ properties: spi-cpol: true + spi-cs-inactive-delay-ns: + minimum: 16000 + default: 16000 + interrupts: maxItems: 1