From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (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 7B00A33A9F5 for ; Sat, 18 Jul 2026 22:45:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784414727; cv=none; b=cm5P1AJFVnEYPPvLSrQWBQfPTT5uVI259L4GhYsKj63Br05aVCynx4+rVwLVbd0fXbwhQ0SSXQVuEZ/Jzu5s4fCYMhnKynfoG5zTMplbRNPjGDBR2XWoxevCOLYw1KZfOygsNSEfsrKGy+4H03fRDx4woAyI25YF0ODtqGPQS/k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784414727; c=relaxed/simple; bh=zFJz1TFoY7str3S0bdvPAXXa1XyZo8BVY0uJKI25kXc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=IBX8pFCaM/v0xt3m/HqPr1ckySg2jCNuJ5diw1na4DT09a777i/8z8pGHT29zMG/eS1d1vxsl63msWsm5wvLI3KorBFQ9t6an+CQYnZGOMjAbi+p9fO4v441hGMZh3B+wFiRaItpF9uVmCVAEFLlL5YfMNI4jOKLZflaHtJ5/JI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=QXlEQ3rv; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Y6CmFech; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="QXlEQ3rv"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Y6CmFech" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66IJqG7n1769540 for ; Sat, 18 Jul 2026 22:45:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 6R7VFVtjJrSn13IAfhDQXBcntPDsXnb7m6UQzlLcsZ0=; b=QXlEQ3rvfq1FvJqW 4jvcSSvJWst9Tdd9fSeC4Fuses/YFcFLn+aneaxVBLvDbKrLWK5JmMuQrxq8Nu0V S95/UfGqnelepL0AD8T8CutSxrZPQzu/WLU0yHurTm3eEfKWvqhdrts5sqOyAwzB 9Ue/zzG2EwXBGtF9MSBwjWjxkHOSz4VsZFVwgfs6wVGiKs56X5885KlzNj3s9msG VQchWs/9GGtyRLwh9PKNGqNu27vbG+dixPsCBjZcM/wpP3L62RvHsPwjWEl9L7Zl IDOHdNFsPbmDPDfLlkXBRL109ZuHom2PtRxycbVXdXv7vjv+X5JR/v9Lt3u4S56M 4+5hTg== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fg2d91p4p-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sat, 18 Jul 2026 22:45:25 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-381250979d5so6236019a91.0 for ; Sat, 18 Jul 2026 15:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784414725; x=1785019525; darn=vger.kernel.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=6R7VFVtjJrSn13IAfhDQXBcntPDsXnb7m6UQzlLcsZ0=; b=Y6CmFechPFgW4x6NoHZqgd0dDRGnTlMR2yeiukVaPW+R1yuaiaKS6cZSJEYLxekpfP DUl6ZIOqvVNDvLPIeCUmGc3kSRgVH52jS9MwMMmXS352suZoB1sDLlxgQ6dbMc1aALC4 EosPciGeqrCGDJiKPrJ1AzR5t24/SwIP8QW6yH59Nprc9vKIQKpz2/DbPli9wj/kyVJ0 J6P/wRMmZ4eJJLkk1vdpyMpddE6jzZoHp38EDgkvz/KORuELlInYVMSvZf73iHum+fVr 2tQtHAQyXuQBVOtu1mQOInZS9FZFFy9R8akZtkKhFLqOEjtfqZl4F7kGlN+N3HM3KanP pJAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784414725; x=1785019525; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=6R7VFVtjJrSn13IAfhDQXBcntPDsXnb7m6UQzlLcsZ0=; b=GwIz0bzJlRjZpKHi0VZ4GBakQjUZ9Gl1a29ZdZfSvB6mRdOKxTWqZd3xWJUTsBQHYm pFDpNIGd/F9XZJck+1lFhwnSrHGNUv5xPOjV94eREYAVkzk06yCMVw6SU+T3TGaKMWnX bJ+iVn3XeP28zQg3vIOZ51tUZAwNH/3F3cEWslZGtoudi/b5Kl0mQtToKjqU5gaZ0ifd cl2OrxbSmzrKpblL7YVs93pMCjtp7XohRBjETEXkUHw/jRE3sceW+J1tqQDEVR1UdK6F Orw0piDdAO0MIykzKCDWyoERuUo7waPHG/mXQqtTPUQ8FG5MATobwMXLVjXRElRL2VIt cENg== X-Forwarded-Encrypted: i=1; AHgh+RrS3KNdhAWoZ4wToErSs6Z68zEq3OmzXhCImYqp7CG9tNxp9ZpsO3xyNoZushyl1WTBB+DL/KPjGNgjZoo=@vger.kernel.org X-Gm-Message-State: AOJu0Yx9B+tDUOMEIxfPs1fKH9mYQParO/3up+GzsJmkbaXLVD3b54Or Pcnt23utyNLJkeX319CgLZMa41JsD/VHzIpQmyEX+4iPSMdjKl6DiPxhqGfaZ5oy2Y1DsvuWID0 c3Ajf3XtM3KWSc4QL5riLxLoSLh3xQ07wZDR/FCPZa3TvDmiO63E1cxMnWlgeuwvrrMc= X-Gm-Gg: AfdE7clfrig9ZJX7U+bpwxDbs+mrSr7pP2WkuxwzUxcOkg5B+UFgI4KcuFNM7S5Kisg GWod07A8d+qhMU9g5C8qMz9mvTlqom4I9aRCXD2ZMS51/kG/PDwt1RZ4IU7qyYxvBx9Pguqpzt7 G1w23t1voVoE5mmhjdEOOJaxuV5pAY1EKnwpmUWbQqX0Foztbsm9vAKOhRWdq184QQ0oMW8ukjK TXRE1XhW4UdoNL+FD62Mz1sW32IdryZE1Lsvf2zGDfR0HeOwZvLt2qXoQZhJiJ7FdgVCV4DVtgS P38fa+3FLjvmBhNiT4WUIIzbPimoT+WRmOP1oPCICaJ10q+Pd6QG+By6DkMmk/xv//HbGWUJPBt 29SLaiyFGhiVwAnY3 X-Received: by 2002:a17:90b:3f85:b0:366:10f1:3d91 with SMTP id 98e67ed59e1d1-38e4b3dc094mr8450576a91.1.1784414724957; Sat, 18 Jul 2026 15:45:24 -0700 (PDT) X-Received: by 2002:a17:90b:3f85:b0:366:10f1:3d91 with SMTP id 98e67ed59e1d1-38e4b3dc094mr8450557a91.1.1784414724449; Sat, 18 Jul 2026 15:45:24 -0700 (PDT) Received: from jic23-huawei ([50.35.46.84]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-38e4aff383dsm3399462a91.8.2026.07.18.15.45.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Jul 2026 15:45:23 -0700 (PDT) Date: Sat, 18 Jul 2026 23:45:19 +0100 From: Jonathan Cameron To: =?UTF-8?B?UGF3ZcWCIFdpxZtuaWV3c2tp?= Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, ak@it-klinger.de, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 2/3] dt-bindings: iio: proximity: Add Cytron HC-SR04 Message-ID: <20260718234506.6aecbc9b@jic23-huawei> In-Reply-To: References: X-Mailer: Claws Mail 4.4.0 (GTK 3.24.52; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=HpxG3UTS c=1 sm=1 tr=0 ts=6a5c0205 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=qC1CW/w66vtJz1P9yTJxNA==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=gEfo2CItAAAA:8 a=OyMgvzc1AAAA:8 a=jYvFoifOAAAA:8 a=pGLkceISAAAA:8 a=JtMDQYCtEKDs4ho9HbIA:9 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 a=sptkURWiP4Gy88Gu7hUp:22 a=BRz8ttEm2lkauKK-z13Y:22 a=Kz13i9gsNeNICKTRhWM7:22 X-Proofpoint-GUID: HSQ2OR_L0SMYL_IJATD_SzQdLvTm2OPO X-Proofpoint-ORIG-GUID: HSQ2OR_L0SMYL_IJATD_SzQdLvTm2OPO X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzE4MDIzNyBTYWx0ZWRfXx4OFK8i6iUQh /9lGWEaLOTn4yu/LzlGFIdRsQkDg2nB22eKML03/vET8sqOUAyvKSrhiFuyW/vg+3lFSbTilQQN pFEPLtArMx43WAWJPP+C2PR3vS1U9fhlOMuULWaY/i712G/egwqHSPSGfJyepbrFE1ghSP+22Qx vWMMid/KaUyzioWD2WptySiJLJvaZ7PWB8c7HtbNOso+0hkJ/wHaoDj+8H6ASafjwfcK3ls4C6B hj8U286SGr4y+mil+yI9sH/LwoyHwJQib0WHX/agfIbQcVEuS4G82n4PhSQ1c/AglehJ0jMhZ18 5vweClw38aDDdLWs6SLrvme0ePFSE5Bvm+sE6HRBVV1BugGDcaYSKdnoIliDqSXvGTFfPBTesFp zdghJaUSWXp1k4w+edwxZZ7/94VUjLyT9Kn63CpYuWg1vDbGrmJhGbqjqd5WzG3ClONwSc7xSoL Ci8rmT5lFo2RPBq/nDg== X-Proofpoint-Spam-Info: AW1haW4tMjYwNzE4MDIzNyBTYWx0ZWRfXyBloAnhVzMqF SdwLnqnCClOn2s01vQ0v2Td+Bk56d9a/CKkxAOJs1guxq92uk7H6M0pNrcBASf9dCJFX7bEMrnX kU/ylE8KOSZmmwcfquyTTl5RSC2WuW4= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-18_06,2026-07-17_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 adultscore=0 spamscore=0 suspectscore=0 lowpriorityscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607180237 On Thu, 16 Jul 2026 19:35:55 +0200 Pawe=C5=82 Wi=C5=9Bniewski wrote: > The Cytron HC-SR04 starts a ranging cycle with an active-high trigger > pulse of at least 10 us and reports the acoustic round-trip time as > the width of an active-high echo pulse. >=20 > Add the cytron,hc-sr04 compatible and a reference to the product > manual. Update the trigger GPIO description to account for the pulse > durations used by the supported devices. >=20 > The interface matches the two-GPIO protocol implemented by the > existing SRF04 driver. Is it suited to using a fallback compatible to one of those already supported parts? This should say where things are different. >=20 > Assisted-by: ChatGPT:GPT-5.6 Thinking > Signed-off-by: Pawe=C5=82 Wi=C5=9Bniewski > --- > .../devicetree/bindings/iio/proximity/devantech-srf04.yaml | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) >=20 > diff --git a/Documentation/devicetree/bindings/iio/proximity/devantech-sr= f04.yaml b/Documentation/devicetree/bindings/iio/proximity/devantech-srf04.= yaml > index ce795279839e..f4237ae612ab 100644 > --- a/Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml > +++ b/Documentation/devicetree/bindings/iio/proximity/devantech-srf04.yaml > @@ -4,7 +4,7 @@ > $id: http://devicetree.org/schemas/iio/proximity/devantech-srf04.yaml# > $schema: http://devicetree.org/meta-schemas/core.yaml# > =20 > -title: Devantech SRF04 and Maxbotix mb1000 ultrasonic range finder > +title: Devantech SRF04 and Maxbotix mb1000 and Cytron HC-SR04 ultrasonic= range finder If we were going to keep the list going it would need to be: title: Devantech SRF04, Maxbotix mb1000 and Cytron HC-SR04 ultrasonic range= finder However, previous experience suggests that sooner or later it is better to = just jump to Devantech SRF04 and similar. > =20 > maintainers: > - Andreas Klinger > @@ -21,9 +21,12 @@ description: | > =20 > https://www.maxbotix.com/documents/LV-MaxSonar-EZ_Datasheet.pdf > =20 > + https://botland.com.pl/index.php?controller=3Dattachment&id_attachment= =3D476 > + > properties: > compatible: > enum: > + - cytron,hc-sr04 > - devantech,srf04 > - maxbotix,mb1000 > - maxbotix,mb1010