Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp13504814rwb; Sun, 27 Nov 2022 06:46:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf4D5BZM49Z/xRFQEdAPbFqMjgZzRoKpaRVncQKpjCZRfznMK992egUGJm2NufVHary9X2Us X-Received: by 2002:a63:3c9:0:b0:478:42f:431b with SMTP id 192-20020a6303c9000000b00478042f431bmr4413618pgd.168.1669560380991; Sun, 27 Nov 2022 06:46:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669560380; cv=none; d=google.com; s=arc-20160816; b=zKGU67xLZP/3m7bIg0t7Ww1LXQv/juyIF82QQ/2PwTZD1fVC+xOwZHlA9kXS2cba+s EvMkHgWYT/ZBr0NknmyYLFF3vOCXQITvGtwuNp1+8qXltWECk/HFMEirUAZOmFcLjVBw jKyRKC8TzF8ODb0jBbKis0tTG6ZU+S1jmqjlgSyTreU5ENN/SYkg5CvGOWlK+YaqocVF dI4h95n1Ln1BcYFqmB56cx0xemkLFLeWa3712ytWagKYi0AakswGcCF/GIyYZLukI8tQ Fcnqavg9WdPKf8TPZ8H87Acg8jir0ea8WFPXkGN4ptR9Hv9nFywiMbhGIZKzQJmxrqN4 88sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=oDAotz6EbxU1+epdQAwcXX9Xrr5Lb8qhwRaD2veyZ4Y=; b=WRYK5FKE/0JyQr4JHRWx804l2PpACHW8luREGiEjNKy5ZpDomxXQWWP6hfawqTNSgp tqE9KujOhZoKQKH4lS6WWyHr+7pE7s1mOPKVSL8ihibsRw3rCuZH26gyd9EowBHARTwi 2wMei1Ksx/6CDWL6EwbH7TfqUjYkW1Gvv1ojginaGfu9sgM20g6ZzM2FS39JDPy5j0AF BNEjpoZ6tjUxI10sTDk+yrnNVdDR4o2DzhDnBHUpRBAMFPwwnACoBHATS/aILvJ9dm1d 6ZoY0Jo+3TFWxDKuu6aoZVXuwnPxblYNKgNd5Vd2aYqz3ciDuUcNadAC/32BH2HsPBhl MdPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XsPVbtbJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h1-20020a056a00218100b0056d7aaaf1f1si9602900pfi.123.2022.11.27.06.46.09; Sun, 27 Nov 2022 06:46:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XsPVbtbJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229659AbiK0Nep (ORCPT + 84 others); Sun, 27 Nov 2022 08:34:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229518AbiK0Neo (ORCPT ); Sun, 27 Nov 2022 08:34:44 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50B34CE08; Sun, 27 Nov 2022 05:34:43 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 12608B80937; Sun, 27 Nov 2022 13:34:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5EE47C433D6; Sun, 27 Nov 2022 13:34:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669556080; bh=XIThUy/xmyVPU1AnNTBmo5HzcB1h/80tTpyOzqgfD/c=; h=From:To:Cc:Subject:Date:From; b=XsPVbtbJ+9I6ZQHBQRh1m9zmrPTCZqoi4a0A++XQBEH3B/7CdZfugH8OcpCqpe5MZ 4P4UbR9Fipck/ageQfdx/qe59VFn409E/j7x4TkgLG5XUrXBCGRgAKkaqL8e7d/a/9 1uy7QYD3DYgqk3OkyolDkF6IXI4kNeK4a47DAETKOchYFP5E4HzTT8X2mZy7Omyya1 o3koz4MLAX3DxgNX4NECzL4PQTPI4g9IISGW/clinwpM+o/q1sn14Y3YYGVfUjXEdy 3a7aYyDvnycM1teq+JRjCaZlvNrZqNR3MmL5uHlIbqTSckli0L13UitdxYHV1rSKjd uchyoGxQHhP6w== From: Jisheng Zhang To: Rob Herring , Conor Dooley , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Greg Kroah-Hartman , Jiri Slaby , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v2 0/9] riscv: add Bouffalolab bl808 support Date: Sun, 27 Nov 2022 21:24:39 +0800 Message-Id: <20221127132448.4034-1-jszhang@kernel.org> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds Bouffalolab uart driver and basic devicetrees for Bouffalolab bl808 SoC and Sipeed M1s dock board. It's too late for v6.2-rc1, but I hope I can catch up the v6.3-rc1 window. I think I have addressed all review comments to v1, correct me if I missed anything. PS: this series assumes the "thead,c906" riscv cpu binding patch is merged(I see Conor has picked up it). Since v1: - use FIELD_PREP and FIELD_GET macro - rewrite bflb_uart_tx_chars() - add vendor prefix for bouffalolab - add dt binding for bl808 compatibles - enable SOC_BOUFFALOLAB in defconfig - collect Reviewed-by tag - modify commit-msg as suggested Jisheng Zhang (9): dt-bindings: serial: add documentation for Bouffalolab UART Driver serial: bflb_uart: add Bouffalolab UART Driver riscv: add the Bouffalolab SoC family Kconfig option dt-bindings: vendor-prefixes: add bouffalolab dt-bindings: riscv: Add bouffalolab bl808 board compatibles riscv: dts: bouffalolab: add the bl808 SoC base device tree riscv: dts: bouffalolab: add Sipeed M1s SoM and Dock devicetree MAINTAINERS: riscv: add entry for Bouffalolab SoC riscv: defconfig: enable BOUFFALOLAB SoC .../bindings/riscv/bouffalolab.yaml | 34 + .../bindings/serial/bouffalolab,uart.yaml | 47 ++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 9 + arch/riscv/Kconfig.socs | 6 + arch/riscv/boot/dts/Makefile | 1 + arch/riscv/boot/dts/bouffalolab/Makefile | 2 + .../dts/bouffalolab/bl808-sipeed-m1s-dock.dts | 25 + .../dts/bouffalolab/bl808-sipeed-m1s.dtsi | 21 + arch/riscv/boot/dts/bouffalolab/bl808.dtsi | 74 +++ arch/riscv/configs/defconfig | 1 + drivers/tty/serial/Kconfig | 18 + drivers/tty/serial/Makefile | 1 + drivers/tty/serial/bflb_uart.c | 610 ++++++++++++++++++ include/uapi/linux/serial_core.h | 3 + 15 files changed, 854 insertions(+) create mode 100644 Documentation/devicetree/bindings/riscv/bouffalolab.yaml create mode 100644 Documentation/devicetree/bindings/serial/bouffalolab,uart.yaml create mode 100644 arch/riscv/boot/dts/bouffalolab/Makefile create mode 100644 arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s-dock.dts create mode 100644 arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s.dtsi create mode 100644 arch/riscv/boot/dts/bouffalolab/bl808.dtsi create mode 100644 drivers/tty/serial/bflb_uart.c -- 2.38.1