Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4437262rdb; Fri, 15 Sep 2023 02:02:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEUY6IDbAtgg36PPHVdcnVejBNyWcflOr90fG//ICyLy1i1px++C8CwVItvyC74hl/4iDZL X-Received: by 2002:a05:6358:3403:b0:141:51d:4c93 with SMTP id h3-20020a056358340300b00141051d4c93mr1471138rwd.29.1694768547730; Fri, 15 Sep 2023 02:02:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694768547; cv=none; d=google.com; s=arc-20160816; b=BBMTe56ftGoEoDkAqMJUcH10E29yLBOFR6Yki7rRumzsylm6vMD1/OB9A8q9Lx7Rvg 7FIbCSlIcdfQ0eZGnjCdwtEhFNcqgorwrzoExmyhfdtgQpRzfyS1V9ZgC6/LRGtNda1P OgPkNu3RRKFw9JKtcYtwampxtjXlahOEQhJ2frkqEigtCcNi2Ub4s+mbENmUU6YE5AvU CjJ/0tUKUruxnMCapsTvHKUMtoxu0hXEqZ/xgDYV+Xw+KAl+jhYIxZ4hVo/f9W9gUn6C clUs4Xzt9uAImGgi61jQHS7v9pePQ+Q6EwXCGqAlx1PmVY68O6Gol7FH9XBJe6wHwm7O K+ew== 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=B23YuAv6dhYvSN5C36lVW/kvrfHC6KB7exZefOVxwtg=; fh=3QDBKoDJPBf0erXlBzu/YwxFTXDCjoSP5D2Q6FZPTHk=; b=B4AlyVUMpNjsuwuS5amVilvfpuMHZ0t64/d8C94B2zjBVhuf5YfkcZD/OrsdrxfcMk z+yKuOzDRfwA5Od3SLzyF8TEimh9a2Vcz4pHzE6bWMPC1F030KVRcErsdSHcHZNvIwDM A56dmiagcLCKqkmxSXFTwg6o3qm26HRRXb2Xj3Q3S2w/Go2F/wZbiAgNZeJ2fGpqiqh0 xIVRRpV3m+KoJMlptXA7ZvNi67e/CrC7W/KntTzhhOWp43PDXn5/FJRDiLjjrvztfQ+i w/tk26hszivzp1P6lSOiJv9lXF157Y2BHeBy+GsjUSlCvWffPrqUHX1SohMKPRcYMKPp xDKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=o0dQYoQe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id u1-20020a637901000000b0057414fa789fsi2903655pgc.503.2023.09.15.02.02.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:02:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=o0dQYoQe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 012D9805A793; Thu, 14 Sep 2023 13:00:25 -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 S229811AbjINUAW (ORCPT + 99 others); Thu, 14 Sep 2023 16:00:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229603AbjINUAW (ORCPT ); Thu, 14 Sep 2023 16:00:22 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FBBC26B8; Thu, 14 Sep 2023 13:00:18 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-69042d398b1so80494b3a.0; Thu, 14 Sep 2023 13:00:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694721617; x=1695326417; 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=B23YuAv6dhYvSN5C36lVW/kvrfHC6KB7exZefOVxwtg=; b=o0dQYoQeVLZFjIDy3B8RMR6rtTIW6AbN60YpA1T+ChDCVh7+NkbuC6PSa10Km+u/L0 Eks8uuUxiKO5hJBiwZHDuePukkSEjHDxn+OGg/9F7Wr1uY4SdTPsDmZwGQVyMiwfbdE8 2PPpoPjvvJQME2umWSakEZjDbnsy2tWHpiTQW+BPcK1Y3FlZHgKk6ypH4l86L68q42Tb W1laKe35QVTnON3AJU5gG0HpQCBGndxKXo3lvRd/UHuz+8tGI1i5Buhjwaq6aKh2v6FC YmmuhL0WUV+fRvfIwcyKfA28E3k70XEDOvT0VgfsOrYemUPSaqsMQ6I+5Egzd3wnG1di aozw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694721617; x=1695326417; 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=B23YuAv6dhYvSN5C36lVW/kvrfHC6KB7exZefOVxwtg=; b=s2Iv0is6xSf/aC34sug9mWGPKHFi2OwOkJrPS/Zps8epkR75slJ3Ryeqi/5XArfUbg GXmBDIJS3g7qV9uTlC76FMb0zeXq6rlQV39cMP7EOsF1BJ9f+HrD3kw7hd1foOBve68d tWxD2phwphisGK3oHDVFKtF/zL6Cs4AtAMfXhG9nqKrTPGtYYZgXPrOXpM7ip9lf54+o a3v8D8HqRDVdHPXhDqZ4y7tuI4+ESyk+g6syPCGgh+YFCcco1gV/Usz0stLS5u3yy3qO 1QEl/jOLdOoLFJkGS017FkiojqGRZWOvKmLcer3LULVTFV+CHRJgk2tGz+FhPd54Z/IX 2wyQ== X-Gm-Message-State: AOJu0Yzpu/Wl4sghbXhzNqIIYA/AliXEc4LwnkMabnQbuDpoNweQ5N6b bkLuZiDB7iuygv4otmRz9gyt+6tW6bAh7kCHyBc= X-Received: by 2002:a05:6a00:1d10:b0:690:15c7:60bf with SMTP id a16-20020a056a001d1000b0069015c760bfmr5463233pfx.20.1694721617453; Thu, 14 Sep 2023 13:00:17 -0700 (PDT) MIME-Version: 1.0 References: <20230913211449.668796-1-jcmvbkbc@gmail.com> <20230913211449.668796-2-jcmvbkbc@gmail.com> <465dc390-a5ff-547a-2bd3-54b29e1b6c43@linaro.org> In-Reply-To: <465dc390-a5ff-547a-2bd3-54b29e1b6c43@linaro.org> From: Max Filippov Date: Thu, 14 Sep 2023 13:00:06 -0700 Message-ID: Subject: Re: [PATCH 1/4] dt-bindings: serial: document esp32-uart 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:00:26 -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:54=E2=80=AFPM Krzysztof Kozlowski wrote: > > On 13/09/2023 23:14, Max Filippov wrote: > > Add documentation for the ESP32xx UART controllers. > > > > Signed-off-by: Max Filippov > > --- > > .../bindings/serial/esp,esp32-uart.yaml | 48 +++++++++++++++++++ > > 1 file changed, 48 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/serial/esp,esp32-= uart.yaml > > > > diff --git a/Documentation/devicetree/bindings/serial/esp,esp32-uart.ya= ml b/Documentation/devicetree/bindings/serial/esp,esp32-uart.yaml > > new file mode 100644 > > index 000000000000..8b45ef808107 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/serial/esp,esp32-uart.yaml > > @@ -0,0 +1,48 @@ > > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > > + > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/serial/esp,esp32-uart.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: ESP32 UART controller > > + > > +maintainers: > > + - Max Filippov > > + > > +description: | > > Do not need '|' unless you need to preserve formatting. Ok. > > + ESP32 UART controller is a part of ESP32 SoC series. > > + > > +properties: > > + compatible: > > + oneOf: > > That's just enum. Your descriptions are useless - tell nothing - so drop > them. Ok. > > + - description: UART controller for the ESP32 SoC > > + const: esp,esp32-uart > > Looks quite generic, so just to be sure? This is not a family name, > right? Neither family names nor wildcards are allowed. ESP32 is the official name of a specific SoC. More recent SoC models of that family are named ESP32-S2 and ESP32-S3, sometimes they are collectively referred to as the 'ESP32 series'. In this binding 'esp32' is = used for the ESP32 SoC and 'esp32s3' is used for the ESP32-S3. > > + - description: UART controller for the ESP32S3 SoC > > + const: esp,esp32s3-uart > > + > > + reg: > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 1 > > + > > + clocks: > > + maxItems: 1 > > + > > +required: > > + - compatible > > + - reg > > + - interrupts > > + - clocks > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + serial0: serial@60000000 { > > Drop unused label. Ok. > > + compatible =3D "esp,esp32s3-uart"; > > Use 4 spaces for example indentation. Ok. > > + reg =3D <0x60000000 0x80>; > > + interrupts =3D <27 1 0>; > > Use proper define for IRQ flags. These are not IRQ flags. 1 and 0 are the routing parts of the IRQ specification. --=20 Thanks. -- Max