From patchwork Sun Nov 20 08:21:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 13049920 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 98358C433FE for ; Sun, 20 Nov 2022 08:31:30 +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=ukWU2a3C8yhuNArWuI+z9Bvh2NcjA66y0UZyvP6W64E=; b=yS4/poQKJ2i6sz HOHvMBoD43JZ+ucEnq9bnR/d1JAilYkprUcrZ0/lCTD6nB9ZWGTzit7a+6UxzWko14yrRiXIivrxW yo0HNMhu7sAZHhgQW44NCX9jNtx0T3hAUtRRU/mnWiq6a+YSHdKhsMRHDaGsKm7ASbspBWmFvX4nY UyvunfYGox5bdEm0JXCJmX22iHZxtsGuIOQB8eTmOMB+grHToWTHkzbIrv9PxfLCWSia7WlL/ay+0 ysWRwWnLqClAR35jYelvnYgE122PTh6ulgKp+x7UhzaE/N5B/WIhW8n8SnWIsMqQhIAL7q4mXaAy1 G53Bsw7+EO3dIzcf3Meg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1owfjW-0031GW-50; Sun, 20 Nov 2022 08:31:22 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1owfjT-0031C4-Bq for linux-riscv@lists.infradead.org; Sun, 20 Nov 2022 08:31:20 +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 ams.source.kernel.org (Postfix) with ESMTPS id 88739B80AC9; Sun, 20 Nov 2022 08:31:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D13F3C43470; Sun, 20 Nov 2022 08:31:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668933067; bh=QJRswxYvKgbjIs0cPPGZ4YY4WqosJD1dD6F67LNG0as=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AiTz05wPQH/syHI91f/YCRNjcUgGKDl6eFX9ASy95mR8V3IJ7qnCX2xw3QIG+RTZf kJnFD6WOLBwvd9ecUfrJH3n20Hwk1MfqJoWkulMMdJfSfsnDVcmWqrwqBdYZ99TqK+ IfzaGD4aVOZCQCHo8P6UyKEsRU+1ctypNKesdgwSXAr/eUycs8dybk9+2m7BLqhSHw Xjhu3Fk2uYCHVZEvRqiU5N0HKhCRIZ4nGHod49ggrS30ps+gQY021sbeJg3t6RfTPJ k5VNWAon1ZylK/WNZ8bILytDKU9VD/1PUJgS6EVHb7DTWcljLseebZBxSl+mOqC7kt pqTOsaNYGqDlg== From: Jisheng Zhang To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jiri Slaby Cc: linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH 1/7] dt-bindings: serial: add bindings doc for Bouffalolab uart driver Date: Sun, 20 Nov 2022 16:21:08 +0800 Message-Id: <20221120082114.3030-2-jszhang@kernel.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221120082114.3030-1-jszhang@kernel.org> References: <20221120082114.3030-1-jszhang@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221120_003119_559981_B16787D5 X-CRM114-Status: GOOD ( 12.55 ) 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 --- .../bindings/serial/bouffalolab,uart.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/bouffalolab,uart.yaml diff --git a/Documentation/devicetree/bindings/serial/bouffalolab,uart.yaml b/Documentation/devicetree/bindings/serial/bouffalolab,uart.yaml new file mode 100644 index 000000000000..6cef956d33d2 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/bouffalolab,uart.yaml @@ -0,0 +1,50 @@ +# 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,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,uart + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - clocks + +additionalProperties: false + +examples: + - | + #include + aliases { + serial0 = &uart0; + }; + + uart0: serial@30002000 { + compatible = "bouffalolab,uart"; + reg = <0x30002000 0x1000>; + interrupts = <53 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&xtal>; + }; +...