From patchwork Tue Jul 30 00:28:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 815586 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E12A04A33; Tue, 30 Jul 2024 00:28:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299338; cv=none; b=eJs8RVNnHGw08KgTjMtU6J1kJ+ZcnO1wMUft+uz2hXJz5dVYh/glCcxhoSbZ8Amc0phCErHkiFot/8IaqmVwwVqJIpAkOnixHG7O/6GEPtaaX8DMvvbVRvjvw5oCq3TTJ6edtsB/5gM6KTBGd0wMUUcYcqTGbDlPUIHzWAhXsto= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299338; c=relaxed/simple; bh=3g0q4xfGD/0BPHeKW0E2urRBuyLjwe3orrVmk6S+hYM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Z6hIRMc0m5sD6yTlSmVLajIlAscFcuVca1HCvT9aJAfu1SB4Evw4+jI6DXY3BpMNRE54Bytci+DQ1MX2jpWbi0i06+W8S22RKFn24peTsfbaXk00hPRjtmZOTyJge8lCE2YUfA1v1wU/QsTTkQxRpmwlLfkQO9Esa2oPx00Gep8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org From: Yixun Lan Date: Tue, 30 Jul 2024 00:28:04 +0000 Subject: [PATCH v5 01/10] dt-bindings: vendor-prefixes: add spacemit Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240730-k1-01-basic-dt-v5-1-98263aae83be@gentoo.org> References: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> In-Reply-To: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Yangyu Chen , Yixun Lan , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Jesse Taube , Jisheng Zhang , Inochi Amaoto , Icenowy Zheng , Meng Zhang , Meng Zhang , Conor Dooley X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=971; i=dlan@gentoo.org; h=from:subject:message-id; bh=nHwvYdywHpy9Ex1SC+u0mjF5PBlfctSYARSdCiel5hQ=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmqDOeACQkmqNz8RccLujgUX0H3zYx9CMmaCSK5 edxiUR0V/mJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZqgznl8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277QaMEACIVaYkJ/6ugxM3Mc IRux6DVrB8QxxjZhp8P4LIpJTDL/M9P7yAdTGl8RmHntSFrL/rEvjjGrTLsSIi19ee0WwltRXXG 7z0O+gUJPsF5QzhTxd9h9neFjHqHVVLxcPiNdSDAZ1ibVw8z8klQ7hGq3oxstJN7bYWD9Q4z4gG 5GwxHGpm4aA9YsXHr/GFvk/cwuJ411ndWEAzxbzSVs7mDG+v6JDSJQjbKIUldSVe732JZkL/tVS 3LlO8J0Z/djnvAb7WDo4GWBho4hJHr0pJhHQsOKgSaA+vzfAcTyCtENLKAjrBH5+hLnwoOv7KnR WUf4zZV/lIWXvqlg6NTchNvxB8vYoN/PaGrGCmuJPraHdsYJAfhX3ZKuBwQApAGaI/Y6Ja70e0Y XbO5lwiepa3ihDwMEpHlEmvnNiOgbzzD/Pyu9/26MK8nmHWLPZDmSFBoyMAbFKDTrs3wGlJAf6X AK+bn2CHEeyh9b1RF+Fy6iMYMXdUFscCDg+l7/7ML1MiWpMlZ96gQ7q3joJVAUM6MB7yP7joczg uD/Yvsi+N1ODPFAZ8V6hrDQGf1dj1QPmYPYXsthvH0RXrVTLtCW3T6thGmcQ2pBm77gwtErS9lY ZvAmmw4tB5aIS3sPaK4ul+MvTLIGb2QTz15wqN1iAmVHyw6uGCLBmpKsIQO7gFcch0kA== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 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 a70ce43b3dc03..30043488328b8 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1382,6 +1382,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 30 00:28:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 815993 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D62229460; Tue, 30 Jul 2024 00:29:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299342; cv=none; b=TOLRrwKUmYPKd/TV1LrYEVQqeZPVTemS1YlUWP7FQwLhajsDAJgfj/S+zEpkKhcnu7zW4zUvyjen50TicdgnSs9nJctRktj1HHoP6QOsFr5NNgLTBZuZqhKQutRR23qCfunbe9eCkai7j8HpTYHm6NOxWTOLevz1psOA/yOtT0A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299342; c=relaxed/simple; bh=Js9ab4URZhWNgePC8zJilMKKJ/AryQyBTHQSX5byUp4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qTlNEnGJ4CZueRl01KL9x+Y1z+xZSuL7rDHCdt4IQW3+Yy4BLJNtzNQ63WBoHFBdm5X7U2hVopBTuw4nksponoSJn8BaDLqnlkzOOMWg9Rlh2p27aMj9DpT73xLHOc+Vp8wXG6/iauh9VyY7Biibd/BPXIxS+mG3xbC7x1Y1qUo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org From: Yixun Lan Date: Tue, 30 Jul 2024 00:28:05 +0000 Subject: [PATCH v5 02/10] dt-bindings: riscv: Add SpacemiT X60 compatibles Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240730-k1-01-basic-dt-v5-2-98263aae83be@gentoo.org> References: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> In-Reply-To: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Yangyu Chen , Yixun Lan , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Jesse Taube , Jisheng Zhang , Inochi Amaoto , Icenowy Zheng , Meng Zhang , Meng Zhang , Conor Dooley X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=904; i=dlan@gentoo.org; h=from:subject:message-id; bh=W8eM35e/PTpqsXXOCfHverpbl8e/pGr451VH+m26oA0=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmqDOhfX0Xrzy0z/5lq7e6AD+TZMqsPXdTaQ9PT yy5IH4xgHOJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZqgzoV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277ds+D/0bI9pzmp5cVVSPdS ZC+vFW3Mcg190dl1qRTCiR0ouSU80vI3l6jTXMQzeBC49uz8+2w9ANm37dtmAWsx+Y7jLTgFVoA fkMixKGm9pYoE9oB0ZJlW3PWm3mbJ9WckU1d5ysPJ9EOhkEs36s2uX4JQzEdtaarPX2156vfMte ecFuNQoeyjSid117hwtvSvYo/7Si2bQ/wIw4W59tpov6641yAFXYeOPaqO6Od2PIjVyrdz9kaR0 FxGCltGLSzifNNrPr03URC3S+RcXR0096aOq41AKG3pnwB+aZAqmdyUvgzrcZtKoGPK1shgBnBU 6F/YrifFZHqx1pRMymFrgsbFQyVn8cQ26VkgKrXlDdGnfRf3TA0qbcBADoStituAc/6NhwzGA5v jhvnSBgoAbttMPFwy3vNa7W6//xzTF6IS+m0TL/lzOlp9Y1h83imJamle67Yorh4XSP454BHDQ4 dbBm8uXuy0oQ/s/T8o+Q4e0ol/CrMsEPhedbfEaWtYH0/NcGM9ioC4pijiFCFTGFJW7ly6vMdX5 lkd1y/Xy3s08oMdA3LzypQx/599RwKTDFPFHRUaDRuzQHtqo/ytBgsBZ+U2Rpbqm2Zhq23Wf7X9 C6sap5IMGt5EyoosbkrR/z5rHaSWebnrQgUjORmvPS2CF1pdaxsELNvwCeLiXHkxPbVw== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 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 8edc8261241ad..acb5b9ba6f049 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,c908 - thead,c910 From patchwork Tue Jul 30 00:28:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 815585 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B633C2107; Tue, 30 Jul 2024 00:29:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299347; cv=none; b=tUl2flWtTvbeE7pnsGcCwfRDcw6lBtuDS6eNBT38o9c/c6wSqHXF6/yrHhbJzO4Nzw90klFG/iGTwJy91XvUyy3cdP5lYKojJv2MBOX+QY6hph2wLwbfN5AcZxP9qbLkMg8Wl/D2ihu46KR6SzJ6PZ6ogBs+geCeJBDIaagTQBY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299347; c=relaxed/simple; bh=D8Vc8bnpgkyz8PE5tcYDo/0KTp9d8FRxFRIpzBFCTZc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=I6hTHlEoZQsbaqmgC8g8rys78fjfTuZWB1vQqsWBIsb6w3eXbs3YeDoxvfIRd0EzhZi3C0/OvYckII4LENqett22rRYyYeP2v5UGsKNOlECJ5LWw0y4puWpVmR5dH4/2w1WByucQpWB4N0iqxquwrkvdfHpoqYyVlnvWX+fhuYk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org From: Yixun Lan Date: Tue, 30 Jul 2024 00:28:06 +0000 Subject: [PATCH v5 03/10] dt-bindings: riscv: add SpacemiT K1 bindings Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240730-k1-01-basic-dt-v5-3-98263aae83be@gentoo.org> References: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> In-Reply-To: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Yangyu Chen , Yixun Lan , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Jesse Taube , Jisheng Zhang , Inochi Amaoto , Icenowy Zheng , Meng Zhang , Meng Zhang , Matthias Brugger X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1434; i=dlan@gentoo.org; h=from:subject:message-id; bh=eh3cgKtPldxaM4wTA1wLvLcQHYcPOLfKDPjLj7ob40k=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmqDOkRooYNpIMy+fzKp4BO/bbbSBxvjlongWc9 wu1V9FknL2JApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZqgzpF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277TGkD/9A/byF6YK3FGkaSd ekdv+gI6rdUm2DRoKDLpz95EsYV0VEi6fN778jw0QI6VozcmbzEqd42uiw5hwC2Sgig0RRAuAw6 eCKo7xrfiJzGyUXBEuTxVCHl+z2nsk2JJbVJR7chCCrWf5EP2lBOK5SoBDodNOxDJzLVghe98Sc D5k3FLykwCTE8OQIVGGWcfSJdIfFgaczyKx3RQBtNh+rL8pe9SEGlWpc0sOgfsdijj5RABVrv0O 9PRj+gWgQbFNEJg4//AumkRgiuSOmHjxF8+fjovyof5O++dBchisqRe6pzM3Ses4wRVFVNBUJVh LtFApsSEymBbNNBGBLhEODtYlovsEdFbMlexr3Pt2EQ9S2eI2szV6eaPLBdR2kQ6NV1Jr/wU7Fb cukMqfvaLCQcyE8f+kCQdo13YLWvpw5WiG08MBFRtH/N6pHCVhz3Jq1Syq+ekImKYHf3ehQfWXz 2VF1yJBoGhPgmN2hCiJuuNEm1C6b/oOyd+RwcqJ+uaNLsB//KxYAabpROIZLRAZkRlmrZfQr90m fz7k4SN4YqsiYQlCnLMqg/n3/QO3Kggc+tOKv019aAOeCoQNoZcixloZNmmwYvAssr0EUmTUYQl 6vYlQFWv5B2DrxlKeRchKY8GGnxxCDlCw0wbgCaUasOVYlCGdcE394G6odg6yDD3ICXA== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 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 Acked-by: Rob Herring (Arm) Signed-off-by: Yixun Lan --- .../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 30 00:28:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 815992 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B3211A291; Tue, 30 Jul 2024 00:29:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299351; cv=none; b=qh8KxuPG9f2nBrWXafvxK1QzLIfHK+tpaFiQB7qi1FHEiEO6q52zS6I+8S/Ky+1+mouIsy1ouRK/VFCkmzydUs7BLPFMfXY335XDLpUWhOIaJ7U+DBVEbxXka+f+6ll73/Z0ZLVxyN8t9jviwyltYX5XB3nAuVBsBPIovlzHS34= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299351; c=relaxed/simple; bh=vMDmmDgzRdWXl3NzJaS3PmNN2NGm97gOT83Z9RpJGaQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pxM10FHd8j8TKZKas27vNgW0ha/6O7QG5AHcbh0+tCfYkRJqGKzEEV9E8J9SSa1D8+o84e5htNJi+71pKIEba/xHKBx7C/zBsM8xKDa3lsxxE3ojgczyIR80vONnmVNPNC+bffDQLlCycXOz2OGaGKXCaxiHKqLLrLo6Y/+YJyc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org From: Yixun Lan Date: Tue, 30 Jul 2024 00:28:07 +0000 Subject: [PATCH v5 04/10] dt-bindings: timer: Add SpacemiT K1 CLINT Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240730-k1-01-basic-dt-v5-4-98263aae83be@gentoo.org> References: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> In-Reply-To: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Yangyu Chen , Yixun Lan , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Jesse Taube , Jisheng Zhang , Inochi Amaoto , Icenowy Zheng , Meng Zhang , Meng Zhang , Conor Dooley X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1027; i=dlan@gentoo.org; h=from:subject:message-id; bh=G8BK6D9+YiBDVaveYkEZ4DtFvpj1iVXn+rNymf77fpM=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmqDOnEhV0ygT96MAh5y2z7oZE5HmxY8sHw86XP 3un4WrhWCiJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZqgzp18UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277dkmD/9gdgvA2CjooJueVf i7RzHiNaPKfCE6ei5R/ssBZ5rkE8zxipnsZAuCXqtHmpcxMVp85xMiMzpTR68HeRaJHDhwi6GqC r651A1FykZKtXSfZD+MX0xu3zYKhu/QXZWb6CJBlYt/R3MI/BVw+t0+uW09nAP0vEPShGt+UJSo I7lC18QohWnnKZ4MFPAwg/1+Qzz+lzkHXEOU+RaeVLvXBfGwwHb4vOhqiI+s78EMDruoxBGaUK0 w++A0aOAWiXj6f4mBoGfpXYSvRDFcOGSnTCMJ0BC6i/lPi0g1OVEIvoRD7XWeItAAalT7LpYHOi PwZ/+alkssP9eNcE+rwXSMkKIQxdd+pO4Fnqf9axNdjYg+7rtaJiQA+0bZcFiKWEjd17qVgXmJ5 qzFdwW5S74AAWrIrptVmdgzwK3+QaMhT2JMLugh/ErLd1DCjZ9tLJMCS4BA296NK0oR3h59GPyc wYW9qFOjSf4Fq6ScY9ok5UC32jyyaiFOZhTD1XBT149q6exgFh4EccEug2YxKqTBQNLNWOvbxtr LWsM+OHETHI/afF+fI/ZI7eakACZOWjjy48ndx6yP4jV6YD3AtDSONTGKXxWk/oE+p6Mh0esv5P Ol7QnDdldA3EVOEBHCJNsdYpLHpLO6cJS91tKIBJ+Mank8gLMXs/EM2TikqxAPAfhjIw== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 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 b42d43d2de488..76d83aea4e2ba 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 30 00:28:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 815584 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7072D804; Tue, 30 Jul 2024 00:29:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299355; cv=none; b=b6MmtiY/VecJwJZ5Aix/c4gcnfS16RNV8xiEvzF5/x8QlUdukr/T3hYr/PetOjQlhuf1ww0e03dfHLoDqk55vyJwJ+DRjaJpaeRd+dt7kEtUP0nrxIrz+w/k1c9uQeiwKsiWzawXA+OK8JYsIw7EOXwSbWZ2zRfGBR9BIv96fT0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299355; c=relaxed/simple; bh=KaVNf+l+Sp1bJ7NI/f9O19r9vkAzuFGqmjcJN1OME2g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WSZwXcMfRo9l6uHBV0lA943vFy1oO5IydFgIST/eJcY2pJ5G9lMxsJBSUSo4GfbLscTZkJQ3gjGCr324L2QTQMbbc4Vh3q+k1GoDgdu6O6WsWFdl5OuigiI73IiE1uVXqYBZCuYeqJQqXi+Gllq8XwdpW6vtiyoDxODShOFc99U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org From: Yixun Lan Date: Tue, 30 Jul 2024 00:28:08 +0000 Subject: [PATCH v5 05/10] dt-bindings: interrupt-controller: Add SpacemiT K1 PLIC Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240730-k1-01-basic-dt-v5-5-98263aae83be@gentoo.org> References: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> In-Reply-To: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Yangyu Chen , Yixun Lan , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Jesse Taube , Jisheng Zhang , Inochi Amaoto , Icenowy Zheng , Meng Zhang , Meng Zhang , Conor Dooley X-Mailer: b4 0.14.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/ZANAwAKATGq6kdZTbvtAcsmYgBmqDOrebmKoNBdTxSBFxluO4fDpviSPs+S/+2/u jqPBBmjndaJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZqgzq18UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277WPGEACZQzXm0k3JkWpRaK ve8mnvNuPwSBiJ9QI5XuUfUUml5ZHbKO5kRqv53I7mwjSIpakbREPRZwUQIxXmMb/wCrm7pf02I KYdfjRhuQ7ZS6zlhBYibTW8tf89B8ryXNyOLMnkpKveyyj3U/idclJpSjGzXaNHhtfggTp4a6Vt s8ypKGFvGc2wc0Mf/q16N67HBGT/s09gUy0QygqFa5v/xwkU8aUt6cJ38Gxn7LbNpzdnZ/Bl1qn KRQsxOY6nemWph5Knc+kGRZ+lEYRJ0OaF5SH7+82rGSfeJuQJ+f6Ykk5O4ktm8FokLhzCP5Gjzh i4Dq0scBbS4ZqnctDPqm41uZMem4hQdDe4ZdOIwzAT36KfoTF+fIWJdnYl4cKr8mvNf897zBaRs MIuf8aigBNixEAuT9ZwsaIg5Z05Vct8NOEUDtS1lWjfS6UPU7iwlWqmlNHr8Ue8lnW7keV7ysDS SlGCbIbD1v7u+Kg1WuDBPBsBYdSv7bFuGdlfo+S4fUgflxaSL3QTAmh9hZkx9ovuK/jW9zde4KH /uSxP9ImJB1sJC5lfQAfBC6/N3BTUC8IjC3fXPRpUzQa+JJZfEs22zynHeIN/YLxww/bfuPjN0q dHIjfzLgffsuvo2KMOMQ84DhHiByjHKaPhFBITwFDYSD9G7vJwE+Zpdd1FXpUBLbsyBw== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 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 30 00:28:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 815991 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F15DF53BE; Tue, 30 Jul 2024 00:29:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299360; cv=none; b=pZkkQ8xwHs9dcwn79axaJuSieCvd4cY3LeTp1KDl4xmnLCDfB042rUHt0CtJdjn98OhCn0UcIBMLBr/4TGVTMPPCgSVrSGbDA//aliiWJAV6DU83cupyswfuZO2AoIp33jj+uq0cj/U1FWxFI9ZFqg+UePZfsdgtK1dw5MhX5aM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299360; c=relaxed/simple; bh=5e5axpOVSop7tU9RM2+kMzY3QIqZVpK1c93FNqEco2I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qRciP0oq/Z5jWs/TjmaR6arJ+/75c5c6M5Shqf2l1bELMSMHn0qRN43ve5tuQccpf9oUQHHuDqLMdbNg1H7lLRvbqwA8LVCvY+UtjP+5Fle4O75x0Z2w1M/UcfIcocy0d4UiV9XhvIHe1zvyhyrymhS9Wp8/3m+dxupMiVm1wIg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org From: Yixun Lan Date: Tue, 30 Jul 2024 00:28:09 +0000 Subject: [PATCH v5 06/10] dt-bindings: serial: 8250: Add SpacemiT K1 uart compatible Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240730-k1-01-basic-dt-v5-6-98263aae83be@gentoo.org> References: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> In-Reply-To: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Yangyu Chen , Yixun Lan , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Jesse Taube , Jisheng Zhang , Inochi Amaoto , Icenowy Zheng , Meng Zhang , Meng Zhang , Conor Dooley X-Mailer: b4 0.14.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/ZANAwAKATGq6kdZTbvtAcsmYgBmqDOuNXR3NdHbzKjlSS1pwkQ+g3hHoXXLyABN9 wZ6kr3zqkCJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZqgzrl8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277QebD/wMAI2kHdel9DrnTv ED7niiWiEgrQhvXvWMbYbqZjR4d7J1G71a3qHtw9FKoa0iEZpWnI0Y6lWY9LJZNycCKepSoHQjI SP3cCNCeeFfKxcB6aMRd4tl1L3Nn4umbANH0zrohviYOzKCFqCHGuBcIktMQCZsVNVQm6tyvzEw kqvhyeEajh8nIeXdyJcJ5gIcqtaVYHPfLoefDOfaYK1TiqdQMk3+PAsV3PjJASI182elhDCnE+W nzgxK2EIVdnDshUeZSNsGog9CWY/IKHym+ZNfZWqOkWH3d8Zx0k5wrfxmMvYVf3X+czhKwAnyMM CarvDADQqLJJQKbGVb60E8egC4aX9uH3o5JkwDvGxdH7noW1CfZ3YLNWU3lAScspInaD4CsZzMd nzTBAMudXWmyCyn3S1fG0QS90OHfs1obVtTrEPSbBNSVfpefGfsZUOwAf1s9IUnAKxTPE8BiELD 7RZ3UviAySbnk7rJUtspQQc/O7O6PcvOgKAC6dMqCXJ/U99neXfFdRQiCj/gZmDwfUXABRXTlep jtwG3bIPkaqCggqdZDln2k1Z7iqq/8Pc3IFrCFbLCc1xc+nHs94CGWEpwumUL9crnBMCYohuMfX Z8OpwQG7d6W2wFvhCeQOoaP7sE9mfPMfaxEr4mRWUyBOpHgspNzCgS3+AKp/8npBg9QQ== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 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 30 00:28:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 815583 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8498D79DE; Tue, 30 Jul 2024 00:29:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299364; cv=none; b=d3Ky0kcSx9EwI+Qnltn7KzyO8yXb8W8Xz5apnZg0kEWQ2QI5RxVZWJysyE08LQVQcWEkOHyYRQN8KcW0iK4rgnY9GgdcURaUtHqEl7Q2Dipz7DxIVRBjOWOwgPzcVDre0A8TNMpqYRcLNlnOeEv549BF+HAkbbr3wLKTD5bPwbc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299364; c=relaxed/simple; bh=hvyPJgqOc1tCMh8R7+h8EQB5CPSRmBXWv5/zDcNO2j4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=u3EYW98+LM60yyrBrtIHd3rdVF3Es+GIAkNzzRCz/S25NJimH8cFG71ARIEU2I2bWvd6KCQBWhyw5JV08pl5RTfairLDVy2vVFosLJpC1KeWmLSEnCHdHV7o70oYHcmlk+OkaL3WY3xv3GHgzPA2JcpBzL2H5fNgsUdwevKjlVY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org From: Yixun Lan Date: Tue, 30 Jul 2024 00:28:10 +0000 Subject: [PATCH v5 07/10] riscv: add SpacemiT SoC family Kconfig support Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240730-k1-01-basic-dt-v5-7-98263aae83be@gentoo.org> References: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> In-Reply-To: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Yangyu Chen , Yixun Lan , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Jesse Taube , Jisheng Zhang , Inochi Amaoto , Icenowy Zheng , Meng Zhang , Meng Zhang , Conor Dooley X-Mailer: b4 0.14.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/ZANAwAKATGq6kdZTbvtAcsmYgBmqDOxlXrjQ35yc+QEj2xiUXXXJUJmrW6p7WJ4k ZCFOZ8U9bOJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZqgzsV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277VqcD/9W2TAjj+tuyuCeHb k0IQxn8FUa6KhbRtNBbL9kH2ujokaTt76xTJgzjdFKzUZV8jwhiWn9i1HOf+mIlJQfNDon28ira 37q4DX4Ddmg9GapQCoos9ruDzzJTJSSROJuZR06dsMyr4JzLzitGowipC8jjTRv2I1HrVsT4ddM ZgVuFLynLo3p/iLbKnlcJNKzl1R9p9jyHBgyyB1zrtU2KZltsNoiQyDbSWRRiW/HC+P+pKIKrhe QpBd94W77ysFXF3R19IT47cns+4LuWC/rAUdvoVnPEaAxlW30AhPQc+9S/udI1uqVRYLY2kRWdR umiTfth6CqbfTpf/KqaxIL5MwhchvEpnMcZJA5YINKVcwtxmjrrWL5/g2qP4RJ94/Flm8/vJItv P5L2jf1z4/uNDQ9dSnQqRl0begRabAJytuRKea8tlX1B8AjwtpAMiFYx5lzxBndJtj4rGmTHuV6 R58pNtPicGBTxEM0KLJx1u5N1q2aCP0WJiCBaeNhUv/7NIxOd4ZnV+sn0zlUiiI3v8dxLaTk3A3 AjULZ7LIKgYJFsMDAT59tmwB/REpcvZz8ewvYNqt9bZ3TRspA6Dz/FUVp0iZFlo/RaFb265zI7D 8Oep7QGxy5AWAWizyNXEYvIuRWb7IMQRyzQaLDv13CgwL4vp2/5dhklD/8r6yXJMu81A== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 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 30 00:28:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 815990 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F58E8F40; Tue, 30 Jul 2024 00:29:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299370; cv=none; b=KauH+yu1qrLxpB/t2QM/ZPMf9kOGtjpzZXRI2nTBq12b3SsFOvYIrlS8Eq85FMkt8nGZPFzcSzEMVDJZoZuGyw+RjWPLggm7lJKfox0GIFh2WadrA4qLpzguYAtAeb5ci9PaldHblFUvRd2RX650BVae7TzRgeaO+tvpsDd9yKI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299370; c=relaxed/simple; bh=J5OH5qA5eccVwMfzp1w0+6V2w7CMHcAWKMV8o2ko2uM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=pbOLHor/9rxKGTpBwDfc5V0MNcx0F3ljMzgwjqk8+Tkf0pD7j0//3C9oXQAZB+IwiR14190afPIslNCpFUPAb2uYGOY7t1Gmkly9k5olr90+0vghRQop0pNlbLDb75PbUcLhBOr/VKznVGs2TuwY6uJun9MSi+1iXiV7QVKjP2I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org From: Yixun Lan Date: Tue, 30 Jul 2024 00:28:11 +0000 Subject: [PATCH v5 08/10] riscv: dts: add initial SpacemiT K1 SoC device tree Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240730-k1-01-basic-dt-v5-8-98263aae83be@gentoo.org> References: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> In-Reply-To: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Yangyu Chen , Yixun Lan , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Jesse Taube , Jisheng Zhang , Inochi Amaoto , Icenowy Zheng , Meng Zhang , Meng Zhang X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=16311; i=dlan@gentoo.org; h=from:subject:message-id; bh=sZEEoHY2/A2Q/BfF+GogAiGFi6Hjau2N/fRkGkB898g=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmqDO1hwjtLsjW6XnMl2PdbR3s4rjlUtd03hxDj tm4XjH6iyqJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZqgztV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277TJ/EACa8IH+Eur/K+rdXw 0rxnYTxNLquxdQU6C3eewwCRjz/gVJvmBfqO36uWFBPqtv4aRCAq9d8UqHb4WrI/ccRGhHAJK/n USnd1ouzu8v3lN4VOoIMigTGROYFKg6OEFs0Bz7qOfcKPsNCNsZDTr+xlBTtjoXmlTpF2sm6OBX HzLUTou/+cuuHhfU0VpyVkYGXtJphkxZ02KJ3skKo3GnEcU+cwGt+N7PMxet5N5b8XOmvkLtsZi XtNxh7CcatiNSEu3ca2jp3Woyu0+e1VjQbcVhKC8dgeZoz3wPf8oxLAH/2bkv+6aGuhpg0QqqWC ua0lFDj3RZ4sAoVJzW/veqKlijPyXZCl/Umgj9lRtB+dmgsXT0lyHa/+qtb6XHmdA6//Wjz5IX8 uqxcdZgkQ8wH5IJoS2kti/Aao2PIHvRPR2Gk9axSTN6J/2EQOgF3iErHyYTTYbl8bmDXsRiG0co wzEWIcXH4puj9JwFOF4Ef1+qoAi4V0gKVW2u6zVVFw2LnCc5HiSPMiW3ONhKlPeqK92XbTOEtKq 2RbxohDkMlCwVqZPsTU/31mIfDyXxKXp7X6TCzs3iLKaiuc9w9/l1DXpNHbssN7Z44yhMvzma2a 7YQkq4e8fUvX5koqt2PqEvYqoxPoVj4qDxCHjHxZeul8IVpd943oQNJWslu6jRjIgKlA== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 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. - Add cache nodes K1 SoC has 128 sets of 32KiB L1 I/D Cache for each hart, and 512 sets of 512KiB L2 Cache for each cluster. 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 Acked-by: Jesse Taube --- Changes in v5: - fix cache-sets - Link to v4: https://lore.kernel.org/all/20240709-k1-01-basic-dt-v4-8-ae5bb5e56aaf@gentoo.org/ 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..0777bf9e01183 --- /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 = <128>; + d-cache-block-size = <64>; + d-cache-size = <32768>; + d-cache-sets = <128>; + 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 = <128>; + d-cache-block-size = <64>; + d-cache-size = <32768>; + d-cache-sets = <128>; + 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 = <128>; + d-cache-block-size = <64>; + d-cache-size = <32768>; + d-cache-sets = <128>; + 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 = <128>; + d-cache-block-size = <64>; + d-cache-size = <32768>; + d-cache-sets = <128>; + 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 = <128>; + d-cache-block-size = <64>; + d-cache-size = <32768>; + d-cache-sets = <128>; + 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 = <128>; + d-cache-block-size = <64>; + d-cache-size = <32768>; + d-cache-sets = <128>; + 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 = <128>; + d-cache-block-size = <64>; + d-cache-size = <32768>; + d-cache-sets = <128>; + 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 = <128>; + d-cache-block-size = <64>; + d-cache-size = <32768>; + d-cache-sets = <128>; + 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 = <512>; + cache-unified; + }; + + cluster1_l2_cache: l2-cache1 { + compatible = "cache"; + cache-block-size = <64>; + cache-level = <2>; + cache-size = <524288>; + cache-sets = <512>; + 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 30 00:28:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 815582 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6E03146A83; Tue, 30 Jul 2024 00:29:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299373; cv=none; b=GHZzQWgajYjUTvxRiB/SKjBWeYyhHBO7db0K+Y9WaDRe7DLjzfzLv7kIIZTPJ6ZTvUfjzoOsLPWIV/qvkVqZuFkr73hu4jNC9begSMH0G3b/zrBHHe6U1rxIFWnInBOGJcXaCK+LoO4gG/IQ1K3o+t2cRWcfuZDNrWbV4eAn17M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299373; c=relaxed/simple; bh=OLDt7dRlbPKWhHGfKxLBHLD9o2bFrg9K7MPbZR7/DtI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=D1bZX/1Reodtoen5IBV7ePL6N5UvLQKLoBpZQMKNEYXFEqN50bJASOP/yC/3UoaoFzQW2L/lUl4LDpr5PTUdRnKb482dv4KHRJAAPG6uzQjn+lGu2qQVtEZWoYazry+GeisP49bLCPAR7eeI//5yKD658h4iJk1rqPuD4U3kjMI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org From: Yixun Lan Date: Tue, 30 Jul 2024 00:28:12 +0000 Subject: [PATCH v5 09/10] riscv: dts: spacemit: add Banana Pi BPI-F3 board device tree Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240730-k1-01-basic-dt-v5-9-98263aae83be@gentoo.org> References: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> In-Reply-To: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Yangyu Chen , Yixun Lan , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Jesse Taube , Jisheng Zhang , Inochi Amaoto , Icenowy Zheng , Meng Zhang , Meng Zhang X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1955; i=dlan@gentoo.org; h=from:subject:message-id; bh=mJc6hZeXKZcPaMSmqXhuz5fuxopioAcnLOzTKcNsQPA=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmqDO4E6d3UZe/bVuVUZSjoK3XM15I9PwC3cJs7 CKafXBjhxmJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZqgzuF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277RTzEACXo4PuyGGsPgWFQb +ypG7l1MUq8ZaLsBJcjgBmuCk8I5kuuAOk08+tf2UaUXepmHSkMLOBm3lk3mTum/WZrnJoxBgWU G3JtHp1MXt4Ubhhk7bJaqAdz+jHPbFsNQVzRsjnCOx6bq791hJCIj55uzr3bUnvzWk+r4JKnKt0 sMo2oNGnPo8HvzNethk0K6yOe5oJRJ9p/GwFoAQfYTFlOpWSvCOjTDgcg1zJPXMHcbMOfb3ypND 7nfk3MM0bTZm37anplTUOGdV6daFGvLfCtgxUhqjFyE4+AUpKFpiumTwdn7KH9/aCMqZm7ysWgh czAIrJhyDRUsS8UydZAxc8+rbJvNe1CezdGXL2yWojMZEskzg/2XWQPUCbhXA+tNcm9xtm9hZvU G98Xy9eFkmtulElli3DsIrgVEvozn4Vl4Sxx2Rlwa0Kxi7VyULK8eYmJTioVZO4QFpZDwNcnKHr KZA+fMot+ieLJCf3UEwQX1D0hzTDPaEWaIpjZjHTzUdSMRbFU8M20S8zYHF4t4XnD7VMF0rBbLS TTKHQn6KqvmENFt2JJpGRQwyyTiKZbrrB+d3o4JLwEjZgCb+QAw6gaTOI2oVKapcplpVot8WT8B Fs+cQfVtKhHLJZy9jWU9vLXDcKOutKgPs15EultBf1inzx1V1xJAS19xk7/weH05af1g== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 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 Acked-by: Jesse Taube --- 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 30 00:28:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 815989 Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 344368C13; Tue, 30 Jul 2024 00:29:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=140.211.166.183 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299378; cv=none; b=hGwaZ9QtbyVL4RcbUBb29LvcE3oj+RZY7+9/sTWcf0MsNP77hSSLK9ZYIxtWyTl6jM3kBdh7DxxfveihNmVQwxUnVK3cfBs5ZVL+gNqoRhRIZMrE3FMEjcO6CjopEV8WtF3tdZWHS4agu7eBbsJFl1jXI+w3tF2c8YaN0Ps7gQw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722299378; c=relaxed/simple; bh=85Sg18FPr/xQvWLmNfyhgjMYOMqh1EoGbwo/TA4OgWY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=qbn8iTS0jDkf6tDjfYKY05ajxybX127LdeTRMrgYk9YNDNHQIVe94dnskYHnGAdpJ1kr64vUSeFnJpFZIkYJGalcAl1YGzKNWRlxoomBUEGBkcvbYE0QSkC6OY6eLTva+LY2i1EabYy/giiFTGmOSlbmb8LudLCpZWPDXJxBlkA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org; spf=pass smtp.mailfrom=gentoo.org; arc=none smtp.client-ip=140.211.166.183 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gentoo.org From: Yixun Lan Date: Tue, 30 Jul 2024 00:28:13 +0000 Subject: [PATCH v5 10/10] riscv: defconfig: enable SpacemiT SoC Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240730-k1-01-basic-dt-v5-10-98263aae83be@gentoo.org> References: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> In-Reply-To: <20240730-k1-01-basic-dt-v5-0-98263aae83be@gentoo.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Yangyu Chen , Yixun Lan , Daniel Lezcano , Thomas Gleixner , Samuel Holland , Anup Patel , Greg Kroah-Hartman , Jiri Slaby , Lubomir Rintel Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Jesse Taube , Jisheng Zhang , Inochi Amaoto , Icenowy Zheng , Meng Zhang , Meng Zhang , Conor Dooley X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=795; i=dlan@gentoo.org; h=from:subject:message-id; bh=9N8TKrCdY7rbrxOHcrLT0SLycg8GX9M08nsuS3f+YnU=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmqDO7rgtgINr+JB8e0BVYVciQ3xAulX3KY4dzf uMplniCQIWJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZqgzu18UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277afLD/9/VNEHfzNxkgCfEw OqWoylFdhV6U8KYrnno6ywHt+okATJcEGzlV9RqkmXPbEk3heKHAg5+iJbVTVTKLAoGnvC1C0KU 2L9aFJn9abUCz5Ez+dXt23jA9In7kyq/Ar31XlUH+ok34z9/bWYTwFM1GCMrO7aro5kHCN4/uoK WPH/q4OJppFkAnBjBI/JKE6UNJmYr4sl4QcaVrEL0GWAmDpBoYkhSwh3L35P8Lt0BJQ8nCqoJ7f E5klJ0btdwP77OPlDNEw0oZZUPNafkrOx6zhgaTs2o3Q0Ew6JzbMIG6jiSJBb9qMu3VkSOXwtdr nztZqCVYUJbyYKX5YXDA9+pmPB9ltZUhTarwtPRHminwlM0suXxyp+d0Ao2kfchszUKTvlQuTCn SWfEO2BCYqynU/kXqK5tcywtAyzIgA3NqhDBJ9fKnYOcjWH6tYVodjVbsrWHANzJpTW5URhcWWq YwC2oTNmncnQDJ+bWCOaTiZ9UzxkkGUEQ/hh2k5y8HtxFE4SfXXaHo1I9841mBNnLkX0uPX2jvQ zzk0r8b6OWtYZSGbTbof8LsflJXZzq5u3WOBTgE3TIU0LGBAPGmYdqBAKUtu4/Alyt5YHAZ1TZl xPue71c4AcR7mZCFn7DclfKsN5Mqu2GBsiQZ66phAghY52B6bvgXU+TPF8R7wsMIuEGw== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 From: Yangyu Chen Enable SpacemiT SoC config in defconfig to allow the default upstream kernel booting 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 0d678325444fc..f9b6ef4da589f 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -30,6 +30,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