Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp997224rwd; Sun, 14 May 2023 10:15:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4tb9c9zFVhkN3SlFM6LchQr6J6mrAIj1RT524t9D92WqaXjL1Vfe08aITBMq1wPk7sVBf4 X-Received: by 2002:a05:6a00:801:b0:648:d20c:37dd with SMTP id m1-20020a056a00080100b00648d20c37ddmr18391808pfk.18.1684084530895; Sun, 14 May 2023 10:15:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684084530; cv=none; d=google.com; s=arc-20160816; b=FdkKc/bjconSV14qQ4DkiiaZKHVu2fGxZyAn5AH0UXZqQa2GEH9XznC1mc5b3fX3Ak uaQY9jd449NUPX7TyNNzxljQyYMy7V7e6xztJ3I+7omHsIZMqdRayluatoKEekYDPo+w hxv2Vbm+MtwBhoMhub+Ph6kykt3AOaaVy+uMr8GEsg6fxrG+/gnHnCyCagZjXJUrMNRt 1Mbpj5pkOo+WlOcLfvuckFJMVoPbsch0y+1KxAacpo61ruL5qA2tTBs1qE7Ot2L09fpL nRPytyTeqV3RaQBjW8X9CsFSSjNyy6S1nj43aaXWZIURo79VrIOnC1T+pRKt/iJYm+z2 LXIg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qOlFEq5P4gDVZIz7vB2NJTf2fiFUr3VjaJNSzI+XBP0=; b=E7ssdIpdhlsT9JN8JC0dXaR5qtsfrFL4OGRDgT+zbp0Mq4ntIdIzhyIMHfbfWfgBEV ikWOyqVKgZePhfBgxRuyNpRUqUoCPnls1Yx1Siru/RG/pdicBWOuv/3tr+viLObrwAPm Qfqbn1g5mT9ZPsnTcn6WnqvdasjeaKRrVsbz1ipLB0sk1p+kdYOGxRYw+QsWHmIfgCRq Jj9Cesd89453vBKe7ZRzQJH1t7eN37I/JVYQtW16baVLyc5tFNxUAm3cvynFySP+wSgG JI2vNa0H8FYua0YTWpMq+BgV3bavgkn62VjoOf9iFtY6y9jLbT+NLnl9WhrIUmX2C62q A4ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ihBNTFna; 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 b123-20020a62cf81000000b006399bb6f5b2si15264244pfg.25.2023.05.14.10.15.15; Sun, 14 May 2023 10:15:30 -0700 (PDT) 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=ihBNTFna; 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 S237428AbjENRJX (ORCPT + 99 others); Sun, 14 May 2023 13:09:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237913AbjENRIy (ORCPT ); Sun, 14 May 2023 13:08:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4866B4C32; Sun, 14 May 2023 10:08:33 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id CA57061493; Sun, 14 May 2023 17:08:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBFB0C433A1; Sun, 14 May 2023 17:08:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684084112; bh=gEHB+BIFuaGSJHd+ja+x4RxCS37TdEdu060uta3gMMQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ihBNTFnan2EZkm49AaN806FvuMTON5QSRPN3hdnqg+eA3jpmwI4N8F8ydPm18L2r0 DWejYiGEcphJMOzcExwKdINwyQjj+GJbCM3peLuBrbMT6bYz5zFAxwSx/4zkgFB+oO nkXcLAQdXkPyCBqfGZxggLyPWdb/L4iXbeOKyPrhclzlUrF/MGtwqgvn6DkaGpAYue Ea20MRn2+KX1qP9pyxvkJ8tZfG9wiT+IZEoYpmkolBCwJx94R+DXZTSisBwXx/40Ub sxZcrwCU3lRnX/Jya3xDxMSUaAqIG3rh5XEbxWVvP33POtZ0HLUYgdekABFVENlDJI KJehavSR2/hQw== From: Jisheng Zhang To: Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Albert Ou , Greg Kroah-Hartman , Jiri Slaby Cc: Samuel Holland , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Palmer Dabbelt Subject: [PATCH v3 08/10] riscv: dts: bouffalolab: add Sipeed M1s SoM and Dock devicetree Date: Mon, 15 May 2023 00:56:49 +0800 Message-Id: <20230514165651.2199-9-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230514165651.2199-1-jszhang@kernel.org> References: <20230514165651.2199-1-jszhang@kernel.org> 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,T_SCC_BODY_TEXT_LINE 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 Sipeed manufactures a M1s system-on-module and dock board, add basic support for them. Signed-off-by: Jisheng Zhang Acked-by: Palmer Dabbelt --- 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 ++++++++++++++++ 4 files changed, 49 insertions(+) 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 diff --git a/arch/riscv/boot/dts/Makefile b/arch/riscv/boot/dts/Makefile index f0d9f89054f8..133e6c38c9b0 100644 --- a/arch/riscv/boot/dts/Makefile +++ b/arch/riscv/boot/dts/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 subdir-y += allwinner +subdir-y += bouffalolab subdir-y += sifive subdir-y += starfive subdir-y += canaan diff --git a/arch/riscv/boot/dts/bouffalolab/Makefile b/arch/riscv/boot/dts/bouffalolab/Makefile new file mode 100644 index 000000000000..5419964e892d --- /dev/null +++ b/arch/riscv/boot/dts/bouffalolab/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +dtb-$(CONFIG_SOC_BOUFFALOLAB) += bl808-sipeed-m1s-dock.dtb diff --git a/arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s-dock.dts b/arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s-dock.dts new file mode 100644 index 000000000000..aa6cf909cd4d --- /dev/null +++ b/arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s-dock.dts @@ -0,0 +1,25 @@ +// SPDX-License-Identifier: (GPL-2.0+ or MIT) +/* + * Copyright (C) 2022 Jisheng Zhang + */ + +/dts-v1/; + +#include "bl808-sipeed-m1s.dtsi" + +/ { + model = "Sipeed M1s Dock"; + compatible = "sipeed,m1s-dock", "sipeed,m1s", "bouffalolab,bl808"; + + aliases { + serial3 = &uart3; + }; + + chosen { + stdout-path = "serial3:2000000n8"; + }; +}; + +&uart3 { + status = "okay"; +}; diff --git a/arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s.dtsi b/arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s.dtsi new file mode 100644 index 000000000000..5026de768534 --- /dev/null +++ b/arch/riscv/boot/dts/bouffalolab/bl808-sipeed-m1s.dtsi @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: (GPL-2.0+ or MIT) +/* + * Copyright (C) 2022 Jisheng Zhang + */ + +/dts-v1/; + +#include "bl808.dtsi" + +/ { + compatible = "sipeed,m1s", "bouffalolab,bl808"; + + memory@50000000 { + device_type = "memory"; + reg = <0x50000000 0x04000000>; + }; +}; + +&xtal { + clock-frequency = <40000000>; +}; -- 2.40.0