From patchwork Tue Jul 9 03:18:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 13727208 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 053B8C3271E for ; Tue, 9 Jul 2024 03:19:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:In-Reply-To:References:Message-Id: MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=L59dmJxgTiLEzYEaQuSAtluqPXNEdua2kxgwpuCFwDI=; b=3bhySw7C4b57pw QOlCbyCAgPzK4eE/O2iAaokih+YbfGuLyGVRMK/6qB0Gmttu68iDKZpxy6t3K4smlmDIMRbqjWDmj DmtCglm8Tge8UtDP0tSQLvC50tcNwux2ila+S3bG16NR/V+vVNgFB/8E/4vxYWYgBHnc6edsiKY8d Nmg8y3SCuOfs/roQ3lCfPVvhqon5UhswBiqNLqxq/+zHiZwK0I9OkH0qCqgOChpQAVq5vvGAzucTj aM5xKFyCcRdUBK44wWZIfnAkrXpAZbaWVP7wjGYBdCHhUb7mKUNjIeEojb6A5BmrOnY9z6QmPu6DE aA1y2iKqJmHY9YZJ8jWQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1OQ-00000005j69-3PRK; Tue, 09 Jul 2024 03:19:51 +0000 Received: from woodpecker.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4] helo=smtp.gentoo.org) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1OO-00000005j4r-1Y1w for linux-riscv@lists.infradead.org; Tue, 09 Jul 2024 03:19:49 +0000 From: Yixun Lan Date: Tue, 09 Jul 2024 03:18:44 +0000 Subject: [PATCH v4 01/10] dt-bindings: vendor-prefixes: add spacemit MIME-Version: 1.0 Message-Id: <20240709-k1-01-basic-dt-v4-1-ae5bb5e56aaf@gentoo.org> References: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> In-Reply-To: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=971; i=dlan@gentoo.org; h=from:subject:message-id; bh=S6L+lb2i5tfCPntQqdP469atY/fB6iYa1pxCzasyD14=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmjKwewnlnCkqnwBREmvoqSxsKANpcVX1cKArvE s+PIAZtT5yJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoysHl8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277RMyEACZ3uVCfGIltXdrI7 gesBVB9wQr4FM5xlZqd2tzkwkiOCJdL12btQSRLHikgO0h7sFBM+vXNfm2LXhOkMWKCKMeCFmvN qmObUGoGM2UjdLcrpk3yw1oh+Ch6SalD63IKuDZiGTjVGiSkfVpDn6ySYx/HeGeNqBxEu4xgI9Z dEhaXzc0ripF8tpAW+cEasZvpFWSE9r7mPni3yKoUt9NVkJ8iDR3+7LlDoEJHI8Yt+Kc/rN/Iod 0Kk5vgyslG8s48RLjU6hEvnTpTauPBa9TimPiXa+SSpBjMHI18a/QSoTtkcU8+oi8Vuw7F68OMn 3rHmwGW6FI0K2wbV6jeXAG72ciXdwUBwlGOQlU8Qq3PeMjRJ7lxgAkMiQs7DL9+/W9do4FezmHv pHE630bxsu4Q+YcRqaSUTOq9uq8TLkKIbMP1Rb/JP82+mWVRix86z0k2saU1lMZo/c7/JXgKAzD g5fG37a4qr9gA3zDRog8nMOAswL/dakvTfJ3U/olosAtDkKCgf+VD22qt/qTVAVRSUGxUe5rIJZ kBLJUCc90izZzQp20VjZkhNjjiRmOuB/mSqghNOWYSh7XmezAXl7b2EECbjuYxQcLyLbE5QPvs8 3Mc2tDXVslp9BNuNP32WMZbCztax/uTIcC2lU1ylroprPwBOEDoVp1ZyzD3nuLH2W5WA== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240708_201948_475681_A3A58C93 X-CRM114-Status: UNSURE ( 7.08 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Yixun Lan , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jesse Taube , Yangyu Chen , Conor Dooley , Inochi Amaoto , Meng Zhang , Jisheng Zhang , Meng Zhang , linux-riscv@lists.infradead.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Yangyu Chen Add new vendor strings to dt bindings for SpacemiT K1 SoC. Link: https://www.spacemit.com/en/spacemit-key-stone-2/ Signed-off-by: Yangyu Chen Acked-by: Conor Dooley Signed-off-by: Yixun Lan --- 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 fbf47f0bacf1a..7ee6e4a89376e 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1362,6 +1362,8 @@ patternProperties: description: Sophgo Technology Inc. "^sourceparts,.*": description: Source Parts Inc. + "^spacemit,.*": + description: SpacemiT (Hangzhou) Technology Co. Ltd "^spansion,.*": description: Spansion Inc. "^sparkfun,.*": From patchwork Tue Jul 9 03:18:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 13727209 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C1344C3271E for ; Tue, 9 Jul 2024 03:20:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:In-Reply-To:References:Message-Id: MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mJ+pf0tN/aoL1S4XaueER+9LoaCtTs0tCCzOZGUaGtM=; b=WES/x2OBId5LrT Q10rlCUelLmXvQUJE+25Mqy9fzOKI9lN1tjFeVznBBdAD4A/r/fXIfhrg7xNjmm0UiO1/dqiE2KYR CVCNr+rScVwGqvthAyD89eysCLbdn/m29JvvtE9TwujR/vHhOTdaQznDpis2Pj7ZhNQYWBlvEl4LV EWn39H9s+ZFKlpfxqYAulB/C4pDFOsmKjsVeQtReConTHQ69MDGLo5DzupjgyFWutlElidd2uMGhA lxlDxIIkUyY7Bg0oy2UZ/eS8UZ3gPtUTNQVxxUiVfGIbnAkrftqAzc7N53LAi4JdXZIQ3rWvQpEK+ b+OiTHA9w7DFcSogzQpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1OY-00000005j9U-3pou; Tue, 09 Jul 2024 03:19:58 +0000 Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1OW-00000005j8O-0EEF for linux-riscv@lists.infradead.org; Tue, 09 Jul 2024 03:19:57 +0000 From: Yixun Lan Date: Tue, 09 Jul 2024 03:18:45 +0000 Subject: [PATCH v4 02/10] dt-bindings: riscv: Add SpacemiT X60 compatibles MIME-Version: 1.0 Message-Id: <20240709-k1-01-basic-dt-v4-2-ae5bb5e56aaf@gentoo.org> References: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> In-Reply-To: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=904; i=dlan@gentoo.org; h=from:subject:message-id; bh=93gTwTFhHhqvEXaieSxNaeTfBJ+zIc4/WjCpYTUJ8uU=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmjKwib36Jxck8gReE9KCGoyorfO9cEOVEDCeox KLRxP83v/SJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoysIl8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277ei3D/9hgvzeJzgcDjzeWR qEhM/Xz5xzgc1XoJcCKPk5mvGQvdUq5LEpNytHykOPHSBAAI9VoBBdQ7IWeB0LFtKoTOk9+WLiN WNjRyezD4HDf6a5Zf+eD0kvAnh/1T+8YaGu82lxmhPX+qvYhvxAqb18UODGoraxP74hcT27vOhe 1ykQOM5ue9A3IFgQ4Hf3gKmDUth/aksQeA0/IP4xSl8QgdJX12AD7DGZR6Y4vTT7/aXLPTclVX2 ZzGI+yN6xFdtKAAZHDOugD297QpoGNjjyA/kZfzFxRggZebOwb4ZnrNTym7M1yaWzlDe0kC5oDa RziL+x4OMYRIinadoaZCLHpNbz83t129lwD/tgPnTFpMVlSSwQqfrPLgDXTfcY3vFPFGXP2GGAH z4hAy0alU5roPhDrbRDq0tPAI7A3qPTWtmxBTS/lop6Ba5mAyExDDb+2KlgkjGBWOjHBx8ozxLU vg/RdJsIjZfwDQAKflFv3sGDPYdYF2Sxd5G/lAHhhNjsdVUlh+6zuYCvTT3epX5FGoI1xuaE1DT FlmehtJahjixeGR/lo9xHf5a9gAJdG9uXWiGC+8MmJHQEe5ig460sHxjA6vaG1ho9J1i6DJSiHz LAN9L+snFVvTLFmrwZlkm5WjvnwWn0ULtig6WUdzyaKuuDgGnkMNL/8ZBPB/A5eJuJ7g== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240708_201956_154206_B1637574 X-CRM114-Status: UNSURE ( 7.14 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Yixun Lan , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jesse Taube , Yangyu Chen , Conor Dooley , Inochi Amaoto , Meng Zhang , Jisheng Zhang , Meng Zhang , linux-riscv@lists.infradead.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Yangyu Chen The X60 is RISC-V CPU cores from SpacemiT and currently used in their K1 SoC. Link: https://www.spacemit.com/en/spacemit-x60-core/ Signed-off-by: Yangyu Chen Acked-by: Conor Dooley Signed-off-by: Yixun Lan --- Documentation/devicetree/bindings/riscv/cpus.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/riscv/cpus.yaml b/Documentation/devicetree/bindings/riscv/cpus.yaml index d87dd50f1a4b5..5ad9cb4103356 100644 --- a/Documentation/devicetree/bindings/riscv/cpus.yaml +++ b/Documentation/devicetree/bindings/riscv/cpus.yaml @@ -46,6 +46,7 @@ properties: - sifive,u7 - sifive,u74 - sifive,u74-mc + - spacemit,x60 - thead,c906 - thead,c910 - thead,c920 From patchwork Tue Jul 9 03:18:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 13727210 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BE9DDC3271E for ; Tue, 9 Jul 2024 03:20:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:In-Reply-To:References:Message-Id: MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VvQhIruBQQlQGa+0xfmr2Zx2q0wxAfaClNBeaCxG6v8=; b=JWk0l9+w004oP9 ivSlMvuNWl0DP/+VGugbQgeFXiicfgY6H17AYEtZvnQ+b3lSqpjGTWPZzlMpq7P1sfPm8DWr0eN1Q 71mVi61KUmw3PEyZrzdvh7DK255SzBV9vDZz2xJOgSrXqX1X9IEni+1RCvDMgXsSwRjoyrqrlwNfI yACyEiPI6vwklqY35WDFs781jQfiJLqLX4Y0ugfGhlZRK+gfnPqLx+M/MLNkR48kRoIS5KA462FvB ywtrP6JiHKnHkl8Hgqpes4JeQ2NcgQz6Eb4f9Bx/hedG7DUEObd2aE1C5vpc+a8ZT25cPw65GsGFT qo44umFL8EYTgeJ/BTsw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1Oj-00000005jFN-0rQZ; Tue, 09 Jul 2024 03:20:09 +0000 Received: from mail.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4] helo=smtp.gentoo.org) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1Og-00000005jDm-2vrw for linux-riscv@lists.infradead.org; Tue, 09 Jul 2024 03:20:08 +0000 From: Yixun Lan Date: Tue, 09 Jul 2024 03:18:46 +0000 Subject: [PATCH v4 03/10] dt-bindings: riscv: add SpacemiT K1 bindings MIME-Version: 1.0 Message-Id: <20240709-k1-01-basic-dt-v4-3-ae5bb5e56aaf@gentoo.org> References: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> In-Reply-To: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1387; i=dlan@gentoo.org; h=from:subject:message-id; bh=npfgDVRP4ulLNRkxF5xAkZP/Tlf1HQh6E5OWv3kLTAo=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmjKwl1olP6PkNb09RY9R6a+2b6KcslR6rjkpwo XP2Kr0Ocp6JApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoysJV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277axbEACYHwqAIGjSupXIEa YeVXp/alZzj4lL3AWjM0bpIYiDp9pKctWC9ra5sF+ueseFyBiqW7otJ526mRwyBiAXmQm7TIXRT HmKpcXB2l9MkHIJCqSTL9wKWpzjX9Ry5H7VRzM8vJRm9z2JlFaPX1ErF3h1i8FVzxcuon0/Qu6O 0ank7l4qG8xMvcUc1WzcWChrkQiBPPjbX2MSPDMlDbktPawCLjCAXdeUaLsOHOFIqwG4CGPUmRL 1s+yOSHYh1HWQzO5P3tFCZWg0i42uJiGJmbM/YAbsnktULf880MYaRQawwOGrIut8bg1EhQMqBb tO9rQ7Utw1G0b164D6FGHlKJOeovmRVg9a1uyAV16EJQxnXzH1sX5Bvxneo9I8lfTHGqRzyBaR/ Zjzu5nhGyvlvv8Ie7lM5vYLDB2zR2PjvtOkscYAVq2QOK/MP/NK1p/m5q2SxcgUmwVXeLKbAJUO pnMiSulPGJTY/+WEYDMrMR8C0mY2/cjvc/n5vwURVmmkxN0C/ulQYueOZ9jDwvPICnU4wFRuHLN QLhRUH4LUowA1yn/3jpw/NBPLTBMOZqw8viIQrCPViETC719Rcht6XK7/C5ekO+BOiEGUNFCvwX svEMcncFpiMsQmQkShS+9dFuAtZFuDl/eRyX3bbff2gRdc1NieasVl2TOxf5pQLTAi/w== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240708_202006_806817_00776269 X-CRM114-Status: UNSURE ( 8.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Yixun Lan , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jesse Taube , Yangyu Chen , Inochi Amaoto , Meng Zhang , Jisheng Zhang , Matthias Brugger , Meng Zhang , linux-riscv@lists.infradead.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Yangyu Chen Add DT binding documentation for the SpacemiT K1 SoC[1] and the Banana Pi BPi-F3 board[2] which used it. Link: https://www.spacemit.com/en/spacemit-key-stone-2/ [1] Link: https://docs.banana-pi.org/en/BPI-F3/BananaPi_BPI-F3 [2] Signed-off-by: Yangyu Chen Reviewed-by: Matthias Brugger Signed-off-by: Yixun Lan Acked-by: Rob Herring (Arm) --- .../devicetree/bindings/riscv/spacemit.yaml | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/spacemit.yaml b/Documentation/devicetree/bindings/riscv/spacemit.yaml new file mode 100644 index 0000000000000..52e55077af1ae --- /dev/null +++ b/Documentation/devicetree/bindings/riscv/spacemit.yaml @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/riscv/spacemit.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: SpacemiT SoC-based boards + +maintainers: + - Yangyu Chen + - Yixun Lan + +description: + SpacemiT SoC-based boards + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - items: + - enum: + - bananapi,bpi-f3 + - const: spacemit,k1 + +additionalProperties: true + +... From patchwork Tue Jul 9 03:18:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 13727211 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0BF07C3DA45 for ; Tue, 9 Jul 2024 03:20:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:In-Reply-To:References:Message-Id: MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ku1XXO5vFl49knj5zAuyVkFmhodPHenesSyk5+uogF8=; b=jCpREk++8VtrEY Besqfhm83H8JIEcc4PD6kFwP5Wg4LlbtY/copjs/8j33nwyaMKvEX1Rfurtx+JIfBUfDbBbRzICSc L02DSQ/MNMB1qfPE2uhwPPGvtVlNpZmazaxYtwfhUnp+XZDLamvN23HTNtJBlPTTydImz/2I4Raj9 g34n2k5lKZZX685cd/At16TcgXaveLk+lVekIYM7ElBhRPxYox1Pw2jlqxV56JaFog3hnaMyTubqP qfEiY9IaYMN1gq3qanaQ8Vk65mC24FSUa+WNT+TihK/j4o8sweQe/Jx6mOGkFRWYHYe3UquHnnReh rHaeKump6e9mkA4nOwVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1Or-00000005jJY-3tcz; Tue, 09 Jul 2024 03:20:17 +0000 Received: from mail.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4] helo=smtp.gentoo.org) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1Oq-00000005jId-0s5t for linux-riscv@lists.infradead.org; Tue, 09 Jul 2024 03:20:17 +0000 From: Yixun Lan Date: Tue, 09 Jul 2024 03:18:47 +0000 Subject: [PATCH v4 04/10] dt-bindings: timer: Add SpacemiT K1 CLINT MIME-Version: 1.0 Message-Id: <20240709-k1-01-basic-dt-v4-4-ae5bb5e56aaf@gentoo.org> References: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> In-Reply-To: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1027; i=dlan@gentoo.org; h=from:subject:message-id; bh=wvQLp2j2KF1DXU6LoDgHk1K3AJ3TNpJmOxUxNu563OM=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmjKwoJ9JhYzGBCEuNvHOCsyEcGGruZO/c7JUBo 8TRFLqj+5KJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoysKF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277SMBEACGqhJUmsrYkAtBv0 gYxjSG3KtPXmPY4v83ANmFloGZJ0iT0IW3hhUyHrDPx0oYSObj2h2Qlm34FQ+99wpJnk//0RKDm M9tvDl9GyGo3BZI053SZ3KybNR9i7u66BHzgcSyD9R/UhA/AlWDboX/3UFRN+lqM6JBi+daeE17 grXdqWMwPBFoeUSyejWIAj0eVEaLkvEd0ky/DzTf0lgVRoLux8C3VZzbnyBxZ+5JSjRUqcL+BAc b7Pf55QqX5PxtVWKw2amqq76l4+SSFrgrmGqYLaNkbXYlRvIrj9ZT+Lw3A74U+ll/GKr1oYBcel 6qyf5J64gBJLF7wvq3lcla1i1S4whxgcH7+yRotn2gQyCGrcW+okpsKW7u43NswAulNcYF2gyrn kblw2h5c/eES7jR3zr3oQkIPiuqWjZmvHkYsyzYVLmukG3U2NI9xguIJ5hwLJoZk/uMR9vXcXxL SrwHsN6vWGq00Gfqz8JPogQcrsP7+tJz509Rtwztd9BNJjCZ2mzfbOLh1XjGQNEEMTJJxEzLiS8 AMfRWvwfqgmnq8yJKFekiLHvVI2gPdsQeY3X530x155ppHxtYzjxb+To6v68EsrNsRWxSNNAxAJ ujU9ON1vKwRuG51nx29Z/qc9g7VqE1i7oj4p1mYjG3EZ+3wt1fA5dkAysSfnLZBG1zmw== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240708_202016_281785_FE4E8858 X-CRM114-Status: UNSURE ( 6.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Yixun Lan , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jesse Taube , Yangyu Chen , Conor Dooley , Inochi Amaoto , Meng Zhang , Jisheng Zhang , Meng Zhang , linux-riscv@lists.infradead.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Yangyu Chen Add compatible string for SpacemiT K1 CLINT. Signed-off-by: Yangyu Chen Acked-by: Conor Dooley Signed-off-by: Yixun Lan --- Documentation/devicetree/bindings/timer/sifive,clint.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Documentation/devicetree/bindings/timer/sifive,clint.yaml index fced6f2d8ecbb..c2e68587a806a 100644 --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml @@ -31,6 +31,7 @@ properties: - enum: - canaan,k210-clint # Canaan Kendryte K210 - sifive,fu540-c000-clint # SiFive FU540 + - spacemit,k1-clint # SpacemiT K1 - starfive,jh7100-clint # StarFive JH7100 - starfive,jh7110-clint # StarFive JH7110 - starfive,jh8100-clint # StarFive JH8100 From patchwork Tue Jul 9 03:18:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 13727212 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CC0A8C3271E for ; Tue, 9 Jul 2024 03:20:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:In-Reply-To:References:Message-Id: MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=etgJFFHupnvCll1HbjCmMqpODg6ZraXUsyvriLIsx9M=; b=mv/0q2M5IWp209 748qyjQkcyiJqTOHrtoQcWbxKTfengPdMcBBjP/nPYALA04iCOZv280GZmSYECXtkF4NWYdeK5ZMj kZfy0q1i4/q7YI9uBeYEQiwFIUp+3k7YFiPJ2ZkCdJ1/XFlaCmxL9E0gL5yTAPl2E+oVCbYM9Xre7 bhQJ4m8pQ335J8fBbmhelwx+0bXOeZvSgn3lFcpNEtysD/n8Rol0+o8zZecm7ZqpCW7mkDGKvAliX wYrp04wLGhAdBAD+GUoIm77RmVk/SqHLEKhC1fQyDo9Dq0GS3ibZtmZ+7iKzrMJLgTXRS8BV5INbe llHYgCN9RYL6w906qdpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1P2-00000005jPl-1cs2; Tue, 09 Jul 2024 03:20:28 +0000 Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1Oz-00000005jOl-2YhA for linux-riscv@lists.infradead.org; Tue, 09 Jul 2024 03:20:27 +0000 From: Yixun Lan Date: Tue, 09 Jul 2024 03:18:48 +0000 Subject: [PATCH v4 05/10] dt-bindings: interrupt-controller: Add SpacemiT K1 PLIC MIME-Version: 1.0 Message-Id: <20240709-k1-01-basic-dt-v4-5-ae5bb5e56aaf@gentoo.org> References: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> In-Reply-To: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=991; i=dlan@gentoo.org; h=from:subject:message-id; bh=uv26Rjh9IKMB5x/gGwi/qL4b2tY6fy8LbhopCFjMJXU=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmjKwstwzcUEYU8NlT2gqRSHmCNdfMUwr/ZpvA9 tC+o5qz+z2JApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoysLF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277WuDD/4vHfXbieC7cc7EMY 0AZYSeXlIzq7OUSDl9ewqlJIR7Q5+qslh7U7IsAkEOGJu2pChIZ4aMFBwwNv84lzVU3pScwacDl Lm0662CZqVTZwmatcXWeu9ZEHKC03wxit7haeBTnzbJ30XOk9bWCDZHlKaW5PE8pNKycufI7HuB 4juHWrUw+tWnwVdCOaucC8K8Icw6wgVeTqwLAqO6ZwnWPH4Yh6XmQQGbUwXdyPWII48muNoM2Qf L01tG243KTIug1i2s6Gxr6zUI8dPDcnvPAj8Se4ETJn5yblh6LjYM88LjK2hJMllxKcy73EKbEs dOkQfc4P7b5A6dn2NZJXGhpPEd5umWwVcgHyCqLJ6nHIiLJOkL02GfqNsy+J6H1rwvPpdISvg6L xHFCU3gc7e+maKmvpF/DHLqDw/FDl4fVUeCqp/tEoNx4mrM5umU4cz6ZDryyA6BgfyhcZH/1yFe 5ggomIhUtYMnjRxrhM3tOJboJrqa9iwGYIeiRWhBwETJbZ4epOlbxO/2aOcb8bSs0BOs4VXRVGa nFwUciiPcPsGFiVSmaKxHehji220OxbccmmT4RZMbdxGrT+IPAdW6N2+uHdS2nJmV3KiXCLSbbb hFi+h7tlfgYbZpQcwa8VTan8ZE+011n6SH47BgN8lDznQRF0DGJbQY7ps4arjIZhAvRQ== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240708_202025_712504_4434D123 X-CRM114-Status: UNSURE ( 7.04 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Yixun Lan , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jesse Taube , Yangyu Chen , Conor Dooley , Inochi Amaoto , Meng Zhang , Jisheng Zhang , Meng Zhang , linux-riscv@lists.infradead.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Yangyu Chen Add compatible string for SpacemiT K1 PLIC. Signed-off-by: Yangyu Chen Acked-by: Conor Dooley Signed-off-by: Yixun Lan --- .../devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml index 709b2211276bd..f473ca3479efd 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml +++ b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml @@ -59,6 +59,7 @@ properties: - enum: - canaan,k210-plic - sifive,fu540-c000-plic + - spacemit,k1-plic - starfive,jh7100-plic - starfive,jh7110-plic - const: sifive,plic-1.0.0 From patchwork Tue Jul 9 03:18:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 13727213 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2BEA8C3271E for ; Tue, 9 Jul 2024 03:20:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:In-Reply-To:References:Message-Id: MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=NZ0gdkcV2/mKyphuuLaV1K9aajR9m1rktbPhLU4QW8o=; b=ydU2B/atBJwQBb Q9/LLerT76ON2+2lSzkTIVLwoTB+OsnP/K59DJ43/P9DBb+AaAzN+ndPn17qAl8AbV5kjdCJurkWB XaiHacMgJhQx5ibLzP34gEMttb0cvlw8pbHXAYzSRI0sq7096Y7EbsjEX8W3pu4t/JnTUtiqX8n2A PxGyddmW0iPlQEWBzNQIZMuI12SskDIFJnmS83igt1wYQQ9pTeL/SSM+vEkVjmioml1+3DGhLvtQo wPbrgEOY5BlFJgLvc4+zPvhslKP2vKQXY+f/vLkdCJ3/Yn9EnhSJ7UEILNvr5lHqxEYm+bErErFGO zVnUVkzI5mTItePyPIeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1PB-00000005jVW-1bIZ; Tue, 09 Jul 2024 03:20:37 +0000 Received: from woodpecker.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4] helo=smtp.gentoo.org) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1P8-00000005jSv-2CZQ for linux-riscv@lists.infradead.org; Tue, 09 Jul 2024 03:20:35 +0000 From: Yixun Lan Date: Tue, 09 Jul 2024 03:18:49 +0000 Subject: [PATCH v4 06/10] dt-bindings: serial: 8250: Add SpacemiT K1 uart compatible MIME-Version: 1.0 Message-Id: <20240709-k1-01-basic-dt-v4-6-ae5bb5e56aaf@gentoo.org> References: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> In-Reply-To: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=965; i=dlan@gentoo.org; h=from:subject:message-id; bh=5e5axpOVSop7tU9RM2+kMzY3QIqZVpK1c93FNqEco2I=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmjKwv21FRkk5FkIYocAXIKY/maxMvJHKDmj0+0 ppH2Lb/LSmJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoysL18UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277d8/D/9cmhj7g51nGosQSm pjoPG7rr9IJWuIEGgX6fVTGNhwQtTeILUZjBSc3X6MA6PBWSsLTIS4kgySSPPiv4irQY13Yp/El tqi/K7X9+4s1ewiWBPVI6yUzyHJiTi8iIeIOcOSMRT4bOP0nuBvRQopYf925i3e1N2bW/xqiaxf 5CpNQWYNrDRxCv4FKHCwY/Znbwo/yaOGz9fy3hJmlrPGi2NgGVID5JwtbfriOY33jTtmGc14ZDQ XyMYoSHi+8Lusga8qyfGoUAfDL33M0wAMH5LvfhBclPI1jMPnHhOCnYKQaNoKZ2ZRQytDK0/2Ul NruqK7pH68f3lXrVMZr5IAofXR5kozl4/aDDrSXDFexb8L789vnH9X4Bk+1yEnADDeBRo27Ev/b IczxFjlxjnf4d/RomXBae+gTLSAe05PCDGyJP7o6Ap1Or5FCKHXLzFSD+wLaZVY8O9mT/JXZdoC YgWGvNaQ4cWeck698uauzFNGZMHW32MhH5QxXMCAz14jzDbVSEw/y54PrlvTl5qlxNdOR1lAh8c t+ICUnmOJeEiuZpjRRSfOHjIQbQGvLPNVcM73o7fx8Z60tFXLzrjq/GidIkp4yD2yIDGn2oflx8 +JI/T1NA7yJRHmyQaIOav9IvCtC2zr9XfODTiWhPEZhbozU+3SElZZvIZiS26svlXPdg== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240708_202034_633324_C48EBA20 X-CRM114-Status: UNSURE ( 8.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Yixun Lan , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jesse Taube , Yangyu Chen , Conor Dooley , Inochi Amaoto , Meng Zhang , Jisheng Zhang , Meng Zhang , linux-riscv@lists.infradead.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Found SpacemiT's K1 uart controller is compatible with Intel's Xscale uart, but it's still worth to introduce a new compatible. Acked-by: Conor Dooley Signed-off-by: Yixun Lan --- Documentation/devicetree/bindings/serial/8250.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/serial/8250.yaml b/Documentation/devicetree/bindings/serial/8250.yaml index 692aa05500fd5..0bde2379e8647 100644 --- a/Documentation/devicetree/bindings/serial/8250.yaml +++ b/Documentation/devicetree/bindings/serial/8250.yaml @@ -111,7 +111,9 @@ properties: - mediatek,mt7623-btif - const: mediatek,mtk-btif - items: - - const: mrvl,mmp-uart + - enum: + - mrvl,mmp-uart + - spacemit,k1-uart - const: intel,xscale-uart - items: - enum: From patchwork Tue Jul 9 03:18:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 13727214 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8D1DBC3271E for ; Tue, 9 Jul 2024 03:20:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:In-Reply-To:References:Message-Id: MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dZ+V9fxGLMzuNQmJOAF6OXrjV0olFF0hpJmOB+eFWMk=; b=fJAFxIoTrshmgw QtSv20tIEFwFE6oGiEBqSTchy5hGqhs83mL3HPL1vdKTbUC91rVKoDH+cyVG6BcPFl2qKpK/VWZGn rZBL0HNboFnF9IBL4hf90VZy3RjqG14o6sD5+7Cg4hunNbQEIUeoLzDp/lZSiywXOwkFpR94wX/G8 LICs/5TvUesUDFE6cXo3c14PePjUC1soAit0CxPXpg2yEC14OtFnwQv83YLg0HkRt6X9fQhWYDXYS UKNZRrPJZQ0Th/Li0S6v3SpHlWfUw/VwlqbDWhydCbe5VvEvodISDASxriwLyeXF6OFL7DLd8F+W/ 6eXI1LlrfZQTsEOW4cng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1PK-00000005jaY-0pBk; Tue, 09 Jul 2024 03:20:46 +0000 Received: from woodpecker.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4] helo=smtp.gentoo.org) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1PH-00000005jYc-2kuN for linux-riscv@lists.infradead.org; Tue, 09 Jul 2024 03:20:45 +0000 From: Yixun Lan Date: Tue, 09 Jul 2024 03:18:50 +0000 Subject: [PATCH v4 07/10] riscv: add SpacemiT SoC family Kconfig support MIME-Version: 1.0 Message-Id: <20240709-k1-01-basic-dt-v4-7-ae5bb5e56aaf@gentoo.org> References: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> In-Reply-To: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=857; i=dlan@gentoo.org; h=from:subject:message-id; bh=TZ1awhNq6EKkublblFnuZdsCVGMYEwJa+AbJQ5WzjOI=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmjKwyWHRKjqv9+VfOYY+IDPu8L2fFYb0E4JUMb XMbcx8u9pSJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoysMl8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277fKtD/9gqKue5HzySoVFsY glHTZTUCPfgoXuZz/wuh2aFKIAsiotbB4LR9teG9/4KoMWjr3jfOqfMZ1X/AJVi9l85OPzbY/VB RMcXeZPskoKN1uPIC4/UYq92+nVrH03GFDAQzXw6VOQ13+iY3nwuYIDjb3FxoQOfRsKsI0Hoe+1 boEo3mmyWRD7wu2GcgUijNccgykByP4J0wc9VbycxJJtM3Do4PxAQyS3aySoPhQmFktm4SKjWUJ +yl/Mr0Ix1auEjwSMliURg9Xk4F4qxZTpjlTvrUyPrDkjwUqv82HBv8Rd06TQ02Cm7NrubtUpVV 0K3+MpdYh/pcOhOA+KmckoanfBEFGHrs+wRsKwomvhB/cmaX5dwMOB+Gu1dAxd0wJCX4idNdOPa 6MmTz67sGQaBdaZyuQbT53+rPvL9rAkLR36KuI7Xbm2w1RBELgRhBigQpZQTp+IqTepUAtDYeSp 8w9ujTU3vY/P0pd9lk2ZmGG9DfsTBL74zUBaEN02A2lahhWf+MMUvmF8gQciQA4ip00vfeuCh4w H7g2cFrUDCMC936U7luR6E03TgRlrOmWoyJEiNhT3yjrjq23NimJFF+0yIB7P2ovEuz5DsPBdib qhhzatFyLODbDDlS4gt0Ugt2MdQpdiTq2xfNAoJhGsmYCI13J6l9Odpz7wmBxCK90lIg== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240708_202043_816826_1480C1D9 X-CRM114-Status: UNSURE ( 8.03 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Yixun Lan , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jesse Taube , Yangyu Chen , Conor Dooley , Inochi Amaoto , Meng Zhang , Jisheng Zhang , Meng Zhang , linux-riscv@lists.infradead.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Yangyu Chen The first SoC in the SpacemiT series is K1, which contains 8 RISC-V cores with RISC-V Vector v1.0 support. Link: https://www.spacemit.com/en/spacemit-key-stone-2/ Signed-off-by: Yangyu Chen Reviewed-by: Conor Dooley Signed-off-by: Yixun Lan --- arch/riscv/Kconfig.socs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs index f51bb24bc84c6..1916cf7ba450e 100644 --- a/arch/riscv/Kconfig.socs +++ b/arch/riscv/Kconfig.socs @@ -24,6 +24,11 @@ config ARCH_SOPHGO help This enables support for Sophgo SoC platform hardware. +config ARCH_SPACEMIT + bool "SpacemiT SoCs" + help + This enables support for SpacemiT SoC platform hardware. + config ARCH_STARFIVE def_bool SOC_STARFIVE From patchwork Tue Jul 9 03:18:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 13727215 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BE8FEC3DA45 for ; Tue, 9 Jul 2024 03:21:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:In-Reply-To:References:Message-Id: MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qjeKQSBJNZS9xZkqECqSdeiwBzAH0cTv9MWpAyuuS28=; b=LDebPmL90UYhrj VJ2iub2UbnFjHZMf9iQ/nHZMbn1faNWzlzFlUDHD1/9hF8hidHG2gIyNFYdnvIbm8sSWacfCCI4Fc poqqbrTjTCzw2J3DhtEqM8wTF+RO5PHaru5/o7TKqpdAzC1BirZSzKAHRj2gRK98K5mvN+NjXk/cU rCP3c/vt3rYY9TVolFqeI8C5k3ENyVGiIsk2hiqcxYlGCfo3m6wsmaBSHsTI2Y8dWzufrJFVSFHdg uANKPhrnpdDHhube/ESgs2JMWkS0sQ8jfb/DD04krExqvXN+BoHluHy7hTRmQnmtNPUqTeMEfz4gG yFkqoR+I5gbhWZOnSVJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1PU-00000005jhF-1bKO; Tue, 09 Jul 2024 03:20:56 +0000 Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1PQ-00000005jfN-3KuG for linux-riscv@lists.infradead.org; Tue, 09 Jul 2024 03:20:55 +0000 From: Yixun Lan Date: Tue, 09 Jul 2024 03:18:51 +0000 Subject: [PATCH v4 08/10] riscv: dts: add initial SpacemiT K1 SoC device tree MIME-Version: 1.0 Message-Id: <20240709-k1-01-basic-dt-v4-8-ae5bb5e56aaf@gentoo.org> References: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> In-Reply-To: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=16408; i=dlan@gentoo.org; h=from:subject:message-id; bh=Qg35TcxDpvHzvpLU9W6vzYK6JXHYNbKaEDoqJB/YhWI=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmjKw1I64sy97Lxbh/BqJ1eI+EpPEtTHdsVKOYM fLkBuc7qTiJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoysNV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277Xj9D/9KAsSJNnvC/XRo54 7S4UEtnmPlDKDJu0igLD/jh3IzohNIJeQ9s2KDKKkj5RvrGUdq/weBsZNQGw36PwxTimDp6rKhG WZM0Uh5dNjljZy7sVI5hPyEl8Ywqw+WjzHp/TYPaIkRWwgIZQymjfUkWC0HJ56fJ5folifYLhIi +FHA7kokJE/csq/IQ5AGmFdZ7TNB8EHbQV6PqpG4x8ZG1ZdD6jmhvyFeCMnU6nNR+cURsuHbL1e gCT3pVLnzazvS3D831ZMKR6G+fpOW4Eyq6PifWvtfgNSq0lFGJRJaqMJx5RA0mBrUcHjibzWmMJ RghNlNrt4uxQCXdYH4MsQJBO0Iu91zpgGvDAkRuDnRc0QS0xrFgQf8/idAgzeODLpNlEDpyBpvL 7xYyzAsNh4ReZgmY8D2YPoqMDpW7bSySdk4oeYrJHgTqSsqcrJ+ilMcWSDNERAmp98CGSDSQfxS m2wqLuf4vWsxgQpsTHXUoB6aHyFpNyqRQe/pcKGdl/Fmvo/Xe9tF3HzNdGEmdMeScjY9zBxzgnr 1i3Wg0pS26GA+/o/JcTOZ4ZfO+FmsqF/zkQphJzfvHFUsknmpmjqnoqQLKHm/YCHjLFEqt4wCcw XUw/KgN3fiAuJfNLgYnpFIOu14wPgInCAf6se1MVRQJr4m/I55vabCKgSeBmY5tlM8MA== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240708_202052_940657_1B9A5F94 X-CRM114-Status: GOOD ( 13.36 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Yixun Lan , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jesse Taube , Yangyu Chen , Inochi Amaoto , Meng Zhang , Jisheng Zhang , Meng Zhang , linux-riscv@lists.infradead.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Yangyu Chen Banana Pi BPI-F3 motherboard is powered by SpacemiT K1[1]. Key features: - 4 cores per cluster, 2 clusters on chip - UART IP is Intel XScale UART Some key considerations: - ISA string is inferred from vendor documentation[2] - Cluster topology is inferred from datasheet[1] and L2 in vendor dts[3] - No coherent DMA on this board Inferred by taking vendor ethernet and MMC drivers to the mainline kernel. Without dma-noncoherent in soc node, the driver fails. - No cache nodes now The parameters from vendor dts are likely to be wrong. It has 512 sets for a 32KiB L1 Cache. In this case, each set is 64B in size. When the size of the cache line is 64B, it is a directly mapped cache rather than a set-associative cache, the latter is commonly used. Thus, I didn't use the parameters from vendor dts. Currently only support booting into console with only uart, other features will be added soon later. Link: https://docs.banana-pi.org/en/BPI-F3/SpacemiT_K1_datasheet [1] Link: https://developer.spacemit.com/#/documentation?token=BWbGwbx7liGW21kq9lucSA6Vnpb [2] Link: https://gitee.com/bianbu-linux/linux-6.1/blob/bl-v1.0.y/arch/riscv/boot/dts/spacemit/k1-x.dtsi [3] Signed-off-by: Yangyu Chen Signed-off-by: Yixun Lan --- Changes in v4: - add i/d-cache, l2-cache info - Link to v3: https://lore.kernel.org/all/20240703-k1-01-basic-dt-v3-8-12f73b47461e@gentoo.org/ --- arch/riscv/boot/dts/spacemit/k1.dtsi | 459 +++++++++++++++++++++++++++++++++++ 1 file changed, 459 insertions(+) diff --git a/arch/riscv/boot/dts/spacemit/k1.dtsi b/arch/riscv/boot/dts/spacemit/k1.dtsi new file mode 100644 index 0000000000000..22735fc83c843 --- /dev/null +++ b/arch/riscv/boot/dts/spacemit/k1.dtsi @@ -0,0 +1,459 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2024 Yangyu Chen + */ + +/dts-v1/; +/ { + #address-cells = <2>; + #size-cells = <2>; + model = "SpacemiT K1"; + compatible = "spacemit,k1"; + + aliases { + serial0 = &uart0; + serial1 = &uart2; + serial2 = &uart3; + serial3 = &uart4; + serial4 = &uart5; + serial5 = &uart6; + serial6 = &uart7; + serial7 = &uart8; + serial8 = &uart9; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + timebase-frequency = <24000000>; + + cpu-map { + cluster0 { + core0 { + cpu = <&cpu_0>; + }; + core1 { + cpu = <&cpu_1>; + }; + core2 { + cpu = <&cpu_2>; + }; + core3 { + cpu = <&cpu_3>; + }; + }; + + cluster1 { + core0 { + cpu = <&cpu_4>; + }; + core1 { + cpu = <&cpu_5>; + }; + core2 { + cpu = <&cpu_6>; + }; + core3 { + cpu = <&cpu_7>; + }; + }; + }; + + cpu_0: cpu@0 { + compatible = "spacemit,x60", "riscv"; + device_type = "cpu"; + reg = <0>; + riscv,isa = "rv64imafdcv_zicbom_zicbop_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zba_zbb_zbc_zbs_zkt_zvfh_zvkt_sscofpmf_sstc_svinval_svnapot_svpbmt"; + riscv,isa-base = "rv64i"; + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "zicbom", + "zicbop", "zicboz", "zicntr", "zicond", "zicsr", + "zifencei", "zihintpause", "zihpm", "zfh", "zba", + "zbb", "zbc", "zbs", "zkt", "zvfh", "zvkt", + "sscofpmf", "sstc", "svinval", "svnapot", "svpbmt"; + riscv,cbom-block-size = <64>; + riscv,cbop-block-size = <64>; + riscv,cboz-block-size = <64>; + i-cache-block-size = <64>; + i-cache-size = <32768>; + i-cache-sets = <512>; + d-cache-block-size = <64>; + d-cache-size = <32768>; + d-cache-sets = <512>; + next-level-cache = <&cluster0_l2_cache>; + mmu-type = "riscv,sv39"; + + cpu0_intc: interrupt-controller { + compatible = "riscv,cpu-intc"; + interrupt-controller; + #interrupt-cells = <1>; + }; + }; + + cpu_1: cpu@1 { + compatible = "spacemit,x60", "riscv"; + device_type = "cpu"; + reg = <1>; + riscv,isa = "rv64imafdcv_zicbom_zicbop_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zba_zbb_zbc_zbs_zkt_zvfh_zvkt_sscofpmf_sstc_svinval_svnapot_svpbmt"; + riscv,isa-base = "rv64i"; + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "zicbom", + "zicbop", "zicboz", "zicntr", "zicond", "zicsr", + "zifencei", "zihintpause", "zihpm", "zfh", "zba", + "zbb", "zbc", "zbs", "zkt", "zvfh", "zvkt", + "sscofpmf", "sstc", "svinval", "svnapot", "svpbmt"; + riscv,cbom-block-size = <64>; + riscv,cbop-block-size = <64>; + riscv,cboz-block-size = <64>; + i-cache-block-size = <64>; + i-cache-size = <32768>; + i-cache-sets = <512>; + d-cache-block-size = <64>; + d-cache-size = <32768>; + d-cache-sets = <512>; + next-level-cache = <&cluster0_l2_cache>; + mmu-type = "riscv,sv39"; + + cpu1_intc: interrupt-controller { + compatible = "riscv,cpu-intc"; + interrupt-controller; + #interrupt-cells = <1>; + }; + }; + + cpu_2: cpu@2 { + compatible = "spacemit,x60", "riscv"; + device_type = "cpu"; + reg = <2>; + riscv,isa = "rv64imafdcv_zicbom_zicbop_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zba_zbb_zbc_zbs_zkt_zvfh_zvkt_sscofpmf_sstc_svinval_svnapot_svpbmt"; + riscv,isa-base = "rv64i"; + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "zicbom", + "zicbop", "zicboz", "zicntr", "zicond", "zicsr", + "zifencei", "zihintpause", "zihpm", "zfh", "zba", + "zbb", "zbc", "zbs", "zkt", "zvfh", "zvkt", + "sscofpmf", "sstc", "svinval", "svnapot", "svpbmt"; + riscv,cbom-block-size = <64>; + riscv,cbop-block-size = <64>; + riscv,cboz-block-size = <64>; + i-cache-block-size = <64>; + i-cache-size = <32768>; + i-cache-sets = <512>; + d-cache-block-size = <64>; + d-cache-size = <32768>; + d-cache-sets = <512>; + next-level-cache = <&cluster0_l2_cache>; + mmu-type = "riscv,sv39"; + + cpu2_intc: interrupt-controller { + compatible = "riscv,cpu-intc"; + interrupt-controller; + #interrupt-cells = <1>; + }; + }; + + cpu_3: cpu@3 { + compatible = "spacemit,x60", "riscv"; + device_type = "cpu"; + reg = <3>; + riscv,isa = "rv64imafdcv_zicbom_zicbop_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zba_zbb_zbc_zbs_zkt_zvfh_zvkt_sscofpmf_sstc_svinval_svnapot_svpbmt"; + riscv,isa-base = "rv64i"; + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "zicbom", + "zicbop", "zicboz", "zicntr", "zicond", "zicsr", + "zifencei", "zihintpause", "zihpm", "zfh", "zba", + "zbb", "zbc", "zbs", "zkt", "zvfh", "zvkt", + "sscofpmf", "sstc", "svinval", "svnapot", "svpbmt"; + riscv,cbom-block-size = <64>; + riscv,cbop-block-size = <64>; + riscv,cboz-block-size = <64>; + i-cache-block-size = <64>; + i-cache-size = <32768>; + i-cache-sets = <512>; + d-cache-block-size = <64>; + d-cache-size = <32768>; + d-cache-sets = <512>; + next-level-cache = <&cluster0_l2_cache>; + mmu-type = "riscv,sv39"; + + cpu3_intc: interrupt-controller { + compatible = "riscv,cpu-intc"; + interrupt-controller; + #interrupt-cells = <1>; + }; + }; + + cpu_4: cpu@4 { + compatible = "spacemit,x60", "riscv"; + device_type = "cpu"; + reg = <4>; + riscv,isa = "rv64imafdcv_zicbom_zicbop_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zba_zbb_zbc_zbs_zkt_zvfh_zvkt_sscofpmf_sstc_svinval_svnapot_svpbmt"; + riscv,isa-base = "rv64i"; + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "zicbom", + "zicbop", "zicboz", "zicntr", "zicond", "zicsr", + "zifencei", "zihintpause", "zihpm", "zfh", "zba", + "zbb", "zbc", "zbs", "zkt", "zvfh", "zvkt", + "sscofpmf", "sstc", "svinval", "svnapot", "svpbmt"; + riscv,cbom-block-size = <64>; + riscv,cbop-block-size = <64>; + riscv,cboz-block-size = <64>; + i-cache-block-size = <64>; + i-cache-size = <32768>; + i-cache-sets = <512>; + d-cache-block-size = <64>; + d-cache-size = <32768>; + d-cache-sets = <512>; + next-level-cache = <&cluster1_l2_cache>; + mmu-type = "riscv,sv39"; + + cpu4_intc: interrupt-controller { + compatible = "riscv,cpu-intc"; + interrupt-controller; + #interrupt-cells = <1>; + }; + }; + + cpu_5: cpu@5 { + compatible = "spacemit,x60", "riscv"; + device_type = "cpu"; + reg = <5>; + riscv,isa = "rv64imafdcv_zicbom_zicbop_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zba_zbb_zbc_zbs_zkt_zvfh_zvkt_sscofpmf_sstc_svinval_svnapot_svpbmt"; + riscv,isa-base = "rv64i"; + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "zicbom", + "zicbop", "zicboz", "zicntr", "zicond", "zicsr", + "zifencei", "zihintpause", "zihpm", "zfh", "zba", + "zbb", "zbc", "zbs", "zkt", "zvfh", "zvkt", + "sscofpmf", "sstc", "svinval", "svnapot", "svpbmt"; + riscv,cbom-block-size = <64>; + riscv,cbop-block-size = <64>; + riscv,cboz-block-size = <64>; + i-cache-block-size = <64>; + i-cache-size = <32768>; + i-cache-sets = <512>; + d-cache-block-size = <64>; + d-cache-size = <32768>; + d-cache-sets = <512>; + next-level-cache = <&cluster1_l2_cache>; + mmu-type = "riscv,sv39"; + + cpu5_intc: interrupt-controller { + compatible = "riscv,cpu-intc"; + interrupt-controller; + #interrupt-cells = <1>; + }; + }; + + cpu_6: cpu@6 { + compatible = "spacemit,x60", "riscv"; + device_type = "cpu"; + reg = <6>; + riscv,isa = "rv64imafdcv_zicbom_zicbop_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zba_zbb_zbc_zbs_zkt_zvfh_zvkt_sscofpmf_sstc_svinval_svnapot_svpbmt"; + riscv,isa-base = "rv64i"; + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "zicbom", + "zicbop", "zicboz", "zicntr", "zicond", "zicsr", + "zifencei", "zihintpause", "zihpm", "zfh", "zba", + "zbb", "zbc", "zbs", "zkt", "zvfh", "zvkt", + "sscofpmf", "sstc", "svinval", "svnapot", "svpbmt"; + riscv,cbom-block-size = <64>; + riscv,cbop-block-size = <64>; + riscv,cboz-block-size = <64>; + i-cache-block-size = <64>; + i-cache-size = <32768>; + i-cache-sets = <512>; + d-cache-block-size = <64>; + d-cache-size = <32768>; + d-cache-sets = <512>; + next-level-cache = <&cluster1_l2_cache>; + mmu-type = "riscv,sv39"; + + cpu6_intc: interrupt-controller { + compatible = "riscv,cpu-intc"; + interrupt-controller; + #interrupt-cells = <1>; + }; + }; + + cpu_7: cpu@7 { + compatible = "spacemit,x60", "riscv"; + device_type = "cpu"; + reg = <7>; + riscv,isa = "rv64imafdcv_zicbom_zicbop_zicboz_zicntr_zicond_zicsr_zifencei_zihintpause_zihpm_zfh_zba_zbb_zbc_zbs_zkt_zvfh_zvkt_sscofpmf_sstc_svinval_svnapot_svpbmt"; + riscv,isa-base = "rv64i"; + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "zicbom", + "zicbop", "zicboz", "zicntr", "zicond", "zicsr", + "zifencei", "zihintpause", "zihpm", "zfh", "zba", + "zbb", "zbc", "zbs", "zkt", "zvfh", "zvkt", + "sscofpmf", "sstc", "svinval", "svnapot", "svpbmt"; + riscv,cbom-block-size = <64>; + riscv,cbop-block-size = <64>; + riscv,cboz-block-size = <64>; + i-cache-block-size = <64>; + i-cache-size = <32768>; + i-cache-sets = <512>; + d-cache-block-size = <64>; + d-cache-size = <32768>; + d-cache-sets = <512>; + next-level-cache = <&cluster1_l2_cache>; + mmu-type = "riscv,sv39"; + + cpu7_intc: interrupt-controller { + compatible = "riscv,cpu-intc"; + interrupt-controller; + #interrupt-cells = <1>; + }; + }; + + cluster0_l2_cache: l2-cache0 { + compatible = "cache"; + cache-block-size = <64>; + cache-level = <2>; + cache-size = <524288>; + cache-sets = <1024>; + cache-unified; + }; + + cluster1_l2_cache: l2-cache1 { + compatible = "cache"; + cache-block-size = <64>; + cache-level = <2>; + cache-size = <524288>; + cache-sets = <1024>; + cache-unified; + }; + }; + + soc { + compatible = "simple-bus"; + interrupt-parent = <&plic>; + #address-cells = <2>; + #size-cells = <2>; + dma-noncoherent; + ranges; + + uart0: serial@d4017000 { + compatible = "spacemit,k1-uart", "intel,xscale-uart"; + reg = <0x0 0xd4017000 0x0 0x100>; + interrupts = <42>; + clock-frequency = <14857000>; + reg-shift = <2>; + reg-io-width = <4>; + status = "disabled"; + }; + + uart2: serial@d4017100 { + compatible = "spacemit,k1-uart", "intel,xscale-uart"; + reg = <0x0 0xd4017100 0x0 0x100>; + interrupts = <44>; + clock-frequency = <14857000>; + reg-shift = <2>; + reg-io-width = <4>; + status = "disabled"; + }; + + uart3: serial@d4017200 { + compatible = "spacemit,k1-uart", "intel,xscale-uart"; + reg = <0x0 0xd4017200 0x0 0x100>; + interrupts = <45>; + clock-frequency = <14857000>; + reg-shift = <2>; + reg-io-width = <4>; + status = "disabled"; + }; + + uart4: serial@d4017300 { + compatible = "spacemit,k1-uart", "intel,xscale-uart"; + reg = <0x0 0xd4017300 0x0 0x100>; + interrupts = <46>; + clock-frequency = <14857000>; + reg-shift = <2>; + reg-io-width = <4>; + status = "disabled"; + }; + + uart5: serial@d4017400 { + compatible = "spacemit,k1-uart", "intel,xscale-uart"; + reg = <0x0 0xd4017400 0x0 0x100>; + interrupts = <47>; + clock-frequency = <14857000>; + reg-shift = <2>; + reg-io-width = <4>; + status = "disabled"; + }; + + uart6: serial@d4017500 { + compatible = "spacemit,k1-uart", "intel,xscale-uart"; + reg = <0x0 0xd4017500 0x0 0x100>; + interrupts = <48>; + clock-frequency = <14857000>; + reg-shift = <2>; + reg-io-width = <4>; + status = "disabled"; + }; + + uart7: serial@d4017600 { + compatible = "spacemit,k1-uart", "intel,xscale-uart"; + reg = <0x0 0xd4017600 0x0 0x100>; + interrupts = <49>; + clock-frequency = <14857000>; + reg-shift = <2>; + reg-io-width = <4>; + status = "disabled"; + }; + + uart8: serial@d4017700 { + compatible = "spacemit,k1-uart", "intel,xscale-uart"; + reg = <0x0 0xd4017700 0x0 0x100>; + interrupts = <50>; + clock-frequency = <14857000>; + reg-shift = <2>; + reg-io-width = <4>; + status = "disabled"; + }; + + uart9: serial@d4017800 { + compatible = "spacemit,k1-uart", "intel,xscale-uart"; + reg = <0x0 0xd4017800 0x0 0x100>; + interrupts = <51>; + clock-frequency = <14857000>; + reg-shift = <2>; + reg-io-width = <4>; + status = "disabled"; + }; + + plic: interrupt-controller@e0000000 { + compatible = "spacemit,k1-plic", "sifive,plic-1.0.0"; + reg = <0x0 0xe0000000 0x0 0x4000000>; + interrupts-extended = <&cpu0_intc 11>, <&cpu0_intc 9>, + <&cpu1_intc 11>, <&cpu1_intc 9>, + <&cpu2_intc 11>, <&cpu2_intc 9>, + <&cpu3_intc 11>, <&cpu3_intc 9>, + <&cpu4_intc 11>, <&cpu4_intc 9>, + <&cpu5_intc 11>, <&cpu5_intc 9>, + <&cpu6_intc 11>, <&cpu6_intc 9>, + <&cpu7_intc 11>, <&cpu7_intc 9>; + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <1>; + riscv,ndev = <159>; + }; + + clint: timer@e4000000 { + compatible = "spacemit,k1-clint", "sifive,clint0"; + reg = <0x0 0xe4000000 0x0 0x10000>; + interrupts-extended = <&cpu0_intc 3>, <&cpu0_intc 7>, + <&cpu1_intc 3>, <&cpu1_intc 7>, + <&cpu2_intc 3>, <&cpu2_intc 7>, + <&cpu3_intc 3>, <&cpu3_intc 7>, + <&cpu4_intc 3>, <&cpu4_intc 7>, + <&cpu5_intc 3>, <&cpu5_intc 7>, + <&cpu6_intc 3>, <&cpu6_intc 7>, + <&cpu7_intc 3>, <&cpu7_intc 7>; + }; + + sec_uart1: serial@f0612000 { + compatible = "spacemit,k1-uart", "intel,xscale-uart"; + reg = <0x0 0xf0612000 0x0 0x100>; + interrupts = <43>; + clock-frequency = <14857000>; + reg-shift = <2>; + reg-io-width = <4>; + status = "reserved"; /* for TEE usage */ + }; + }; +}; From patchwork Tue Jul 9 03:18:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 13727216 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0C029C3DA45 for ; Tue, 9 Jul 2024 03:21:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:In-Reply-To:References:Message-Id: MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fVGwU5Ln4SRSx+XsqOcCckHTFEosnq2Mo9ccYLTmCuU=; b=s+4Ni60Gga7tF9 LXJV74trytj/KszSWrKPyBGo231Y1zb6UQC7IdQHTBPFXV+tnmkpd8+Y8RS7WfhTEjQIMxnrQ+6HN ZO7lExy4USOBvWzkmD2hk4qRiBwHyccjt/qlT/s8enqSV0lSzcIt63h+3K2/Di3capj/xMa25oDPT IY3HdizAd6IN8SxRdEa8n+zpnI4arrG4YmcFd+gF3tpIvRuBa6vqPheDLkF29m3ZtLtGoyDwq6+d5 5PKyCJcDWraHZPPTsUyChg6QdRDsVGfJfjj39KXabH2jrb2ySKpgjlKp1qqjaDoeDUAlF+hD2zf+U tKGsWl5l2jjrXZt7DUtQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1Pc-00000005jmY-1bBS; Tue, 09 Jul 2024 03:21:04 +0000 Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1PZ-00000005jkQ-2J4f for linux-riscv@lists.infradead.org; Tue, 09 Jul 2024 03:21:03 +0000 From: Yixun Lan Date: Tue, 09 Jul 2024 03:18:52 +0000 Subject: [PATCH v4 09/10] riscv: dts: spacemit: add Banana Pi BPI-F3 board device tree MIME-Version: 1.0 Message-Id: <20240709-k1-01-basic-dt-v4-9-ae5bb5e56aaf@gentoo.org> References: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> In-Reply-To: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1955; i=dlan@gentoo.org; h=from:subject:message-id; bh=mJc6hZeXKZcPaMSmqXhuz5fuxopioAcnLOzTKcNsQPA=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmjKw54FO/wGQQEetIDywkal1MPnSgjquHCTvUC 2baklrbcrKJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoysOV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277S9oD/0V6Q7ZRNo0qx87KI 3EXKU34sr343u/RmJm+xgwRZcRUqQDgg0lBxVUiY5uIamSaQdJSE1oZtCH5LADUaowY7Fr6eoXo AyUmam25notxo2jNxwVmT758NtSTEcWHS9M6rjh9f5m9fwZhUZaGSJv8vLznMvcLrWRm3tAhOgm MHnYhDcikZcpVmJYY1mTzbz+5ggQBD4k+EeAp5Y1kS/thqP60giX11zg/tawRaN+5bG0UcQ6sAO KIPsPfnCHR/EMI8hBwTQ1wCwzL8UVzWEmP61X1Ohwg/Sd5Qh8tTT8frRcHjDDOMOdVY/n+lJI8p WFvC7MhUiNP2rWJYtfLyVJW+Kl+ZXYxt4YZqWD9BXUUAoZ85LWHXDE1fYxEnA38s6d8eTd9p3dg WnZzaCAyufPyl3AuMj9Ju0Kk70LOL5Z0VePu3BwZmyxpInWytJcE6tWM7Bvrf+zmSt3CF2X/eCt aNqFMwgURR1cEXSdMwsiZm9QhcLef6f5TVrNVr4oq/potrcH+s3/G3S3vbWdDZxDnL2Lc+F8/2v 1na6H2dp/Nd2M6cS4bU3OPDFvFAFyQN8xfWJbV6/bu+xmiC1gJZW9JBgWaO8EVP33GV8x9OYM1p 6nmPq0ElndWRqaPTa+A95c/q4JXcH3lPd3pmhtDmEAUHAFPArjFQJRByibbj2YR7ux2w== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240708_202101_667690_535C8D5F X-CRM114-Status: GOOD ( 10.96 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Yixun Lan , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jesse Taube , Yangyu Chen , Inochi Amaoto , Meng Zhang , Jisheng Zhang , Meng Zhang , linux-riscv@lists.infradead.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Yangyu Chen Banana Pi BPI-F3 [1] is a industrial grade RISC-V development board, it design with SpacemiT K1 8 core RISC-V chip [2]. Currently only support booting into console with only uart enabled, other features will be added soon later. Link: https://docs.banana-pi.org/en/BPI-F3/BananaPi_BPI-F3 [1] Link: https://www.spacemit.com/en/spacemit-key-stone-2/ [2] Signed-off-by: Yangyu Chen Signed-off-by: Yixun Lan --- arch/riscv/boot/dts/Makefile | 1 + arch/riscv/boot/dts/spacemit/Makefile | 2 ++ arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts | 19 +++++++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/arch/riscv/boot/dts/Makefile b/arch/riscv/boot/dts/Makefile index fdae05bbf5563..bff887d38abe4 100644 --- a/arch/riscv/boot/dts/Makefile +++ b/arch/riscv/boot/dts/Makefile @@ -5,6 +5,7 @@ subdir-y += microchip subdir-y += renesas subdir-y += sifive subdir-y += sophgo +subdir-y += spacemit subdir-y += starfive subdir-y += thead diff --git a/arch/riscv/boot/dts/spacemit/Makefile b/arch/riscv/boot/dts/spacemit/Makefile new file mode 100644 index 0000000000000..ac617319a5742 --- /dev/null +++ b/arch/riscv/boot/dts/spacemit/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +dtb-$(CONFIG_ARCH_SPACEMIT) += k1-bananapi-f3.dtb diff --git a/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts new file mode 100644 index 0000000000000..023274189b492 --- /dev/null +++ b/arch/riscv/boot/dts/spacemit/k1-bananapi-f3.dts @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2024 Yangyu Chen + */ + +#include "k1.dtsi" + +/ { + model = "Banana Pi BPI-F3"; + compatible = "bananapi,bpi-f3", "spacemit,k1"; + + chosen { + stdout-path = "serial0"; + }; +}; + +&uart0 { + status = "okay"; +}; From patchwork Tue Jul 9 03:18:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 13727217 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0F8B2C3DA45 for ; Tue, 9 Jul 2024 03:21:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:In-Reply-To:References:Message-Id: MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Y7NpUpmxaXgnuiA1CT/EXcdQo6/AOmpR3/vdYEM/vOc=; b=W8MUeri1P598bg 8iqgggbkPl88dN0uDc+zTeDgVEQdZ9VoZ+CgEv53IhQ92PFR6yNgaokxgzu4ArGsiD9vGBJ4JBULo QYzvq6tNPMDIZfFowLfVtLhJ+ENl/Meete+tTZ85/JwLada8iLhCCc/s/SbhYK1/iiIkTmWa+sSLE GFdBYi1GT8P++833k5B7QXtX2dn81q9rjWKmqV4+a8aQO1it8s0NGI3z/wOa8aFejku17JOOqnWgi 9FzQZ3qN6nygNFPJLAImzKFdLNPrBF53N7NBfeUgpt3a71j7gxAgwjPFQZ8DQO7D3QPJC/yII4JSL LNrCmfO4PPn4qHT70JSw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1Pz-00000005k23-2edm; Tue, 09 Jul 2024 03:21:27 +0000 Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sR1Pi-00000005jrI-3sOa for linux-riscv@lists.infradead.org; Tue, 09 Jul 2024 03:21:14 +0000 From: Yixun Lan Date: Tue, 09 Jul 2024 03:18:53 +0000 Subject: [PATCH v4 10/10] riscv: defconfig: enable SpacemiT SoC MIME-Version: 1.0 Message-Id: <20240709-k1-01-basic-dt-v4-10-ae5bb5e56aaf@gentoo.org> References: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> In-Reply-To: <20240709-k1-01-basic-dt-v4-0-ae5bb5e56aaf@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=795; i=dlan@gentoo.org; h=from:subject:message-id; bh=nL3b7ahT6PV/xD2KFpmUqqi2YSsxtqrz+nMpwZze7nk=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmjKw8UJeiNWb9cOf0HFjpYkqCDrFZNYSjTbzd+ tu3iV1QfX+JApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoysPF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277UG9EACH6x0kZ5oN0KPPGc JZC0huaCNkqUkLvkzX3zhXIkvTyZX/wLcOxTJleNI0GTR+wAII/BfL04DOkhN95b+6jI/5OtsF9 k1bG5cUaj37XpAxGwJ/r/ryD+sq2xzzX2m9FLfSLBu7jjtt5Jn5xjDxGQH+iWFQu6JtVk9ff01A L952+9XIP2idSo8j8BhPYksc68FqGEvRDnQfwzCqWEb6ByetyGgyeOcBpwz9UQyalfkzHihe4am 1y/Noo39uDoVcV1pdjCrbG3arTtYnKn6efO390QbP3s2DHJWTqeclgwns+nMKQR2MLSkVWLsG7e LAMDYtfEQra74OiE464xz7M89R2gzLyoWbeVV25iYvoEEq3F1YP9Y37o6jNG6lOBqbe2XC6KAI6 /EY7XtghXBkBCzTd6uDbVinMKRZfc3QaMa05j7THgNBehSvDbpQsckI6lKveEanl2CFeECLshIq 8mktzRHbRlApRodX5PMEkZ1hMWrRCWxsz36M5UX2wFGM/OUDZwApdu+wXcDOICXViZEkIjB3lVi XFgFjgiIZ/nvqtE7VWkrgZDBQSQFL2dGeLS0hGErXSuDZosPzEEdpF+1f7NG4RqtIoF3cUsEzXm njmGDohjJYR7vgsIEJtkTrCeRVzi/YcGVPoty1rDoGd04XM1Yy+5DGTBxbLo41xqeNJg== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240708_202111_109536_16733DAF X-CRM114-Status: UNSURE ( 7.71 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Yixun Lan , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jesse Taube , Yangyu Chen , Conor Dooley , Inochi Amaoto , Meng Zhang , Jisheng Zhang , Meng Zhang , linux-riscv@lists.infradead.org Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org From: Yangyu Chen Enable SpacemiT SoC config in defconfig to allow the default upstream kernel to boot on Banana Pi BPI-F3 board. Signed-off-by: Yangyu Chen Reviewed-by: Conor Dooley Tested-by: Jesse Taube Signed-off-by: Yixun Lan --- arch/riscv/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index 12dc8c73a8acf..5287ae81bbb78 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -29,6 +29,7 @@ CONFIG_ARCH_MICROCHIP=y CONFIG_ARCH_RENESAS=y CONFIG_ARCH_SIFIVE=y CONFIG_ARCH_SOPHGO=y +CONFIG_ARCH_SPACEMIT=y CONFIG_SOC_STARFIVE=y CONFIG_ARCH_SUNXI=y CONFIG_ARCH_THEAD=y