From patchwork Thu Apr 2 06:45:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Holenko X-Patchwork-Id: 214124 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=-6.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED 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 60854C2BA12 for ; Thu, 2 Apr 2020 06:46:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 372E52078B for ; Thu, 2 Apr 2020 06:46:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=antmicro.com header.i=@antmicro.com header.b="eKwqVvG/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728425AbgDBGqD (ORCPT ); Thu, 2 Apr 2020 02:46:03 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:40486 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729033AbgDBGqD (ORCPT ); Thu, 2 Apr 2020 02:46:03 -0400 Received: by mail-lj1-f194.google.com with SMTP id 19so2002982ljj.7 for ; Wed, 01 Apr 2020 23:46: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=9xnZbxvNOKHFAZYRn5/ijjeLydct9dBBxLdIGW7A/1s=; b=eKwqVvG/nU10Aj1fIjxcIlnBIAW/UAhyk+8spqGbl4M1nzkJAQGK7aiXHgyF290n5C qnu5SXmd5sdqBePY5exZQrd/hen9mtA+pmwiH4qcPxkfh3jDQ+ngZKTRoEs2a5xXoWzr HG4Br6j52jlUlFCxZ9FShqQI5KWiWw9z+hkxs= 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=9xnZbxvNOKHFAZYRn5/ijjeLydct9dBBxLdIGW7A/1s=; b=hfCeAI0r+I8q2wk3KcI0CTw2Npl6XL3t9RzTOK3zqlJRPVAiUiSaNXNcKY9f8rJd4/ bdV1j0nccMvKLD9FMvsRpA64icne/qT9kxWZykXnuKmCreFUf/+V5lJZnWRf+33741BF GPHSyruoleL0xbNdjrr+dAr1kRS3RYbX//E71bAqbgsHketYezFaTtr81U/q/LyIAZeU pRNxB9WueedkGvtvocGewiIo7wKOfGif8rvrqLx/ekR0jkDFbokCgk8jYxM5BQPgyQsv ueEaUKdz900Ij5Uq6LXgBplBMGZgwI7B5f6nZYeTyJzN1IxrY4l5DHB8bynoazpUrk0g kc2Q== X-Gm-Message-State: AGi0PuY6v/zc6GJOsr6VyWHQprqQWEYGbO3pnHQmXp39ib1b4f+TxVbg WLXxQQ+DOnWgJgYogPgjVBDNiQ== X-Google-Smtp-Source: APiQypL5ab8kUwVRVcWcIiAwRrCmT//wFOwkdykPYlBYC88rMzjY4NOYcT/9iGaPrjtsMaol4ojq7g== X-Received: by 2002:a2e:9588:: with SMTP id w8mr1064366ljh.262.1585809960043; Wed, 01 Apr 2020 23:46:00 -0700 (PDT) Received: from localhost.localdomain (d79-196.icpnet.pl. [77.65.79.196]) by smtp.gmail.com with ESMTPSA id n26sm2559155ljg.93.2020.04.01.23.45.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Apr 2020 23:45:59 -0700 (PDT) Date: Thu, 2 Apr 2020 08:45:54 +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 Subject: [PATCH v4 2/5] dt-bindings: soc: document LiteX SoC Controller bindings Message-ID: <20200402084513.4173306-2-mholenko@antmicro.com> References: <20200402084513.4173306-0-mholenko@antmicro.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200402084513.4173306-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 --- Notes: 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 +# 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 cc1d18cb5d18..2f5ede8a08aa 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9724,6 +9724,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 Apr 2 06:46:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mateusz Holenko X-Patchwork-Id: 214123 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=-6.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED 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 05FD5C2BA12 for ; Thu, 2 Apr 2020 06:46:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D20C42080C for ; Thu, 2 Apr 2020 06:46:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=antmicro.com header.i=@antmicro.com header.b="c6gdlmsB" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728410AbgDBGqa (ORCPT ); Thu, 2 Apr 2020 02:46:30 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:33223 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726743AbgDBGqa (ORCPT ); Thu, 2 Apr 2020 02:46:30 -0400 Received: by mail-lj1-f196.google.com with SMTP id f20so2072321ljm.0 for ; Wed, 01 Apr 2020 23:46:28 -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=HyJ7YTufcrtaBiFCHjuoK9+SL6M+7IJE59xeCbvCaLQ=; b=c6gdlmsBNmy1dp9T3FDNqaez1rIdxpwOjBSbIUoIj09b3TUXyiA2XQUeyx/dixaxCp 5hHmO3C5+eJqwMgpquKsSPTOfWWNcwXz7WYi+Fvex1C4qPlVmmzV7Pes0wi7WLCNomem neCXg6szyY0rYGSmFzijZIz2S1lb0/sg3usDo= 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=HyJ7YTufcrtaBiFCHjuoK9+SL6M+7IJE59xeCbvCaLQ=; b=rRQL7KSnjJ+6zqsCEVR5420KFnC1PB8fw41JNoQoPJev48qfY8YEko3R3w2eoVm0EQ XW/bz/AnO3/LWgqQoa1ZQIKsFQkRDwQLMbjM8jH+zZCMgk4BGqaqB3ZMy9fisRw8qsv8 z2Bz5tkt/o/fi0Dl96MZvG8dWA06GvsOw1NIpRj1W2EnRZUW2O9ngD+LEW8BH8jDYOG1 ylhvD2Ah5H3odFRQvzd710ZKjy1Gji8dbcNSXJDs2c/pJPrP6QGZSzJ5fFte0t2cNFgY fS3biHKPcAcgVeB2uF92YusKrkEo96KcK8g/Ky8KDH8riU284avosak3aWAogKkOvbtU kyhg== X-Gm-Message-State: AGi0PuYYnfkDUuAN0/78X8GoxYlsyPSTzNal7T0nnN4gezvl6AKkZpd3 s53x3oRCJFXXMgFdoZxhgBD8qw== X-Google-Smtp-Source: APiQypLUSEe2djYB9OeSI9W5ScDyWLf0Z0tCnMHenu0gfRxN+XVgwkJNHpjj188KThIl39seiMQLQg== X-Received: by 2002:a2e:700e:: with SMTP id l14mr1096379ljc.51.1585809988021; Wed, 01 Apr 2020 23:46:28 -0700 (PDT) Received: from localhost.localdomain (d79-196.icpnet.pl. [77.65.79.196]) by smtp.gmail.com with ESMTPSA id h10sm3137572lfc.42.2020.04.01.23.46.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Apr 2020 23:46:27 -0700 (PDT) Date: Thu, 2 Apr 2020 08:46:22 +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 Subject: [PATCH v4 4/5] dt-bindings: serial: document LiteUART bindings Message-ID: <20200402084513.4173306-4-mholenko@antmicro.com> References: <20200402084513.4173306-0-mholenko@antmicro.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200402084513.4173306-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 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 + +%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>; + };