From patchwork Thu May 18 15:22:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 13246993 X-Patchwork-Delegate: mail@conchuod.ie Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 55133C77B7A for ; Thu, 18 May 2023 15:34:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=b5sQrDIFl54PH3kXO7lgokqGqaMgJgayrPueF8ezp+o=; b=DagwA2vkicBv7P lMOwBd0Sop/J9VyfrLeF9rbf6ccJ/cIEU3XP2cB6NOE5FlBB9hf+ycexA3Yzua5QF7i02R/HYk4uy KTLISykbGKsxN4kXLreb0cUvUC7Gp/sdBg4LF1Bw+AuD+kfz3jngRCwyE1BBbPHyXB4+uoozixM/s Kw9yC3IBFrYeI30oA3w2PcRznJZWLXMd11KQbrXj356Z1dTzpuLULYjwL3pCWgX7m2lEaJN3ik/27 2R09CP8RTzb/rhhISd6zIn2YtIUg8cNmH0jBqUIDvHHPDiZjdRoXKgsv1RZIRZKD/JV4Sv/FfVWYn xRx1QcEBwLrwJXOZDGqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzfds-00DJsL-1O; Thu, 18 May 2023 15:34:12 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzfdp-00DJrP-2v for linux-riscv@lists.infradead.org; Thu, 18 May 2023 15:34:11 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 584F864534; Thu, 18 May 2023 15:34:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CA78C433D2; Thu, 18 May 2023 15:34:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684424048; bh=zFBld/tZ7AocfQGxbusrEecyvSpoa50rSwNlH5iRWjo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XitzRxz5Rw0UPEAf7onUmdsyr6vVL8LorK/a66OO02ggd2WVcaL4WokSqmKOZqkhP zZou1910bYLnFvJYJqMxtyPGX//KwAubDr0a/RBZsT9IYwitdjKWhHMev2b9mX/S01 9JsJkceJx50s3wF8p3q0N3jSu/CW0TCJmOKOy/ZF+iCENJfeFKEEkDsd/HIjuMcTgi PmhRUjNNM3y//fdiu2DK1qpQMC4DruKIm5CZW/DAUzOVv08ngc3MV+AJLzSoqfJFet GhU/RPQGMYyvkRZK5Y8ix0R9+j7KUuv/0Js3IpI/8nOGfo88SnYUOf1myVOGJrNLb9 2cjJFZjKRK4gQ== From: Jisheng Zhang To: Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Albert Ou , Greg Kroah-Hartman , Jiri Slaby Cc: linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, Palmer Dabbelt Subject: [PATCH v4 03/10] dt-bindings: serial: add documentation for Bouffalolab UART Driver Date: Thu, 18 May 2023 23:22:37 +0800 Message-Id: <20230518152244.2178-4-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230518152244.2178-1-jszhang@kernel.org> References: <20230518152244.2178-1-jszhang@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230518_083409_988432_8D1AFED5 X-CRM114-Status: GOOD ( 13.07 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add bindings doc for Bouffalolab UART Driver Signed-off-by: Jisheng Zhang Acked-by: Palmer Dabbelt Reviewed-by: Conor Dooley --- .../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 + +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>; + }; +...