From patchwork Tue Oct 13 14:45:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Holenko X-Patchwork-Id: 1381633 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=vJzCHegg; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4C9ddG3tgnz9sRk for ; Wed, 14 Oct 2020 01:45:38 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388932AbgJMOpg (ORCPT ); Tue, 13 Oct 2020 10:45:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388954AbgJMOpe (ORCPT ); Tue, 13 Oct 2020 10:45:34 -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 B2BDCC0613D0 for ; Tue, 13 Oct 2020 07:45:33 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 77so36027lfl.2 for ; Tue, 13 Oct 2020 07:45:33 -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=jlIMHmRJzRdhdiHnj8E8zCbvxaVzpiEGp2QpRRia+RU=; b=vJzCHeggFHVLBcDajiEGnH9kPwV0axI0dKUEtK3EgLI6EdXYAU7/mWGlFLi/H3QNp5 c1S6oWHuRfxPHqyx4h0B5PNAWE1l5mBOG1M7gQYT+fcdE/T8IG2b1JliGtCbKIejTHcq Y5K9wAQNgHBeCrceN3NBoKgcDzcjBr9O3JGkk= 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=jlIMHmRJzRdhdiHnj8E8zCbvxaVzpiEGp2QpRRia+RU=; b=Tnjj6rYYzVmhHQX7tub5jSQskEsl729WWz+BYCPR50ErtnC3xEDuggsl0nQnftetPs kUKGPE/R9pYNM0LFNUU1mDPYgDYszBYM82nSQHd3llgeYyra4ASF6qCnjEuXfL4MiDww 6UFhBS8Rc5aUdZhJ17lxJHRBIqESzwxkFAsXhxFluMX4cHAS0BPXTHXHU5MAqGxAJu2W YdzOwzhLMaLHgRgUn7XimsENc2q5p1bckKPyHcNH4fqF3a/H1666xK+tkBBMXpluQxsh QXuSBSns+XFf/y+q2iH5G44A0eP39ySvKlIvqcHHCI9FU1WNvErTHUnCYAsS9Gjk19Fb 7InA== X-Gm-Message-State: AOAM531STm/gg9TbCaWXcXOC3zuAK60CdYxdAeUVw8ssf3suyWTCy1vp MR16hli7C9AEZq0DcIfJWufMMg== X-Google-Smtp-Source: ABdhPJw7dq7jgtXKc/GuCVJ2dgz7UjE/8XjamhQlnHEOveKXv/uAZKy91+OxOuQ0PmgFc/JNiH0p4Q== X-Received: by 2002:a19:3859:: with SMTP id d25mr11166271lfj.179.1602600332185; Tue, 13 Oct 2020 07:45:32 -0700 (PDT) Received: from localhost.localdomain (d79-196.icpnet.pl. [77.65.79.196]) by smtp.gmail.com with ESMTPSA id l129sm4452924lfd.191.2020.10.13.07.45.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Oct 2020 07:45:31 -0700 (PDT) Date: Tue, 13 Oct 2020 16:45:24 +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 1/5] dt-bindings: vendor: add vendor prefix for LiteX Message-ID: <20201013164454.2002023-1-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: 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 v12. No changes in v11. No changes in v10. No changes in v9. No changes in v8. 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 d3891386d671..9aae6c56d7a3 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -571,6 +571,8 @@ patternProperties: description: Linux-specific binding "^linx,.*": description: Linx Technologies + "^litex,.*": + description: LiteX SoC builder "^lltc,.*": description: Linear Technology Corporation "^logicpd,.*": From patchwork Tue Oct 13 14:45:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Holenko X-Patchwork-Id: 1381634 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=Ap1hDLxK; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4C9ddV4ZJhz9ryj for ; Wed, 14 Oct 2020 01:45:50 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388989AbgJMOps (ORCPT ); Tue, 13 Oct 2020 10:45:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388972AbgJMOps (ORCPT ); Tue, 13 Oct 2020 10:45:48 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E77C2C0613D2 for ; Tue, 13 Oct 2020 07:45:47 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id j30so23124lfp.4 for ; Tue, 13 Oct 2020 07:45:47 -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=pJiypWtRSWGeA7qvGozCNTMcITV17kuSzo6s5k3yp0c=; b=Ap1hDLxKbZkfleLmsjHoYjiy28861EusmWSvaGnN18GXwiUwqo+45d8ucMkH5ORbIf f+WP8dmVnjmPjdfCJ2ai+mdU3DJF5gQ6AW2ftlfnR7rLgm8oR1PFkRkTZnK40WFEu+Y0 shcI5xjGascCEm9BQluFvr5KMJq0AM2AQ4wOc= 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=pJiypWtRSWGeA7qvGozCNTMcITV17kuSzo6s5k3yp0c=; b=LvqIzWv4o93g+iEcZb/Ylb9Lxq1gNOZ1ZjQIcFCLc3yzV8u7EbtKJoZcNQquYcqQ25 r4hXeU8OE0boBRkU29WuItJLa4nCvSptcuFDOz1ky5v7PaejPS3e+CAeZ71dRFXhm7yR AUvH3hEPzCik/S6HbP66IjkNCgXODUyYQDJT4E2OchdjCalYk8DtOjdA9LxutHEPaqGb mRhqFRFqHOTaUlTIIRS4ZhlNmLFjxdIjoCYpp5AIzYCKUQZ7YBnSRVQco1LJxM1yXxqn tlbRQAfFBfMfljosv18SOmmzGHpsl5++LZHe8A0FNNcIIXJ4br+N4F1SnOPDK9Yx+6AP S/9w== X-Gm-Message-State: AOAM532udRSoB5zL7Z0k2yItKhfrneNU/iXt+H/2sreM2q2pWw/+QKIj VJvPRWm3MmX46CxpkVB6HMdvAg== X-Google-Smtp-Source: ABdhPJzdCS2hRhUwwM98BhE9GUIZoNmvjOpWxz8AWxl855PrVpwphnpEHcu0tXGfCY+abzv0n/z7Sw== X-Received: by 2002:a19:2302:: with SMTP id j2mr8897933lfj.78.1602600346272; Tue, 13 Oct 2020 07:45:46 -0700 (PDT) Received: from localhost.localdomain (d79-196.icpnet.pl. [77.65.79.196]) by smtp.gmail.com with ESMTPSA id m30sm4506250lfc.97.2020.10.13.07.45.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Oct 2020 07:45:45 -0700 (PDT) Date: Tue, 13 Oct 2020 16:45:40 +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 2/5] dt-bindings: soc: document LiteX SoC Controller bindings Message-ID: <20201013164454.2002023-2-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: 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: Changes in v12: - fixed the description and the example in the yaml file No changes in v11. 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. + Its purpose is to verify LiteX CSR (Control&Status Register) access + operations and provide functions for other drivers to read/write CSRs + and to check if those accessors are ready to be used. + +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 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: 1381635 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=upDG6raP; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4C9df40tMcz9sTv for ; Wed, 14 Oct 2020 01:46:20 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389020AbgJMOqO (ORCPT ); Tue, 13 Oct 2020 10:46:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730386AbgJMOqO (ORCPT ); Tue, 13 Oct 2020 10:46:14 -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 A47CCC0613D0 for ; Tue, 13 Oct 2020 07:46:13 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id a5so20708994ljj.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=sTC9bT1wg2eDuDFwAu/Je/kDWPsl4HCsLvfozKmohE1mOo9BELrOCdtM1syrVDUb9j W8Q1Nt0istV5s5geUskyEwrh4OSzvIfIT2kNp9FYbL7Mx5aawKbD7FbvkBHyOhJxq8G7 sH7LgkLH/aESoIPlD+UNTeBD7PKYRBdPEQCnJKqMoq44LmpoRbm2cciVEmHVqONaDQPF 0GyDMylnq3f+Yqo888wlImusjIm+3r4VNQzKoAPpDQJtLwUz6w0iQHEzFsMhzt/vGZbx lOykaLKdFs4a28bfvYo8zkvJUDVLvfItiF7HAcjSrdjeP4nZjOJb2Gvji0WEwsEEvsFl ljHg== X-Gm-Message-State: AOAM530YqWxc2fQB1E3T4PuHueyl5uin88Areo8E4AYIA48kpfamFXkq YJ22B+GTPDmaqF+4B6+UNY+q5w== 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: 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: 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>; + };