Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4250457rdb; Thu, 14 Sep 2023 17:16:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFULIDI9TDnAIDqeWw5wjee968kLT6pfr3QTuZEWYVDmUTJ/nlBwjGGCG2sZe0JWglAD2N+ X-Received: by 2002:a05:6a21:99a0:b0:154:edaf:f410 with SMTP id ve32-20020a056a2199a000b00154edaff410mr404246pzb.58.1694737004910; Thu, 14 Sep 2023 17:16:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694737004; cv=none; d=google.com; s=arc-20160816; b=Z7w+BIRgYjNlTVPakTR1v4P8I7A5UmElv7pyqkCgklhkbTrd2LfZ1wnQpm6JpJ/+2G 2lN+Us1Na84ellLvqcoJX81IZN6gzKYEEZew9ybjC6GSaiqEkySQibjuJ3JM6A+XsDNY bjtppRhEc7bfKFGGII5Av0o5M9HlAGPx3lbappMcIimLv2Phd8tFwE9bEkkqo15EqkTr k0ObXFyc+V7WH4DjS91CKb78sx5+4wz5M3/S7rtp3zOUfC4Ec+1pjczZnxlwqPGpbHiY Cif7moPR9K2TwGJwJOVs3ez815oSnhvzZBGbgPBv6uHZQwGmdc3mr27deKNl8/X9FVhw rrOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=V+vcKKBW7m4dimFQCqOQ/FSEh/1OFmvKpug97OFECsw=; fh=3QDBKoDJPBf0erXlBzu/YwxFTXDCjoSP5D2Q6FZPTHk=; b=krtYmM9SwVK184jSY4HuQFBBjQHSA29fgV+aYAD8aB9J9H2VpsF5mQ4Wc3PkPCtqyM CTCwzze8gdoy3ggtbcokXB3Q18z8S178cDT/l1H44CEleF6MxbZtA6vvZWx3n62kqmY1 mrvxhjFEEFLXAWxMkzmv9m7PDKYIwfucNtNXyO+1sQMiJHcXWufftenw+MfVtxZeuO9B p2N6+v/f1+1CHPv86eyko21csHB8Y/vhN5P8cMgfkj+ljZhSzJ6D516dWxbCuepbZaKk JKn5qDvBqnQu0B6wuh8mFvq6yz+EfA8GtA4UqYHFmKTMiLuKtfIBgFIiwCeLWWtUuwgj 6mTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=NBs3c42U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id u5-20020a170902b28500b001bf1a9dbcc9si2386154plr.549.2023.09.14.17.16.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 17:16:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=NBs3c42U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id F193F83CD64A; Thu, 14 Sep 2023 13:47:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229892AbjINUra (ORCPT + 99 others); Thu, 14 Sep 2023 16:47:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbjINUr3 (ORCPT ); Thu, 14 Sep 2023 16:47:29 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D5FC2120; Thu, 14 Sep 2023 13:47:25 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-53482b44007so1047080a12.2; Thu, 14 Sep 2023 13:47:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694724445; x=1695329245; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=V+vcKKBW7m4dimFQCqOQ/FSEh/1OFmvKpug97OFECsw=; b=NBs3c42Uj7z2Bln8/oHxtFGfuzfj6PFjetfkYnywUw4Arf5a7DjULPuTbkMJMUbcmG EOJhssZR9XpoiFimYT+rCrG82hgsXjU/ZrVuR55PGQLiV9Voa/QsyJROp3BaYg2lOtMj tqTX/gnv4kKoD0nJ9zHLiGbNAhWSnZUB4TpUDUKx+zspcfw4KgvygvKKsD57snJ40rVw 2X7xaeIy7nnxH/9n/1NXQ4tUgGlRTtJ4IgNv9OLINlq1TD73d3AdtYe9KF1OT/csKIT1 Bzsk63FWdZYgjrTCkmL6aK69vA9vFj46Ep2nyD084hw8hOfpZnu5kuEBsv6HAIJUmVHu 6vpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694724445; x=1695329245; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=V+vcKKBW7m4dimFQCqOQ/FSEh/1OFmvKpug97OFECsw=; b=c7cuHRAWUHjKnkHup8iiyPdDPSwPEpw2NhkbZT6wkqiBfqRJ2gk7ze10Diqk0WN/4p zscuyzU4MYFqOTNxuDU6Rw2tGOHcV7A15o2GCffFA5Yiggo3UL8+L6NG4pFoawcx7CWR 7HvB5jWzRra+RJzB4j2sshpXHJYpQjp0FP9h8R0PyQfj8EMYxivGop3OoZ/MecUJ0UPb 9p5IUm03B+4ZuB4cr60mO/tZmiizvpnPl0reuszN4yBU8BXeETgNU/Llh/WvJYCWtiXo 0d4CR/mjHixDrCQ9J0VfgAlYBiBg/jjyu63RzG9XNXjM7/CEceuq+990AtjTfOLsUi8B C8wQ== X-Gm-Message-State: AOJu0YzUJbHOF2V+lp9jWm2ckDa8xfzup5xh6p2PlwiAM6H9aKVXKf9d sF4Bjzc/nbJqEQZ9xN+1ZYoKMQQxFDXuwdetulf4gMui+e0= X-Received: by 2002:a17:90b:709:b0:274:6135:8363 with SMTP id s9-20020a17090b070900b0027461358363mr3424523pjz.33.1694724444919; Thu, 14 Sep 2023 13:47:24 -0700 (PDT) MIME-Version: 1.0 References: <20230913211449.668796-1-jcmvbkbc@gmail.com> <20230913211449.668796-4-jcmvbkbc@gmail.com> <196fb9ac-53b7-51a6-6ce4-9f980215fde4@linaro.org> In-Reply-To: <196fb9ac-53b7-51a6-6ce4-9f980215fde4@linaro.org> From: Max Filippov Date: Thu, 14 Sep 2023 13:47:13 -0700 Message-ID: Subject: Re: [PATCH 3/4] dt-bindings: serial: document esp32s3-acm bindings To: Krzysztof Kozlowski 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 (pete.vger.email [0.0.0.0]); Thu, 14 Sep 2023 13:47:35 -0700 (PDT) X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, FROM_LOCAL_NOVOWEL,HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM, 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 pete.vger.email On Wed, Sep 13, 2023 at 10:57=E2=80=AFPM 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.yam= l 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 ESP32S= 3 > > What is "ACM"? It's an 'Abstract Control Model' as in USB CDC-ACM: 'Communication Device C= lass - 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 peripher= al '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= . > > + 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 { > > + compatible =3D "esp,esp32s3-acm"; > > Use 4 spaces for example indentation. Ok. > > + reg =3D <0x60038000 0x1000>; > > + interrupts =3D <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? --=20 Thanks. -- Max