From patchwork Mon Mar 4 21:05:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangyu Chen X-Patchwork-Id: 13581249 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 343FAC48BF6 for ; Mon, 4 Mar 2024 21:06:43 +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=93TdIt9wugNdVNdft5kgd91er1XcPpyjDY0QiaoCNRs=; b=46D3AztZX0Y95h 3VMhwDrBe4ap09dGqmlwIsHcVqf6g+lR9Kv8hwrQ53bIPwWHJiNvFnIvhT2Y52VqywhkhPrbmeiJW 4WgW2e0BdNtzgGMBRM49RQOF8BhsDw9/x542z4dx8tKuwz8EI3HpFK5UcOAdpgg+8lxUVAG3HL9GS BGY8SJsexzd3lvCBjJke4Kc31gVhuf3KgTay5ZsN1uVx8Fmh3vxhXG+oR28y/JAdi4cDtuw243gGJ orWZDQTFMFfOktPoBQhRrcVlN/eww3qVGAIZPIAZgxaxK5llMIaYhlB8KvVYdljuqAoIN3ntsJxBm nDXAIwJd5DcuHcTFRv6A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhFWA-0000000Ahpc-08p9; Mon, 04 Mar 2024 21:06:38 +0000 Received: from out203-205-221-235.mail.qq.com ([203.205.221.235]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhFW4-0000000Ahjw-3pfQ for linux-riscv@lists.infradead.org; Mon, 04 Mar 2024 21:06:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1709586388; bh=s7QEg+O5WzM5yI1q1lQPoUf0e90dpB5qxk5MpOdViLo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=NsaDB7PPAxypurlm6rlAl+cL5nLuE8Ls1vqlARtzQI6ah5iy0jAyNZWDmkGGHmspq SqnPbEpgG8Onklrc+C+P2YXL8mKnR4FHA0tlXMrJzN+h5zfUfcikO7abwhOWORD9X9 4TDjZ9VrhrhxHK5t6SZ188hbQk8VAHKsgPsz1rME= Received: from cyy-pc.lan ([240e:379:2240:e500:994d:62ab:74a6:932b]) by newxmesmtplogicsvrszc5-0.qq.com (NewEsmtp) with SMTP id 1953A8D2; Tue, 05 Mar 2024 05:06:21 +0800 X-QQ-mid: xmsmtpt1709586381tcdoc9q8g Message-ID: X-QQ-XMAILINFO: M1rD3f8svNznRKnYlSRS18X9ZwJFLn74xBtXc+wY0Wb28ataBnC1sYFWy81Njd ejrXyDqdB5c3TUxeogi9GQtQzV9z680J2JVlXFSQ/wi/808PVqbg7m/SaWAQDwb6hyhB5ld1zeYk 9rxb8WbosrUYxu+cpzUIDoSfoXqWW37zqzkU+25WvLuoKUkMdrAq5lQg5CViq0xSAc7fonMSerF/ Efx0w/0juW6BmjGDbxTzeZjpULgAqjwyWyK/fkGKNkyzNdMOZBMIwaj3UxXfQpd8LUQoHrUvxkdN qQqh3CJaxT9F317ztLKIy2XeTPQnX9lsfFmqRIrwt8a21ESzHeYbGRdByvZ3mlVlfMQXf65CRADd GCQKMGBazhJ4r2qGNHG0IqTLrWkyZZ5Bu/wAZ7v7wg3v2IIE6sdpXsjC4OW0Gg2RgspucXF+V2Cx Tq5GOCN3tH7qtocIRbddcfw86PP8AXx28CQ/Z3TiiNkqolXM7CCBaFvgVevmBmjJhL5TUb7h+NRv /j7SpEgPwU8+nst/yJ0Ztw5fzP7v4gXmFp9eO6DQg2g0fHSoIbdijGWho2qEogGtck1G/m8gNsi/ XuhpJ5aU0NuSIyGD/NHELLBpkr7SBVPIQ81uuch02bxGAM/SXmuw/1naezn1a8EY6Ucgq3PSRk1S NoQ+XPssbXVmF1stDDheEbnsqFxu7gn+tbR/yv/v4l+g/BOgUBQxBTQhSk+7ZujbAUbMo8Ws31fj F72evz97+jszst9CFrPyU/zMRAUpmFBEUJEO84h1v+J9+Wgn+XF4PrFcDkG6WUFYdkhTqwMezSwN E01xJNBvL8DbBazA6iEWyMwVyGeZsdDjcxH395RWiOf2bNM/ZeqF2CSpCBHATmBy5eeBwdYVOhLE a1oCSm+N1rHG3lOc4CDFdPIMnSBoocHB5UxBa6R+ZpmasFYxwEC7V7NmxNH9pfGZnfTVyCHXLLLA x+5tdgR+lMCdJZGz8LxytPWe1KQkjGBwwnBpmMibKPKlTbCfOtspbVKykbN7pzOwrYxTOzrEOmE4 gDgr8qagHCG8SD4yJGclpX5SBtV+g= X-QQ-XMRINFO: Nq+8W0+stu50PRdwbJxPCL0= From: Yangyu Chen To: linux-riscv@lists.infradead.org Cc: Conor Dooley , Damien Le Moal , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yangyu Chen , Conor Dooley Subject: [PATCH v3 1/7] dt-bindings: riscv: Add T-HEAD C908 compatible Date: Tue, 5 Mar 2024 05:05:55 +0800 X-OQ-MSGID: <20240304210601.777883-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-20240304_130633_633550_A9EEB396 X-CRM114-Status: UNSURE ( 7.69 ) 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 Mon Mar 4 21:05:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangyu Chen X-Patchwork-Id: 13581248 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 51663C54E41 for ; Mon, 4 Mar 2024 21:06:43 +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=DIuvi6s53yPIXEO8GPa2zde+aLQ10yv7bhHmPc/ZxGw=; b=TJsBQ+05EDuiWZ h2mhLpWlff2Vq8aF1ZiEpIjbYThZTGAbLTt+Cqm9degSN+MtN/n28Q7C8W1AteggnC6zSJGUNbAYP jm9HOJyqB3Wl2XaUAMRaTK2vd6jv/GBIIuWvj/sXiyvkl7Y076cRzcSVvBDyBEZwBERUS3v0XH1UQ Gr/1NtlemISnn2AmJhF0yqL4Snla0/7Tv7H0UgOugWUneP7BdqqZbjFzSRVtMgSDilfn8hS+7ohS2 uJ1bWmXZ7Ca+8FUvy30vT/5WG1yVADHiG6t1E/RAcH5rqg+0zsiBxreFgHgSLtxsfVNY23J7Yd/dG F9zSm1z4/96rM0ZQktUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhFWA-0000000Ahq5-3Wqk; Mon, 04 Mar 2024 21:06:38 +0000 Received: from out203-205-221-245.mail.qq.com ([203.205.221.245]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhFW5-0000000Ahkq-0SXV for linux-riscv@lists.infradead.org; Mon, 04 Mar 2024 21:06:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1709586390; bh=yn1cIjHa9vkof6V1goAAhCCMm4gF0ibpVzJy1HW4a8Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=XSrv4dQXBOC2xL5+Wa99iLC++GfdIxdUAy9+UjLIolP8MvHy2kOPDRi04dhTAAsA1 m+LUmV7FDtRUcx3Wp4Cmty290Af2BPpfJJugQkLBi6rLCv1GDBlaMKndtq/y/dO9NB hePX8/iIL5m0O6neWtxHJAym02S+mVu7IxAVW6Es= Received: from cyy-pc.lan ([240e:379:2240:e500:994d:62ab:74a6:932b]) by newxmesmtplogicsvrszc5-0.qq.com (NewEsmtp) with SMTP id 1953A8D2; Tue, 05 Mar 2024 05:06:21 +0800 X-QQ-mid: xmsmtpt1709586387taroak3wd Message-ID: X-QQ-XMAILINFO: OVnuYaVQwYrz3Qs08LMvf9PIYBjThuYCGem3KXxKB57Qnaqq3pWtrNTX0zj5jv qck1u+VHEuIBqQNefXcq0v8sWAGOfSFjEadtD4EdSk0aZAk4z08YOdekgs16li0wyn7sdjwmvXL7 0wLI4jK6PQJMszFFKvA1p2AULMNO9BWDprEiVdCcL2BjCvDEfNhS0LU4EL2//bKixMzOZ3zWQKPE Fcv39oyYu1vsgeYJ6ck4gxgr/2DaEWE1cyxzolJ1yfDWzS23H72gCBHKV5NlTVLBJjH0UKZvvVhx hG9LCOZVYNh5c0KOTYAxpQ+GiHggTNMJ+D3d1nfR9k08LBjVCopcxicxg762qTmkUOeTNzaEnZFG lV8dAYqPcwF5K18xHrKN4LSvWhmEhnCYGgHcP8Ubc6jkVIGQNg22zVKsS7amICuTZ+wD2ZoDVFqU JPiW7/SoJWo2TvFJLeSaZUWa5UQucAgOMZ3D/WI/bgd3XkNR8hJ0Tv57epUtpbpq94Y9inqqOkB0 3XNOYc1k0cS8BGraC7STc/OuDfK4d2amieaTD6WMguTFeb1op6VAIVItKivBP+b6cKCeJIGAaiYN KGXHAXbgkoRPNrxBFLfqLeQrc5x7utsRGyaR4ZeephyoHrzNCpisJRFWn4grwkDVsaaX+A80KzPE AuJfwJuXFtiDuOYDGseEyb3D2EhoWlMwTHME1Pc46z/g0mHGDrQusGnDqdJK+Zr0M9cf73fZ28G7 ED0IDX31R7EaRp19VOzBWQodmw9OJKzXwRZ5K9iGm0UNKXRqeKaY8zKPVfRvGAsHGG1Qwz3GLHlo Rwz6GVwTtvNYUr7cfSflF5A/q/5hEw8L9e53UhqK6qQW3IkHS3K6o8d+7qwYK/GkbkqofOqQ/Ur0 TzbZlDfwzxKRiTu0ws542sw0xAfMV45omo6PGHKai7L5aorCdWNgdEsA4TKBfCqQroyPjJdxWWNq QChhY27yi9CnYJR2KfJ0gcA9jkiaG00n+ahhPmUUlOaQv1Fd+Ul+a7yoz4rqhEKowixgo/3hzO1Z Tn6/R+xWZmglfpOyg6NJEcu06AdoUvcZ/3O5kKzTgP7QYIFIpfxskXgBfaLW1CWp00h2NTGg== X-QQ-XMRINFO: OWPUhxQsoeAVDbp3OJHYyFg= From: Yangyu Chen To: linux-riscv@lists.infradead.org Cc: Conor Dooley , Damien Le Moal , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yangyu Chen , Krzysztof Kozlowski Subject: [PATCH v3 2/7] dt-bindings: add Canaan K230 boards compatible strings Date: Tue, 5 Mar 2024 05:05:56 +0800 X-OQ-MSGID: <20240304210601.777883-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-20240304_130633_694932_96841FBE X-CRM114-Status: GOOD ( 10.05 ) 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 Acked-by: Krzysztof Kozlowski Reviewed-by: Damien Le Moal --- Documentation/devicetree/bindings/riscv/canaan.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/riscv/canaan.yaml b/Documentation/devicetree/bindings/riscv/canaan.yaml index 41fd11f70a49..12a78bc95992 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,12 @@ properties: - items: - const: canaan,kendryte-k210 + - items: + - enum: + - canaan,k230-usip-lp3-evb + - canaan,canmv-k230 + - const: canaan,kendryte-k230 + additionalProperties: true ... From patchwork Mon Mar 4 21:05:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangyu Chen X-Patchwork-Id: 13581251 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 AC17FC54E49 for ; Mon, 4 Mar 2024 21:06:43 +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=mLoVq+dnV+oeeUSIUR+p6NCvv2pKFMf6DRba5GCZBiQ=; b=wx5ZhYbAZxdwHR kbPFUtalwsivzLUfyH6DfkwYN0CFTC5rVNkSZjLqVYGGm21sYg8y95UWVWhbh+Cn6zW9otYpaHu+P /VM+/ZmgGtYQE0ykvYRcccIN+RtK6WwNMYFPOBNByklDSKVwxQMA8UVPMcxe0IpkDkozF2PFyWWqz GuWfGNWSHZyBcm4pfkl3lnD9kPh3QCRy+eg0yv2UJSYUA4rzqh3c3SjHKUeTxQsfBOc84XyR7L0xl SM7DQCgRXq2/7DrRx/pwnVNjOlPyRksvdWQwlBzbHEPXxJTodkew4ynaGpC3v4dxwKAGsxYXUzQUe 86QnVLCwlq3efrhWWz/A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhFWB-0000000AhqR-1vOH; Mon, 04 Mar 2024 21:06:39 +0000 Received: from out203-205-221-221.mail.qq.com ([203.205.221.221]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhFW6-0000000Ahlg-15Ge for linux-riscv@lists.infradead.org; Mon, 04 Mar 2024 21:06:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1709586391; bh=pMaLts8PXA5REiyGeypCyU36YZO+RzJa569u2oVazis=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ceaLihVg8y5mUsomMZbBLA+atCasT6619NzNq1ssi5djzsT0hmjbz8Lsa+bHQqcz+ ES454s55XjrlpsN1CBLN2VIHsl28yjzfjg+iNgqjrnYG6oNDAXAjtgrnKWsz3jaGcT onDQZsGyjpleE2iZU26+qHGsCNcO1Q+hbzUhjbNo= Received: from cyy-pc.lan ([240e:379:2240:e500:994d:62ab:74a6:932b]) by newxmesmtplogicsvrszc5-0.qq.com (NewEsmtp) with SMTP id 1953A8D2; Tue, 05 Mar 2024 05:06:21 +0800 X-QQ-mid: xmsmtpt1709586389tfhvjy0km Message-ID: X-QQ-XMAILINFO: N7h1OCCDntujUM20gunPaMedHkDBepcC8+uwF0oYczOXSdekrAihPwKwaTG3s3 WmSohxDN6+V0rQGtpzybTDviWfbbJqiJqLjvmYxKpSP8dWGRDhGwmZKFpeY+UcsR3S5k2HY1bu/v rwsxzQuLj7RjbBSD/bVBnOZriqSFsse/K/2IlVILbvVr9OQjwcfrilAY3CQk2G8eZnlDVjwK3eeK eaz7cy1Uw0lyDu7I/gQramQlatjcshUnERa9W1Inbx8kB6eEhEQvhzlBzCALzfu1eaIlFti83/hX chC1CscEVeWmvEtmFK/kYHkg9RcOQyZb7Oo7P2FIFtEECJ06cQ3jr7PalIkv94y7cTRJeEcdqXDK zrOmtn0ZuvORy3xN9w9OqLXRXzQx9TxHkgAvt08fNrFGqb+UkbVxTqly9IYWoocj5sVa05eCqbkN Ubh1dKEHqF2u8gFSx6xOXCiwo47mPIlnMvcNawoAc7xq6P/xydXespiO+ObcvvwjO4TWAqwSREGA Lrxi/UOB9Jh3NV73emoTB0WlRVDc5LpeCZlyVGnhzMqc4TtR9Tgzozgxjw/bDMb0CaFQYF7UOO9v lCA7jOySVlyIbgH5uRcg1IzZ5WMV2vMiWmPuTwlCIpy/HFY/s97W1AFPUOrfBkP6JkFqg66B4TqZ kEPaQnP7yax7ps3zT0jdrlrFg7yhW2ydpWmWhk5zKUDnnfBVEWk17Khm4a1S37kawK60X9toWLU/ Q8MyHUMLtYn894lwUDhv7u049CbXtpITq4sgv7osPfi4y4fxHLpek3Skoxaau9g7FfpKVFsUUGp8 faUaYou4e8pC/D8C+ZmbAyMgYsok6P/2xkgklWWUMnjz2ARBP8C2iEc/TWaI9ILAIeJWgtNFgr4f jISb10vTSuqGK57GRy7jZVOSltJ/uNRrw7tZf1OQ8SpHTYLhnKYKqk4sPCEYIcHrvHKDKw5fk9mk wseMuPwo4JF9CwU4Rnjj3LdIxv4F31IvExtgH3wqeucztDHo9sQt3V10YZZC8CXbbzsj0fzPNYH3 qa3Bn1UyH5oTJt38VUa2GSgv0KVVvgUPdW3jrnoXHB7HXaIFhZ X-QQ-XMRINFO: M/715EihBoGSf6IYSX1iLFg= From: Yangyu Chen To: linux-riscv@lists.infradead.org Cc: Conor Dooley , Damien Le Moal , 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 v3 3/7] dt-bindings: timer: Add Canaan K230 CLINT Date: Tue, 5 Mar 2024 05:05:57 +0800 X-OQ-MSGID: <20240304210601.777883-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-20240304_130634_692236_240FF5D2 X-CRM114-Status: UNSURE ( 7.61 ) 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 Add compatible string for Canaan K230 CLINT. Signed-off-by: Yangyu Chen Acked-by: Rob Herring --- 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 fced6f2d8ecb..06c67f20ad3c 100644 --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml @@ -38,6 +38,7 @@ properties: - items: - enum: - allwinner,sun20i-d1-clint + - canaan,k230-clint - sophgo,cv1800b-clint - sophgo,cv1812h-clint - thead,th1520-clint From patchwork Mon Mar 4 21:05:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangyu Chen X-Patchwork-Id: 13581254 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 DB481C54E41 for ; Mon, 4 Mar 2024 21:06:58 +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=C1YzKPSJ1Zdaev4QH+uYnFzHtI9CZL1VJJxstCW5ThQ=; b=hDyXiRhdhp1Zu4 dE6eDUlbyDEgxx2w6SI+0K9pgpZvngQgA6cGDCNSXynPxo2Qrsl2EuMITSR8SZDzdTxRk2IP7vNKf MHKo5YqLdqsUQzv+SRTQn2NY4I9MQMs4harFI6IAEv+ZosFOMmD+eNo+qgKBOFd3vo3BwOAksMj7+ XOUbfaUZzfRANPtfcGaVZFPm6K+tTefFSAt5OosmguBm6+HOfZlHgwL7Ypo4GyrxDpjdKyA+6/6/l Mk34xETn3TRdFEISSXRZHJC7DUcCmnIDweROzJsFpCn0lFAMAy6NAPTLzc62ItvWI9D+4gCnoqMzV EpsXny65UR/7jie0Dchg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhFWR-0000000Ai3e-31Ji; Mon, 04 Mar 2024 21:06:55 +0000 Received: from out203-205-221-192.mail.qq.com ([203.205.221.192]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhFWN-0000000Ahx8-0K5c for linux-riscv@lists.infradead.org; Mon, 04 Mar 2024 21:06:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1709586393; bh=Ia1gwhGj9oMsY1Gs1EXwKmn33KXTNReSu7KithRz3og=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=MKolYSMfuWvCSONw9QBbRKNgqmIVwOfWER+LtoY+ZCRLBqS8xeuIpKF+lbH8HOIGx WCGaN7bl5ARPfzZKnBnseCUOhVHCbzercU9cusV1oWVnub312j592oaj5iW4Zmc4iR PUrsXAEp19KvMqaxNMXrvWt1+F4OsQMnfNLhsy1s= Received: from cyy-pc.lan ([240e:379:2240:e500:994d:62ab:74a6:932b]) by newxmesmtplogicsvrszc5-0.qq.com (NewEsmtp) with SMTP id 1953A8D2; Tue, 05 Mar 2024 05:06:21 +0800 X-QQ-mid: xmsmtpt1709586391txwo4izeh Message-ID: X-QQ-XMAILINFO: NnA3IMNPwBd+jnu/wd3UFMXKkTt7bRLu27jCyfzHaPAh+rXFnucBn8PkW14VA8 w+0I7gpfGVUMGOHVgMNm455bPwP2TiksbGOfaeTi0kM+BzBH51a7ELUcYsdbRxl/1mlrDyc2UUj3 IvcJDtbeCHgI6rbsgdWVawm69P0M2Rm3DYSq5+1OkN9A/UlHLjdG5p0xepO2O7sS2dN5lOKyL95g cW+SzFyau/PXuOuBmVkFCq2S83Bp34Sb5s/AJ7bXf3Ff/CbTKhQGCAXuzfgUYHxeUOGndiHGw8zB 4Z0vd8d8HI7h5k66TnX8yh8qdVA8Mf2NdxYVxQ99Eq21cH3v3K/ssexRIjZn/Tday/WFgAacQOg7 3HGh4FCk00NeSUb+CPEcgndE1LQ6gHlT3yRIQ3fY7gKcZqcj6nDj5Jdgzxf6HKgv+vaBgYHlz/CS zbGlFEmUhsWuXiUaPMbi3RlLaGk+C4RtGP/UP3i3V/WOmMIX008yjScf3XNeLhzZXZmH7rhoJx6X CBvi7ZzQkRTSSbW2oWeIZBfEA2Y9RSFK9bVC0YoO9MOiuNUYm4nPeX2Ozx5fA/DruUyJ7I7uaOPj BhFNQvb86YY0PS55lGZOkqKEqnTYTwjE02t4hMG10Sokf758htzk3OCOHChBTZVxM4XzW9udSqv9 ntl4NYCeP+gCFIG3by5BrzN1CsbF0QgWsnNGoDNbVJ0BxYhXBS9/1SI1Y3KesJmMs8D7/wEzUudW 66d05rIlYOW5h6HRvUV1Luu8MLG01qoxoAc59bLI/fN0oSzHxXMlZWxvMH7AgDhxIfZFp64M9x4m 7r0/vO8Nq1H7mTv9W+8HN5u0YBAHsvV4z8Tz1rstfU7YcJXkRD76trtPNcaz/z3ncNo5q120Zhq6 nykW5TGx0PTKHThr9z5MxnSi3q9Zuz5aHfptHaDhrWzHG3qoh8D8UcY0rr4NMPcjPPUkRYG2Xkv0 bdzUdNrH79DrrpUTS7JRTv6lXepiPCTlImn4wsGWEsj+lSMXH9Q2MxjwrsU76pk0kMaHODV+2RJH JzXgLJ56cc+7QXxn65wn82WPVXlrDpIzGS8PWODvOd73PnWbVc X-QQ-XMRINFO: Nq+8W0+stu50PRdwbJxPCL0= From: Yangyu Chen To: linux-riscv@lists.infradead.org Cc: Conor Dooley , Damien Le Moal , 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 v3 4/7] dt-bindings: interrupt-controller: Add Canaan K230 PLIC Date: Tue, 5 Mar 2024 05:05:58 +0800 X-OQ-MSGID: <20240304210601.777883-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-20240304_130651_612283_DC824FC2 X-CRM114-Status: UNSURE ( 7.80 ) 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 Add compatible string for Canaan K230 PLIC. Signed-off-by: Yangyu Chen Acked-by: Rob Herring --- .../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 709b2211276b..122f9b7b3f52 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 @@ -65,6 +65,7 @@ properties: - items: - enum: - allwinner,sun20i-d1-plic + - canaan,k230-plic - sophgo,cv1800b-plic - sophgo,cv1812h-plic - sophgo,sg2042-plic From patchwork Mon Mar 4 21:05:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangyu Chen X-Patchwork-Id: 13581250 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 80DF1C54E58 for ; Mon, 4 Mar 2024 21:06:44 +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=jwz3jHDGnmK583rkXeZhfU4nzw1pTkWEOO2znolW7/E=; b=tOIAMbE35U67d6 BpaZ7B66TciNXTvDhJymZinAPfKFZNr1uF3JZlBSxRBIfdA9tIgG1LgxyK5QDuVVNjKwkyF+WTUFp Z2eCw78RyFp8RcuggAGckkR3aH4PV5DLpgbm9NYRIDoJelK/6hsFivu90f1PnFgNI3SvaR1ZTnjda Z5B1+OfCeS4GBzg6M0rfyRAYlnRohZ/mDwP7Aowwle3+NZqq05RlYAbA4T/AznRQ5irTYB4xouNlF hWD1Bn5ZwEe//w5BKuoVqywB66WHJmBu6MOCPS2RvKYCfRk1IzH7GInYPQnN7O7rL6X9ePBFVM+N2 ZxbR2v7T9T5h+/wlBZGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhFWC-0000000Ahqz-119v; Mon, 04 Mar 2024 21:06:41 +0000 Received: from out203-205-221-233.mail.qq.com ([203.205.221.233]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhFW9-0000000AhoN-3o1a for linux-riscv@lists.infradead.org; Mon, 04 Mar 2024 21:06:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1709586395; bh=Zq7j+pO9atzoOOHePaxM6b0KaYKNJGrtsSo0TfDn0y8=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=jCWlCuWWYJ+fJkBYSAkqEsq1ls5f86p1GxuWmY0LxyrG/PVlTxT14rD6XV6LWWkPn Ytv8br/QLJz98aSWlAbuQjGrRaBQfyEG7Uqdq8P0Kh1vWqbBuV7uEbQhjn0sNwyDgx yBbKsIk6ozwx7hbLBjqXLwrVqG3n26UDW70tjNgA= Received: from cyy-pc.lan ([240e:379:2240:e500:994d:62ab:74a6:932b]) by newxmesmtplogicsvrszc5-0.qq.com (NewEsmtp) with SMTP id 1953A8D2; Tue, 05 Mar 2024 05:06:21 +0800 X-QQ-mid: xmsmtpt1709586392t2jklroa5 Message-ID: X-QQ-XMAILINFO: M1rD3f8svNznhZHOdB+wuRpkNnO5yKpQhBGz3UE+dIQLnRktOPULLHEmxRfoDI 10MK/zPIKLM9Wdte/vVxtDXfnISN0jLZyYGa8nhKf1ZprY2DFe+64VyfP2IUq+awXf/vWxAIb+Lk Mjs7vMejHw6JXf0ojrByWqdB5nhZkZyFUlGDWbaF7S6/w8zXuDJgdhiAveTAww+h5XTbFLjPhsvw 9sPI7bIBe++kzJ5l76xSsFAstQemDIXeWjjsuk6Oly71akKd81qbmMPjzg8YcT9UqytrkQTN3kgE EzKoLfTrhzn5Ecqr9dECLh193hZ/MrW1s9MTT+0Dy94oX9uVkf+esIDMY0eBM/Re5pIbWGSg3FaP 21xCOhFh+eZNuaSWWPVg6UmpiKJw9Mi3E0M+mmogea1RRDwx096oRy2HTMh4ZyJOe9UH452P6367 xhIb9k/Q2jvtzPJ+BMQgRc7AqDS4Z+ojuL88KRt1Yw6uqISFaIeb0ikCQ0upFFwO5eXamYG8Vr9O G1kqX7OPxdOgdx3Xvx3PEcswKRk3Qvmu2VWesxwGIsGIzsWVHNaFlJueDsH7gIIgAETY/BvbMqyv P56tLLGvOzzqvpCczNhIUdGxAil0GIxRjS51axcjWDNcXa4hVmTHe5bWPpUeRqM+qvVAEBQIcAVW dIT7xiabdUysS5sAFEuIAXZc4itcPIr9Fe5v0HO6tsWb030akqtydrJSRl9IlCpbR3GkFpGOm8/z e9deXPd/JDHNuAKalcCpFrLldloua+giZbKu8tCrrM70OfmwTyAHFy2VlLG3j2nYVzNaMVuOAPKy FHSOc4d4oiEfFyOcRvjH1kxpAynbU3E01Wu5z6zkYE9sNazTygt/CMhZIQ24CC2oU1LLFbkfdI3W Fw7oFPy6sR+hnvCQjLg8foorVeO+sQxlHAhajs17QX4RH3+RNya0icqhH5Vmq6l5vYmX5CPfSGnC +S804c95s+Sb7V0Bez4gud0p8QBY88pzYAnqAqqRY1sbGejWofgoEgKEI6hPtAklItqGhA/NCdoQ 5fGsQK4Cr9PHceujNi X-QQ-XMRINFO: MSVp+SPm3vtS1Vd6Y4Mggwc= From: Yangyu Chen To: linux-riscv@lists.infradead.org Cc: Conor Dooley , Damien Le Moal , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yangyu Chen , Conor Dooley Subject: [PATCH v3 5/7] riscv: Kconfig.socs: Allow SOC_CANAAN with MMU for K230 Date: Tue, 5 Mar 2024 05:05:59 +0800 X-OQ-MSGID: <20240304210601.777883-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-20240304_130638_368348_0C282A87 X-CRM114-Status: UNSURE ( 9.61 ) 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 Mon Mar 4 21:06:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangyu Chen X-Patchwork-Id: 13581252 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 43B36C54E41 for ; Mon, 4 Mar 2024 21:06:49 +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=1WfuvK/KxU2QPVvgkHMWyXlX8WPeyY+0jy0x3MHWi3Y=; b=cTctJm9E1euRYl jy5dIIuOSzHeAnIXbytHPq67uf6taxap7fHh2oZd/XK70EVM442Nk6rrKhOUmQ38Ip6gaI0C79jTI te+w6ItJ8NlQqSFmk8kyj02autXMSDwaeRNoZJHWrxIBUYBMDOi7oxhq5guIMsePmdY4N0UYrm3OU jz8ALhO3HnVaNx8Y8DFep/iE3k06VwJ9EonEIAw83m/kyeOhy9FmfXnEwxkt1YAGdVY4QFfF4vbWj SvDRa8u43IUBiYFVNb+6XyzPuUxwn2sKnaeo+vc1EfSfi1KPnTqnXD8SFOWmhNfXKFiVNIq6hyExl r7EutAtTrkZmVnFOfiqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhFWH-0000000Ahua-1SKF; Mon, 04 Mar 2024 21:06:45 +0000 Received: from out203-205-221-235.mail.qq.com ([203.205.221.235]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhFWB-0000000Ahpe-2ZP7 for linux-riscv@lists.infradead.org; Mon, 04 Mar 2024 21:06:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1709586396; bh=3+o+qOqa4ECeqhCHfZg9SR6TJ5m+x/B/e8JCKSuZTr4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=iN0Dpp8fj2ztE1fRS7lsN0I40B2tCRv7RD9ckhp1zkHFdVJQv66VzNmV+43NQ9v6e UMTCoMk/LSHolb7HZsjnOsmos1y06COMxEvomq1efGvmkBEnglYObYvQTSMUE+3ViQ MXgXJxHoV1cKYdaVaQRlRkADBD8nZfPpzk4CzhwM= Received: from cyy-pc.lan ([240e:379:2240:e500:994d:62ab:74a6:932b]) by newxmesmtplogicsvrszc5-0.qq.com (NewEsmtp) with SMTP id 1953A8D2; Tue, 05 Mar 2024 05:06:21 +0800 X-QQ-mid: xmsmtpt1709586394tcc08wvnd Message-ID: X-QQ-XMAILINFO: MzW6DGxp6pWnA2r0BbVJjtnvDiRzWvDMa8xNr4qQkt9cweZY2Zf8MdSMSyzpdc N4ObxZauyWSKSstGJhwQywRiAhO4MLG63kQNTVqRpbgU6iY9hB9FYL9IwRo230gxW8Di9mQppirK Au0osW1xhmkaqsAIcN50phQRe/Q+hgC+7p10xezENvJKynhGjn19HC1Hg+hObjrqeaLG7Toe4wkH TqZINBL7Rldqy404Io+kz+IhDedFz9ZUEbwogZuLYLH7Nev+XSdMybafdZWM4MTmOKHLAxPJL75p pue0WZeFgMh8LD+GCyBhrBjJsnaSg2qU8dMjR8hqQoeKCq80azdp3nynHelB80NEzm+Pvznd5rJJ H+Jdebc/tcRwEl9JCj1ycRh0dO8OV+otb1yWe11buGs/2g8By0FbguK+0AEMeKZoCJ9kCDS0B3i3 8lOqaH0aVmklhtJFHQ3WvBsbmnvB7P+eu0hSqYYxXfV2PcCnWVV3Kd9wybp3u3s79t2OjeRgk0n2 Jgeo2LY+gSKscLGozQohTqH3rxWx7VBtzjkSnQw6WAayRH8saehhpS9oqXepuUPpQ2JK8RCZ+aLQ GYN3FlFnlwOfY+6YXcr3kfkUx3Jia/vjzGo7hPL+t2TIi5Oc9iJzsA5so3nYmrVuRIBzSVI5lbPb kIHz/TWHUohhV5mjW4gJEKVycxYDEFvZ1MKq5aiv/WQgE6ry1ZlE9TotTfzaVATK9tYglwnine38 XtMtqoLsYWfEQvtIfQyuU0bejdbRnmWORruSRIJESu071SWkdDJTCs3QfD2ouIj3ywr+5jhBoJOp hNERS5x2Vot5TNnvk99VXzcX1IEVH48iy7zLWMRJJRvUtbVe2hYwKj9gxnwj21/B9F9AZOuz9vxs 5Lfd9z2Bf/IKM7zKyw1GA+UDEDQ/yaJRKAncpNhmwAtSDiIgFAiWdaUCo8uX9ikb49kifhLwwClz o+R1YhrTgIdpTi00N1qpGO4vdFqTEQUEkiIhYnqGJHtpMzdkFIBKn9O3eZt/v45PXmVsr/NK/G/W vU1lTlZTlnIZDDeWqixJIX6flA0hWPD6iLJsCb96xFE/WV03JcV9lr8bkMe4SMaCWMXmq+pg== X-QQ-XMRINFO: NS+P29fieYNw95Bth2bWPxk= From: Yangyu Chen To: linux-riscv@lists.infradead.org Cc: Conor Dooley , Damien Le Moal , 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 v3 6/7] riscv: dts: add initial canmv-k230 and k230-evb dts Date: Tue, 5 Mar 2024 05:06:00 +0800 X-OQ-MSGID: <20240304210601.777883-6-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-20240304_130640_059574_254F68AF X-CRM114-Status: GOOD ( 22.09 ) 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 consideration: - Only place BigCore which is 1.6GHz RV64GCBV The existence of cache coherence between the two cores remains unknown since they have dedicated L2 caches. And the factory SDK uses it for other OS by default. I don't know whether the two CPUs on K230 SoC can be used in one system. So only place BigCore here. 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] I have tested it by using this [3] which attempts to execute "add.uw", "andn", "clmulr", "bclr" and they doesn't traps on K230. But on JH7110, "clmulr" and "bclr" will trap. - Support for "zicbom" is tested by hand Have tested with some out-of-tree drivers from [4] that need DMA and they do not come to the dts currently. - Cache parameters are inferred from T-Head docs [2] and Canaan docs [1] L1i: 32KB, VIPT 4-Way set-associative, 64B Cacheline L1d: 32KB, VIPT 4-Way set-associative, 64B Cacheline L2: 256KB, PIPT 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] say C908 should support Sv48. However, it will fail during the kernel probe when running Linux on K230. I also tested it by hand on M-Mode software, writing Sv48 to satp.mode will not trap but will leave the csr unchanged. While writing Sv39 it will take effect. It shows that this CPU does not support Sv48. - Svpbmt and T-Head MAEE both supported T-Head C908 does support both Svpbmt and T-Head MAEE for page-based memory attributes and is controlled by csr.mxstatus. If the kernel wants to use svpbmt, the m-mode software should set BIT(21) of csr.mxstatus to zero before entering the s-mode kernel. Otherwise, the kernel will not boot as 0 on T-Head MAEE represent to NonCachable Memory and it will lose dirty cache lines modification that haven't been written back to the memory. [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 [3] https://github.com/cyyself/rvb_test [4] https://github.com/cyyself/linux/tree/k230-mainline Signed-off-by: Yangyu Chen --- arch/riscv/boot/dts/canaan/Makefile | 2 + arch/riscv/boot/dts/canaan/k230-canmv.dts | 24 ++++ arch/riscv/boot/dts/canaan/k230-evb.dts | 24 ++++ arch/riscv/boot/dts/canaan/k230.dtsi | 140 ++++++++++++++++++++++ 4 files changed, 190 insertions(+) create mode 100644 arch/riscv/boot/dts/canaan/k230-canmv.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..7d54ea5c6f3d 100644 --- a/arch/riscv/boot/dts/canaan/Makefile +++ b/arch/riscv/boot/dts/canaan/Makefile @@ -1,6 +1,8 @@ # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_ARCH_CANAAN) += canaan_kd233.dtb dtb-$(CONFIG_ARCH_CANAAN) += k210_generic.dtb +dtb-$(CONFIG_ARCH_CANAAN) += k230-canmv.dtb +dtb-$(CONFIG_ARCH_CANAAN) += k230-evb.dtb dtb-$(CONFIG_ARCH_CANAAN) += sipeed_maix_bit.dtb dtb-$(CONFIG_ARCH_CANAAN) += sipeed_maix_dock.dtb dtb-$(CONFIG_ARCH_CANAAN) += sipeed_maix_go.dtb diff --git a/arch/riscv/boot/dts/canaan/k230-canmv.dts b/arch/riscv/boot/dts/canaan/k230-canmv.dts new file mode 100644 index 000000000000..3ab5c8de11a8 --- /dev/null +++ b/arch/riscv/boot/dts/canaan/k230-canmv.dts @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * 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..42720113c566 --- /dev/null +++ b/arch/riscv/boot/dts/canaan/k230-evb.dts @@ -0,0 +1,24 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * 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..0bcff67b78a8 --- /dev/null +++ b/arch/riscv/boot/dts/canaan/k230.dtsi @@ -0,0 +1,140 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * 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; + }; + }; + + apb_clk: apb-clk-clock { + compatible = "fixed-clock"; + clock-frequency = <50000000>; + clock-output-names = "apb_clk"; + #clock-cells = <0>; + }; + + soc { + compatible = "simple-bus"; + interrupt-parent = <&plic>; + #address-cells = <2>; + #size-cells = <2>; + dma-noncoherent; + ranges; + + plic: interrupt-controller@f00000000 { + compatible = "canaan,k230-plic" ,"thead,c900-plic"; + reg = <0xf 0x00000000 0x0 0x04000000>; + interrupts-extended = <&cpu0_intc 11>, <&cpu0_intc 9>; + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <2>; + riscv,ndev = <208>; + }; + + clint: timer@f04000000 { + compatible = "canaan,k230-clint", "thead,c900-clint"; + reg = <0xf 0x04000000 0x0 0x04000000>; + interrupts-extended = <&cpu0_intc 3>, <&cpu0_intc 7>; + }; + + uart0: serial@91400000 { + compatible = "snps,dw-apb-uart"; + reg = <0x0 0x91400000 0x0 0x1000>; + clocks = <&apb_clk>; + 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>; + 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>; + 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>; + 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>; + interrupts = <20 IRQ_TYPE_LEVEL_HIGH>; + reg-io-width = <4>; + reg-shift = <2>; + status = "disabled"; + }; + }; +}; From patchwork Mon Mar 4 21:06:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangyu Chen X-Patchwork-Id: 13581253 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 912D9C54E41 for ; Mon, 4 Mar 2024 21:06:52 +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=9vxi5kgCq8ZgTCecrvszWsoUl90AW6oqxqiWoHaytYI=; b=om7S95sjjKnYwI XJ4aTv9NzA5UslcoOXBqYg3SpWr2AxoQRTMHH6ohLCwPV9Z0XAsTaNPkqE+mWXmAjIUdRRFXFEhkg NxVaB1Pvxwx/mqXGCYTJGOVqrAbCvnKTcBZYA6JZb9Sq5hi6ZO4uxx0Gxw35FhS7lZ3ulPtRxnYVN /TgPLkmLWnyXy4qAf1YuMhB5OpZKAV824TK11UIPio+rxXaXof6wUwWkuUpJz0qxydjcXiWDzSrSN u9xTpFnairdJz7orzxKOMkMkUkBvOnutfip9+xap+H5W5ymqE2WHWlt+muKgTY7nMmR5/NN5JqHDt 7/eULobmXYrPc9vQGXgQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhFWK-0000000AhwQ-0orv; Mon, 04 Mar 2024 21:06:48 +0000 Received: from out203-205-221-164.mail.qq.com ([203.205.221.164]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhFWD-0000000AhqP-1aIx for linux-riscv@lists.infradead.org; Mon, 04 Mar 2024 21:06:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1709586398; bh=ZIJLq3BiSFnxhdHDEf99zRwFrDLRKM6iSM1wB2EtUew=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=nzGyLKnPoGwBIxlwfAUkuIQaPJA9KVS2EVwhIN+BOpCesuCz0Torj02Xss3nbkPkN KWd69ANDZl307XhIZylOq5CSU0Hz1gAZUEteiBbMBSTqcoOtehKwF1xTZSMrGN9yM+ GrVImA5ab/6WEg6pJoSoWl0+Ge8K2nBmcEEM2hMI= Received: from cyy-pc.lan ([240e:379:2240:e500:994d:62ab:74a6:932b]) by newxmesmtplogicsvrszc5-0.qq.com (NewEsmtp) with SMTP id 1953A8D2; Tue, 05 Mar 2024 05:06:21 +0800 X-QQ-mid: xmsmtpt1709586396tlqjaady1 Message-ID: X-QQ-XMAILINFO: OOPJ7pYMv25tJaZk7lZP4Q8/mDJpXDiT5T4zZuM22dEU2c/Gy7TSuOPa/AA6bu CpJhKfQjQJeyJPTNUNGRG2pPp6A2yctjqvUlxBJeAR5MVOUPMLUyufmP5Xl2lsP8bMG26G8oHdoy bWNkiPHu9SK6l5PYmClXHLRkHYRSxMeHn6ic6toVKBXjVUQkWhTCnDx8yofLUVXv3BMk9mAPxMt/ ardIAzSS/Bxv6LPxdswI/Xq5er/yWIxI8iNiC3bX42yEpNRABbNbOlM2X01nR0i0peEpV9VCidWG SmRfDuSENS7VykPyUNhLUpL+w1YHbalNtuiVt/RqpO2OgPLEN+IQ5a1vLUd+igd8tHaNz2+QJ6L4 ZXCySTc+oe/MSNMBW/1g0KiJAvDcQWs9cYwCU7QrdgW4VId7FnLcfIv6QqDUw7oNcyLWS/UqK9JW W9XyGDpbQzF6d2nL8FV/P58/6IbQMh3aIgkl6GaT1CcW+ccfHxl95/uEg9XA/nsXF862Q3ExJmW5 6fVVWWkOoOKHLb3dJB0P3q0lGkCwALjBzGl2QUgBFR3HxdB7kweRDhoiRcpL8tpbOgdZVxu2zYRq WjoV4jvBFBCGB1CkRi9tQgT2RErH5mtk69d8yYcNC/a4QUObCIQo0W7n3rWf9uXJi7qkK6eUVSKt WvRxwEzmbHn266f4AS5slz29IDA9ElFbKIO6kUWNFLK41//9a4Qf44bG7qNUgkNM0MnrlYUR3eZh E1HzGvnKgM4cgfxCROws6zzowP+OouIYRKwqh6JMw/46RK2fXwAezH/S0UyyE61R/uD7ry1ckW8H f3YJPg+lHw8hRbNeBSqaTYIypSTS6xB4lBl7Z/QnMAaVURaC8pn2Gmty6X9fEQOkIanniTuCgw8p HHSNzNHwQKb6F1tTdl25fiMRzzwT5bUAOzedonNPjYyzVe9KHUa3+hvLiyO8bs6grusXlvS3ZAVx WX/AaIZD6SRoQWqhKFiiOuGY7TdUWiPL1quwVLV9PugG9+cf++uink06Z28C0eKdufxYybiEyH+A vC3+rb/94l24P7q9OyoNhrQ18Y2uRKKRewkX1alGFpxdjvvBTNy7IGyJ8UgwlxfdaQ7Ckw9RP/0B 57rk/F X-QQ-XMRINFO: NI4Ajvh11aEj8Xl/2s1/T8w= From: Yangyu Chen To: linux-riscv@lists.infradead.org Cc: Conor Dooley , Damien Le Moal , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yangyu Chen , Conor Dooley Subject: [PATCH v3 7/7] riscv: config: enable SOC_CANAAN in defconfig Date: Tue, 5 Mar 2024 05:06:01 +0800 X-OQ-MSGID: <20240304210601.777883-7-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-20240304_130641_862938_5A21B9D5 X-CRM114-Status: UNSURE ( 8.06 ) 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 Reviewed-by: Conor Dooley --- 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