Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2756793rwb; Sun, 20 Nov 2022 00:44:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf7HkFNAL1LWXcLOqxmFfPcLztkdHhRVKGMa5g9Ijp9w9/8lz8UrcR3aM5A6wsR5+GPmq9bK X-Received: by 2002:a17:906:5a84:b0:7ae:65e4:7204 with SMTP id l4-20020a1709065a8400b007ae65e47204mr11159159ejq.579.1668933891057; Sun, 20 Nov 2022 00:44:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668933891; cv=none; d=google.com; s=arc-20160816; b=ci0s7xitOid3098NARj1UkAIbiy8JDM7tvoPkWlO1yF8dY6G4nOny6S2PLfycC6Y6Q hXZroD8kSaGxhs0iyboeFwIRgDDnoouBweXsjNZztJKbmR6ETdKYzH3LfEnTCaBuana0 QKAAYImp9v6DH6kKpdhjMDX6+DB9Zzidf9odVkcdpV8aF1Q5yY/lqtBi3MdET39rlEga b6U+6jgoGLj76hQzzDsZqTwgfX1892yS4lDyXR6C7fiB3UpNZiu2Uik4rwAjCdlAeRXY Wgo43yaarWLTYfXUJu563rXGrv/nXt8jDaS5qyCS73j6y//8iJFl9iZ+EEGfhzlmPbqI Iyrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=tX+yvqIl4XNMH5ZsIDexVs3AQm6i7eJMKDNZyBcQEqQ=; b=tOkyMIiHB64lvTfggGz4rd7eWeXS/pLBgvcSGCRln72t1MVLkSiwNBj0URMUXVJnjH K9A9eI3WTm43XrpZdIF0KXTxLgcma12CCoQzx1yoe5cLU69doRFMEHrV6bjdtXBmIGz0 25EdXxYsfT9BGVbJUPVorOfrdA2cDY6N6TgXSHUJqDJtzAjw0FKnXn7YfRySBOZdV6fK 7mh9mH8/H/7QsAkme3xhj0wi+Hw2icGK7LtXdFJ6SJOkje4+bjywF3z/cq94X1rE9nVB skeg1SUGCfbhVDpCK58JzhDcU4ibCVWWshAyDj4n1syFr3AM0Bnf2v7CtZcIOBEdCSSz Balg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AiTz05wP; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf40-20020a1709077f2800b0073cd848ae8asi7524217ejc.321.2022.11.20.00.44.28; Sun, 20 Nov 2022 00:44:51 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=AiTz05wP; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229600AbiKTIbP (ORCPT + 92 others); Sun, 20 Nov 2022 03:31:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229564AbiKTIbL (ORCPT ); Sun, 20 Nov 2022 03:31:11 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D91511B1DC; Sun, 20 Nov 2022 00:31:09 -0800 (PST) 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 7D59DB80AB7; 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 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>; + }; +... -- 2.37.2