From patchwork Thu Jun 4 10:13:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Holenko X-Patchwork-Id: 1303430 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=antmicro.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=antmicro.com header.i=@antmicro.com header.a=rsa-sha256 header.s=google header.b=UIQtNB2N; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 49d1nb1J5sz9sRR for ; Thu, 4 Jun 2020 20:13:23 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726890AbgFDKNV (ORCPT ); Thu, 4 Jun 2020 06:13:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbgFDKNU (ORCPT ); Thu, 4 Jun 2020 06:13:20 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06696C03E96E for ; Thu, 4 Jun 2020 03:13:20 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id a9so2989014ljn.6 for ; Thu, 04 Jun 2020 03:13:19 -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=WUmyTqxSfskM62xuisvKT7kgxPPBRtPkhWKMRB3p5tM=; b=UIQtNB2NQwTL6Nr699IX6cXcWtvFF+bvXPkCRURE8M7j5xtFCr28b919++lOSss6nv Ygr3gRXgzyrYHxJHZPj3/WoWgmX1q4o4Tu6QzsaQwPFVwJ4ejgZyef+t1l2Z6QiGBosq 9JfINGMU9pztizvzzANuZLkn/n3jRZxIVpQh0= 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=WUmyTqxSfskM62xuisvKT7kgxPPBRtPkhWKMRB3p5tM=; b=q+U77b0bzZf2kUfDrSlUtFzQ/4WsiRnTiCOBBAhWIsqs5hv5Q/KtIpywV3xbeldfB3 gWVPBzkd5PiAnR59sfmNgS6DLRGA7nVa+5KShjUwgOGroy4vtmk0cnptWHCE1mGZg0k4 D6v0GVdIPuo1zicDbf+OfZMNBRAy26jU5mj3gCnw2a3zGQ/6EOF6ylpnfj6sNPBnUzSn clS4v1bUWsDk36IAF5lZFFlfOWxDEPEPeopErgrkH0gVnKZL9elns5VBgwY68USiJ9pK vyIWvD05kJCtxBmLewCWfBZ1tuDVrmar6cpzeBGtzFI2OOgHq/UE8jIznD1KRxiVW+Rw Tdog== X-Gm-Message-State: AOAM533NaOdSvvGG03E9Kujyd9uk0Jq0WvLHd4dPd9WigxI70nWy7Trw jCQN0WOZHh199a5bbm8u3C2muA== X-Google-Smtp-Source: ABdhPJzhna3WAOIKLBaalRS3fGtym65ULihde2dV23JDTe/SV7Hmo1UgLnQB16v5MguATD5wzDVwRQ== X-Received: by 2002:a2e:b4e7:: with SMTP id s7mr1689284ljm.336.1591265598323; Thu, 04 Jun 2020 03:13:18 -0700 (PDT) Received: from localhost.localdomain (d79-196.icpnet.pl. [77.65.79.196]) by smtp.gmail.com with ESMTPSA id w144sm1363613lff.67.2020.06.04.03.13.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2020 03:13:17 -0700 (PDT) Date: Thu, 4 Jun 2020 12:13:12 +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 v7 1/5] dt-bindings: vendor: add vendor prefix for LiteX Message-ID: <20200604121142.2964437-1-mholenko@antmicro.com> References: <20200604121142.2964437-0-mholenko@antmicro.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200604121142.2964437-0-mholenko@antmicro.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Filip Kokosinski Add vendor prefix for LiteX SoC builder. Signed-off-by: Filip Kokosinski Signed-off-by: Mateusz Holenko Acked-by: Rob Herring --- Notes: No changes in v7. No changes in v6. No changes in v5. No changes in v4. Changes in v3: - added Acked-by tag No changes in v2. Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 997934c58f9a..d2eaddc473ac 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -575,6 +575,8 @@ patternProperties: description: Linux-specific binding "^linx,.*": description: Linx Technologies + "^litex,.*": + description: LiteX SoC builder "^lltc,.*": description: Linear Technology Corporation "^logicpd,.*": From patchwork Thu Jun 4 10:13:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Holenko X-Patchwork-Id: 1303431 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=antmicro.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=antmicro.com header.i=@antmicro.com header.a=rsa-sha256 header.s=google header.b=JnWKTfsU; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 49d1p12pyFz9sSc for ; Thu, 4 Jun 2020 20:13:45 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728083AbgFDKNn (ORCPT ); Thu, 4 Jun 2020 06:13:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726288AbgFDKNn (ORCPT ); Thu, 4 Jun 2020 06:13:43 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C7E3C03E96E for ; Thu, 4 Jun 2020 03:13:42 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id j12so3238989lfh.0 for ; Thu, 04 Jun 2020 03:13:42 -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=QYui7ZerK26a460cGOoZXzgizKRsj7qIogyulB6bf4Y=; b=JnWKTfsUdzbZB9H6MpFQSPhuCXmsJ5y4XtvPFHCIm4gjxkGi4uWzMha6+fiaTaP6NW vhMUska8wiSUlwjK12jGll9l2iqn38Nx7Ldu0vczGU+4aV/w9moVyU0Jj3R9bKWsKcz9 T1Yhcuh1AJRlZPQjtbxdNNitzQyMQTvHtgsAQ= 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=QYui7ZerK26a460cGOoZXzgizKRsj7qIogyulB6bf4Y=; b=uNjyMirK2ORhGWuLU3z1WlQYGsOsDjlSkUbCyiLoQgl/jkB2vxmPpG0ULIXJX7g2DP 0e3RK9uy0Mt4/5rcrFy3x42m+UEBHZZIC/98KnfpeGfH0qpS/QlJRAD/x7ApLDYfapKi kSRpvyL1dPCBkFkSeqGQnztiTTkmsAToCr/cNDnqu8qRixGoAh4jd3TOcJZ7hS84ejQQ +pkR37swpvJQBOuH7a+Hf8JLBhhCenUa8VdT8EQmmoqCqgtO/K+lZUtRnhQmjNTqMOf6 AFsruei90AwRpYNFaOD4LUbmMJJVwn9WbZD3xULSgjH9CwCH9oC7vWz9Uw3zZoSeaYGi ShsA== X-Gm-Message-State: AOAM533NVrHYpsqRIPcxoypOdnpWrZyZCCG2AxYcYQFRZ8XN6sONiEic kUUvwNnN9z/U+HYC5wuxnmNVdg== X-Google-Smtp-Source: ABdhPJwij+JC4DOAVIVV71coO2P3NYjkxsNFWFSM8/dc+4RgWeh/5QOCnb7Mo59Dfi1SHNvgL+jRxQ== X-Received: by 2002:ac2:59c3:: with SMTP id x3mr2149997lfn.117.1591265620601; Thu, 04 Jun 2020 03:13:40 -0700 (PDT) Received: from localhost.localdomain (d79-196.icpnet.pl. [77.65.79.196]) by smtp.gmail.com with ESMTPSA id v28sm1362150lfd.35.2020.06.04.03.13.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2020 03:13:39 -0700 (PDT) Date: Thu, 4 Jun 2020 12:13:34 +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 v7 2/5] dt-bindings: soc: document LiteX SoC Controller bindings Message-ID: <20200604121142.2964437-2-mholenko@antmicro.com> References: <20200604121142.2964437-0-mholenko@antmicro.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200604121142.2964437-0-mholenko@antmicro.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 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 = <0x0 0xf0000000 0x0 0xC>; + status = "okay"; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index ddc1dc7e535e..e3f8804c08d7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9918,6 +9918,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 Thu Jun 4 10:14:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Holenko X-Patchwork-Id: 1303432 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=antmicro.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=antmicro.com header.i=@antmicro.com header.a=rsa-sha256 header.s=google header.b=cUHBio21; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 49d1pZ4lGLz9sRR for ; Thu, 4 Jun 2020 20:14:14 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728250AbgFDKON (ORCPT ); Thu, 4 Jun 2020 06:14:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728231AbgFDKOM (ORCPT ); Thu, 4 Jun 2020 06:14:12 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86C03C03E96E for ; Thu, 4 Jun 2020 03:14:11 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id 9so6528302ljc.8 for ; Thu, 04 Jun 2020 03:14:11 -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=GKI9f+wljRQ2bu2SCyIYzWUkBbEcdk6KmefvDDgkdUc=; b=cUHBio210vSBmUouL/ognVAIvIRivErICd0JHKYnbQOMc/TIyQWfJM9IlVI+ppFpIb FdX1H6kvjPrVc/8uy73SSs6qNybmam4pDYxxwwFdsfsWfYwpQl7No8eFAES7qry94CyV UNpR83yLpoOZWK0JH4pb+EcsOQYjailkWgIFQ= 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=GKI9f+wljRQ2bu2SCyIYzWUkBbEcdk6KmefvDDgkdUc=; b=q1wBr4D/ZMR3QrTF6LW7cGJhL1WTf09h3a2s15fPKsMOEVNm8bQ1uNGSydg7yKi+wE 7Z2T90yj9YWnsPYInekwDNWRDwlLDAOUeNTN1wOFuAUvP81LL72DDXU9o4ExXCki9xhv qoD9fdtXNsackfMSCaRhpglPIcbzclCWSGdwToLtjQ0I9BBnv2xhxMgIoGbli8cON9NC vYxGt4r8Mf8qAybN+VMh0WekmcbCeiwfs2Vzoc+pTcDzLFLI6QCbJGGI+H5dbhlvh1oD 8Ca7G+uJpLWwOiPEAPLCSQtJcK/qvAY5ezBnxr9qO47REye7FH+SwOUeqkOmHahZofg9 w6MQ== X-Gm-Message-State: AOAM533cw9FR6IouOo7jlVm2Cw7NgLJCHdVUrus/dYrogrzLrr1rdzGO HvjWeFrxsR4lACv60DX7mrXI0g== X-Google-Smtp-Source: ABdhPJwsTwnipMP/V0HhlzvKGAObXRF/0JSDWsDsgc/WUwfA7esD6rLv8o77P6u6nvV2uBIkyoW+CQ== X-Received: by 2002:a2e:7610:: with SMTP id r16mr1897830ljc.88.1591265650032; Thu, 04 Jun 2020 03:14:10 -0700 (PDT) Received: from localhost.localdomain (d79-196.icpnet.pl. [77.65.79.196]) by smtp.gmail.com with ESMTPSA id v28sm1101730ljv.40.2020.06.04.03.14.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2020 03:14:09 -0700 (PDT) Date: Thu, 4 Jun 2020 12:14:04 +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 v7 4/5] dt-bindings: serial: document LiteUART bindings Message-ID: <20200604121142.2964437-4-mholenko@antmicro.com> References: <20200604121142.2964437-0-mholenko@antmicro.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200604121142.2964437-0-mholenko@antmicro.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 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..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>; + };