From mboxrd@z Thu Jan 1 00:00:00 1970 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=-5.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS 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 26FFEC55185 for ; Sat, 25 Apr 2020 11:41:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F3D83206EC for ; Sat, 25 Apr 2020 11:41:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=antmicro.com header.i=@antmicro.com header.b="kCLiymqA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726107AbgDYLli (ORCPT ); Sat, 25 Apr 2020 07:41:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726050AbgDYLlh (ORCPT ); Sat, 25 Apr 2020 07:41:37 -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 E26D7C09B04C for ; Sat, 25 Apr 2020 04:41:35 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id j3so12620428ljg.8 for ; Sat, 25 Apr 2020 04:41:35 -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:mime-version:content-disposition; bh=gPOslaJS03IHNZDUPg+ylYPnpp4lpO0hHiVIujLXKZQ=; b=kCLiymqAQAvHEj/A6Vzpgk4xqpjkRSKnEdTF0U8KdlAvduMoXElnR8ohQE5BUHk4Pw lksqxjsBpHNnpzuZZ5/Bb7Qwvtoo02CbpPrSKb1WZKbpcd5YfuLvUByStGloyum6aSCV SCm5DqJMDLmpcdZgDM/o852SnCSgrnXLxy1tg= 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:mime-version :content-disposition; bh=gPOslaJS03IHNZDUPg+ylYPnpp4lpO0hHiVIujLXKZQ=; b=XxMPyOXR7XyGBQ0AmatLira6aGcuc/yAcBAZH6CJrGqhMdn7dI4I2ZSWTfFV23BMpQ OGFbRQwfqUg7cnkCXVw5ipQDYKbu6CiSXQxX8sxK5px3OQfn868H9N46feVgm6qZArMe vi4iooXuEbLWBUPRZt7Vv4vv0NhF7V6Q1aL/1MU0ZwjvJ9g3qr2HUqwrnrdEF+D/LsRZ mVAWlJWSOLZiUtyovoHpZP//kwIlsPcM11KT4Ke/ORmG36Jv2u7YwCWZjU8MBCwGl7fF jgh50rLDFR1SVW1J/YIbLjOUz2521ehVViUiSOaRvCVpGtd1KUoZ2EaNVT12ATm9CmlT +7aw== X-Gm-Message-State: AGi0PuYrk21Bqz0wnyMUePxSK+d0ZGBLmMcy+2e4+7BSy4qAAqQx9buj ZNjRKWi7LDOAYV62dbrARnvT1g== X-Google-Smtp-Source: APiQypIaFK4AZ/WydTF7l0S/VD/LpaimsXEHmooK4ekIzyxedqtygTYOg6ubMv49Ytj7H8/UX4iuhQ== X-Received: by 2002:a2e:b012:: with SMTP id y18mr8675993ljk.238.1587814892733; Sat, 25 Apr 2020 04:41:32 -0700 (PDT) Received: from localhost.localdomain (d79-196.icpnet.pl. [77.65.79.196]) by smtp.gmail.com with ESMTPSA id v3sm6454896lfo.62.2020.04.25.04.41.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Apr 2020 04:41:32 -0700 (PDT) Date: Sat, 25 Apr 2020 13:41:26 +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 v5 0/5] LiteX SoC controller and LiteUART serial driver Message-ID: <20200425133939.3508912-0-mholenko@antmicro.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset introduces support for LiteX SoC Controller and LiteUART - serial device from LiteX SoC builder (https://github.com/enjoy-digital/litex). In the following patchset I will add a new mor1kx-based (OpenRISC) platform that uses this device. Later I plan to extend this platform by adding support for more devices from LiteX suite. Changes in v5: - added Reviewed-by tag - removed custom accessors from SoC Controller's driver - fixed error checking in SoC Controller's driver Changes in v4: - fixed copyright headers - fixed SoC Controller's yaml - simplified SoC Controller's driver Changes in v3: - added Acked-by and Reviewed-by tags - introduced LiteX SoC Controller driver - removed endianness detection (handled now by LiteX SoC Controller driver) - modified litex.h header - DTS aliases for LiteUART made optional - renamed SERIAL_LITEUART_NR_PORTS to SERIAL_LITEUART_MAX_PORTS - changed PORT_LITEUART from 122 to 123 Changes in v2: - binding description rewritten to a yaml schema file - added litex.h header with common register access functions Filip Kokosinski (3): dt-bindings: vendor: add vendor prefix for LiteX dt-bindings: serial: document LiteUART bindings drivers/tty/serial: add LiteUART driver Pawel Czarnecki (2): dt-bindings: soc: document LiteX SoC Controller bindings drivers/soc/litex: add LiteX SoC Controller driver .../bindings/serial/litex,liteuart.yaml | 38 ++ .../soc/litex/litex,soc-controller.yaml | 39 ++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 9 + drivers/soc/Kconfig | 1 + drivers/soc/Makefile | 1 + drivers/soc/litex/Kconfig | 14 + drivers/soc/litex/Makefile | 3 + drivers/soc/litex/litex_soc_ctrl.c | 197 +++++++++ drivers/tty/serial/Kconfig | 31 ++ drivers/tty/serial/Makefile | 1 + drivers/tty/serial/liteuart.c | 411 ++++++++++++++++++ include/linux/litex.h | 45 ++ include/uapi/linux/serial_core.h | 3 + 14 files changed, 795 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/litex,liteuart.yaml create mode 100644 Documentation/devicetree/bindings/soc/litex/litex,soc-controller.yaml create mode 100644 drivers/soc/litex/Kconfig create mode 100644 drivers/soc/litex/Makefile create mode 100644 drivers/soc/litex/litex_soc_ctrl.c create mode 100644 drivers/tty/serial/liteuart.c create mode 100644 include/linux/litex.h -- 2.25.1