From nobody Sat Feb 7 05:44:14 2026 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5BF2912CDB6; Tue, 9 Jul 2024 10:07:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720519646; cv=none; b=jTNo45dffDFKUvlCDEQ5ToFrewMeJtpV5yPWbvIgHcN3ztdzw2hrNqRD8s5ahH5yKUrB24VN43iiL3NLq+HeA4h8U6nBlYKFz8gXQbtJ0k/5xXBng6GjtYDwX9VlmMW9ATVoqCj+hsVtq5gYR+7uDYM3LNt8FSGV87ZbYCOfdt8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720519646; c=relaxed/simple; bh=gNdzO19tkqtEXbL7/XaqfYl1O6LdfiExoOmgGOhmUEw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=f1hd2fWw25q9XZQhgK8H+5+hrmSlLfO8qj1uiLLDzBxiMJfA7qy7WoXxsrBOnqTYk+DcJvLBuIeUlJRRWsOue/UcSwzXaa2KivT1s2nxDc+tlZBRpYwZsMJz40RaDYaIR8g3s0CAVo0mnaVmVsqTZrsRdJ1juzlrxX/w6ORSAxI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=DIO2NmNq; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="DIO2NmNq" Received: by mail.gandi.net (Postfix) with ESMTPSA id 29F0040003; Tue, 9 Jul 2024 10:07:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1720519642; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dhYN2esY9mLXkTt3QVpkwWv6jX6N62gsaZnkqzr2dx0=; b=DIO2NmNqAVuxnpus8tNQc77xzz27cN2SMn5PlXAT405CzUDkSK8vRy/RxMN6jfjGywyams qtC+ht/x+TsMflZFq2lCPmwpewo1KbP165tAwnYxjLRhVh7yo5yfBil6imRYXVnAsIy3ab alKlJOR+7AvkvyEW6/6Pd/ATYMx0sdzJeYhLkcffkZu3pfGaPjdD0hJh3qwpzbBSCVS7Oc MDYaTBjkSvNGbq2cBO3uZf4MUtDegrwzRZcE4TIRL6YNzF5s4ZJ/7iI4zpnMKe/XdEcQVp gFmGfiGhoZ6EkAbZ1m+L1tRmkvi7c1SrVh2sOyYi+A48XDOtb9JMIrvWY7fsNw== From: Thomas Bonnefille Date: Tue, 09 Jul 2024 12:07:16 +0200 Subject: [PATCH v3 1/5] dt-bindings: interrupt-controller: Add SOPHGO SG2002 plic Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240709-sg2002-v3-1-af779c3d139d@bootlin.com> References: <20240709-sg2002-v3-0-af779c3d139d@bootlin.com> In-Reply-To: <20240709-sg2002-v3-0-af779c3d139d@bootlin.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Chen Wang , Inochi Amaoto , Chao Wei Cc: Albert Ou , Palmer Dabbelt , Samuel Holland , Thomas Gleixner , Daniel Lezcano , Thomas Petazzoni , =?utf-8?q?Miqu=C3=A8l_Raynal?= , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Thomas Bonnefille , Conor Dooley X-Mailer: b4 0.14.0 X-GND-Sasl: thomas.bonnefille@bootlin.com Add compatible string for SOPHGO SG2002 Platform-Level Interruter Controller. Signed-off-by: Thomas Bonnefille Acked-by: Conor Dooley --- .../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/si= five,plic-1.0.0.yaml index 709b2211276b..7e1451f9786a 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 @@ -67,6 +67,7 @@ properties: - allwinner,sun20i-d1-plic - sophgo,cv1800b-plic - sophgo,cv1812h-plic + - sophgo,sg2002-plic - sophgo,sg2042-plic - thead,th1520-plic - const: thead,c900-plic --=20 2.45.2 From nobody Sat Feb 7 05:44:14 2026 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2A02B155730; Tue, 9 Jul 2024 10:07:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720519647; cv=none; b=nbX6YOuM3IthzZeVzqRU+7hPNPTh4DIaZRZ75Fj7NtaXuF2ZX6Mrkt01coCl+YofRcgGBXpiOkq/gwBVZ7LnPeoJFVPB4D7PT5uLRM7eJ8nIx1PzLDsvMmsv/my3jgPWmSV+o5yim1sJjCxA5LK59GCyjxpSPLSMcbvXbVbUl3U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720519647; c=relaxed/simple; bh=ugemWojGmxPgMsY2hTfbUg1kbRvidxeL0yDKJ8wYhA8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mMmxCAHbJcs2HI8eRgrrqsFrMlLKYRr1l8POnjgYPq2dOM5ut+BELewRALDXYPFNR39c171ZqjgBwO10qjmCYnqPZE86uc0bK7S+aZJd4cPpy/BdEFz5gl/stXLXV2Hok34W7SShUaq1oeMj+uUdqgN9/BnMSEaYW30NIttaWU0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=m3GtmFh5; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="m3GtmFh5" Received: by mail.gandi.net (Postfix) with ESMTPSA id EB1B740004; Tue, 9 Jul 2024 10:07:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1720519643; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=a4/qosI29j12BIJ/lo2TfWJJS+sG2+sfIgXK3Wk4G6o=; b=m3GtmFh5JfQgnHd63SIjuPe/V2GaJqDXZsHvSzl9SRIEDjtiokLlroN1BjyKNy/S3aDyjV CveMvo+ijX5SOwbEO+6brA7ZHyZt21hrGU9LzhQRgeJVn2DpV0kETdjfGA1bJeDd4rUqiw 8N41LRM+tN+hjDgeCLLnH2lApIutANIpz5ypPo9CsUuxr6Jv/zxv88d7q+CoAqI47kTUhs ydw0nKyS2hc65dVnggVHit9sbepUDdAzILjFBsvtnxRLbfu90YE4M+G8Icp4rGxvp8deOn v3WMhJUwjRtES5XadhMVW0AfmXj9MCs4ECX0DQFsNWjSWYiK/pNECPzl1dKxxg== From: Thomas Bonnefille Date: Tue, 09 Jul 2024 12:07:17 +0200 Subject: [PATCH v3 2/5] dt-bindings: timer: Add SOPHGO SG2002 clint Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240709-sg2002-v3-2-af779c3d139d@bootlin.com> References: <20240709-sg2002-v3-0-af779c3d139d@bootlin.com> In-Reply-To: <20240709-sg2002-v3-0-af779c3d139d@bootlin.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Chen Wang , Inochi Amaoto , Chao Wei Cc: Albert Ou , Palmer Dabbelt , Samuel Holland , Thomas Gleixner , Daniel Lezcano , Thomas Petazzoni , =?utf-8?q?Miqu=C3=A8l_Raynal?= , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Thomas Bonnefille , Conor Dooley X-Mailer: b4 0.14.0 X-GND-Sasl: thomas.bonnefille@bootlin.com Add compatible string for SOPHGO SG2002 Core-Local Interrupt Controller. Signed-off-by: Thomas Bonnefille Acked-by: Conor Dooley --- Documentation/devicetree/bindings/timer/sifive,clint.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/timer/sifive,clint.yaml b/Do= cumentation/devicetree/bindings/timer/sifive,clint.yaml index fced6f2d8ecb..b42d43d2de48 100644 --- a/Documentation/devicetree/bindings/timer/sifive,clint.yaml +++ b/Documentation/devicetree/bindings/timer/sifive,clint.yaml @@ -40,6 +40,7 @@ properties: - allwinner,sun20i-d1-clint - sophgo,cv1800b-clint - sophgo,cv1812h-clint + - sophgo,sg2002-clint - thead,th1520-clint - const: thead,c900-clint - items: --=20 2.45.2 From nobody Sat Feb 7 05:44:14 2026 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 39752155C80; Tue, 9 Jul 2024 10:07:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720519648; cv=none; b=tpd6NXK6Tz2HaIYbM18ir+8pSJYHnSntx6EkhwXU3r6ldpxZCo0NiLfkZVpzStxMEaQSuJpa+q2AvT68UioqQ6tbpwTHEtmpySYPjvHf9obhrYaylbPPmpEbYhaSfEOHoeEHPGD3lpXZU9gCQRLjvLb0aTfmO7Du+IOgNDvddUU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720519648; c=relaxed/simple; bh=ICsuZZyph/qsEnfoSNGWrzYVLZXRVSY8ETWfLPWNqKQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dKWhaLSO6oZ+sHHAaFVo4Z1q846KPZgNb+fTxtTBQ85yMDnKtVCbhsLSuSiA9yvruhc9jbjlAXJJhy+B7k8JXN+IBivzvA5NrrhiZxXd+3EvwYYKLmuqOWV6DuB2wU+8eGODX+/OKwdFHy8l8DTDP5mHYizsh/D4GPavHYclncY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=oe/k0raP; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="oe/k0raP" Received: by mail.gandi.net (Postfix) with ESMTPSA id BCF1C40006; Tue, 9 Jul 2024 10:07:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1720519644; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lwHOPxVN4WzseMpm8k0NEmyddjr++H2IEYNI4aIOG2w=; b=oe/k0raPnNXaUjvo1qgcMND8z4lYzFd77vEx22BFr4I+SfCOCKnFSNcHBsgXEGaLjPa0BX f276Q+22/Q1eHMvACRuBT1Eu/oreIJRF2DXWTMTTKKYvx8e9z+vRYVF76JT5btkfXIRjbO y/dxwe5dO9+VoSIiHBDd82PCW2bx8MOOeaa3ZcJw+M5JEGVO4gZvYkjW7ToF6tIVwz3H0h Ih5bxYpwUeoZ48bw0mcQBD7o8PKGVR1JX6irNBBD22tk3zGsz55UJoUnuq7JbGeijZauph vBT+98dYAk4Ha0uvtRtCLZ+LoUpYP0vdi8dPmGyTNDF6HCmIsTISGuXHpDHLHA== From: Thomas Bonnefille Date: Tue, 09 Jul 2024 12:07:18 +0200 Subject: [PATCH v3 3/5] dt-bindings: riscv: Add Sipeed LicheeRV Nano board compatibles Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240709-sg2002-v3-3-af779c3d139d@bootlin.com> References: <20240709-sg2002-v3-0-af779c3d139d@bootlin.com> In-Reply-To: <20240709-sg2002-v3-0-af779c3d139d@bootlin.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Chen Wang , Inochi Amaoto , Chao Wei Cc: Albert Ou , Palmer Dabbelt , Samuel Holland , Thomas Gleixner , Daniel Lezcano , Thomas Petazzoni , =?utf-8?q?Miqu=C3=A8l_Raynal?= , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Thomas Bonnefille , Conor Dooley X-Mailer: b4 0.14.0 X-GND-Sasl: thomas.bonnefille@bootlin.com Document the compatible strings for the Sipeed LicheeRV Nano B board which uses the SOPHGO SG2002 SoC. Signed-off-by: Thomas Bonnefille Acked-by: Conor Dooley --- Documentation/devicetree/bindings/riscv/sophgo.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/sophgo.yaml b/Document= ation/devicetree/bindings/riscv/sophgo.yaml index 9bc813dad098..a14cb10ff3f0 100644 --- a/Documentation/devicetree/bindings/riscv/sophgo.yaml +++ b/Documentation/devicetree/bindings/riscv/sophgo.yaml @@ -26,6 +26,11 @@ properties: - enum: - sophgo,huashan-pi - const: sophgo,cv1812h + - items: + - enum: + - sipeed,licheerv-nano-b + - const: sipeed,licheerv-nano + - const: sophgo,sg2002 - items: - enum: - milkv,pioneer --=20 2.45.2 From nobody Sat Feb 7 05:44:14 2026 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13BDB156227; Tue, 9 Jul 2024 10:07:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720519649; cv=none; b=H8/1ovfsB4ftQVSp5OUkj7vZJgrFaUD+uJfYqxZE+bo5TZHr5uJkrBynIvic9mWPHBQpQMKeyN5nhL9TSSVxSFkkGOJDSSDdhgzyvPMB2Yxwxi8O6suhY+KTSIPm/MZsNa1XqVjscuCJpmh2TCwZZPEg3pqM+UyEr/Umk6xDvH4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720519649; c=relaxed/simple; bh=1a+bTKnj8ApQ06Lj+M1ytV2aJqRaVFyoDB7EC0FNRvQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=VuHvVD3vPJKVJXeJouy5cODgRnVUW4PYUTj3Kb/wDqZkonwamcX69PirsqzsP2FTlDOpdcFcgrW17DSjplySUPB+3neBKPxm+DUVU7hOeidntY3J2khxGPmGW/Xi6V/H5tOV2periSl1MqhjR9fmMX061K2i9nNJNXl067oS7gg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=e9QnOj3P; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="e9QnOj3P" Received: by mail.gandi.net (Postfix) with ESMTPSA id ADE6A4000B; Tue, 9 Jul 2024 10:07:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1720519645; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/w7M59pSBoTLmuYsPNPpvNrtu9Q1tqeATXTtEpzNo3U=; b=e9QnOj3P2IYvXdIHDZTu36nzAJe87gBXCwPaHQfNFGmy9EpRrVQ2tA1wQEmF3TJENmi8sk bhH+AlR4tjb+f55ctDBHyJH6d+iM0Q3C76AdNjtYkeSdafBJ+NDRoAsokyojmcrBRysW2v jPDhl5BnIEkdMncsgD9QUkdlJ859M76saCPzKBShiofsw6jrkc+wN35LXtqhmEkj24uWeU sK3C8qFjeQhoo2fjhaPR5TtMyVHg73QfEOui+9eO2mPhTZkCE0nVVOQTJ+ykUSZ8tduHUt JyGUWgWH8iqUvRHqTG4hS6F4dQsslkhbRFovwTmxUO6rbh/FwV6DnVudWd9dUQ== From: Thomas Bonnefille Date: Tue, 09 Jul 2024 12:07:19 +0200 Subject: [PATCH v3 4/5] riscv: dts: sophgo: Add initial SG2002 SoC device tree Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240709-sg2002-v3-4-af779c3d139d@bootlin.com> References: <20240709-sg2002-v3-0-af779c3d139d@bootlin.com> In-Reply-To: <20240709-sg2002-v3-0-af779c3d139d@bootlin.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Chen Wang , Inochi Amaoto , Chao Wei Cc: Albert Ou , Palmer Dabbelt , Samuel Holland , Thomas Gleixner , Daniel Lezcano , Thomas Petazzoni , =?utf-8?q?Miqu=C3=A8l_Raynal?= , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Thomas Bonnefille X-Mailer: b4 0.14.0 X-GND-Sasl: thomas.bonnefille@bootlin.com Add initial device tree for the SG2002 RISC-V SoC by SOPHGO. Signed-off-by: Thomas Bonnefille --- arch/riscv/boot/dts/sophgo/sg2002.dtsi | 32 ++++++++++++++++++++++++++++++= ++ 1 file changed, 32 insertions(+) diff --git a/arch/riscv/boot/dts/sophgo/sg2002.dtsi b/arch/riscv/boot/dts/s= ophgo/sg2002.dtsi new file mode 100644 index 000000000000..4ca4e47a74e7 --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/sg2002.dtsi @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2024 Thomas Bonnefille + */ + +#include +#include "cv18xx.dtsi" + +/ { + compatible =3D "sophgo,sg2002"; + + memory@80000000 { + device_type =3D "memory"; + reg =3D <0x80000000 0x10000000>; + }; +}; + +&plic { + compatible =3D "sophgo,sg2002-plic", "thead,c900-plic"; +}; + +&clint { + compatible =3D "sophgo,sg2002-clint", "thead,c900-clint"; +}; + +&clk { + compatible =3D "sophgo,sg2000-clk"; +}; + +&sdhci0 { + compatible =3D "sophgo,sg2002-dwcmshc", "sophgo,cv1800b-dwcmshc"; +}; --=20 2.45.2 From nobody Sat Feb 7 05:44:14 2026 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E2673156677; Tue, 9 Jul 2024 10:07:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720519650; cv=none; b=DRADQNkC34yMG1SEGZdBV97eK4OcI9+whWZr0kYXh1oHp5v1LJdP9/pLPHUKfofvXHn6z5WGWF6umCcr1wXy/sNbaOsz3vih+0mq8i3gnQHZAuiL3R0zA/zfKrqvaL7/kHSjWuojV4utRwzD3wlKp58sAK9HQjT/QVIlRI0JTkw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720519650; c=relaxed/simple; bh=5KKw6M74A/DclraUTuoBJCsigKAUo94+LXOXkaaNZcc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ysezp/X4hLQVaSIH/lqRDP6dOcLLOpVNMJPtd6+PtJE7QQQWF90Hn/ccDimT15c3H4XATnSAQvebhXapDeDefmUyAxh6hZGnigNatIXzYQpTSPVh3usVdT35fK2uV1ceECvVBdeWPJA7lzHsPr07ykgkCCkBPC2wTcI4nHxgo0U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=OG5NbqLD; arc=none smtp.client-ip=217.70.183.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="OG5NbqLD" Received: by mail.gandi.net (Postfix) with ESMTPSA id 89A6C4000D; Tue, 9 Jul 2024 10:07:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1720519646; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ES8mi7d+KSw4EqedKB92e7v4sIMF0mwW3Ict+VP51AU=; b=OG5NbqLDCZjIVYYEUEpydKqEgnUS2ISHAhyus72wN8mPU9VLi8sNlv2ZeyIq+gaPg/twZO DSk9KwzEfjEtR/MVQPOBArnRqobi0nK4vodab2PZIGka9JLfE/yWCZnFbBEbNWFlvIfkIl rNholjGdHPOw+N8qT1cQF9VPoKXbVb86Q6Ik0ItnuAuu6VUbMMyZEBNHsDXwpTGkDhk130 1FUzp2yeuX7fVYc2xjRgrB+7JpCSdV6zwyIxeGrxbo0j4+JmIERL6Ovy6psxcDMkhBv2y/ NOme7KpDrtvuNmv4ifF5hitt6J0ZsfvMHfyAEAghDIYngs7x6GIdY5A3TkdI+w== From: Thomas Bonnefille Date: Tue, 09 Jul 2024 12:07:20 +0200 Subject: [PATCH v3 5/5] riscv: dts: sophgo: Add LicheeRV Nano board device tree Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240709-sg2002-v3-5-af779c3d139d@bootlin.com> References: <20240709-sg2002-v3-0-af779c3d139d@bootlin.com> In-Reply-To: <20240709-sg2002-v3-0-af779c3d139d@bootlin.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Chen Wang , Inochi Amaoto , Chao Wei Cc: Albert Ou , Palmer Dabbelt , Samuel Holland , Thomas Gleixner , Daniel Lezcano , Thomas Petazzoni , =?utf-8?q?Miqu=C3=A8l_Raynal?= , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Thomas Bonnefille X-Mailer: b4 0.14.0 X-GND-Sasl: thomas.bonnefille@bootlin.com LicheeRV Nano B [1] is an embedded development platform based on the SOPHGO SG2002 chip, the B(ase) version is deprived of Wifi/Bluetooth and Ethernet. Add only support for UART and SDHCI. Link: https://wiki.sipeed.com/hardware/en/lichee/RV_Nano/1_intro.html [1] Signed-off-by: Thomas Bonnefille --- arch/riscv/boot/dts/sophgo/Makefile | 1 + .../boot/dts/sophgo/sg2002-licheerv-nano-b.dts | 54 ++++++++++++++++++= ++++ 2 files changed, 55 insertions(+) diff --git a/arch/riscv/boot/dts/sophgo/Makefile b/arch/riscv/boot/dts/soph= go/Makefile index 57ad82a61ea6..47d4243a8f35 100644 --- a/arch/riscv/boot/dts/sophgo/Makefile +++ b/arch/riscv/boot/dts/sophgo/Makefile @@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_ARCH_SOPHGO) +=3D cv1800b-milkv-duo.dtb dtb-$(CONFIG_ARCH_SOPHGO) +=3D cv1812h-huashan-pi.dtb +dtb-$(CONFIG_ARCH_SOPHGO) +=3D sg2002-licheerv-nano-b.dtb dtb-$(CONFIG_ARCH_SOPHGO) +=3D sg2042-milkv-pioneer.dtb diff --git a/arch/riscv/boot/dts/sophgo/sg2002-licheerv-nano-b.dts b/arch/r= iscv/boot/dts/sophgo/sg2002-licheerv-nano-b.dts new file mode 100644 index 000000000000..fc98b6a0ddf7 --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/sg2002-licheerv-nano-b.dts @@ -0,0 +1,54 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2024 Thomas Bonnefille + */ + +/dts-v1/; + +#include "sg2002.dtsi" + +/ { + model =3D "LicheeRV Nano B"; + compatible =3D "sipeed,licheerv-nano-b", "sipeed,licheerv-nano", "sophgo,= sg2002"; + + aliases { + gpio0 =3D &gpio0; + gpio1 =3D &gpio1; + gpio2 =3D &gpio2; + gpio3 =3D &gpio3; + serial0 =3D &uart0; + serial1 =3D &uart1; + serial2 =3D &uart2; + serial3 =3D &uart3; + serial4 =3D &uart4; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; +}; + +&osc { + clock-frequency =3D <25000000>; +}; + +&sdhci0 { + status =3D "okay"; + bus-width =3D <4>; + no-1-8-v; + no-mmc; + no-sdio; + disable-wp; +}; + +&uart0 { + status =3D "okay"; +}; + +&uart1 { + status =3D "okay"; +}; + +&i2c0 { + status =3D "okay"; +}; --=20 2.45.2