From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 6F62B14A60F for ; Sat, 18 Jul 2026 22:45:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784414728; cv=none; b=gUrGLrh5CGx4PYM8cHxT43+RN6th5uszVM2Qd3Epk0IvDjhWzDBVNfyLTTCpf+pi1FqlneWbSowCehQIHGsu5RXyRO3NbOoT5ZxLrNkQHQQS/stv910cTgl4NeKWLbbgf4h8FobI70EuakiDBGAu6wPc3DlG1r+JoZ/kR1D3uDA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784414728; c=relaxed/simple; bh=zFJz1TFoY7str3S0bdvPAXXa1XyZo8BVY0uJKI25kXc=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LnNw2JZGJe6czvVAKaJQDWTbg3UZ+Ab5yW7WfVOgKAeJG/Ib+Nj0G5Ra9S9+kxWBoV8reO7EzZ+XqoET72iOd/nJhgZ+C90OE2GVcVNCX0Rjge9bS9EpLiE+5rEGXHcuVsKHnDzK7VZg8eJZ3z2haAqgN3G684kYDV2jtfp6Csk= 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.180.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 (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66IJr5kk1558945 for ; Sat, 18 Jul 2026 22:45:26 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 4fgd04rm6v-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-38e5a616d07so992236a91.2 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=qHIXKqNAmiHtowRUDjQT7GmcDf0kjwbVXuuJiomINhLX57HO6N2hCRjnVT0ljkP3kk TVxTy3OYW/OaNlfbiBscIo3QIF2oQ+GJmRW0SxY9RYFQpldauRVFeJ2CV4cX9F7yazDF VlhMy9tM5t1Kke/SDsO236zBynzxkNJII9dp45YFagGCpuCIkrQ7Bg8pE6oW8mz3wVxd 8eNeVGSW6F4HF8gs4gXzQx00BX2m8qW9uFilDcqKdoIH+wyhzh/EPf2SNKZmYq7T5b2j KTLxHybKZKbv/bilhhBIEZ2iz6mWjuKwnGdHM39fqxkflGt88tLe48Qs1ogDEfW1xRuA yPBQ== X-Forwarded-Encrypted: i=1; AHgh+RoeypckeIyBzmbutt7WiC43n26OM3KZINy7QXS7BfZBVbB4kdz407vtAblV6R7sxJlFmZFLOrorYcNh@vger.kernel.org X-Gm-Message-State: AOJu0YxYdSye+vd0LRdp6BH71OAtvKHkfu3QbM3ce/wV2TAyzSxFJXHR w5aPKwK5RHFf/puOqI5asVjppY+YT77X3PoqNXQGy0+cjagMpsk2M7qnRlETWaAwRMtyhboFvJZ Q+UuYFTwFpnSpMDDpRQ7zWmcAWYZECOjVZycDRm1hgkwtkuy5Li5Opp+UknUDt4T41DR+zexS X-Gm-Gg: AfdE7cmYZIv1+RgYWvQQJN+fKReQLxcKPMpfHdGRiF/fvQa+i5Y6UWx4eXj9IepVTur cCFmWzMluEJHidFEGWxXOBlH4Q9tzbxQiXaG3qAkP2/r79ppcKNYTVU0E2sJvxkc7R5sgY+uEYJ Dvf2Bznn0sNIpGeNhBhU9gC20Kb+ppJ2I+toVokVLmWRWxRc4swUE6MbcLCOGAOSMnkvLtYIvDX fkD+O4wur0ZtpETX7hFITTwAueJ5PPGsDtjIe5QIIYrdH1rv2rZMxJv/vhWJxqVb8dK6KS2qz1m 9RQABam4IUh8SaF+bpWwMvULZys1MqQuY39u4Ct2GlQC8hTKu2NohFJgGiXkwLaIH4+WMi7V/j7 pN1FKrfZRDPjfHXJd X-Received: by 2002:a17:90b:3f85:b0:366:10f1:3d91 with SMTP id 98e67ed59e1d1-38e4b3dc094mr8450572a91.1.1784414724950; 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: devicetree@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=POs/P/qC c=1 sm=1 tr=0 ts=6a5c0206 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=ZpdpYltYx_vBUK5n70dp: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-Spam-Details-Enc: AW1haW4tMjYwNzE4MDIzNyBTYWx0ZWRfXyRaWq3hBOrMA 4piW7/5Vcjuzibe4uWoNondz9hX6UryVKKrGm/Nn8+2+irlQuwEu4GMJGiwCwZCFtlG5PkHxamp yI52TqaK4upchFAHQGFdqI6GR/XLLOVyo8hcJLKEPdRGClk8YRC2EamMxQTYxm3tWb1icMg9A92 mTo27wW1yVMG3gOmXbBRoTN1IGeAnk0XI2ki3wTyUBgnMwxH3AgcWcUTSayexYune0Ba6j+/ecd QebFrF2E7RDcIUSKxY3nEzDvJMmtntm8wbRzf9FKSeCAbcAO/om+S23oNKYql9Thp5AnAdYbzk2 2xvmA261AI7+ZdeWHsXY+sH1/A0ntCXJc1yYrXvQfudaJWrTknRFPQv5At8RFIMyJHuHvpW6pVX opb7SQnNiN6PqjMJebzomB/UsEVSylU0nbpLSyQVAgpjyvsXfIVTz8qe+3eVg1QiBO05XosBIO/ pf22eZOrxhDphu3lOQg== X-Proofpoint-ORIG-GUID: BTzqNVNBQwt3ylCg8POf-TGLlH3bQR2a X-Proofpoint-GUID: BTzqNVNBQwt3ylCg8POf-TGLlH3bQR2a X-Proofpoint-Spam-Info: AW1haW4tMjYwNzE4MDIzNyBTYWx0ZWRfX1ArP1WyERNuP H0w0VwBnJXQ81vpfqQtpUR5XJJ0Aa+gCM6cv/208RrjfWZ+3TRABHV/K7B2WMKnm6tYHaizrrRo WwUD+JoUDanj1/OCXub9+az+VsY1q2g= 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 lowpriorityscore=0 spamscore=0 adultscore=0 clxscore=1015 suspectscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 phishscore=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