From patchwork Wed Jul 15 11:07: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: 1329381 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=iGIaQkXi; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4B6F3425W5z9sTR for ; Wed, 15 Jul 2020 21:07:28 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729036AbgGOLHX (ORCPT ); Wed, 15 Jul 2020 07:07:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729336AbgGOLHW (ORCPT ); Wed, 15 Jul 2020 07:07:22 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CD84C08C5DD for ; Wed, 15 Jul 2020 04:07:21 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id i80so819553lfi.13 for ; Wed, 15 Jul 2020 04:07:21 -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=pdpyDKWlzuaMU2ht3Q+igXAxvM9HrHqG+4QvM2jlT+c=; b=iGIaQkXiShFfnr9nnsBVqiHLyDV2i/diGsGdxbdsb0W4hI/d27WGuJm0qiXhrQrsOv e0CpENdGqh6nDa/vMZ/LZ13ZtcCBsHmu+2bSPFGVhZeHlaNzIgDu6acDW7Hx9D3Nm0J2 nZNKMmOiUQuK+fOBeP6qsDxKMQ4zzWyG191+M= 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=pdpyDKWlzuaMU2ht3Q+igXAxvM9HrHqG+4QvM2jlT+c=; b=DQ55tINLlqJGv5QfqBIs09k79LuAflhl5ZpxYd+EnPsHNo+SsCKVW6CAfphd9DKFvN WA2eI1qT8ZUTws/nv0Gb2dm4zMI1UdSTMjYy0/UMHtzESywwfQkkvGxzmKxYVzTTtYiR OXYY3xlPKZQ1m3zZZ1eKe3A2x6Bj+Uarv1RB20sEgPBzELcTRBAzFzYzzDmrZfuv7luF 9JPNqpzObpMrPqQ4NES4exhzSVlx6qk88smdyMnzyYeUXaz6Hh0U9IrlsIGpUFxHn4cQ a2RhiowOpYjND47iugWaJ8LMq047uUBN8rsIvOXeieG2CSJad1dYi8JNDMRm/2gV8r8G mFmA== X-Gm-Message-State: AOAM532BskwIuZDwvd/fD4eR9+L5i62FyHsRcWEXtpmU03spbPz8cEEo Ga+Kn1fYdrADo0UuQgCP6xzpHg== X-Google-Smtp-Source: ABdhPJy67K3axBXP6mrRYj1MC8LtQasUqF1tjbZab+wInn3H9AUQjtmFctH5+hZmxMUFYBwGUCw+3g== X-Received: by 2002:a19:ad41:: with SMTP id s1mr4549314lfd.191.1594811239973; Wed, 15 Jul 2020 04:07:19 -0700 (PDT) Received: from localhost.localdomain (d79-196.icpnet.pl. [77.65.79.196]) by smtp.gmail.com with ESMTPSA id l5sm513327lfp.9.2020.07.15.04.07.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 04:07:19 -0700 (PDT) Date: Wed, 15 Jul 2020 13:07: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 v8 1/5] dt-bindings: vendor: add vendor prefix for LiteX Message-ID: <20200715130641.1953227-1-mholenko@antmicro.com> References: <20200715130641.1953227-0-mholenko@antmicro.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200715130641.1953227-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 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 Wed Jul 15 11:07:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Holenko X-Patchwork-Id: 1329382 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=e9C692Vz; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4B6F3K6bbPz9sTQ for ; Wed, 15 Jul 2020 21:07:41 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731385AbgGOLHg (ORCPT ); Wed, 15 Jul 2020 07:07:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731382AbgGOLHf (ORCPT ); Wed, 15 Jul 2020 07:07:35 -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 9E92AC061755 for ; Wed, 15 Jul 2020 04:07:34 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id z24so2084445ljn.8 for ; Wed, 15 Jul 2020 04:07:34 -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=xgs4X7HHEAr6N5thQhhuocvXIaftVqd/gnnd/TxJOOw=; b=e9C692VzqyKZUmpm+3ZcG+Irmwy+XFn17tvb5j4TSNtLsmIb1MGeR3nSZq/z2oJLxv 5UY4/i+a8Vil3syZr+zNqxjjlBsaDqRDV9+AfRvlSi5kVqC4Ko/UbOPG2h+bbFiq1xh5 k2U/GA8bHzPkMORNMi7L/2s1FfESInz/Z/aBg= 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=xgs4X7HHEAr6N5thQhhuocvXIaftVqd/gnnd/TxJOOw=; b=Bwq/hUYSN6Vqq0GdOU/WItzFtlJ98ehk7jCKQr4AcDGAa2E4Jf9hoFjNdJayqFxibi rd+BYhAWC81E7g16EzGjXTzi3866AzISfXMOzf7DpJLS7Sk6TTgmO/S2NvFFGi3j7Nuk t0m9REiZCovZKghTjf8e0ic9nJVddPuO7npSkucx/WJ8F5vt80hq/mE249N9qwt1Ab6i 7jKb+VhMS4C2SPHQJmaTOrkrmPW0YS7Yst8CZ96q3Sn6aM9GnpH86e7jBKoMKnAdquR9 jmjeGxT2vKh1R1n+L6hHVt0eSMtXxmmlyE7pOSttXYAsqnNNHTJax5Ichr/4LftLf5vs Yktg== X-Gm-Message-State: AOAM531VIN2L/WtEeJNZBPQcwPHSEtQw44XmcBoXjZu6uY0w2N7j7bxk 2cZIJjhntgysQhR3CXe4Xibat/hUyWgyTw== X-Google-Smtp-Source: ABdhPJxik59N5NoQxXnpUFic3MbRidUBYHrBRrB/pxQKr6VCca8R8YzB0vWK/IfrVkUsKgRRk1pq7g== X-Received: by 2002:a2e:9eca:: with SMTP id h10mr4622605ljk.273.1594811253113; Wed, 15 Jul 2020 04:07:33 -0700 (PDT) Received: from localhost.localdomain (d79-196.icpnet.pl. [77.65.79.196]) by smtp.gmail.com with ESMTPSA id n4sm425471lfl.40.2020.07.15.04.07.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 04:07:32 -0700 (PDT) Date: Wed, 15 Jul 2020 13:07:27 +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 v8 2/5] dt-bindings: soc: document LiteX SoC Controller bindings Message-ID: <20200715130641.1953227-2-mholenko@antmicro.com> References: <20200715130641.1953227-0-mholenko@antmicro.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200715130641.1953227-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 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 = <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 Jul 15 11:07:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Holenko X-Patchwork-Id: 1329384 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=gJLhhB65; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4B6F3k5rMyz9sTM for ; Wed, 15 Jul 2020 21:08:02 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731403AbgGOLIB (ORCPT ); Wed, 15 Jul 2020 07:08:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731384AbgGOLIB (ORCPT ); Wed, 15 Jul 2020 07:08:01 -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 B3E20C08C5DB for ; Wed, 15 Jul 2020 04:08:00 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id f5so2064114ljj.10 for ; Wed, 15 Jul 2020 04:08:00 -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=cPKWFtolDPofy4S426BSH99RJKD82yAKEvmC7z8YXk4=; b=gJLhhB65O3AFnwx10zb1P6z5SfxXuuLNR9U+5CJSFJhuENqj1tK0n3ikqXMHVImE33 d845rP+ei5QVptZXFt4hsbIFG49n7LDABVG9YBqIuWNTgSCQcyHoopDFvDQFXtQqD+t+ he2yuQeQ4DOVtNmDcf1243W34i49Qnu8fohRY= 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=cPKWFtolDPofy4S426BSH99RJKD82yAKEvmC7z8YXk4=; b=bkZcfOvlSd+RzsJVig/OMka5SMzlIHsZE+swV6zNKMaC85FIgfe/VPBzZ4NFyCnjtq Z68PA2KzSo94d16A+ix5F7nu4Vp7m1aHqSpG41wgon6KLmNKHwNpgGrDGBjvCDdheNqn bPCPabPPbU2pq+7kePeY1VzVvJXqixV7LuzSaWG+PNXtDIWNsrGcc4MtCgiREBU1lGde ee2gD4JYWdLrcwyYphT2NAaxyzfe9NX6Gn9fPsPumPVRuq5qbWuFKDHUSvFFAmkiAEMY w4wHF96fElA9vuzKuVodEhFhnuR58fmwrsdmSsnamgzG2Mi+iBXAfSkyBiI1/n1AsUQT Et7g== X-Gm-Message-State: AOAM531+O+dwdtRLQM+y3i7OIyTI02mNDVG+Ytj3pdBFXgHehsX/KKGq 2vfV+TfW3VFq29SQOXygCmtFdQ== X-Google-Smtp-Source: ABdhPJwz2pDMsmhLzTvonSaPlbSoC+7cyhrmGqj375t8b2+Q2kDlgQr0hqRzHNs0xpVduo+n1Xjyqw== X-Received: by 2002:a2e:b4ed:: with SMTP id s13mr4626150ljm.296.1594811279253; Wed, 15 Jul 2020 04:07:59 -0700 (PDT) Received: from localhost.localdomain (d79-196.icpnet.pl. [77.65.79.196]) by smtp.gmail.com with ESMTPSA id m9sm430669lfb.5.2020.07.15.04.07.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 04:07:58 -0700 (PDT) Date: Wed, 15 Jul 2020 13:07:53 +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 v8 4/5] dt-bindings: serial: document LiteUART bindings Message-ID: <20200715130641.1953227-4-mholenko@antmicro.com> References: <20200715130641.1953227-0-mholenko@antmicro.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200715130641.1953227-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 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>; + };