Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1893613rwd; Thu, 18 May 2023 20:12:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ69xIINodcjtNBvYlALHC+tWp0MP54Scg5kpQF4GwoXEFRIJPHSXDQwF5tZsm2bymnKDx1T X-Received: by 2002:a17:902:f545:b0:1ac:750e:33d6 with SMTP id h5-20020a170902f54500b001ac750e33d6mr5848262plf.23.1684465928281; Thu, 18 May 2023 20:12:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684465928; cv=none; d=google.com; s=arc-20160816; b=Ws19Bcltj5ZIU8e/dzg5uOoz59BD+x+wz5QdjxrrI/JCjmPJv3yHP8LLyKGgLr+7eW jTMQoiUBcT7cHk1rpnlffWhc8YHz8rDmt3QFILGYNcushYeaeis+NUCPhcbifi9Cm6Vu x/S1F/npUGCCDVpKYztXXbNiosTEqqmgpBzrrXVmjed6B3OpLH05vqEzDZN26qQPGl1/ so1GO4dOvZEBTZrSY3m7a4OSLdWqwvkmohryEpQUzPW13MldBX4GlN1RLRoh9+nenthI 8DahDqkh4swZ3MOIFiGnYkYKeRYa7LPele9bGYF3oluh4/eY/x0aOToulRy4/rGT0uJP hYEA== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:feedback-id:dkim-signature:dkim-signature; bh=+qkxtfKU3Ynscb5yTikTTXCK9eZg6WEQh+tMM6/33d8=; b=N09cNoPYbdYHQzvzpstYJmpgjh5UgxBlaCvSfgWsec7a17xz3OigC2Yr4o641P1FDe 9Pv0HHZcTbynNPUc/QWnAZIz1VSSRMCpOqmcBFp7z6IMBMkC/1m6o8eL5dJ6Cjq9VvoD yUkccqQEx7691OEMbuSRiCqRri5UhTn6dKuz6L2kOP6QOjQXywJhJAAH++S8UxVKCD/p neMK4RTkR/dbqMB5h5N0rDen+4K4/MQmS6Opd3iy0tGZjMDOJ7U+tVHMx5/vWK5/LMXS avWJVGLCs+MyMtDj72mRflhcy4bKteaalQ/i++oD+7zq8jSAsEiRcdizB2hmtN+tc9Lm Oakg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=hNWz0p1g; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="y+wOYQT/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 18-20020a170902c25200b001adbb45eae6si114313plg.331.2023.05.18.20.11.55; Thu, 18 May 2023 20:12:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm2 header.b=hNWz0p1g; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="y+wOYQT/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229795AbjESDA6 (ORCPT + 99 others); Thu, 18 May 2023 23:00:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbjESDA4 (ORCPT ); Thu, 18 May 2023 23:00:56 -0400 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BB43E7F; Thu, 18 May 2023 20:00:55 -0700 (PDT) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 854FC32002E8; Thu, 18 May 2023 23:00:53 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 18 May 2023 23:00:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1684465253; x=1684551653; bh=+qkxtfKU3Ynscb5yTikTTXCK9eZg6WEQh+t MM6/33d8=; b=hNWz0p1gsuo5wONFgBckUAcIho7GfZrE5+H0IqTXKpkLXNmiXg/ fBQwxLLRH6UK9gslUDTcoZ60E9fm1OdwRa25dQpyoFX9o1gEhngWhhHI+ad27Gk4 4sWeYQBzKuLOweH6p/V+ccb+p/zzXPuQ3+uS6sutSXFVSaPFV78U6ICT+G5g5Z1E LfZ5IJUENUzfJwX+fWANj6+gI3efJEmZ+QXEVuNTRSQXePsXbkIi9DJzRa9MmSMu mup3UfXsSPQSN9R1nlc7Ucs6dZ8Iu+6SpiiS4ylPTggd8jIx8qgj6+Cn1u8G35zS PPL6yZm1pZlR5aOpTcLi8v+ZqLY/zKelrGA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1684465253; x=1684551653; bh=+qkxtfKU3Ynscb5yTikTTXCK9eZg6WEQh+t MM6/33d8=; b=y+wOYQT/ANu5AMZI7Fl7sytCChsbyLHXQZskBSHM+zPR31YTDAP wITvMOv3uSzbrFZnBkrBw2Q3XNc24IU0pGzNY2tsNxBuYZ5oBoky2EX9P+m7362E IqeHt7pfYsbIsHB9dOKDsRaseksKJflR/1CW2Lj+hzySt6NY0fOOjZ6FtCAXo26P 0AcGHJVLh9raTYsEobXB1kS4ppVZsBC7Zy5cPwWfsgrUzz37epGF8hbfZDXC9krg ZuV4pctGXKK2yjPMk05QS168YGSLyxfI/TojIU9KCAvVoWvE/ggBxObIeyRShKX3 CYdqR9LnOGuts8W/dxAP46qq11tuF/Jhdcw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeigedgieeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfvfevfhfhufgjtgfgsehtjeertddtfeejnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc ggtffrrghtthgvrhhnpeegteekvefhgefhgfeigeejffejvdeihedvfefgtedvjeeiudet teeihfffgfeugfenucffohhmrghinhepuggvvhhitggvthhrvggvrdhorhhgnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehs hhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 18 May 2023 23:00:50 -0400 (EDT) Message-ID: Date: Thu, 18 May 2023 22:00:50 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux ppc64le; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Content-Language: en-US To: Jisheng Zhang Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, Palmer Dabbelt , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Albert Ou , Greg Kroah-Hartman , Jiri Slaby References: <20230518152244.2178-1-jszhang@kernel.org> <20230518152244.2178-4-jszhang@kernel.org> From: Samuel Holland Subject: Re: [PATCH v4 03/10] dt-bindings: serial: add documentation for Bouffalolab UART Driver In-Reply-To: <20230518152244.2178-4-jszhang@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jisheng, On 5/18/23 10:22, Jisheng Zhang wrote: > Add bindings doc for Bouffalolab UART Driver > > Signed-off-by: Jisheng Zhang > Acked-by: Palmer Dabbelt > --- > .../serial/bouffalolab,bl808-uart.yaml | 47 +++++++++++++++++++ > 1 file changed, 47 insertions(+) > create mode 100644 Documentation/devicetree/bindings/serial/bouffalolab,bl808-uart.yaml > > diff --git a/Documentation/devicetree/bindings/serial/bouffalolab,bl808-uart.yaml b/Documentation/devicetree/bindings/serial/bouffalolab,bl808-uart.yaml > new file mode 100644 > index 000000000000..0ef858e50efb > --- /dev/null > +++ b/Documentation/devicetree/bindings/serial/bouffalolab,bl808-uart.yaml > @@ -0,0 +1,47 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +# Copyright (C) 2022 Jisheng Zhang > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/serial/bouffalolab,bl808-uart.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Bouffalolab UART Controller > + > +maintainers: > + - Jisheng Zhang > + > +allOf: > + - $ref: serial.yaml# > + > +properties: > + compatible: > + const: bouffalolab,bl808-uart > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + maxItems: 1 This is not complete. There are separate APB and module (baud) clocks, as well as a peripheral reset line. If we are going to keep the binding stable, these need to be described up front. (I still don't fully understand the clock tree, and so far that has been the main blocker for me sending a follow-up series with additional bindings for hardware that's otherwise already supported, like the Ethernet MAC.) Regards, Samuel > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + > + uart0: serial@30002000 { > + compatible = "bouffalolab,bl808-uart"; > + reg = <0x30002000 0x1000>; > + interrupts = <53 IRQ_TYPE_LEVEL_HIGH>; > + clocks = <&xtal>; > + }; > +...