From patchwork Tue Oct 13 14:46:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Holenko X-Patchwork-Id: 269835 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 30EF1C433E7 for ; Tue, 13 Oct 2020 14:46:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DBDF72489A for ; Tue, 13 Oct 2020 14:46:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=antmicro.com header.i=@antmicro.com header.b="upDG6raP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388861AbgJMOqO (ORCPT ); Tue, 13 Oct 2020 10:46:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730456AbgJMOqO (ORCPT ); Tue, 13 Oct 2020 10:46:14 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A94D9C0613D2 for ; Tue, 13 Oct 2020 07:46:13 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id a5so20708997ljj.11 for ; Tue, 13 Oct 2020 07:46:13 -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=sJCKBgHgW4lDU+uVvQKyp37+1e76x1SjLUcnRFvURBc=; b=upDG6raP+kKKGTPRROcyC2aybFVAYqI2JqD25uiW3NvYxHQFNYJfGGF3Wq8fOSZDpl 7+zaf4+QrzWRWbtCZGIQpcGOb1EMS0DSanbFdkpn+fZfEIdhyAtIPEBJSo4uFmsCy/xy Kvdz97eyE3Sy+iepBJOfrhz/mw78R6x7RJjaw= 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=sJCKBgHgW4lDU+uVvQKyp37+1e76x1SjLUcnRFvURBc=; b=ON+HfMP8u8mIBvE4lH58YqdiYsCQG/qxtuq+zT2EMrajXEH1oqoubHXE2onOmhF7CU JqV+bnHIpt7Vi1TwrLdF1U07LJo657G+6OM3CKOr5/QL1a3NPZ7AMjG4Rac9voxGXFP7 sG5xP0u3qeuzngGK25KCDEYL0Ly3y8vVZgfvean7tdaxCO8xMx64++1IWs91kPjhXwlZ HYwCCMVR53cbIwDEnhVDeHKeqokHyR2hOxLiibVHx6b1ARIC47p7GrR0f8qr6+EBOLxl RnAlpy9vOAnTKjpp6riJXlR3sovet7RBhkkcgrj7dFz3wjf1Gq8ANWo9VV2CmNE2KWxb iXvA== X-Gm-Message-State: AOAM532a6RItU5xHUgEWU+7vxaMOITrR/dFIQYpqBCjYHdTKSmHo3DjI jZPKRiVAeUVG5MOX4vg8/WfeTA== X-Google-Smtp-Source: ABdhPJz1f+bFjCV43O0naIrFZo9QZf7p3X8sGfLVC7GD7QFmH4iAhaxM5bS3jeZ9MalfgLHrzCVyNg== X-Received: by 2002:a2e:b531:: with SMTP id z17mr6171676ljm.28.1602600372047; Tue, 13 Oct 2020 07:46:12 -0700 (PDT) Received: from localhost.localdomain (d79-196.icpnet.pl. [77.65.79.196]) by smtp.gmail.com with ESMTPSA id p10sm4555297lfc.217.2020.10.13.07.46.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Oct 2020 07:46:11 -0700 (PDT) Date: Tue, 13 Oct 2020 16:46:05 +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 v12 4/5] dt-bindings: serial: document LiteUART bindings Message-ID: <20201013164454.2002023-4-mholenko@antmicro.com> References: <20201013164454.2002023-0-mholenko@antmicro.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201013164454.2002023-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: Changes in v12: - fixed the description in the yaml file 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 the 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>; + };