From patchwork Sun Mar 3 13:26:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangyu Chen X-Patchwork-Id: 13579749 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 45F3BC5475B for ; Sun, 3 Mar 2024 13:27:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:Subject:Cc:To:From:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=xQwpI+a773io43Oc6bGWUvFsWAK0U7NGprC9MoThrhc=; b=edjaJwr02YCZ37 pFRH47AdacNaudcJzgYknuKiXHlZ9p9xq7z0n6nO3Yrk2zJMLjqJZk9zlp9mbPftyfUGpzzfwd1YH yy9KJ58jKxlQSnBcRl+pu9bAJ9AvKqT0mCr7At9Q6ClvIHHY2CI3NIUiOrJuve7c11WU7Cd1kmUnI a3FxXll6yBJMcMUxH2rZIz1RgjcKhC4K40tGbNgon2fyh7662321JvtztSUFuHNuLCSMHO8k/M9+U XiB16jAoX7p3CpAINngOYe5Zy3zSjTZ5O8iYHEt0aPn9fObaiQwGZY6f3R3UhnSAntEXiALrYALLa J70Tt4kLur9z5MozUJfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rglsA-00000005xwl-3k6r; Sun, 03 Mar 2024 13:27:22 +0000 Received: from out203-205-251-36.mail.qq.com ([203.205.251.36]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rgls7-00000005xua-0UWm for linux-riscv@lists.infradead.org; Sun, 03 Mar 2024 13:27:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1709472429; bh=CQkJ2LPVHwvfrPpeo+8GgP/58OCyvWTP8GNw56RzbQk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=tKwO6mQPFw5cJnvW9iZdO+4F+Fj7cvoG7yRoabkdN/r/QnJ0G7FZHTTRlkrzeL6yB jUSH8N81er7ctRDeb8LB0HmRFCMVhqWjnZDMAZitlnS3y5R3CQglD+yOsRcHAQOowa 0WtC6ZhVL48BIi6LYQHDXg4Bk3MNlhwvmLm7AWn0= Received: from cyy-pc.lan ([240e:379:2240:e500:994d:62ab:74a6:932b]) by newxmesmtplogicsvrsza1-0.qq.com (NewEsmtp) with SMTP id 6C4A707D; Sun, 03 Mar 2024 21:27:04 +0800 X-QQ-mid: xmsmtpt1709472424teu4q778f Message-ID: X-QQ-XMAILINFO: OIPiZ4jSkGWAZMr6Ai1HjCrB8QSkmDI5dCBZcs7t5CsaTLJpeQjYNPa1nAh6i9 vLm1o/lSq1q2vruFwcQuRjjn9ndi/Dx72VelHIjd9o9m+zODLXpbc2q3OctAbbw6xgpFqUipNzV0 PrJbD+tsx91vOhFO6g0K2CgSI4DFTXW5RW0AfwP4wTdpxZe3iDoAu8iq9C0Z2beNcaUdyn6d4xv5 mRBbFJtNANynNXGEM4vl/c+yuHiLX3iG4jpfxY9Dpj+9I4+w5QcsYOl1vEUeJ2VjlUyRAo2zzuPh ZnFmxIV0w+7hI9ZrTFCugjP11FVPHO3rXzq5gac0GQh6BktB2rtDTCg7Kvip4nsx5s/2Q5PVFmYV X8aC7QRVp8YnshWObfCnW5at1Se2OO234UPFzsHU3tML06CHGGiCH0Brl/xXJ57lEImlXeXlQkFz P/3fYYvie4MO9cHc1cfTRsWgFbBZVPnfFV+h7xP7xfrFrdoSy7woz3vyvNuMwCs/N2WFvjVGsqIz VVgsJb68/zNw5yAjkhxYKYuQ4woZltAV24p4/b6sZiJzE9mf18Oim0AHweMBJV7jm9Ulf2V9F9tx UWeCUpcHV5XmtFHRKa8wAHofaMBqcOc7P/DT6NhjiCxY7QgcUa/yB1kxxD0eeXvj2bk5BPN2qyon gUsPaamN3TVjK0BrdJrOPSURAScSyL9TKrdrSO5+xh3ayM4Cr+f8L+OQdDqUPRAv+I2T/ATdS+n2 yV168QtHisVIYyNzUppidF6T1PxVyQSgxjaOhyfgse5ouhYYY7VeITROHvEAFmT3aDYo6Dg/h0i7 J2TAUPVqzm9AeaplMUbdlWBOT21BZtJpAB5qwxFe225sjA8EB1btIAfdnZK8zMqAlCuQcTYgFB/f 0MCnhsR6SjgSLurjeDSjkIp9ZhPZC9n+Rs6DLEBVn4lmCaClf8ZcQIRuOqPyZUfO1XpM6b0Uwa48 u/OHdXAJo7gseZGtJuyTjKnut8Mu4DZx6IfTcSYxZTIr5Z6v7PEIo91GGYaCJ0Dk6xf0/lWkr5oj 53ssMz4uNJjeSgViTr X-QQ-XMRINFO: Mp0Kj//9VHAxr69bL5MkOOs= From: Yangyu Chen To: linux-riscv@lists.infradead.org Cc: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yangyu Chen Subject: [PATCH 1/5] dt-bindings: riscv: Add T-HEAD C908 compatible Date: Sun, 3 Mar 2024 21:26:23 +0800 X-OQ-MSGID: <20240303132627.553698-1-cyy@cyyself.name> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240303_052719_588481_5C219837 X-CRM114-Status: UNSURE ( 7.31 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org The thead,c908 is a RISC-V CPU core from T-HEAD Semiconductor which used in Canaan Kendryte K230 SoC. Signed-off-by: Yangyu Chen Acked-by: Conor Dooley --- 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 9d8670c00e3b..e853a7fcee8a 100644 --- a/Documentation/devicetree/bindings/riscv/cpus.yaml +++ b/Documentation/devicetree/bindings/riscv/cpus.yaml @@ -47,6 +47,7 @@ properties: - sifive,u74 - sifive,u74-mc - thead,c906 + - thead,c908 - thead,c910 - thead,c920 - const: riscv From patchwork Sun Mar 3 13:26:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangyu Chen X-Patchwork-Id: 13579747 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 94349C48BF6 for ; Sun, 3 Mar 2024 13:27:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:Subject:Cc:To:From:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ForLPrDeWzfd3z8RcWtdLf+MRL9XT4eJF87dp1EqVNA=; b=mzQ/e++Ok1K8cY hoxoy/9sqIKo57bmbBFW0hbBwTZ3k9DzGyA+xbo2ww41gFccjhVXXo3AYQeL/vgxlIAoSYv8As5I9 aoY/Kupe75+AzOa9kKl9Iq7o74rYqcVBGwhtboRJomP0bX5CEezUlSR/UYfOV9Gs7itt0iDRf5xr/ mUZadbmdm5gqf1v/gkcVqx84WeQxEliyyD4SkESIsWXgKWjPF3F1P5NUivfo9LUXKn5PtTlqTcJ4Y h0ZgNftvPYoescRqt/ZP8PyvladzSTjbiX3Kj2zjvmN1PkA9GUk+XuTudri63rCf6ajT5eKevKyKc d11pnPINPcuw5SL2tgGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rglsA-00000005xwR-04bc; Sun, 03 Mar 2024 13:27:22 +0000 Received: from out203-205-251-60.mail.qq.com ([203.205.251.60]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rgls5-00000005xuT-1NXC for linux-riscv@lists.infradead.org; Sun, 03 Mar 2024 13:27:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1709472431; bh=i8Bxkmf2drHM5vNPWa5iX+GHyc2vunjy4ejEFG4DAMI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=O5ImmSGw49BZHMe1ELU4Gdp7IOsDCovZ8nrQUKN2ux+dQQd6NOTtUn0nUQ1t++cuG P5CwCjpPPkELDY2FgEqz26Aosh95uXeAyc4fxMsLzr5Qq8w/WGg89ERhoIYnpwRcfU LGDhlPK9Uj9RXFItzBfP5E3dimOZpiFloQkcrdkg= Received: from cyy-pc.lan ([240e:379:2240:e500:994d:62ab:74a6:932b]) by newxmesmtplogicsvrsza1-0.qq.com (NewEsmtp) with SMTP id 6C4A707D; Sun, 03 Mar 2024 21:27:04 +0800 X-QQ-mid: xmsmtpt1709472428tcvk4o5e0 Message-ID: X-QQ-XMAILINFO: M4wVjRC01ue0+G33WpsO1cBFfVWuRqPaxKy/FWVo5X9yBGqFkDQrfnMOHC/Tz2 U56uBIQiZvr1QKE/j7s2Q2sbpsN9KtmeRCeU5jEIeN3FsFUhMUnYBUXSKYMg7WyIPMBiiQ1z3Dv5 lZypDLwRGAou+VtVO355nzWHjEfE1IV48aeVVSidHESKxbzt4FYb15QtZm8eUy1tN8wAgBpiR1ey IyBoOITnA2HWIdnEcPw3TUh4BcJF3VGM5gHBMNYRWOaNf9QrbsuA7CbZRa9TPZV3G267Mti/nmE8 US2NUmCbAVS46Lp1FVbMIosZy4xulbc/3WH1UPIs+igrDHrIJiwIGXD6H1RGpJV2CIhbe2civi/R tJgVSEUz+j9RBuogd95PQDGHskqPoBrrSBRZeDm8E2psrFOy4jSZ5IVjqzTU4n6WPYZxqr9flqFO strx2E8Vr6BdP1w3mqKh/jV1ph/aRtbsm7tnM6KS7z1p8sDIp00yH87d9KjTP5/a2v44Nu3Umct2 1gUbgLjoZf6dBFjIzA3FPF2A+dRXuOKae5xr9rM2prsYF3xugxdNOORdCmF+6+US0e09GitZl7Cg 6UDqs/BDbVtYBTPvDlLRSlWOfoQdHfeiJDfG/iNXjpHUW3A9i5Md/lfh+QnhnQSZ7ms/xp1HJ+69 bbAoOXuxOX1cBNs1uhMOITgmLCgTfN195AFdleqDYZj5Qnvw/17mOiXXCtKiq5CkbODcZ+xzZ1pY pIZb7E9fcj2XAwhv4KZQ1nGXdnA0ndLqktaT2gpLlyVQgWDAJeTddC7rTUCuvUPtRK1kIF8IoMwX ZsduIJvNrgYZzqK7YAETEHh/yboDYms36P1zXl+GKIZ7/vLc9H1cfqNwRloOk6P7mhgSSu8fjk3w BnBSFDJKT8pRgHIQk8v0foOEbcoNy5ZY8lBRgJQ7dHIG6AsRHJZuHHUh0Ftw6dLfub0BqC/w5c7m aStITdTwbH2WtICxRjHkoAuJ0Y2FvYveheIbQt6EoNl/L6y8yKZkq7YNPJxV5+hQux0tcbovk73p VJdFa0Gyk5TYu/i4Is X-QQ-XMRINFO: M/715EihBoGSf6IYSX1iLFg= From: Yangyu Chen To: linux-riscv@lists.infradead.org Cc: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yangyu Chen Subject: [PATCH 2/5] dt-bindings: add Canaan K230 boards compatible strings Date: Sun, 3 Mar 2024 21:26:24 +0800 X-OQ-MSGID: <20240303132627.553698-2-cyy@cyyself.name> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240303_052718_212799_C24DF49C X-CRM114-Status: UNSURE ( 9.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Since K230 was released, K210 is no longer the only SoC in the Kendryte series, so remove the K210 string from the description. Also, add two boards based on k230 to compatible strings to allow them to be used in the dt. Signed-off-by: Yangyu Chen --- Documentation/devicetree/bindings/riscv/canaan.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/riscv/canaan.yaml b/Documentation/devicetree/bindings/riscv/canaan.yaml index 41fd11f70a49..444758db964e 100644 --- a/Documentation/devicetree/bindings/riscv/canaan.yaml +++ b/Documentation/devicetree/bindings/riscv/canaan.yaml @@ -10,7 +10,7 @@ maintainers: - Damien Le Moal description: - Canaan Kendryte K210 SoC-based boards + Canaan Kendryte SoC-based boards properties: $nodename: @@ -42,6 +42,17 @@ properties: - items: - const: canaan,kendryte-k210 + - items: + - const: canaan,k230-usip-lp3-evb + - const: canaan,kendryte-k230 + + - items: + - const: canaan,canmv-k230 + - const: canaan,kendryte-k230 + + - items: + - const: canaan,kendryte-k230 + additionalProperties: true ... From patchwork Sun Mar 3 13:26:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangyu Chen X-Patchwork-Id: 13579748 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BBD74C54E41 for ; Sun, 3 Mar 2024 13:27:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:Subject:Cc:To:From:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oWwYs6Gj4Ws4oDAUzod6XAsb6MhBvd/wmOLmey8Yk48=; b=OdheQo/I46eCJk vK2mvAfpb4T+tiIi2DAYZ8XA9lTCqlDzjnFXHvU9V9P3qfHuIFMAp9VBWtgJByCN2Yk3WirISdenK OjnSLSbI3+5uTUbKt8wscmx0X62zq79YuBgvbg1R/hgCp/z3C4tjuBXaoUPXHiK7jTPJWU2ui/Zde PzeGqxMTj3Z05LRSt9tr1FuDFLl7+vLPrIwNP/MtT5Ogak0LLu16puG5IiA2zTr4MfWlXxsDQUykk orgErY77scpHnFjDCBZeN1R1dq0jO6JHTVKiHzUlZDsvMGsIJIzIqbWmZtiymyhdQgbZ64jfgmez0 dfM4qk0pjqamjjKS6fSw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rgls9-00000005xw6-0wH2; Sun, 03 Mar 2024 13:27:21 +0000 Received: from out203-205-251-60.mail.qq.com ([203.205.251.60]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rgls5-00000005xuj-39iW for linux-riscv@lists.infradead.org; Sun, 03 Mar 2024 13:27:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1709472432; bh=rFMECsDJ5IFHw+IvpG6sgKMg8QyjajlU5QopKTYKlmw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Ln4A1qumBAqoTIAKgaLBFC6QtV7V7+0dmv28Ado1pYk9JNs1awiDQUha2caE4jYzS lZzr+XDe3woxxrV75EhL9cO92lUGVy7iFyDbb9KelF8haqtCiqRvcZWBWn1Vm7o7Xp 5jTPZsdaKLPrEpZZrHwvT9DgpVJ1aiYEAy2nyrgU= Received: from cyy-pc.lan ([240e:379:2240:e500:994d:62ab:74a6:932b]) by newxmesmtplogicsvrsza1-0.qq.com (NewEsmtp) with SMTP id 6C4A707D; Sun, 03 Mar 2024 21:27:04 +0800 X-QQ-mid: xmsmtpt1709472430t70p75nqs Message-ID: X-QQ-XMAILINFO: N2/jAoEINgTTzf9liOgkTdvZcW6SafzHc3KT1jJ7uCGqdTo8dpUlniyEwVuc/h hr7U6mKSsBM2SzBYRQW4/5CKh071601RFdmNbaI+qEUoLU5zb1FAHfDqA+Dr1+ZN7taur6LnIzU4 vvNWVibvyjZ1A1aiB+wMMET6CFJi7m5ssV3Ut4g7+/KHFVpsyLZYMSolS5q9d6ertu1wCTKw1+hM GHVLi0rNOhq50WKozjSoiwROJYClkaPqV8m8EmNLFfVw8gVpiprxtldcqO1V/S3B80F3cU3sijCW qzxm6YhxyLyKanVmTOiG2XIrFZxwaxgsf5v8QpMa16+kMWM5zy7tCxXq4W0GhfL8LtdSXRTpXLVf S4H5FgsyUJb2SuksYPB5R53J3+Cx9VCKMb80mjMJGiok7/ebIUBBmUe71uhabjWpuustQW5q9l6U scsQsr7oGlPx2rcaQU827xyCwMewBxWh/Rrw+AwGcJEWkwMDTkJL6zHJ4qIKp/1zTF5MxsB08hyb HfE9eZj+SODdhq0T9lizMzJnY4kxnbLyJhTZyyDuSLUDE7h/e9xf++uke8xidWIj10vBrBLpkP6E 61BHb8Apm8ExmowhIjoSAkcoZNsEV075AUTZBXvgSDSYAK5kGi2aQaErsw7dHUVufpE3+Z8tK/+B 2t2/JY+bJTRuGvNYvAo/zEowsz5elEjyslPG06aLvBH/zXVJFvdv+nI0JGy/ua2Lpd4sOL5ptpTO O50nV3Gi6vXEb65bPyCjCKdHSE07DNAyLcp8SAtghb8HcbMeukZqX8SIfw0T1Bc78XP1t7ozfyl+ 4a8npH3PizYgTfEd4wroXfpiRHXbWmHeLRnYpGIoXAMkxMqJ4YDf1BK8FN5ARJaYOftxDa3js+wM hGNlYvba0aChvI3hYfHSCkP4gf5D7Zp4zcl+QyY64Me1jFkz+UWsdZ8iaReo22EjmGKlUSBEuk3g HsUSb+b2NeiHG1ldShVk9kZUcSo6enhu2hvutEVut0YsczXbWJe1Pedm0BYNMSithifXWlqrjyl9 lxoGzg/Upgp6tdR4/zPfYmwfIcD7wQIWauNLuMGlWxVVmSptA61T09iksvQRY= X-QQ-XMRINFO: NyFYKkN4Ny6FSmKK/uo/jdU= From: Yangyu Chen To: linux-riscv@lists.infradead.org Cc: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yangyu Chen Subject: [PATCH 3/5] riscv: Kconfig.socs: Allow SOC_CANAAN with MMU for K230 Date: Sun, 3 Mar 2024 21:26:25 +0800 X-OQ-MSGID: <20240303132627.553698-3-cyy@cyyself.name> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240303_052718_213133_C7502F23 X-CRM114-Status: UNSURE ( 8.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Since K230 was released, SOC_CANAAN is no longer only referred to the K210. Remove it depends on !MMU will allow building dts for K230 and remove the K210 string from the help message. Signed-off-by: Yangyu Chen Reviewed-by: Conor Dooley --- arch/riscv/Kconfig.socs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/riscv/Kconfig.socs b/arch/riscv/Kconfig.socs index 623de5f8a208..b4e9b7f75510 100644 --- a/arch/riscv/Kconfig.socs +++ b/arch/riscv/Kconfig.socs @@ -75,13 +75,12 @@ config ARCH_CANAAN def_bool SOC_CANAAN config SOC_CANAAN - bool "Canaan Kendryte K210 SoC" - depends on !MMU + bool "Canaan Kendryte SoC" select CLINT_TIMER if RISCV_M_MODE select ARCH_HAS_RESET_CONTROLLER select PINCTRL select COMMON_CLK help - This enables support for Canaan Kendryte K210 SoC platform hardware. + This enables support for Canaan Kendryte SoC platform hardware. endmenu # "SoC selection" From patchwork Sun Mar 3 13:26:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangyu Chen X-Patchwork-Id: 13579750 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7E938C48BF6 for ; Sun, 3 Mar 2024 13:27:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:Subject:Cc:To:From:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=laekEygSq5kSuMDQvCI6FDlpb6ad3Z9xOmPIfk07vSY=; b=tGAPmD+8ylfSSr saNHAnKBvnDK4ofmJoI5pedB/fqeE5a/BoCIlBxf9CACxLeCrv5NpkzYZEXx/qfyaUlm/wJopLZ5s lHykuiWQ3CWzdjzDbth3NWA0ZHv4gAyWu4SyOm26bgK3dFAVFZ35aizhuMpbHlc4ttoFBZLrOydAB 2/kLHiK8I8hw9cBtnsRWHZLVL+Jzf/TKOc93xN3Flr/u+4ReiMAv9Xd9Ho+3EnC8ill2FFsA/fIlE Nun7/b1rK7fl8oVE/lpImiF803JCuFpsseSfAiKLjdLaZqZrYWKf1tvyXOk4+x+XlwQRzrozsNmo1 Le61SoRs59kMvYvePRZg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rglsF-00000005y0h-43Zz; Sun, 03 Mar 2024 13:27:27 +0000 Received: from out203-205-251-80.mail.qq.com ([203.205.251.80]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rglsA-00000005xvw-2csD for linux-riscv@lists.infradead.org; Sun, 03 Mar 2024 13:27:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1709472434; bh=TBdsuTarEOgP2iXPqjFPqtEDRQrV+xui5NBTiDgNNlw=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=eTQGekyrc6kfCH9f0ySN9sJ5idiGZE9mODUSc0Nqk9da5OGT1S6HckYjBndzr2K69 8tJ4YvHkBaVNcfertbAse3Y6FmdUsT/ailuphswvtJIGlpxB19kTOQC3umxaoI9jNd 6fWHfoE9FQCz6skP4h1eWiewatpjiLo2qjscv+bg= Received: from cyy-pc.lan ([240e:379:2240:e500:994d:62ab:74a6:932b]) by newxmesmtplogicsvrsza1-0.qq.com (NewEsmtp) with SMTP id 6C4A707D; Sun, 03 Mar 2024 21:27:04 +0800 X-QQ-mid: xmsmtpt1709472432t9ux25w8h Message-ID: X-QQ-XMAILINFO: MllZffuBkEb5AY2AcTHr/yywu+HVr484dMzV3DnaX53Oq/XVe3wKXZdO/hvaAD f3g7WcLnoyBWyGrtOQ5hFvzaHj5R6m48jKK6QY11t/rIfsJ3nnElpIlBkpRVTbd6EbVdvHrK5i5l mI3nmN0ffSvaiofllKa1DextsKzuTIk70A38zCuCwFiHyVKI7zKlBUD3Kr/7Y6uFUf8pvqa0gjB+ pv2Vp8y1Bx30oujtNImkILExrS55GbjevFFc7zsRT5siqmNqGpNOpmfGu0Ae+QhKrMCtSzyjVQNi 7wWRRcqgPjPZuNThX/1juoWbiEKQdM5Y+gstmktdAJV4dnNliuQvt9/HKy51lntbFDK2biBzdhXQ MC+2icDwveUFbn9MgJo6EJUKTuEpv2xdf9Ltk6lu37/FTLAuoxTukgr8dD0DNpOvPNZnUwDgeYN2 mC7FR/wyXO+De7GLZtUg/RblIpfgXmimrEDibIn57djP/4jKoH5dr7tyg9uf7zLVnhgRrGxtSEdw kXScJJmg+4zJz4/fOK873n71eDNggReLRwRhUYlNbSlZwdonVvpUujPqn0XdYLckoFcbTn0wFsAJ e+/sk+SGGhk0scR7yCgRbZuKIOEVofmGlPOQ///hmB5ZgJjx6AD+3+3eW6PNLZGgVXwkV2xul6wD 3fS6wK2gpj5896x2NHOaNa1k9JkLbfew/5h6Tlp6IGVRsATWqruClOyW75m3fVYcj+j/qIhO4Bgu CdKSDFKyxg8jvXS41nMY5/5bJ7BPbXwOlP9kD1b3fLvbiLKInjfzYf2liNa0F+qhbTBMyngxtJAI FcryfF/I6iUZuxsYP6AVDM5RNEkbuGJZcgvlzJJRh9cLEXP9logyS6uzXR4rZb8/W9GcZJ9ZS/K8 SmqMKBblDXK5Mv50qHtFzy/imBWIG63rZgfOVLf+G39aPLeFHh4IB7GkPNuWV2LTMgRTCVLzHhsG jBxsTJrTNlmVWM9weRmAa/eoSnBNNEujIxoy6bOQDLwkMbAOzgk/LJ2ci+N284WNF9keNPUNq/0o PsZwZrHmK/ekfC1A6/jY7qJXDmwrpbRDPFYU58XA== X-QQ-XMRINFO: OWPUhxQsoeAVDbp3OJHYyFg= From: Yangyu Chen To: linux-riscv@lists.infradead.org Cc: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yangyu Chen Subject: [PATCH 4/5] riscv: dts: add initial canmv-k230 and k230-evb dts Date: Sun, 3 Mar 2024 21:26:26 +0800 X-OQ-MSGID: <20240303132627.553698-4-cyy@cyyself.name> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240303_052723_555733_F8DCFB13 X-CRM114-Status: GOOD ( 16.26 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add initial dts for CanMV-K230 and K230-EVB powered by Canaan Kendryte K230 SoC [1]. Some key considerations: - Only enable BigCore which is 1.6GHz RV64GCBV Since is there cache coherence between two cores remains a mystery since they have a dedicated L2 Cache. And the factory SDK uses it for other OS by default. Meanwhile, although docs from Canaan said 1.6GHz Core with Vector is CPU1, the csr.mhartid of this core is 0. - Support for "zba" "zbb" "zbc" "zbs" are tested by hand The user manual of C908 from T-Head does not document it specifically. It just said it supports B extension V1.0-rc1. [2] - Support for "zicbom" is tested by hand Have tested with some out-of-tree drivers that need DMA and they do not come to the dts currently. - Cache parameters are inferred from T-Head docs [2] and Cannan docs [1] L1i: 32KB, VIPT 4-Way set-associative, 64B Cacheline L1d: 32KB, VIPT 4-Way set-associative, 64B Cacheline L2: 256KB, PIPI 16-way set-associative, 64B Cacheline The numbers of cache sets are calculated from these parameters. - MMU only supports Sv39 Since T-Head docs [2] says C908 should support sv48. However, it will fail during the kernel probe. I also tested it by hand on M-Mode software, writing sv48 to satp.mode will not trap but will leave the csr unchanged. [1] https://developer.canaan-creative.com/k230/dev/zh/00_hardware/K230_datasheet.html#chapter-1-introduction [2] https://occ-intl-prod.oss-ap-southeast-1.aliyuncs.com/resource//1699268369347/XuanTie-C908-UserManual.pdf Signed-off-by: Yangyu Chen --- arch/riscv/boot/dts/canaan/Makefile | 2 + arch/riscv/boot/dts/canaan/canmv-k230.dts | 23 ++++ arch/riscv/boot/dts/canaan/k230-evb.dts | 23 ++++ arch/riscv/boot/dts/canaan/k230.dtsi | 146 ++++++++++++++++++++++ 4 files changed, 194 insertions(+) create mode 100644 arch/riscv/boot/dts/canaan/canmv-k230.dts create mode 100644 arch/riscv/boot/dts/canaan/k230-evb.dts create mode 100644 arch/riscv/boot/dts/canaan/k230.dtsi diff --git a/arch/riscv/boot/dts/canaan/Makefile b/arch/riscv/boot/dts/canaan/Makefile index 987d1f0c41f0..b4a0ec668f9a 100644 --- a/arch/riscv/boot/dts/canaan/Makefile +++ b/arch/riscv/boot/dts/canaan/Makefile @@ -5,3 +5,5 @@ dtb-$(CONFIG_ARCH_CANAAN) += sipeed_maix_bit.dtb dtb-$(CONFIG_ARCH_CANAAN) += sipeed_maix_dock.dtb dtb-$(CONFIG_ARCH_CANAAN) += sipeed_maix_go.dtb dtb-$(CONFIG_ARCH_CANAAN) += sipeed_maixduino.dtb +dtb-$(CONFIG_ARCH_CANAAN) += k230-evb.dtb +dtb-$(CONFIG_ARCH_CANAAN) += canmv-k230.dtb \ No newline at end of file diff --git a/arch/riscv/boot/dts/canaan/canmv-k230.dts b/arch/riscv/boot/dts/canaan/canmv-k230.dts new file mode 100644 index 000000000000..09777616d30e --- /dev/null +++ b/arch/riscv/boot/dts/canaan/canmv-k230.dts @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2024 Yangyu Chen + */ +#include "k230.dtsi" + +/ { + model = "Canaan CanMV-K230"; + compatible = "canaan,canmv-k230", "canaan,kendryte-k230"; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + ddr: memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x1fdff000>; + }; +}; + +&uart0 { + status = "okay"; +}; diff --git a/arch/riscv/boot/dts/canaan/k230-evb.dts b/arch/riscv/boot/dts/canaan/k230-evb.dts new file mode 100644 index 000000000000..dfdf8b3e99eb --- /dev/null +++ b/arch/riscv/boot/dts/canaan/k230-evb.dts @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2024 Yangyu Chen + */ +#include "k230.dtsi" + +/ { + model = "Kendryte K230 EVB"; + compatible = "canaan,k230-usip-lp3-evb", "canaan,kendryte-k230"; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + ddr: memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x1fdff000>; + }; +}; + +&uart0 { + status = "okay"; +}; diff --git a/arch/riscv/boot/dts/canaan/k230.dtsi b/arch/riscv/boot/dts/canaan/k230.dtsi new file mode 100644 index 000000000000..4317bda38142 --- /dev/null +++ b/arch/riscv/boot/dts/canaan/k230.dtsi @@ -0,0 +1,146 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2024 Yangyu Chen + */ + +#include + +/dts-v1/; +/ { + #address-cells = <2>; + #size-cells = <2>; + compatible = "canaan,kendryte-k230"; + + aliases { + serial0 = &uart0; + }; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + timebase-frequency = <27000000>; + + cpu@0 { + compatible = "thead,c908", "riscv"; + device_type = "cpu"; + reg = <0>; + riscv,isa = "rv64imafdcv_zba_zbb_zbc_zbs_zicbom_svpbmt"; + riscv,isa-base = "rv64i"; + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "v", "zba", "zbb", + "zbc", "zbs", "zicbom", "zicntr", "zicsr", + "zifencei", "zihpm", "svpbmt"; + riscv,cbom-block-size = <64>; + d-cache-block-size = <64>; + d-cache-sets = <128>; + d-cache-size = <32768>; + i-cache-block-size = <64>; + i-cache-sets = <128>; + i-cache-size = <32768>; + next-level-cache = <&l2_cache>; + mmu-type = "riscv,sv39"; + + cpu0_intc: interrupt-controller { + compatible = "riscv,cpu-intc"; + interrupt-controller; + #interrupt-cells = <1>; + }; + }; + + l2_cache: l2-cache { + compatible = "cache"; + cache-block-size = <64>; + cache-level = <2>; + cache-size = <262144>; + cache-sets = <256>; + cache-unified; + }; + }; + + soc { + compatible = "simple-bus"; + interrupt-parent = <&plic>; + #address-cells = <2>; + #size-cells = <2>; + dma-noncoherent; + ranges; + + plic: interrupt-controller@f00000000 { + compatible = "thead,c900-plic"; + reg = <0xf 0x00000000 0x0 0x04000000>; + interrupts-extended = <&cpu0_intc 11>, <&cpu0_intc 9>; + interrupt-controller; + reg-names = "control"; + #address-cells = <0>; + #interrupt-cells = <2>; + riscv,ndev = <208>; + }; + + clint: timer@f04000000 { + compatible = "thead,c900-clint"; + reg = <0xf 0x04000000 0x0 0x04000000>; + interrupts-extended = <&cpu0_intc 3>, <&cpu0_intc 7>; + }; + + apb_clk: apb-clk-clock { + compatible = "fixed-clock"; + clock-frequency = <50000000>; + clock-output-names = "apb_clk"; + #clock-cells = <0>; + }; + + uart0: serial@91400000 { + compatible = "snps,dw-apb-uart"; + reg = <0x0 0x91400000 0x0 0x1000>; + clocks = <&apb_clk>; + clock-names = "baudclk"; + interrupts = <16 IRQ_TYPE_LEVEL_HIGH>; + reg-io-width = <4>; + reg-shift = <2>; + status = "disabled"; + }; + + uart1: serial@91401000 { + compatible = "snps,dw-apb-uart"; + reg = <0x0 0x91401000 0x0 0x1000>; + clocks = <&apb_clk>; + clock-names = "baudclk"; + interrupts = <17 IRQ_TYPE_LEVEL_HIGH>; + reg-io-width = <4>; + reg-shift = <2>; + status = "disabled"; + }; + + uart2: serial@91402000 { + compatible = "snps,dw-apb-uart"; + reg = <0x0 0x91402000 0x0 0x1000>; + clocks = <&apb_clk>; + clock-names = "baudclk"; + interrupts = <18 IRQ_TYPE_LEVEL_HIGH>; + reg-io-width = <4>; + reg-shift = <2>; + status = "disabled"; + }; + + uart3: serial@91403000 { + compatible = "snps,dw-apb-uart"; + reg = <0x0 0x91403000 0x0 0x1000>; + clocks = <&apb_clk>; + clock-names = "baudclk"; + interrupts = <19 IRQ_TYPE_LEVEL_HIGH>; + reg-io-width = <4>; + reg-shift = <2>; + status = "disabled"; + }; + + uart4: serial@91404000 { + compatible = "snps,dw-apb-uart"; + reg = <0x0 0x91404000 0x0 0x1000>; + clocks = <&apb_clk>; + clock-names = "baudclk"; + interrupts = <20 IRQ_TYPE_LEVEL_HIGH>; + reg-io-width = <4>; + reg-shift = <2>; + status = "disabled"; + }; + }; +}; From patchwork Sun Mar 3 13:26:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangyu Chen X-Patchwork-Id: 13579751 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4CC8DC54E41 for ; Sun, 3 Mar 2024 13:27:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:Subject:Cc:To:From:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KTncHaswVWksWGbM36dYeCJ6UtO3IiQxb4wfDey3yEw=; b=R4HNmZV3sNzRXb kuYxB+wSV3NzbHFcAMu0go12A84QOl9LBXAjWAnhmIjw5muXqsYJtxWiopU77RBfvRbshaoYq0HU2 PUPuSLzsbJU+f4FI37WxFZS7I207h05pScpRJNHWUTMo8WBzuflN4Etg0L/fmmNWjFMz2n3HoJd9J 1FtToydcCo4cDWaxk6MD435ABJ0gsKxvXJXsKk7/aEuXpg8KGX3+4HPktRw3K6PZqj/X7rZ4AaP4t VfrkykznzKm2E35RA4j1hQilnWJ0+AJejEKBrSIy8HegWtMIXS90VxM4ffpD98N0+nM9H+y8Bngrt jcNRG3XQCwGD2rnmAugg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rglsH-00000005y1l-1W1E; Sun, 03 Mar 2024 13:27:29 +0000 Received: from out203-205-251-66.mail.qq.com ([203.205.251.66]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rglsD-00000005xwP-1MgW for linux-riscv@lists.infradead.org; Sun, 03 Mar 2024 13:27:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1709472436; bh=n2s+gXwdW2+QjJ47xTyefHF5QVT8S/PZfQcur2EDRe0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=bZVjHBzwFWvi1aAIK/H45S92QzrmGf2mfM/AjKqtoPKB2aTbwz4enpYAWw7AoRYZA ysSfwQeC9qE4LhesPwAiFR/AIRVHQVa5i4q6AMToCKtpH1hk9ZdHBYzQ0MgNuCFw+N /CcKYOsUPq2hqsZ7zGlZ8lFf3NvxCuNm93QX/xdo= Received: from cyy-pc.lan ([240e:379:2240:e500:994d:62ab:74a6:932b]) by newxmesmtplogicsvrsza1-0.qq.com (NewEsmtp) with SMTP id 6C4A707D; Sun, 03 Mar 2024 21:27:04 +0800 X-QQ-mid: xmsmtpt1709472433tjc79lwka Message-ID: X-QQ-XMAILINFO: OLnGMPzD2sDVlqXcDkXPfya9vVmqwpnozEkItOhSPtXL957hjtkeImGA1UZYiQ jo2Uo435vxlL+75zCehrIzdy5SP/c32+zPuR4DTvciSO/xbVWSDw0NpLnkTyk2qRkZYm4PZzCz++ 6j38P/IRN0bqbzlp8YiKEeeHnhKXVxkYF3+iJPMbL2vCAFqdekPQYpWNwu3T+dCV+JTU4oItwB8j oUHvWPAIx1/6VwpQ4TzaZd6V4WacVTvHiOSV0KbkCC2UVKN5IyMCFDsTCt835YDVMPc/Wi/rDitm 7WyjsIhV7M08PuOxCZ17AcUyIPt3YrApfANVCTyd6BPyaP3/TuuJzhHIUkX5H9Yw1jFOtugl0e+6 A/JIcjRh6MUIJ9dsDCT2Xemevmk3QEZ/pNATezpo08JY/m3Yz5DZJrlqpP+xXK0Q+U7ydK7s0rCt wkBYekbKY9rEa6Op/J4pb08FgkquGrwlWV2tmQrko3lnPJ46siVWKmqgmIcHAvYgHNHw+jXGteQb hZRKEFm+x4Ztl0VUeqalpPesEdiweL5Ykdda2CYSsD3JlDWK2MvZsgZ1ZUgIP9UFFyBV1BoZQFkG b/enTlqOSckY225yrzVzuI+BsdiO9vpqhHvGfu36FNnKyHQ6MYLQvAhn1OoST2Ra6pnRVQlAZiJh A8TgZuEYldYl109DEXb9eKyqhKRj3PI4UrKuFR5emviKSAa3XEnpenYBA9Sw0jnWnYBmgzHrzmtR PyUAV9YMqpTeg+9Wj+JHaMdCtFEB5+UnAzmA6Bk7jxFK/HMYmTaUdykYuAN8/lB6qqP5AdZkzhv2 JJ1y0o2qGwFOrPtC0AuRPth3ckdtIJNn0aK5g9pAu5fCLFp8E0BZDsbd13xgQEmaY0+VIqF7Huzo ku+0HVuca18QrpTp4PsS5cIHTr4cr3GPatGEHwv49KYXQqRG0gpfHevig7yv78WQN6k8kRBGVyzE RGOk28OXJByphC4BZz+35QLiQwCxfPx6n6PJ+VTlW143LxxFZZyNqb2jZ6RLPZ55PXWqnLr0qmzk rUA/uKhFxqJZRe00XnblCOKfgeDWdJFAiv0wk1M/iybnlCIPpV X-QQ-XMRINFO: MPJ6Tf5t3I/ycC2BItcBVIA= From: Yangyu Chen To: linux-riscv@lists.infradead.org Cc: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yangyu Chen Subject: [PATCH 5/5] riscv: config: enable SOC_CANAAN in defconfig Date: Sun, 3 Mar 2024 21:26:27 +0800 X-OQ-MSGID: <20240303132627.553698-5-cyy@cyyself.name> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240303_052725_815081_8603EC39 X-CRM114-Status: UNSURE ( 7.00 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Since K230 has been supported, allow SOC_CANAAN to be selected to build dt and drivers for it in defconfig. Signed-off-by: Yangyu Chen --- arch/riscv/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/configs/defconfig b/arch/riscv/configs/defconfig index 89a009a580fe..20b557ec28df 100644 --- a/arch/riscv/configs/defconfig +++ b/arch/riscv/configs/defconfig @@ -33,6 +33,7 @@ CONFIG_SOC_STARFIVE=y CONFIG_ARCH_SUNXI=y CONFIG_ARCH_THEAD=y CONFIG_SOC_VIRT=y +CONFIG_SOC_CANAAN=y CONFIG_SMP=y CONFIG_HOTPLUG_CPU=y CONFIG_PM=y