Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp93643rdb; Sun, 14 Jan 2024 07:56:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IF74xX1ga8iRFnD30M9sRVxdYmxxYDPtxOmYyCFm5wO/R/4rt6qfGhlWgZhJ2B+a3OQypYk X-Received: by 2002:ad4:5e85:0:b0:681:197a:35f4 with SMTP id jl5-20020ad45e85000000b00681197a35f4mr5117589qvb.6.1705247760106; Sun, 14 Jan 2024 07:56:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705247760; cv=none; d=google.com; s=arc-20160816; b=bGJ5Nualv1W/dbrvstQ6rqlIaG9LwD7Nf04toNJUikGanJCRugdU1+993lQkOD21TF wQm6JbMs8YDbfQwOW5roNwE/m+3M4FUmasIMlzj/Tfzzh3XEVRbEv33OYfBRnmBAJAaE p3N4+PQcOr089sH22EYq2I8U5C+kF/LHyijwI7m4YOkIo6VUgewGLw2U8V0Y1iOrA9Wp 9towD/x9R90u0QdAm6TYCMsbHDkrZpNiXhDcEtX+3vlbN8EqWhFsgHRorY1HXeVLDi4d KcyCmbRaoYOXPOX14JRm0e+jrgS+3k6cUL2jaiPglhjOVtTKOlrSjxEyS47fRkS9smzn SdOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=g2aUMEjKbXUbZpLS1Bx2+nPZs3/xjW05yWubF1D71jo=; fh=gl0JZRzbbqi/p9SZZA+CrFGYqc+R5d1T7D/4U/ndMc0=; b=nyv+W/4qQGHqBoDn5T+LpRXDMJ5tNGdK4YFtaSyjZyHtG0kAVb7YBcZ/bIvXHPpsh2 xUXsyNgOUNUI0wenIR4vT/ufuqpal/pXM2PENOLZYFdjE1poeh5xLJTTWW/3C9KcbAdj D3gcRPwNx1qhZ7OxpC7Wps4bN7hvSvB8bMuEjemmxYjTLeBMvKkj6aH1vURyB3MzPCC3 8J6/wA4E3tko1rP46LuBSIflYcp2JdoVt/xmFOW1qoUPX4e/YFQbVhQB5Hstq0y2EOqf 0v8D2lLpXb+IROySLVi7qnGkMn3arPuszlbzO5KIk2Trlk1ikBZ3z42mboeFVLVjLkhu 3wYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N4cWL4Ri; spf=pass (google.com: domain of linux-kernel+bounces-25507-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id n3-20020a0c8c03000000b0067f0d1677e7si6365625qvb.517.2024.01.14.07.55.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jan 2024 07:56:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25507-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N4cWL4Ri; spf=pass (google.com: domain of linux-kernel+bounces-25507-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25507-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B568B1C20A8D for ; Sun, 14 Jan 2024 15:55:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EAE993D8F; Sun, 14 Jan 2024 15:55:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="N4cWL4Ri" Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 676E62582 for ; Sun, 14 Jan 2024 15:55:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-3373bc6d625so6771918f8f.3 for ; Sun, 14 Jan 2024 07:55:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705247744; x=1705852544; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=g2aUMEjKbXUbZpLS1Bx2+nPZs3/xjW05yWubF1D71jo=; b=N4cWL4RiXrIK1OXSGIzJxHH+cJrvpErqdiuNp0HJKM3gf7XgbRVCzbJhQpT7KcI1J9 UpYNp1WRIuKa7jrZyuFRRkxhxgp4Jt9Za7TS3jWRrLkEr3ta2sPWdhBmQVRXylYjh1Qe 7jOOW+5eXPFaXQOPMajOpUN/qSQVRtmx6SWaZpi7VVkX0TZiPtJLH2LKYwCjNnSguh13 3uletbEw5ZPAnNffMz8PZPFfpHoZ8XXRd2uwmcp+qk6Io0/GLF1VCGQLW/U/kGdOwlYg iVtl+9AbqoCv6tGPbTqo29OBvTqGInHegwTCWjM4M7iGazUXdWTu7xM38A9AsefFJZ6I L/Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705247744; x=1705852544; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=g2aUMEjKbXUbZpLS1Bx2+nPZs3/xjW05yWubF1D71jo=; b=ph92nRqZe887robUtiNl+TEQ5/ntbLUeZo0Gp3KEK3FIsk0LlmJRmYy+db+6iMa2fB fGm2nIZz5O+AIhkclCT59J996s1odm/Ske8NnC4ApGQV2G9ITE03dML+qOiWynLnoFxy Owr2t5Z56VMUFa+k8pUBgqGnN4JbvhqY2v8B5LoKw73hH0zJBKKKBP90Ap5RkJyifVK1 FATYHpXCw+zWqHehu6GA7IhTlmqXRRYg2rHLv3f4of075atcHNxaGK1+zC+HRQuSYNIr prHJmvbpqm0pgY5NEUs+esxUX26Ukw/+wfmaTZB9pdgD4FRjWPEu6rnj7lbyZKN04UG2 PoJQ== X-Gm-Message-State: AOJu0YycLsxVq8Y8zWlOvtlNO2lIFN3ucqj3bX8aDwh9R/c4aHeL4kSC yjgOcDRWwYnwbJKmY56U6UzUFQ00/LML8A== X-Received: by 2002:a5d:4709:0:b0:337:5c44:92fb with SMTP id y9-20020a5d4709000000b003375c4492fbmr2344508wrq.132.1705247744569; Sun, 14 Jan 2024 07:55:44 -0800 (PST) Received: from [192.168.1.20] ([178.197.223.112]) by smtp.gmail.com with ESMTPSA id z15-20020a5d654f000000b00336c9ad1173sm9410210wrv.26.2024.01.14.07.55.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 14 Jan 2024 07:55:44 -0800 (PST) Message-ID: <1b8cb3ba-6727-45ab-acaa-c727a0a7ad85@linaro.org> Date: Sun, 14 Jan 2024 16:55:42 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/3] dt-bindings: w1: UART 1-Wire bus To: Christoph Winklhofer Cc: Rob Herring , Conor Dooley , Greg Kroah-Hartman , Jiri Slaby , Krzysztof Kozlowski , Jonathan Corbet , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-doc@vger.kernel.org References: <20240106-w1-uart-v4-0-7fe1378a8b3e@gmail.com> <20240106-w1-uart-v4-1-7fe1378a8b3e@gmail.com> <20240113013917.GA3795949-robh@kernel.org> <81c79939-56cc-4d78-9552-56568999df09@linaro.org> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3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opXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 14/01/2024 15:47, Christoph Winklhofer wrote: > On Sun, Jan 14, 2024 at 11:54:48AM +0100, Krzysztof Kozlowski wrote: >> On 13/01/2024 19:04, Christoph Winklhofer wrote: >>> On Fri, Jan 12, 2024 at 07:39:17PM -0600, Rob Herring wrote: >>>> On Sat, Jan 06, 2024 at 05:02:24PM +0100, Christoph Winklhofer wrote: >>>>> Add device tree binding for UART 1-Wire bus. >>>>> >>>>> Signed-off-by: Christoph Winklhofer >>>>> --- >>>>> Documentation/devicetree/bindings/w1/w1-uart.yaml | 62 +++++++++++++++++++++++ >>>>> 1 file changed, 62 insertions(+) >>>>> >>>>> diff --git a/Documentation/devicetree/bindings/w1/w1-uart.yaml b/Documentation/devicetree/bindings/w1/w1-uart.yaml >>>>> new file mode 100644 >>>>> index 000000000000..6b90693b2ca0 >>>>> --- /dev/null >>>>> +++ b/Documentation/devicetree/bindings/w1/w1-uart.yaml >>>>> @@ -0,0 +1,62 @@ >>>>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >>>>> +%YAML 1.2 >>>>> +--- >>>>> +$id: http://devicetree.org/schemas/w1/w1-uart.yaml# >>>>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> ... >>>>> +properties: >>>>> + compatible: >>>>> + const: w1-uart >>>>> + >>>>> + reset-speed: >>>>> + $ref: /schemas/types.yaml#/definitions/uint32 >>>>> + default: 9600 >>>>> + description: | >>>> >>>> Don't need '|' if no formatting >>>> >>> >>> Ok. >>> >>>>> + The baud rate for the 1-Wire reset and presence detect. >>>>> + >>>>> + touch_0-speed: >>>> >>>> Don't use '_' in property names. >>>> >>>> I'm somewhat familar with 1-wire, but I don't get what 'touch' means >>>> here. I assume these are low and high times which are a function of the >>>> baudrate. >>>> >>> >>> I change the name to 'write-0-speed' and 'write-1-speed'. The function >>> in the w1-framework is named 'touch_bit' - therefore the previous >>> naming. >>> >>> It is the baud-rate used in the 1-Wire cycle to write a 0-Bit >>> (write-0-speed) and to perform a 1-Wire cycle that writes a 1-Bit and >>> reads a 0-Bit or 1-Bit (write-1-speed). >> >> >> Then probably -bps: >> https://github.com/devicetree-org/dt-schema/blob/main/dtschema/schemas/property-units.yaml > > The serial.yaml uses prefix -speed for the baud rate but I can change it > to -bps. Do you reference serial.yaml? > Best regards, Krzysztof