Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4443938rdb; Fri, 15 Sep 2023 02:17:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG12u7Oonn04pPWYr5bw7jrJLrggaR7f6prIUwF7j2IuMXKkVnHQGGURnMsj3A/bPIaXBlm X-Received: by 2002:a17:90a:c206:b0:274:7fbc:3f62 with SMTP id e6-20020a17090ac20600b002747fbc3f62mr1557839pjt.16.1694769470563; Fri, 15 Sep 2023 02:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694769470; cv=none; d=google.com; s=arc-20160816; b=fvnyyx52DmPezyB/uBysIOaYgVH0qRleItDG/e5LY+y1yTzGaIJmzOJ1LGpHUNOQoB TyTVQMubUGqIKpAaX0zrse6gbVgN/S42rEnbvb2C1hZakwTtSDgRJNuzpl2oAlouInuH /Du0qw22dxRexDxmmVnr5Ek9n7qhD7DQCJIktNE1wmxvz1jjEigo0WfsO2lqidxd1iRM 04Rzo7/wRoYz5hDISkP/Rcg1IjOu1Z0rFuYUQemGqDn67ldWyUq0bXwJWN5r0BHihNhU lKV0PquLr0QwoFYXjBG10jIvWUqzMugtHqTKLVMsghO2DeHj4dlPYD/6ILNmJJ48jCkb IPyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=E+yPchd1OF14YEx7hFDIQf6gB7Zd0Tpalu5rQeIxJmg=; fh=ynQMOU7eK9HMIgBfYV1tOxS7mreAxbUzU078dGucPcc=; b=b6tI+I5OU9tzkXiMO3hQgWkPqtf4JhPn8Gva74JYLiIxSBdDOFbJOyWdb8L7iJsjot OjruQx3i4BuledmcTmE1EpjulIuMRYqHAn9PHdDkXZY2yNt0Pt9Wvcrxl0zvX9zTyEZJ y5W8VxY02oBMafcDQKX1oceOQrd2YoiEZlWJwxP1w9a06JwXa8EdhuSK6DoMR/K5lAX6 gwmf001lily7+ZZU8NYPN2pm2+R0yKZ9MGrOdc+hycXHcXQGut62DPRFHioa0Dwp7URy F7OnXxdR3rxWCrEuM5SPQQ7NnZV7Qh2TtbRS5Tzv8F7GY6V4IBsb9B1ubY5hJdxjJAfd 4vpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p1W+rftk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id k9-20020a17090a910900b002639acf55c7si5246926pjo.7.2023.09.15.02.17.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:17:50 -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; dkim=pass header.i=@linaro.org header.s=google header.b=p1W+rftk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 995218370841; Thu, 14 Sep 2023 23:51:09 -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 S232310AbjIOGvI (ORCPT + 99 others); Fri, 15 Sep 2023 02:51:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230109AbjIOGvH (ORCPT ); Fri, 15 Sep 2023 02:51:07 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF8312707 for ; Thu, 14 Sep 2023 23:51:01 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-401da71b83cso20348035e9.2 for ; Thu, 14 Sep 2023 23:51:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694760660; x=1695365460; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=E+yPchd1OF14YEx7hFDIQf6gB7Zd0Tpalu5rQeIxJmg=; b=p1W+rftkN7pyqeh6UUjd26aMZUgtFNHsxZemI8zQkJq+1heReN9LHUbhAXooHRyNfO yy9ndz0Nv2kJdKOxOyepZkXu6RA08LIFNba7eeCUyNitDJVdkj7en/49ufdAR8ooF2hP G9qGyUwl1wtXc6yi4cmdKTUwZZLuHGa9YK865q06eP2AaiFf4sumNDchDZsywatfjeIH P1V9bM9lF8rUQifoVuX83vpPnyX0Q/8wmUsKHDxAv/7W5Nqxp2RTbzhc+kDW6wM9SOga flEzW/VES0aah+9b2JVc6Cv/hx+JrlY5rd0vV8K48OvCmoy3KacQxM0wzwv8qTs24vob dg/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694760660; x=1695365460; h=content-transfer-encoding:in-reply-to: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=E+yPchd1OF14YEx7hFDIQf6gB7Zd0Tpalu5rQeIxJmg=; b=CFiDEmScd4Pxe0/NuW3KQ194hrSgoQPksOcqIKqVBm+XVeUwQNz9DYYK7eaXMvdKdL Te/oTsJUE8FM3VV1RkYwMDfh9NOQxcw8LoNjkNupqDirbbQnhYEZ2KeYjd9wtLv30Ljo 1f3mqm3FH5AeRulRIcJxRmBFzRyH1xs24IeQhcKmWl0xB80HaJUdaM8YnnW0ybQeYoL1 UJhE2v5HDl+fvfOiu9Q6BUWlu5LkDuVxN2dnV7YzpZUkJ89pfoWV1KvDi9zwbo7t8Ggf 7alQB/u0m73w3mIB3lG/cnfquDHsdLUXwkd9FmD80HxoIFLZioXuE3C4+brdRR1MiI8Q 17AA== X-Gm-Message-State: AOJu0YyXMW2KK45s6AxLEYnZxcmAkCalSz9yabO61Udg6nUzCErJZAd+ NUVhSv4z7zvRnYVgqNWMv1KnNg== X-Received: by 2002:a05:600c:ac8:b0:402:f54d:745 with SMTP id c8-20020a05600c0ac800b00402f54d0745mr778159wmr.17.1694760660045; Thu, 14 Sep 2023 23:51:00 -0700 (PDT) Received: from [192.168.1.20] ([178.197.214.188]) by smtp.gmail.com with ESMTPSA id h16-20020a5d5490000000b0031773a8e5c4sm3559298wrv.37.2023.09.14.23.50.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Sep 2023 23:50:59 -0700 (PDT) Message-ID: <6438f3ad-23ff-0392-e549-d64ef499d739@linaro.org> Date: Fri, 15 Sep 2023 08:50:57 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH 3/4] dt-bindings: serial: document esp32s3-acm bindings To: Max Filippov Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley References: <20230913211449.668796-1-jcmvbkbc@gmail.com> <20230913211449.668796-4-jcmvbkbc@gmail.com> <196fb9ac-53b7-51a6-6ce4-9f980215fde4@linaro.org> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,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]); Thu, 14 Sep 2023 23:51:09 -0700 (PDT) On 14/09/2023 22:47, Max Filippov wrote: > On Wed, Sep 13, 2023 at 10:57 PM Krzysztof Kozlowski > wrote: >> >> On 13/09/2023 23:14, Max Filippov wrote: >>> Add documentation for the ESP32S3 ACM controller. >> >> A nit, subject: drop second/last, redundant "bindings". The >> "dt-bindings" prefix is already stating that these are bindings. > > Ok. > >>> Signed-off-by: Max Filippov >>> --- >>> .../bindings/serial/esp,esp32-acm.yaml | 40 +++++++++++++++++++ >>> 1 file changed, 40 insertions(+) >>> create mode 100644 Documentation/devicetree/bindings/serial/esp,esp32-acm.yaml >>> >>> diff --git a/Documentation/devicetree/bindings/serial/esp,esp32-acm.yaml b/Documentation/devicetree/bindings/serial/esp,esp32-acm.yaml >>> new file mode 100644 >>> index 000000000000..dafbae38aa64 >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/serial/esp,esp32-acm.yaml >>> @@ -0,0 +1,40 @@ >>> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause >>> + >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/serial/esp,esp32-acm.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: ESP32S3 ACM controller >>> + >>> +maintainers: >>> + - Max Filippov >>> + >>> +description: | >> >> Do not need '|' unless you need to preserve formatting. > > Ok. > >>> + ESP32S3 ACM controller is a communication device found in the ESP32S3 >> >> What is "ACM"? > > It's an 'Abstract Control Model' as in USB CDC-ACM: 'Communication Device Class > - Abstract Control Model'. > >> Why is this in serial? Only serial controllers are in serial. > > Because it's a serial communication device. The SoC TRM calls this peripheral > 'USB Serial', but the USB part is fixed and is not controllable on the SoC side. > When you plug it into a host USB socket you get a serial port called ttyACM on > the host. > >> The description is very vague, way too vague. > > Is the following better? > > Fixed function USB CDC-ACM device controller of the Espressif ESP32S3 SoC. Yes. > >>> + SoC that is connected to one of its USB controllers. >> >> Same comments as previous patch. >> >>> + >>> +properties: >>> + compatible: >>> + const: esp,esp32s3-acm >>> + >>> + reg: >>> + maxItems: 1 >>> + >>> + interrupts: >>> + maxItems: 1 >>> + >>> +required: >>> + - compatible >>> + - reg >>> + - interrupts >>> + >>> +additionalProperties: false >>> + >>> +examples: >>> + - | >>> + acm@60038000 { So this must be named "serial" now. ACM describes how this is interfaces to the SoC, right? Otherwise it would not be in "serial" directory and you would not be able to put serial devices as children. >>> + compatible = "esp,esp32s3-acm"; >> >> Use 4 spaces for example indentation. > > Ok. > >>> + reg = <0x60038000 0x1000>; >>> + interrupts = <96 3 0>; >> >> Same comments as previous patch. > > These are not IRQ flags. In any case the contents of the IRQ > specification cells is not relevant here, right? Yes, if 0 is not an IRQ flag :) > Best regards, Krzysztof