From patchwork Wed May 27 16:26:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Holenko X-Patchwork-Id: 1299045 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=p5RaWs4K; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 49XGRc096dz9sSs for ; Thu, 28 May 2020 02:26:19 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389716AbgE0Q0S (ORCPT ); Wed, 27 May 2020 12:26:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389903AbgE0Q0R (ORCPT ); Wed, 27 May 2020 12:26:17 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B267C08C5C1 for ; Wed, 27 May 2020 09:26:17 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id q2so29642101ljm.10 for ; Wed, 27 May 2020 09:26:16 -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=NGxN51AQqztcyfn3BiBc00+QK/qVzhsSjQFFAAJJPdc=; b=p5RaWs4Kz5ihoV1zi6MiQwoe/iA+eISPpBLiQy51yd2LsKvii+gTGoZyanYKzG5Uax F4e7t8RBbzpcRyuXsTchPLmkzAVlzODr7VQMw5BCSt0Qvy0OG8T7CYO9hcdo38ZUZvi4 90HdLxvQtYFrwdG8e5JO0/h7ZlISHwDrKdMHk= 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=NGxN51AQqztcyfn3BiBc00+QK/qVzhsSjQFFAAJJPdc=; b=LIJfAAkq3BXPU28uTiOtq1FjVNRjhryzxnpiWrjD4ffA+hRP+CRkESEW+yTqill6fg ezu464pe6/ORG6uhk7+XHRt2B2KqdZnYYEsEexq/T2t5RxWHN22LwdTRp+mO5QXxHgH4 puC2aeOjUj8FWzyR3Cy6ppwKVpCpzR+4K3t9d1RrTloPNirUkoJoi8r3/OeyKNN3A9Xh 6/6G4VcFEYBD69yyADANSzalrRe52Kn7t7tJfOje+2o2jRg90hdPUuWke6446L22mLJk AWXPp9iZS+gpY6fVIKhyP6hVeF1wdP2pUb0L/LAUqUipdXbPzWoIozagf/9A68PSvc4U H6bQ== X-Gm-Message-State: AOAM53222T1VOX0wUvLdbuSNlmzykdnJK4j9GViV3Y3pGVVwQdgwmE8I 9EazF+rcDni9otaKPpNf4kEB9Q== X-Google-Smtp-Source: ABdhPJy6b7SXdu38UyYKHoPPN47aH8U59t6YMiO3QKwT95eJ2ZYPViquJBWFqZzclAKXW9p6SxMRMA== X-Received: by 2002:a2e:7614:: with SMTP id r20mr3276762ljc.394.1590596775507; Wed, 27 May 2020 09:26:15 -0700 (PDT) Received: from localhost.localdomain (d79-196.icpnet.pl. [77.65.79.196]) by smtp.gmail.com with ESMTPSA id j14sm877779lji.63.2020.05.27.09.26.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 May 2020 09:26:14 -0700 (PDT) Date: Wed, 27 May 2020 18:26:09 +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 1/5] dt-bindings: vendor: add vendor prefix for LiteX Message-ID: <20200527182545.3859622-1-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: 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 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 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: 1299046 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=Ge5jW0Vt; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 49XGRr5dCvz9sRY for ; Thu, 28 May 2020 02:26:32 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389726AbgE0Q0c (ORCPT ); Wed, 27 May 2020 12:26:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391078AbgE0Q0b (ORCPT ); Wed, 27 May 2020 12:26:31 -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 D5B35C08C5C1 for ; Wed, 27 May 2020 09:26:30 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id z13so20004289ljn.7 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=buY9aZfruzwQJ8fT2gwqVlDatAR4Yy0XazEB1dcRTsBMAdQKFC945V8V9XAVExXcDZ /+Ajd5axqsiztyn5kF7qkXxmn6U1HhZZXOlplUA6PMDy9Z+UvhZW0RCovZzRgMXmUteB csvL3lwGD1Ti0d6LAy/QKyyB4hYK331RqgFsmhwM8CZl8YXi8NHxGy8aDYXZHgpixQFf SfH8ooO/oS+Z7h3QA2yP92rmvuQEtwHR1fe1Hk0on2PNSXlPgLo6he2Ai/9x1C0Q44Qx Wk01l2vfw6bOcRAF5Y+oTIjygeTIv6lbfmD+hqQNF3jLcR/oo2qCgr0bhmBh5AEV22xf lq9g== X-Gm-Message-State: AOAM532ZAW2i9L3BbcbXNgfiFxrVyajlALpDBzOkCRMu7XgR2dgrbt9R sKLEWIeOrUdf5zUttGjivyYDLQ== 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: 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: 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: 1299047 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=c31xNxz8; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 49XGSP3yMbz9sSF for ; Thu, 28 May 2020 02:27:01 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391106AbgE0Q06 (ORCPT ); Wed, 27 May 2020 12:26:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391091AbgE0Q06 (ORCPT ); Wed, 27 May 2020 12:26:58 -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 5F199C05BD1E for ; Wed, 27 May 2020 09:26:57 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id w10so29735383ljo.0 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=nemhpuKMTxCf4p7rmWjhKNllOTAw3enVcy+oO2EkSCmOAU8pKuFMz3Khv9ecZDvNPc gZBIgMsOUlos9QjPUQHCcNHn7BB2H9U+ciaifMJtqQf1OxcH5XspT9aDaAkdRrCEFAGQ ZxhWsPQUniYCGcowOc4ZByZ6c5dr3S9+SnMVRd7pwgvB+7voCU5qyT1HZZ/Y5beu7a6a +rx3yduqCcKiQDXOqHLt/5ewP/jTA108ykZYHL1T8xMoLRVYz2FYR2Ys7Z/BaFZCfn+J MQnWd3RhNHXX0ew6rq5yTaLvg5BgDd9ERqAOw8j63YBDQ4rb5MNX3H7+lTCuKFZw3ySH /MIQ== X-Gm-Message-State: AOAM530dDUDJz08KtpxkGinlaWl5haz3ebXua40Bsxs+yNA2QgAAO5oz rbaWFepSzu+HfM0DHdHb/dgE1Q== 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: 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: 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>; + };