From patchwork Wed Jul 3 14:55: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: 811081 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 E0B791EB48; Wed, 3 Jul 2024 14:56:42 +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=1720018604; cv=none; b=ahnYTfFTwwyLQX3BD8LK4BKtmgfhjYGRiU5NngFr26Aa7yqh3p5L9L4ReeWhRxT4JUnM6mmvmGU470dJY7TzNZXbOPAeN2CeE9mBMqLe+qr6VBN29+zyDMJLO/6ar4JPGNaLUCSn1uETA7nuXqviKvehAMaNSZQJCI7pfxTPXmg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720018604; c=relaxed/simple; bh=0HnoYwpV2+reJwf3vWpzmil2uVX924w6SgyIWBkOVgo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=nqNiFs0hlqsy2iafnwgwWNjMXqFbbZ1pH6F0Y475BEU8Gyrlltm/LIDkyptQMquRo6TOwbJcvv3Euq2p5wjUpztRYQyVzgoeqBdsNRzwNybBjG2f5kaMJMeuKSaAQotJh0b+HzKfb9d1hrf3vJzIlyPNDRjM2/guU5fAIq0aY0I= 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: Wed, 03 Jul 2024 14:55:04 +0000 Subject: [PATCH v3 01/11] 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: <20240703-k1-01-basic-dt-v3-1-12f73b47461e@gentoo.org> References: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@gentoo.org> In-Reply-To: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Inochi Amaoto , Icenowy Zheng , Meng Zhang , Yangyu Chen , Yixun Lan , Conor Dooley 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/ZANAwAKATGq6kdZTbvtAcsmYgBmhWZ35K0BgZRCWeClcEq98CC21zonWvlG1WLyB GJMClbdDOuJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoVmd18UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277TG0D/48WTs5j9KUPRJWCs Bihq1piUY6xNskgbDJDzOvBu9S1CTxByFU6R7YnWEw6SQL6gsAuXbOj/FyiqzT9r8KBMlNaqMaJ AKbu8D2Tp3xyUB147d0VvfbFki+x2pnFlT772/TE8SSDmImZDbYmhlEDC8n168q/jv3zKOKYany ssyvBUJhCdTdazzpmtevhI0+zMtggBUkdz+nF59G5Tkx3+7UUNL5q5CfuiivOJMzGowPtK2rYzG g0QsEXRi76ioyMTMdejQMggdmRJtW7gBYa8ZTRvVvM1gCeUykWfSq7dViiuaN+JuZ7uP45uUcgA P3pGwhdoVkwwNvNGFWDVySpt9gdO4+SMwPW/OMpHt2g+Y7NhpwE8Xf2T71XfpX2IoE9ezRck0bU Syqt7D4cfn3SdJilMgD6GuDwrIUXIi7wddXnJT84otmMAEX9C8kVWy2y9Oma2Cfo02TATsGNwMm vgSE5SFmWUjz1/XG5JMkNc2UMk0NDxgYO7JmUkdbC5oWmmACFzwYDMFmuJk4x+QNL0neoLEQuak 2i+I74J/Y631ASMHmPSPsLOb+wSRDF5treF617rxBxbSM17XF9ZNaIFbzJAuOyCSQdtiIWXMNJc AEtVRjC92G5WcGdBdQFHV25dMNpOYA3RwT+zkOdCkJIVXPk9mJFi7uu6Winb918fHEZQ== 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 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 Wed Jul 3 14:55: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: 809787 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 DB6F417D889; Wed, 3 Jul 2024 14:56:50 +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=1720018612; cv=none; b=eg7N18xYoYm8S8o+7eZjENLkQ8/ps9OgrvvofOfMzsE1sdI2i3vb/r93NCzdOeMMQ+DL3C0m4ck2nTusJSZM7oqVSorCxNw+IYHEhMRzZV5A2nKPeZHkp8+A4Swk/oWGX2cvW3tAXfcEwjTbvvp3fYLxS7l/JE+sk6fAH6q40xA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720018612; c=relaxed/simple; bh=72bJnK5OkxGeVX2TtnufaHxre6755qvj76r1a1oE7nQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=fUOs5Q+0ff3jLE4BORfTj9iOgeyiMC2JQ7lwoh9t8VACBmuIYg3C0pi3CcuUdoZpXxtCx5JeO6Qz5so3v15JijKCQrj7y1J9tq6EJSRKuvX+o1IHRykIt6XRqnMPfK3BJKFy/ayFnbPJAk4Ife9W5DB63RfetOLxwdGY8i7GQBA= 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: Wed, 03 Jul 2024 14:55:05 +0000 Subject: [PATCH v3 02/11] 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: <20240703-k1-01-basic-dt-v3-2-12f73b47461e@gentoo.org> References: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@gentoo.org> In-Reply-To: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Inochi Amaoto , Icenowy Zheng , Meng Zhang , Yangyu Chen , Yixun Lan , Conor Dooley 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/ZANAwAKATGq6kdZTbvtAcsmYgBmhWZ6BOWdLH/QLc/royb5wev72rML7G+Ho7uFl ROY8K15QEuJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoVmel8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277aNLD/wIfqDJLqXrGyCjcv DIR6Gl8JStyWL4TYkpc8T/hIfXyubsyfvFb0KYM9IDwgAiituHgIFk8faTZVxi45CXxwipZCfj+ kTJ/BquGC6ycknuig3AqjKY+UcIxE+mfQrQtez1VPqh/CVY03Cswk3a+85NpaWUUkPaq1z8JHYD JV2CMsf6fZAx3K5cQx0fICNU6gtHLCJFGyQwi4vzO7dqhx9WOtl0lLsKL6iaqJwqqL/Vw7iYiNj 8boll3lynP7TFkUM3imeZJLtoviIwl8DcvMr4ffqNUvFBgcCoYRcd7EhrLrKCFSZso3n/qetVhg 3bwdgVvEWvFFEIuG2HIn/H1YCYjHnwQ9z0EnkbDgoHW4TabapjOCctdEvi+EtOqunJ1+OOMZV02 5oSLLpHhfgQ7A8tMAUNZOoqjEM5MzCz1ev95mhlMKbXub27pHcaBQpWggb30usubOZ5ymcnMT1h zmqpsp/ChcvId6BPhIkVoEKfpSsjxhxpWFwb3Sccd5DhrEKV9K6IRc2q09aw6wxWAWFmkqIio2F CAHuzvEIpSVMXhp+M/AWm1jJQZK/DX+7cwjzo6X3pQP4PehXOzVlU3weN/Wu8Y8UFREZCVtUWXx txKQLH7s39LfyBbViP9/09KYC1lQxOuiEPnzjM93OWZPapbfVIklgLSAL8REWMe2nGDw== 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 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 Wed Jul 3 14:55: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: 811080 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 DE54D17B51B; Wed, 3 Jul 2024 14:56:57 +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=1720018619; cv=none; b=A1Zd/nz0KqVciFTm+9A8Vcy37hP3BnzyU6lu0safaf4x0+Y3CsWIsTJUaCRQDwO5wkLCcAfCDZR9ZmHWp2OOv5/ZVE4Ap0yHNpX8H6ivMU97ujddDtPcr4ZFEHNujRkFWfs+6nPQOiz331IxtC+4YIL0mwhwcT6YmBdTgxPN3oc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720018619; c=relaxed/simple; bh=xC7pEPT1owxzQR4k3RbfRKoPX9pym4wvJhcF0pFnpVM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=u1AvCjpViuHzmCo/kn4LMSEAuKLQzwMSbwA5gC07cIVwvBnl3MteL+N0bJIO9wRRQ6Qx2RHR22SGT7HDbkM8JNTDcLdeYobv+fjr/Cw/79AGQ/9plzwVKU3AVpsuEqyptbVIlcw+6ebJrpzvr9B9frQ/gqABk+DH6tOKB/kd1rg= 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: Wed, 03 Jul 2024 14:55:06 +0000 Subject: [PATCH v3 03/11] 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: <20240703-k1-01-basic-dt-v3-3-12f73b47461e@gentoo.org> References: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@gentoo.org> In-Reply-To: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Inochi Amaoto , Icenowy Zheng , Meng Zhang , Yangyu Chen , Yixun Lan X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1330; i=dlan@gentoo.org; h=from:subject:message-id; bh=K5sE2wVpJR7k92B9EpfKt0IR4hvNzMMCnPoGl9Y98+Y=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmhWZ+lA3bVNp6ejY1YajOTksXj5zgdJtwC4MDA WGfpR1mlVWJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoVmfl8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277bDrD/9dRvIZRevTSGjiMB f5SU42FLX05TrUTE0a8KDI/DiBNNBLulm2y58uZ1vaywc83gTMA/Cujk5JSAfBIvFjnfkq2+8TO MpPemOQ/5AbOOffTXDJ7Bi53Mz0hWHtQc0QU1If6Dkr15Sup9uf0hYRHZg1YgcPC/jnB+lpulbG SJmx7E4TEFN9VBYSlxfbmZkkpx67Ppg6yNVjCtZeXhSVRvW4Q6ikpW4RB3afLm+VgVKMyAYdCIR ZNZPi4SkqSD8KyVbTEQm9qgN2tE6vDFkCiTiZlieTJThBWc+0nzwKoTjQST8RsJPK8/6XwPk7dt lSb8Ql+vOwnURXhtzPNGtYqsVmkZLACCEKiWU2UAVbYtw+spIOYuenCRhtKBUYRLzdiPCouemZ9 LDjG+7CJmRtZcqAIdw08vy+VVJBX/F78e0vhSHRkNqevGP6EOnYQyjtzrMmwNMYi2uYiftGnLAU U03XCHOT3wPpyEhysW3otWxaY8i4ukF9gyJOJvDf8lLd4C8sXXo7/zMsEBiFordvYlTQKnK9hGS UPHZM7fDpz6YiQMuZcQjMxFSSjW8Xa9t0qVSw5kK1+VGAVYEJVr8w1Sexe0BSO0LfdPTz8hmbj7 3aiNCZAb2mnv1/Zyv9YT9vBIm6Bv2R7J1AVmraK41dYyBh9/Y699Wwp5zSU2uq5Am9Uw== 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 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 Wed Jul 3 14:55: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: 809786 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 A0D71175555; Wed, 3 Jul 2024 14:57: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=1720018626; cv=none; b=QgZ+eQStFW3SFjq0QNTPtVYaWfya7Jg2TORcySGfW3Lzdf+9TKFmFsROvZ84AKYFWc3FJ4b9A+UTotcvzFKYfffm7IREw9Nkq2sUe/Q+4IKUt/mq6qMgxQ9mlN5QRVpgzTi+s3ZN8dcazitX0AqAbTuLrWV0V/zBqb1tXjoZrhA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720018626; c=relaxed/simple; bh=VvnzgRDmEIAsq9Hf5Ry7MLnNkPx6PUf9JkUVFX7jVz0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=V1i2lBB3oLJ05a9QBBlOGOsM88fZ4QqfZH450Edy2VsMnrl+Hka1ISq9ANTHdv6aL8MRFsF95+11fAJ00zOgn7vwoxhf1Z/7tHPSFZyMvLJ7oqp5pRrabqRnbjRY5nKl0zEZytHVg/7v2CwHosLuhARMIrA+afaXOlDWJZWwSHk= 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: Wed, 03 Jul 2024 14:55:07 +0000 Subject: [PATCH v3 04/11] 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: <20240703-k1-01-basic-dt-v3-4-12f73b47461e@gentoo.org> References: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@gentoo.org> In-Reply-To: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Inochi Amaoto , Icenowy Zheng , Meng Zhang , Yangyu Chen , Yixun Lan , Conor Dooley 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/ZANAwAKATGq6kdZTbvtAcsmYgBmhWaBQQWp2aqU7XrcJxPyTUTtEBp/XuiWNB0on QEC4Emvr9GJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoVmgV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277eNMEACTWkcnPQGnphOvUX 2NETv2ds+L7S5NhdBAVGxckgr2iZaoVn2Lxk1nDwMSP/kKkO0XIX/nXv/hDkyd2iEg80rAaO4iQ GnkaJVteLjezf92iSA+A2VIVCDuS8lao2ii+isw6bFW17zGQyfOPvauo+T7/d5RYg8EtbqcQXv6 jnUTZmiyt4Exy3vFHbTFfdIs5mZwG2NYYwX6+P8cjXOalemLMUtDjWnysPfyeZ5a0wZtgyarlmU cV2j5glZQuiAIg+jZ46wNfqRa7l8SGiTqZOd7rr+3UFl/y/uYux0Suy0B5z0433EC4A6xqhTv4W mmNlt2EFUG6sYLxjPnlARyf6rSuG1UBA6JgS0CHFEtwkQHUrJZxqoC3l838at4j+c3Nu5FAlmcT 6iWTwlqWV4ULGD9ASrh2UhQ4oiczgWUI/FYU7NtE/T75C5VMlkCPb7wWIREM8FBlfpqUADmIwnv Z99kyMn6cjbgDj31xwmFYVLAx2K4ZeCgHFWVR1lSYVMo/8Obbd6MFg/YvnBdN0UzyuLt0t2ziGE UkvK8daG+5RBcFbv1qvTlZ+KtZZhtIkQzV8dD2GiOqPvGxzBiG87WuY/dORM3b+FOQJ08JiG3ah bpB+EhfRFxHN6IvauFCds6cHI3sGs1/CyHgN8H1g1zSKJtScxxtQ9pwWoOXLQJAsS/kA== 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 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 Wed Jul 3 14:55: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: 811079 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 A1C1217D8A9; Wed, 3 Jul 2024 14:57:13 +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=1720018634; cv=none; b=TVxEQA4K9bYnSckRDr5g8zoXq4T3y3RtckrTkeNL5a/hGUnY/QNN0tDXviz/ogfEyhAzQvePQ3Af8Q34XvQKYzfMXVtvBKAF/TJTwMuLTImM235ywzkVPqMUd9NnvBfIYL/GM7qlXI61e/7E4erjutLQfDm9Y0BOAxqttXcP4FU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720018634; c=relaxed/simple; bh=7bPf74c93KISG1l2PpPGtKZFZIcEcKvCKOaP4od3cEg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ehIKdJIIcPRKk/QqKFy9RTpRF+TjFcTTx7XNa7oVQc0mpBCLG+TrduQL97TS7CSrUFlO/1dtg7/u3ZlsPWDPS6c8yR5vGJmV07a9spxguS0UhXkN/esPo2wYJayurp7u+pJ/UjrioVsicxSIkDo+H8rJfWxFrzWB1lKinJZlPNk= 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: Wed, 03 Jul 2024 14:55:08 +0000 Subject: [PATCH v3 05/11] 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: <20240703-k1-01-basic-dt-v3-5-12f73b47461e@gentoo.org> References: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@gentoo.org> In-Reply-To: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Inochi Amaoto , Icenowy Zheng , Meng Zhang , Yangyu Chen , Yixun Lan X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=938; i=dlan@gentoo.org; h=from:subject:message-id; bh=uRDxzRoYQ7f7fJazlLn1rqbODikLZ47/5BjNLxbuT6w=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmhWaENPQj8iXtrdapEWZeKRMe8hkFBF/6q52xM hpXpz2JlHmJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoVmhF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277drnD/sFlyiJvOUffW+pp9 06mCWwC4Jprn2bPlLQrl1NVJHukpthpKNBHVfB7Nz1PwS1+4XKMQpxcZd7uoR1QMOzeFF3UjVnz NQLwIMQli9f8Qbg7+OyCatDYjSRxfbWjUwSxHsN9WBr7HPnNnzUycddyWZcThY1GppqeUMxRxhu vTePyd9Ykb4V0j/AozyzaWcYBlYQgx6tdyNLTNh9Cwz28uTvWdZZhlfRbolr9WPHl6eOcnqH9NB NQvvu6s7ToLimuGAtIoPEh7W/iJehnnPeY8qIGcxbyDVmaOKY3fg0ZD54qn5OUcFJU0acv3FfjH 9/zDFLRp7wJZabC+mkqDcs+fQgKRgoyiB29nvZ6IHvYwfdOYs91fizOpYGqAf3c6d+8yc8Rd93V Ms/I1DSB7mIYDDf7uTIV2P1To0cBFJLvaIts0ZF6MnW1HJdaiNoG3L/YAlitak6TICB1VBMnYdB 0wQ/oUeTFI2oOmkZpD5m3WyRVfZK9+J+4pM5ZJ0dzLupqbzUTHkhidkyCooJJOjojZpxMbW2SlV s4pho7FgGZ5evKVeJcX3WqHCJpnjzB1QqVvMGmCjkjdNgn/nIGf+8a7tKBoLROWYrYKAman3RRB 5JxeoEdcA6BwIqjaMjK0HfnHnw0O2kiii6nAJrMPGUPM6l280mwV2/5Ez6yswC3CNckw== 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 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 Wed Jul 3 14:55: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: 809785 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 3876D180A86; Wed, 3 Jul 2024 14:57:21 +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=1720018642; cv=none; b=kpXvgD9dJggCMW5/qgvoq1a2tuaCWwqaxlSyl1W3k2doJEmmAZTfgHJyWZiO3ztBdU032xLn7h52I1WGv+9YTQEX55sQqjkeoBTBSlbacbCr+qEdJlMulc2P45tuvq/zrUwEWtMiAkHhiQ6B4r2uGUAvphC0zOFX/wp0q5fhuwg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720018642; c=relaxed/simple; bh=5e5axpOVSop7tU9RM2+kMzY3QIqZVpK1c93FNqEco2I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=XzPvsMk12NJers9okt8QEYSj3/uzWWu7ED05tAp3B4Xsh5AvpKZbE6qGJ6oXgjzaSTYsjqKWQUP59+VE+eaEkWGxREab/8wX6Adm4AUnpzZ/7sfo+9dZOq+dzJBgd3AJZPF6Z8hCp0IXeaG9V5IhKXJuKnKIZsJjKApkXNj2exE= 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: Wed, 03 Jul 2024 14:55:09 +0000 Subject: [PATCH v3 06/11] 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: <20240703-k1-01-basic-dt-v3-6-12f73b47461e@gentoo.org> References: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@gentoo.org> In-Reply-To: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Inochi Amaoto , Icenowy Zheng , Meng Zhang , Yangyu Chen , Yixun Lan , Conor Dooley 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/ZANAwAKATGq6kdZTbvtAcsmYgBmhWaHMmSptOnr/OPT3AL7ue3HGBaaLS9L6fVFt SmnHVQleB6JApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoVmh18UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277TWoEACZ/cu+fJlqsyNJnx zb++o56J7JkhUx7IvfXl062IMdW/16flA0fZCuVznqtzEALWHEDUKMplkXcxyusxoytQjoSspAN UjKI5bO2a2R3995xsYewM63V1i5EEdGvs4IZueDzkN7dLOpQIzM452jeTNM6DOVQeJlOrbTWONM ySCgpQzVZ2Gb/p0/QyMLkhJeqV5U0DyzVzHAc7kUE+YOaJRFCoaiOPspL2sO2bhLAAKc/4xDw7l 3H5aPMi3+gJ6xCtVKucV07OEbpgYp0rBKXiikZY9HvitxnAIMzgXS9CKIOsmvLAvH3PNutfUJSk 0PQ22qQH6zx1C2maj1ojzOeUj9lGkALmyJKY9ivvETG75PrL/DlCUz+ozTuZkoKupLI+voy/rTz nycpbW/9+oxNtpqRPPQ8edTH6AhBLCzaMBZAgHBwo3nj0reF6UXJy6JrbRC/BgMUNE2w1MHMNTk m2VIRtmAhDzey3EjUG5UuVlhaRjHR6/6kkKQhJbzuJjIdBcw6/lgo/9saepI/nczXVe0YWDR1Zv EzRwIojWDj0tu0QTpEzInCvR+M7Lo929MNS2nCeBo2sgYHxNTXB3HytCTwgq4B+IycIZdoepjaY WSPmGv6TIW4soqf7gGWIt/a74+2T4n/blD8un74YnH2gdxDETiosG4KMjRSslAoIqARw== 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 Wed Jul 3 14:55: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: 811078 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 32ADB17DA3E; Wed, 3 Jul 2024 14:57:29 +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=1720018651; cv=none; b=Pnc7dr41YAXPADnPCazhqIY0YsVOMBV5iYjjkDR8+RKi20xN9c1fulUzQ2lcXO/vsAXt2m242GV/H09SnKW3SyZKeCFXDhseFOr7e2xgN49lsaIq8MTWDn7NdphTMrJUwflk5ag1HUgLwY+DEwMORYKBhDO7xTJFdqo9UvL2HPY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720018651; c=relaxed/simple; bh=hvyPJgqOc1tCMh8R7+h8EQB5CPSRmBXWv5/zDcNO2j4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DcyCUIe1me0wOhE26iQajFbWCpoyjEjAsk/+K5d7q5LAckSVem55J1Fze0RTGpfD9vS6/C9sWS8Y8R/Jb2e6iGb4rm7lETjEZJUPLLaXtX1K3B86+ae7SMQY8De5zBIwqT9n7GIz8GDIr1HMdSPijcWSjn2KMcDxqCcTOv9F8s4= 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: Wed, 03 Jul 2024 14:55:10 +0000 Subject: [PATCH v3 07/11] 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: <20240703-k1-01-basic-dt-v3-7-12f73b47461e@gentoo.org> References: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@gentoo.org> In-Reply-To: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Inochi Amaoto , Icenowy Zheng , Meng Zhang , Yangyu Chen , Yixun Lan , Conor Dooley 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/ZANAwAKATGq6kdZTbvtAcsmYgBmhWaL0Vk9GaOtkAZTL4O7bVWSsJPW24ebsFPh9 KQOugsd2gqJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoVmi18UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277de/D/9C5KHNsyrSizjVeK 0Iqug0ujH8tUvvpgfSiXa6T2o2UzdTiPGnGALLjKMCGYd9THx3K2WNzVg9J27BwXPOOnn2Ionzs 3oIRMtmBI7SSpIpHgpRKAO3R7QS6dwN9DDNOzca9h518OgOgqEgZgTlQAnu1FvdzLAhAN0ZrlHn OsXy6OKQgZKgJL8H1qsYVK/jE0AbjAxrp0Kg7RY8mSjfNIL7148lUAEYYCYjZTvnLymUTN1RExI 3b4YJ4iynTkDI2UoaxkvXc+w2Yk1jwqR50DIkyK4tTzHqzd7Rc3kyZ6Z+GO/DYF1774apsk7d7Q KtVGGtTsNXfN8/tEcq2SBBo/TTz59MnCLlLbC50geuMQ2zarQ7EOoJDCalhTuBQ+S0Zf+wWJbtS IGfgxj4oJsiOOGvgSdgfzvKxFDnauNOfr3VbQmUUxYQA7aacQsaWI6XuVaSy2I+VtcodnGm6fFW 0CnaaLfS+YCAyfAEoGkf8nz3CC9qpFmPbx8ipXWwO82VZP4pLWlv+fOxkF8aaZjNs5YJ5cnVYd5 pFVQgMMDPeAi5WEiYmmu9v0a6TwuPPKW62hPgIXSDr3zOkEJE3omAJZbSbvdOPEZCR1OkknUZUw 42dYL9nTojHm8f412XksZ+p0M52MqJ8VjdnO0PiXSPi23V+0GbyGNh8vdLTNVg0oxcXA== 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 Wed Jul 3 14:55: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: 809784 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 C509B17E8FD; Wed, 3 Jul 2024 14:57:37 +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=1720018659; cv=none; b=hSCrr/0fIdxR07pGYoQGcqgavI1xMOHZg6Fb2F+J5UuicoxVciThdh5UtxXR6Zjxkix3zt71fcOqKGSZmZN77FgVI/3y5Lf+ZQpOptlaUsZjAJnuVW+iF9ShWCVyqoMSgL/2i/mFwZbL5PgQ7yP/FDRAJ0otAEh+P1HKMm+PzuI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720018659; c=relaxed/simple; bh=+pvXtsZ0ugRaRsAoIUvbAjL7Dx/HCj4VauGsAjo4WXU=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ZJMI/h+BlgMYE5OIqFSoYWlLFYBtuWuH7gkyWX/8J4nJ08XfAqdIDVLOeP5pydc+ty/75kzTnpzUkI8k5Mhmwfi55maXQAy6evrQmsYr+OSiFIme6tCicH44FgA+xOseoHtfv543Ksqv6uCzIcTDAkxZApkEu0SXvMdtFYZfWbw= 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: Wed, 03 Jul 2024 14:55:11 +0000 Subject: [PATCH v3 08/11] 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: <20240703-k1-01-basic-dt-v3-8-12f73b47461e@gentoo.org> References: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@gentoo.org> In-Reply-To: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Inochi Amaoto , Icenowy Zheng , Meng Zhang , Yangyu Chen , Yixun Lan X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=13788; i=dlan@gentoo.org; h=from:subject:message-id; bh=/i5Q9bwVioPNV4QpGZw6dyvIDY/xqMftb+QPfMnVqy8=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmhWaO+kn4d2OY5yNeRJB2NjI26Nljvf07+XFJA 0YZWPf/vCyJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoVmjl8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277VekD/sHvN299krvVUFbVd ED0+kXLWzAPTJNPfYzklktlbUvq2CkRqWbbSlV1c6JgmYnqEbOr5QGWAGaJJXfcTixh/dh6wUB0 eFCB4XQ5BuamcHXVGfxfQWh707x6P2/zJtn3f5gNMDOpNbybtV5YDpZU+Zd+Sob6AoW33rvNL6j lB8bHVbgoS4twu03DtH10mUbSR54mBxHp1yivT64WHm6uRhq6Wr+SeiofBbEafEgfaprQ4vu8wq AkmBPCGivJk9Aa2kmqhESkTtU+xRaKcgiHJDaIi8oBZsaJbQGfqQkFwuzBiEfOh1woksMD2RySi LaHCXBelQ0bxFy/Mq53YUZj8w9MnjFY7B29bsJPCEFIkjjU5Ypf4waYf8poNLF7FKwraBrim53H 4KCvthnHbgh41OWz0yIZWb2v8KrKu2j34H3n/9C6UyZJUAVwqyRfKs5/mUoUpYHxEpOukXNCALC jAVDmZt3v2qt9PP2HOqC6Wfo0fQzRn5lKObsyDUyvHOzkqO3JxpY9OB9en0bvGvgwbbxlrg5z/6 XDCXssKc8dtJbFf4xJ4mOwgkK0j9rkes6cgy3EMwPqkxH69sKcL3LSkCz/V/0vWEuAtUJZplxek PwT15aP1ZyaCCPdM1pk6zFvivUkKBi5oPy/uAU/cWL2aLfiFEGipIJpvnw9Sn05TEiRg== 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. - 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 --- arch/riscv/boot/dts/spacemit/k1.dtsi | 376 +++++++++++++++++++++++++++++++++++ 1 file changed, 376 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..a076e35855a2e --- /dev/null +++ b/arch/riscv/boot/dts/spacemit/k1.dtsi @@ -0,0 +1,376 @@ +// 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>; + 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>; + 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>; + 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>; + 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>; + 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>; + 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>; + 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>; + mmu-type = "riscv,sv39"; + + cpu7_intc: interrupt-controller { + compatible = "riscv,cpu-intc"; + interrupt-controller; + #interrupt-cells = <1>; + }; + }; + + }; + + 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>; + }; + }; +}; From patchwork Wed Jul 3 14:55: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: 811077 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 893B517E8FD; Wed, 3 Jul 2024 14:57:44 +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=1720018665; cv=none; b=jKNOEf+/EgFE2g1e6qSVbP0arhBPiDc0R+lJNxHmTVPq8D4obYgWaxC+TJyTtA+kbHULBFvXulgla0kyHSEQm+lMyozKI/n5UCCqv970lIPgN7tl6zlcGF4in0PrnmH12q3E7Qs55byRKh6ttmK7mP85eYOmIBVhNFmcOmVClII= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720018665; c=relaxed/simple; bh=OLDt7dRlbPKWhHGfKxLBHLD9o2bFrg9K7MPbZR7/DtI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=d8UY8oepF5IxSTdRxcyaaOQAvYdrESJKFi1EXSaiAGkPvggu8teJpOeWDgZUKfhJ9aZSnVwqW2g2HnJdNZZh/NtCpaz+VMPKSiakB/2OM2dg3oVS3/NhV5w5THjreiai225KfolfaLpUZtVoOhhtR9SCtBlTZ0ryhSgnWy+SJXg= 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: Wed, 03 Jul 2024 14:55:12 +0000 Subject: [PATCH v3 09/11] 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: <20240703-k1-01-basic-dt-v3-9-12f73b47461e@gentoo.org> References: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@gentoo.org> In-Reply-To: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Inochi Amaoto , Icenowy Zheng , Meng Zhang , Yangyu Chen , Yixun Lan 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/ZANAwAKATGq6kdZTbvtAcsmYgBmhWaRIpsRw14WoKXw9eE74y+KQf5DH09Q3P0am QCfV7BWTDaJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoVmkV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277TVoD/4vf6Yk5Lk+uyW7za V8Df4PQ/lMAr9J67c1TEzTrNfABCAoqxvidsfqlkYgS7kojHHIsbAFilbInxlfv2S7K5rgmelBZ yuAKPG2SlD3SIsva050rF3K0KPLuEvca5DWffKFp6C18YMIqTWxZ2NvNRjArRHhTgPKVkZVwRuS l7f7xjiH3eL7eBI8Z5MqjnGoZduLPowKT3srlMPNBpQuIK8rIhB6K/Ve95Q1BQ2JlWEo3cdo62z cuuTK8qj8umfgUuJ4TashRPAeqCYZUu4mAIeDaERmSDyxinHf/aqxk6fXEKXn41xLsWW0ntw/bc 87LseuhVoC/Mu2EIUOq8s+KZRieWwuvE7JHY8XHvH2OIu1koqVWSNjq5UNnO6LcLtruNh/R7Lvf dFuR8CvsKuGQtlg9wlCvu8smJZ+IP3aPYrUknc5PSGEGYcvIJ4hdgrHr+kVFzpjqYH1ZxXJoVss qpX39QRtJ0CxgqCwnPUsmOsSSmaHzLH/rfwq90TzMxaYuckLdREr/LmIUBXei7zCFxs75y0VXzD Yvte0HW4Dpupw7iCsgFk8DUo8o+Ko2Fu9EmSlb0rSQM2WopS2ZhavOxUJMd5xlMb3GuPbbEQg1h 5KcmkwB/NrhLXnxrtN5cYYRO0LdARz6esPQGfxsxTDIhIfKSD5yMl9TIWnhMLkkt9keg== 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 --- 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 Wed Jul 3 14:55: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: 809783 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 9D77A1802DF; Wed, 3 Jul 2024 14:57:51 +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=1720018672; cv=none; b=e5njaa+d/f5KcDMt0KCqwXtG7QYNPlpjSldE9Qs3Cq/GRhPg1AVCO6L2UlCuTUmGLp6tUxftn0GjpNwaHGBuWu8eEeGRipF1zeMRErqD6HaAYHgOFFPuwgZH9pRGoXdfoCmVEwOCpfMgN/jlo7BAROanVgBt/LLycKhvW/CvPKM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720018672; c=relaxed/simple; bh=2f29bqoZJfosWpZrf0L/4Iu1sMTs4fvkXSadX7IHMpo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lB9IIb/xNDWck1/yfPUhUF77C+skbzg5P3VX/24uvdFlyCjH5X0B71QPdJX/TpvUz5IvM3fBM+/LSFK/Ipdt9R4TmcSUqvhth07YndCAhRX7fDyRQMJ8De/fgtipRLMXleKx4NXL2Li/TMNxilWtBjw/HrQ85Z8YrRGqyFBcveA= 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: Wed, 03 Jul 2024 14:55:13 +0000 Subject: [PATCH v3 10/11] 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: <20240703-k1-01-basic-dt-v3-10-12f73b47461e@gentoo.org> References: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@gentoo.org> In-Reply-To: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Inochi Amaoto , Icenowy Zheng , Meng Zhang , Yangyu Chen , Yixun Lan , Conor Dooley X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=750; i=dlan@gentoo.org; h=from:subject:message-id; bh=0Z/hU8lufpDC3bNS6gDANBAxUb3C0VZ+rOZaNlFzgAc=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmhWaVu+0ghizB0jAfqPMoCqrKBWbOswgvQQ6YM ipoKFieAT+JApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoVmlV8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277S8qEACdquJhrCpCrqi+ZG TqTXCTzTd0TrgGFczcCYM3RXTFKO050GasJlIbtdsLPiTde16mDThHZE2M2v2PNJbH2lxtuJwtX DlkZ2slMO0LoLRsHSjEDYDXBODuuJ+cxrMPo9Ew0vGa4hW0sC9BoLSe7eZYJ0MWBtsVVSkVsU7x FHbqv4fmOWb5wv/fAjmhdi7/1fkudtclumwY4IIB2XqUYIrfQzuu9CNenf0Dwf4U8iuGxSgGD3Y 4fkXLnBpQy/g5x60dqhyJEA8jX83ubRQuwgaD6Obfp/DeZ64O9NoLmtWanT8izmCvLz8Vnh7sXQ fsWiG+vNByI/LXz9fZR4e7tMyLTfDSwVlx5xLi1DIhjVv7FkAunLESWEJF/z5v8F6U9556KYnBt eS3FW6VVJ26ifZ1p7tQeGYhhcyrIeGc2SoMi/zHJmZXZxnH4QqfvMT2sz4xL00IOedc0wlHQ2E2 3xJBN/k6wetjULaaCLJlbRDt8kUewA4JU2kxrd3RwKodKzykgL4QBVI96dYOjOxDdfQz9MWH/b7 hHrehF6KrEJgH3AVDTC7uyOfWDbzWg30eRKo3vss0RzF4Xe714FYJihg1RJGPafncLTu11+fFtG lRK9xgSB7c0rYjeGRlkfQgbYTZz4KmWGAbYM1vhU80IPjq2AC40KwE1d+rgEowSiJy2A== 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 to boot on Banana Pi BPI-F3 board. Signed-off-by: Yangyu Chen Reviewed-by: Conor Dooley Signed-off-by: Yixun Lan Tested-by: Jesse Taube --- 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 From patchwork Wed Jul 3 14:55:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yixun Lan X-Patchwork-Id: 811076 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 AB2BD17D8A6; Wed, 3 Jul 2024 14:57:58 +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=1720018679; cv=none; b=aIIv2XjFnQwRwl04xOiTJ05MMjURqOCx5zRpa9TpeEv8Cqy1gSrpCm/DsWj9kt6C8H/Ad9ua7RQbJqM5IptHulGfOU/dEyBh20+ezOgSmQf6MjcJHNRBs22TyCDKe1q/zTGWGnNw31eLQjFfaxO0XvkQNT7RiinLDBCVMSbBzrY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720018679; c=relaxed/simple; bh=FYb/IeaNJbgi8XBjYSx6fcoQBA5pfVX2DSvIBY85iWY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=by8dCl+Wmqe7WbxwvjieGxnpJcGPXrVRHd9jAsjcdAX57GQ05XM0tPmp9S0P+baKKOpegRpYbKJrlSJ0Xxf8e6U5vtzp/B1m/aZ4Fa6eB0ogHHZhwLUmDz9Syaf6mq92Jjiblw3uP0amCUQYgGKFBKhSj8Z7yOlFIRQbrlou+u0= 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: Wed, 03 Jul 2024 14:55:14 +0000 Subject: [PATCH v3 11/11] riscv: dts: spacemit: add uart1 node for K1 SoC Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240703-k1-01-basic-dt-v3-11-12f73b47461e@gentoo.org> References: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@gentoo.org> In-Reply-To: <20240703-k1-01-basic-dt-v3-0-12f73b47461e@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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-serial@vger.kernel.org, Inochi Amaoto , Icenowy Zheng , Meng Zhang , Yangyu Chen , Yixun Lan X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1108; i=dlan@gentoo.org; h=from:subject:message-id; bh=FYb/IeaNJbgi8XBjYSx6fcoQBA5pfVX2DSvIBY85iWY=; b=owEBzQIy/ZANAwAKATGq6kdZTbvtAcsmYgBmhWaYVMojX7yGUCMGenZ/G6Y12xM+vfgob0zGX oDH4tIc8fyJApMEAAEKAH0WIQS1urjJwxtxFWcCI9wxqupHWU277QUCZoVmmF8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0QjVCQUI4QzlDMzF CNzExNTY3MDIyM0RDMzFBQUVBNDc1OTREQkJFRAAKCRAxqupHWU277RQ0D/9YAmhX6GyKQ4NyWq w20Cus8MEtiGSC59i2CPEuPyRHQJwZAbJs5Sk+bGc0jFd2Qv6Ag0N9lhypO+7iljgKLU2xvasO3 HlePbBJXSNVziW92BkVPYhRgXGK7nZtSX0cO4y4wfy3100sWL8Z/DkRqemcCB+36PMsJ8novdex He+lVXSjMNnwG+LxaO/r+PLABcxM0EZR1VZM1D8AXQPgxASkcryBkQV6mZ+RLf0s0Im0HXiOIDK Jisdxq2uQ4gQpjimV71Tijj2T6xqE/iTMXfshPAKAIMKDsqAtPmwN+dOHalMRXdmfhvHQL4OJ5b /t/A5UuvO5VJnAPOn9sFDLoonhCw/RZswNfMAN5M4/BXZXB9/+xyZkqAogbdqfCpYSI9j8U+qqf OzH4x9U12KA7ty//rUhOk67rMWclum5lvhfDRwSlSaOEKTi8Awde6yb1azaDQK0Ig5rmVpZoxOC qhla1d6lByRDxb1MdSiY3JxJ187RAOuqrryjqKwj8o0qZ8vl62gRHXymRD3uLTtWnQAr7rl4w9n Zq10wH039wIbCoXdMy8qQhzYMLKiMApHpK4b1h2KUo2lrJFUYB+mBiPm/cJ3KmKpwx//htBgbF9 73tkA8O799TBR0S8L49RppoScBvnV0qRfTygcVZFJ8G2P5s/PY7BiE/y8zfIbPZmA1xw== X-Developer-Key: i=dlan@gentoo.org; a=openpgp; fpr=50B03A1A5CBCD33576EF8CD7920C0DBCAABEFD55 Devices in 0xf000,0000 - 0xf080,0000 are reserved for TEE purpose, so add uart1 here but mark its status as reserved. Signed-off-by: Yixun Lan --- This patch can be folded into "riscv: dts: add initial SpacemiT K1 SoC device tree", if maintainer finds it's too trivial to have an independent patch.. --- arch/riscv/boot/dts/spacemit/k1.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/riscv/boot/dts/spacemit/k1.dtsi b/arch/riscv/boot/dts/spacemit/k1.dtsi index a076e35855a2e..fee8921513c1f 100644 --- a/arch/riscv/boot/dts/spacemit/k1.dtsi +++ b/arch/riscv/boot/dts/spacemit/k1.dtsi @@ -372,5 +372,15 @@ clint: timer@e4000000 { <&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 */ + }; }; };