From patchwork Wed Sep 23 10:09:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Holenko X-Patchwork-Id: 296995 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3347C2D0A8 for ; Wed, 23 Sep 2020 10:09:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8F9EC2145D for ; Wed, 23 Sep 2020 10:09:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=antmicro.com header.i=@antmicro.com header.b="ZzzVGaZK" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726723AbgIWKJZ (ORCPT ); Wed, 23 Sep 2020 06:09:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726314AbgIWKJZ (ORCPT ); Wed, 23 Sep 2020 06:09:25 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AD74C0613CE for ; Wed, 23 Sep 2020 03:09:25 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id y2so21403333lfy.10 for ; Wed, 23 Sep 2020 03:09:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antmicro.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=R4viOFN1AOqCCqt5yWr1qANumQ+WkRmjnqWbPwJ0Ybo=; b=ZzzVGaZK4YyJIbxRbTRbqBi5tRgZwPdyOGXqfQnjHS9yWdkvB5BtrIK2ywbp9p9oBy 1tnZwRwlm14lxS9kSPHEAgK8UpI0L09THFPK3fKyekhrK1GIaStRDwF4jNaukmtKzavz TiBQwKhRPsrjRdKP6iQMX+7zYmo6mG5PVAMRQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=R4viOFN1AOqCCqt5yWr1qANumQ+WkRmjnqWbPwJ0Ybo=; b=Vv8FcUvFjr2HNroGfIDpRjU4qS4Q1cpGG/8LnnRddUTWT+DTXORBXqAzp+1rsA92R6 wO2VP42fOlj9t7hrc9PH1P9iu/GdizKQ1ruCuCMuo9S1+puK3eq0GwPY7+p+RSCgZMI5 XKXneRKFyMBaYWYtH0QBmH7hc5Jh3YOTElOMYNUCG8wEDpgC5rSE95vmReMZcD/C/L+x lzxhgcsIxxNLSH7kHrJ6RDkqYUDPp8gwGIQIjFSILRhIl/Fw2C7GfhSjWOPx2Yi4EnBl 1roCgB2g0TX+5Xi7dHuE/00v7RcOUPXCUxyhYDIAL9k1dhVfAN2FDx/2vIOG6kbVwmlN Fi6g== X-Gm-Message-State: AOAM532HEdFU1ZrmSWoP1uhzZbF05ZYmoaT1rIDY9r0zjHt5gTSlvCyI JHo7TDYkL5UNhqqpMh+7NbOYnA== X-Google-Smtp-Source: ABdhPJycSuMHNtDYdn2y4/qDdOSSgJwMBrNUsk6G7No4thkHuYmNShs0ZhM/nw5a+HqWW83KbRdV0Q== X-Received: by 2002:a19:9152:: with SMTP id y18mr3490564lfj.376.1600855763666; Wed, 23 Sep 2020 03:09:23 -0700 (PDT) Received: from localhost.localdomain (d79-196.icpnet.pl. [77.65.79.196]) by smtp.gmail.com with ESMTPSA id m22sm4940941lji.36.2020.09.23.03.09.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Sep 2020 03:09:22 -0700 (PDT) Date: Wed, 23 Sep 2020 12:09:17 +0200 From: Mateusz Holenko To: Rob Herring , Mark Rutland , Greg Kroah-Hartman , Jiri Slaby , devicetree@vger.kernel.org, linux-serial@vger.kernel.org Cc: Stafford Horne , Karol Gugala , Mateusz Holenko , Mauro Carvalho Chehab , "David S. Miller" , "Paul E. McKenney" , Filip Kokosinski , Pawel Czarnecki , Joel Stanley , Jonathan Cameron , Maxime Ripard , Shawn Guo , Heiko Stuebner , Sam Ravnborg , Icenowy Zheng , Laurent Pinchart , linux-kernel@vger.kernel.org, "Gabriel L. Somlo" Subject: [PATCH v11 4/5] dt-bindings: serial: document LiteUART bindings Message-ID: <20200923120817.1667149-4-mholenko@antmicro.com> References: <20200923120817.1667149-0-mholenko@antmicro.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200923120817.1667149-0-mholenko@antmicro.com> Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org From: Filip Kokosinski Add documentation for LiteUART devicetree bindings. Signed-off-by: Filip Kokosinski Signed-off-by: Mateusz Holenko Reviewed-by: Rob Herring --- Notes: No changes in v11. No changes in v10. No changes in v9. No changes in v8. No changes in v7. Changes in v6: - fixed license header No changes in v5. No changes in v4. Changes in v3: - added Reviewed-by tag - patch number changed from 3 to 4 - removed changes in MAINTAINERS file (moved to patch #2) Changes in v2: - binding description rewritten to a yaml schema file - added interrupt line - fixed unit address - patch number changed from 2 to 3 .../bindings/serial/litex,liteuart.yaml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/litex,liteuart.yaml diff --git a/Documentation/devicetree/bindings/serial/litex,liteuart.yaml b/Documentation/devicetree/bindings/serial/litex,liteuart.yaml new file mode 100644 index 000000000000..69acb222bb57 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/litex,liteuart.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause + +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/serial/litex,liteuart.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: LiteUART serial controller + +maintainers: + - Karol Gugala + - Mateusz Holenko + +description: | + LiteUART serial controller is a part of LiteX FPGA SoC builder. It supports + multiple CPU architectures, currently including e.g. OpenRISC and RISC-V. + +properties: + compatible: + const: litex,liteuart + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + +examples: + - | + uart0: serial@e0001800 { + compatible = "litex,liteuart"; + reg = <0xe0001800 0x100>; + interrupts = <2>; + };