From patchwork Wed Aug 12 12:34:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Holenko X-Patchwork-Id: 258142 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=-10.1 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 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 4337DC433E0 for ; Wed, 12 Aug 2020 12:34:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 24C90207F7 for ; Wed, 12 Aug 2020 12:34:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=antmicro.com header.i=@antmicro.com header.b="VEyzj5gr" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727912AbgHLMeb (ORCPT ); Wed, 12 Aug 2020 08:34:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727055AbgHLMe3 (ORCPT ); Wed, 12 Aug 2020 08:34:29 -0400 Received: from mail-lf1-x141.google.com (mail-lf1-x141.google.com [IPv6:2a00:1450:4864:20::141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C282C06174A for ; Wed, 12 Aug 2020 05:34:29 -0700 (PDT) Received: by mail-lf1-x141.google.com with SMTP id j22so1074734lfm.2 for ; Wed, 12 Aug 2020 05:34:29 -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=3PY9g/3/EzQtmuocoGjs6eUqtHowr2V4yVpGVas3X0U=; b=VEyzj5gra4cxoy/wdy5O5z5Bz553WMZvULoWkFfcoz/4di5udkPcO6IWQNFJr5EMTo SjKLojI83beWEA8w6E1MVuOFGeqyn/7d6Kyvna+7eLO3MpMU+I5/CpRE8oBOF2Z7/9HH QnJ7BOAK4RrFLQ3cGi/o1R5lXtu2MbuL3b7Yg= 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=3PY9g/3/EzQtmuocoGjs6eUqtHowr2V4yVpGVas3X0U=; b=bZJDJFzCWjN6PxrmTul9VCE9wS/T3wubpnmpak0nlKd18xH0nM5PMbUDSaNdOQCRqh yY4WZGFVfbQjTUdnOPTph7HS2QOjbpgtAUaThfOE7y2gtANfu3xRTvHWRkU5RCMCEsP8 3jgSYPyV8DFVws6cwwRHNnEYlkWG3QMXNjYvf6vRmIGqObbGI1nTVTThCGnNA1K9wDRm CDOL5L2PueKnirTIf7O3Z35UQ44Rd1gpu77n+vaoldZtGYLyVIp+EPOTprQYxepFR7i3 3c6Yng6SZt+Iv91yBw31dFYv3tFsKGa7vWujQXjUCOOqj8N9PY12cfD1H3SBUIPtrHoJ IDuA== X-Gm-Message-State: AOAM532/tCMfM0XdcVVxZLD5lpKuLNqmaxYvvsSfWvZ+x548j6G7VeJj atbHywV6SNPqy1+Fe51Vhkh+Sg== X-Google-Smtp-Source: ABdhPJwf8GYwfzv3jViud9QQgL4gJawJOl2Y04nHSxNPmi7VZVAjHIBFM3GfspJ6RsGF1UUFtSgW+Q== X-Received: by 2002:a19:414b:: with SMTP id o72mr5729172lfa.86.1597235667709; Wed, 12 Aug 2020 05:34:27 -0700 (PDT) Received: from localhost.localdomain (d79-196.icpnet.pl. [77.65.79.196]) by smtp.gmail.com with ESMTPSA id a7sm416952ljk.2.2020.08.12.05.34.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2020 05:34:27 -0700 (PDT) Date: Wed, 12 Aug 2020 14:34:20 +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 v10 2/5] dt-bindings: soc: document LiteX SoC Controller bindings Message-ID: <20200812143324.2394375-2-mholenko@antmicro.com> References: <20200812143324.2394375-0-mholenko@antmicro.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200812143324.2394375-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: No changes in v10. Changes in v9: - fixed the `reg` node notation in the DT example No changes in v8. No changes in v7. 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..53121c1fbe4d --- /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 = <0xf0000000 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 Aug 12 12:34:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Holenko X-Patchwork-Id: 258141 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=-10.1 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 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 42F81C433E0 for ; Wed, 12 Aug 2020 12:34:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1E76D2080C for ; Wed, 12 Aug 2020 12:34:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=antmicro.com header.i=@antmicro.com header.b="blx13TC0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728028AbgHLMe5 (ORCPT ); Wed, 12 Aug 2020 08:34:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727788AbgHLMe4 (ORCPT ); Wed, 12 Aug 2020 08:34:56 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B37DC061787 for ; Wed, 12 Aug 2020 05:34:56 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id t6so2008117ljk.9 for ; Wed, 12 Aug 2020 05:34:56 -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=pglXO+6K/BTFXcwEdyiLnM7Xs0mjyJhSNxYsCV9xqgs=; b=blx13TC0dE16F1HmE5vlcCN9pZD8feFB/RFR901TQX8gar50GWeDFSwmaHRm3+XLT8 GZNUhV0AC3wfjFgEm6uNMnnvHth/JwFHtYwMXcsv19rhfY6yufO5J4A0j6Bk+tw1RjYn fbJFQ4NNUlMQuuuqAFMtYjHTSSWzNHmDdRMzI= 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=pglXO+6K/BTFXcwEdyiLnM7Xs0mjyJhSNxYsCV9xqgs=; b=KB6cP2G2tNL398shDj2v/w0+ZDstBxlJ4s0ek1QXxzV/bJzIIsuRz5vqouyCFnw4F2 QEm81j5MorulDy8aRD1ObnQR+dGXEmIYjYLDSvBHhM3dMMdPrdhLJO71M82QRqXfW2OD BOzw4f6h5/uRYBLOTwqW3d2vVLwm1mExNmrifNP4ulhujOlGwEBH+lT1GuZJyhYq2jNF LuD9DH5ploBRXtN+V7TW+3fLqXSq6TRcQo2p3L6RkZOnZzgO0AIoxpC/Coz67yxn/MYe WOzJmUVq5f2IcIVLNrGxf9a1uyIuLRD87o2EhW0xpcBRe49JEi06sz9RH8hI76OehXWq e6nQ== X-Gm-Message-State: AOAM532Lwfp5wGXyq0OyGyFYZ9gMxFsvbJ0G3m5N4Fkk4+gShtN96nUg rd7uM7QfXBzzOjh6QbkH2ODXmw== X-Google-Smtp-Source: ABdhPJzX0hZy4nJorOBOP7eIPeUE710RJeLyasUK4Qb5rCOmD9pXCFSzq/jchrACUwgnVshRn4ljLg== X-Received: by 2002:a2e:9854:: with SMTP id e20mr4824063ljj.318.1597235694668; Wed, 12 Aug 2020 05:34:54 -0700 (PDT) Received: from localhost.localdomain (d79-196.icpnet.pl. [77.65.79.196]) by smtp.gmail.com with ESMTPSA id s21sm417393ljs.8.2020.08.12.05.34.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Aug 2020 05:34:54 -0700 (PDT) Date: Wed, 12 Aug 2020 14:34:47 +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 v10 4/5] dt-bindings: serial: document LiteUART bindings Message-ID: <20200812143324.2394375-4-mholenko@antmicro.com> References: <20200812143324.2394375-0-mholenko@antmicro.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200812143324.2394375-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: 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>; + };