From patchwork Wed May 27 16:26:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Holenko X-Patchwork-Id: 213951 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=-6.8 required=3.0 tests=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=ham 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 B1CE3C433DF for ; Wed, 27 May 2020 16:26:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 889E320899 for ; Wed, 27 May 2020 16:26:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=antmicro.com header.i=@antmicro.com header.b="Ge5jW0Vt" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391080AbgE0Q0c (ORCPT ); Wed, 27 May 2020 12:26:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389726AbgE0Q0b (ORCPT ); Wed, 27 May 2020 12:26:31 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D30D0C05BD1E for ; Wed, 27 May 2020 09:26:30 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id m18so29661218ljo.5 for ; Wed, 27 May 2020 09:26:30 -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=UXNKy8jVJwlU/17I/sp/ZybyCHSHUdutcafty8yAdEU=; b=Ge5jW0VtYLWqqDMma/nbdlBeZpgeTS8vtyAZANj2XX3yg3QXM4AHiQqZ79WgDG4p5N YYKeV6ZzDTUJNuuyBhxJVb9VhMc20YOZ0I9cGRXfT5bQzsYVA+KM0pjeCRuPIKJVf9ue 32NVd6UQF14HMD9zTznW93ut95FvH6d4I2JhM= 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=UXNKy8jVJwlU/17I/sp/ZybyCHSHUdutcafty8yAdEU=; b=jBlG1Dg6u1bBbEsABvpTrvvwtycibLUPi1nm8Li67CrIj4HDzG5JbD20Cn5cOPa0lt dW89rme2h6QXSIj6YTeGvguinl+GZdX60GsBvHxJM5Lvbpt/h+FJ1Eg6uJTa1+L0/pLZ IJOVPoCSIpUzMqITG7cQL1M87m2Y8WWGzNT5B/N/yj6p6mGVDEINgzy2magpzdqlVLfg 180UYIZ/YTgW5rtVIdf5eiGhWAPnidvH415v6uhj4IYbLcmrpRZvz5x07X7DBRK/kf2+ XIK1XCbvYpExmqhmpnIqbD+abKMW1LIKHDlKnMdOJXPfD74Eyq0Vds2ZnQwoXR1Nm4L7 WDhA== X-Gm-Message-State: AOAM532i96MYcuvPNU5EV05YlGu72PgE8HIxcuTM+9oC75nSlthilPVF EruRba2QUTmZJnuQLVQbTm3F5w== X-Google-Smtp-Source: ABdhPJxrDY64t3dA74/QpqFRt+tUdSXEoElVweoLpPPzc2MKtUL05JqbDXfV3yOj9N5L53ZeVE2z3w== X-Received: by 2002:a2e:9acb:: with SMTP id p11mr3286893ljj.432.1590596789302; Wed, 27 May 2020 09:26:29 -0700 (PDT) Received: from localhost.localdomain (d79-196.icpnet.pl. [77.65.79.196]) by smtp.gmail.com with ESMTPSA id n14sm895937lfi.97.2020.05.27.09.26.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 09:26:28 -0700 (PDT) Date: Wed, 27 May 2020 18:26:23 +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 v6 2/5] dt-bindings: soc: document LiteX SoC Controller bindings Message-ID: <20200527182545.3859622-2-mholenko@antmicro.com> References: <20200527182545.3859622-0-mholenko@antmicro.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200527182545.3859622-0-mholenko@antmicro.com> Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org From: Pawel Czarnecki Add documentation for LiteX SoC Controller bindings. Signed-off-by: Pawel Czarnecki Signed-off-by: Mateusz Holenko Reviewed-by: Rob Herring --- Notes: Changes in v6: - fixed license header Changes in v5: - added reviewed-by tag Changes in v4: - changes compatible to "litex,soc-controller" - fixed yaml's header - removed unnecessary sections from yaml - fixed indentation in yaml This commit has been introduced in v3 of the patchset. .../soc/litex/litex,soc-controller.yaml | 39 +++++++++++++++++++ MAINTAINERS | 6 +++ 2 files changed, 45 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml diff --git a/Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml b/Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml new file mode 100644 index 000000000000..b118ddbf04a4 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +# Copyright 2020 Antmicro +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/soc/litex/litex,soc-controller.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: LiteX SoC Controller driver + +description: | + This is the SoC Controller driver for the LiteX SoC Builder. + It's purpose is to verify LiteX CSR (Control&Status Register) access + operations and provide function for other drivers to read/write CSRs + and to check if those accessors are ready to use. + +maintainers: + - Karol Gugala + - Mateusz Holenko + +properties: + compatible: + const: litex,soc-controller + + reg: + maxItems: 1 + +required: + - compatible + - reg + +examples: + - | + soc_ctrl0: soc-controller@f0000000 { + compatible = "litex,soc-controller"; + reg = <0x0 0xf0000000 0x0 0xC>; + status = "okay"; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index 7b58ca29cc80..39be98db7418 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9835,6 +9835,12 @@ L: kunit-dev@googlegroups.com S: Maintained F: lib/list-test.c +LITEX PLATFORM +M: Karol Gugala +M: Mateusz Holenko +S: Maintained +F: Documentation/devicetree/bindings/*/litex,*.yaml + LIVE PATCHING M: Josh Poimboeuf M: Jiri Kosina From patchwork Wed May 27 16:26:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Holenko X-Patchwork-Id: 213950 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=-6.8 required=3.0 tests=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=ham 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 A1C24C433DF for ; Wed, 27 May 2020 16:26:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7E0A320890 for ; Wed, 27 May 2020 16:26:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=antmicro.com header.i=@antmicro.com header.b="c31xNxz8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391093AbgE0Q06 (ORCPT ); Wed, 27 May 2020 12:26:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390006AbgE0Q05 (ORCPT ); Wed, 27 May 2020 12:26:57 -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 5F35AC03E97D for ; Wed, 27 May 2020 09:26:57 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id v16so29717655ljc.8 for ; Wed, 27 May 2020 09:26:57 -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=F8tmgHUoHk36ri66dg3fmf/UvjxIGvzJKrgXW7rlCA0=; b=c31xNxz8HKVKICjYWT+NoNaFPS4cNmxcqDm4C0+VhDnXvaSPv9LR4vSv5JYTeUVWeV a4Ii15SXjW8tBXaRd/ZsVg9Gkq82i/fWRVzV7qOj+n0I+itUPTqUVGTa65wMSa9+oI9Q cerXH3QJCnwXnmikSjYctaYbFLfBmV+FUSTis= 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=F8tmgHUoHk36ri66dg3fmf/UvjxIGvzJKrgXW7rlCA0=; b=ZB0+OKrGgYuDxOBRijGScCUHWho6b3OoxbWRARLD6e4xpPhxJjM5WyIlp2KBn+t6cA bnqOFt/C+HgkxuBugOcjwYOKgy5jT3wvn+W0H0o0LK1WQH8voewYTxhpq724xigpY7tt TWIVnVsY6KTnYLdtFIIkggRrTZxKE9C6XTG9tQm3WiO1tXhYceAz1bzSez4y+ftLciif HoCEpY9IRMwBSOf9oBbzj3fZp+8cc72wxf6MLYGMWX5A9s40SdlbvW5PpNJxQYYgSwel y849fvmBHSEJJAy2scqeZoBVXeiOEKyHVoZ4k0ebK+3hCXR63Tq/Xjo1baDxNdGqInpi PYpA== X-Gm-Message-State: AOAM531hDQRFyb6TK8NWHSsJLRomhSUqS4qyhSH9pleGlYPPge/1xZ57 131bQ1cX/P40HDJOZ2U2nhv7vQ== X-Google-Smtp-Source: ABdhPJwKC5EKHBnswklS6abOBVt/T4q6wZevGb8+Xp5q4r3Ls+UHA6A8a+HrySnHhgMc7cGSRWwPUw== X-Received: by 2002:a2e:810c:: with SMTP id d12mr3387247ljg.410.1590596815858; Wed, 27 May 2020 09:26:55 -0700 (PDT) Received: from localhost.localdomain (d79-196.icpnet.pl. [77.65.79.196]) by smtp.gmail.com with ESMTPSA id z13sm906402lfd.7.2020.05.27.09.26.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 09:26:55 -0700 (PDT) Date: Wed, 27 May 2020 18:26:50 +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 v6 4/5] dt-bindings: serial: document LiteUART bindings Message-ID: <20200527182545.3859622-4-mholenko@antmicro.com> References: <20200527182545.3859622-0-mholenko@antmicro.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200527182545.3859622-0-mholenko@antmicro.com> Sender: linux-serial-owner@vger.kernel.org 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 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..87bf846b170a --- /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>; + };