From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 63D90386455 for ; Sat, 25 Jul 2026 17:54:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785002043; cv=none; b=T+sYeY2mdmJkSn7mwUWkBHvVyL0QZspUGfEY6ihINzcnPbu0KuW8Zut/MvZR4Iu2P2RDJxA7tgqzgRAcVmwG8uhg9HMpE/HnDls4TUFT6nw6hZWv9Fwzp0uF+E3Q1KWB0cGZCYHBmr/nfmfvOPKBbBcOX0QFYvalkdPk9yIWqPQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785002043; c=relaxed/simple; bh=PgY5V9wkbclA+xJPj1VTGEdLzAUS075xKSE9DUA5oFs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lweb6z0jiZt/Xv+oK3yGtV09q0JssIq04onXM9doleU0s3n6/9Oc+J3kJB8Q9jC8VNTRsGM1fRxdgGYH8XZfcqjToIhn9QX6Rq27ivVZwWc5JfBuwjd3d7hifJlJu8ZHOMWS39sj2JdEy6N3pJHs2UZH81HWlgzHjEycJ4j1fz0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=B7j8k/ol; arc=none smtp.client-ip=209.85.215.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="B7j8k/ol" Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-ca957338f14so175467a12.1 for ; Sat, 25 Jul 2026 10:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785002042; x=1785606842; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=arLGFyNMfHQJBHgn81ki2JloWGKnqNII6+t2+DnkNZM=; b=B7j8k/olfKGN5l/OsBDI+qVTYnm41YEnRfVxIdKO+p2G5Rmp4skhT5sQV4VjE/W2HZ 7OCm2oVJP+7h5fN9rsqbRLd4oNtPOwzirC+w1eI0TTEjRi3IGxqz4jxNc2S3F9NHU6df 8WLJ+Kw0JHaoPKIurZfh7280eAbzUq6eUiqggH5L6JpX513W9il1EviyV1b48ElOQWu9 KTXz3Yu+K91lpNrf7GGsj/PhzA3mn+DU3vVqCFr58Ps+syGxNTdLoMLRNqXB1EnZcYdY pkqagsOgekgyxaj9HGcoF4tj41SEkkby+Ht5fe+BDM/F46IGekLFvOBAFrgwHnWz1eoI uYJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785002042; x=1785606842; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=arLGFyNMfHQJBHgn81ki2JloWGKnqNII6+t2+DnkNZM=; b=V3g0ncvjtwLIU/vEQ9BZCzQp2cHGf0PRtLs4MJl+XkjHUR8w1+r2yB6vGGRGMZ/9Ko 9dB62xwl25E6wK+hEwpyrnEaDUT9GNqTLUO9Kx5t5wg/5VUByWBRlKDe1k4fSiCm7HN8 c8zlpbSZZIbsXRExa9m33W7JaIViYdsphkhUSwD3QYl/l+TDL9hwPWt+0zZwUYVnyUAm Yn0RdOz2UT9XQc2yDwEQGh5A4bvGsitztw6tke58rxSHopi1+dLtEoN0XRSiWLb3hH6Q 6+w1icpElMthpCRv4mPi4QdruyjazeTlQi4DMUgVTJYlmHPOzFoLwM+V8DG//8joP2r5 gJIw== X-Forwarded-Encrypted: i=1; AHgh+RoSFPfdtg0l6DWc+J4zoIffJGcpaLI3AAN55mX4tgtdcMp74hw51wMqJNjzNui5bFAqWbCVN38=@lists.linux.dev X-Gm-Message-State: AOJu0YwuvA+gkOoFkkXE7kqH4n02PTNY8tuZ+KgYJOcUbnNWA/mPlK9i gLw/LlIFmc2dVf7DWgF1wjyEDhc+4rxligGYEumAzOTmB71D84ZXs8lK X-Gm-Gg: AR+sD10AceUVHm5ElJi9KKg5m+D8NpR72b360602xks1VvktTL7mJdA+QudU4Gi9AXV 6gVVa2Wb+4MbMzgHt/YPFn/cKGswk+NeKXjZ3NRSLFGkFjLzWd7ChSQoHJw+nuZAoXFrVjE/W2y AnjxbunAkegSax/Ljm64asa1fgkSc5grFZiH7N03rPDUmLCKYDTDLuyGpCnzcdu8kc3LJ1V7+Eb HpFi1jnkDu6YM1V7dCyFIieWnOrqxXBvYtfSy5HrHv2E0g//7HbBFI9/Y5e2d2duVMsQHgnGwlh ZPQAB0agsy5OwHBT6X3F8HFR9Khddipnw5J+W4vp7FLvgOXo1nOplqQJf3jV2eitVdvvgJXAMgV gSYYIrJYpEWF+eNnncBKbsCSxtPq48+YsmyhF34AHYSuCvp7jAUNYZ80+MIXIeLtv1ilCKtpUBT +ZlBEWZ4EUhPLOAVgfmVO4mQoORK8c9r0Oe1lB9atS84tktM9eFvrZpJbXlxMZrke9j8FWDzoqV VyHPVlQ6Q== X-Received: by 2002:a17:90b:53c8:b0:381:2788:a437 with SMTP id 98e67ed59e1d1-38f293cfc02mr2206115a91.1.1785002041668; Sat, 25 Jul 2026 10:54:01 -0700 (PDT) Received: from chenyou.hitronhub.home ([2407:4d00:cc10:114a:3b0:934a:d409:94fe]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-38f031d1d6csm3005276a91.0.2026.07.25.10.53.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jul 2026 10:54:01 -0700 (PDT) From: Chen-Yu Yeh To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Chen Wang , Inochi Amaoto , linux-riscv@lists.infradead.org, sophgo@lists.linux.dev Cc: Chen Wang , Chen-Yu Yeh Subject: [PATCH v5 0/3] riscv: dts: sophgo: Add Milk-V Duo 256M board support Date: Sun, 26 Jul 2026 01:53:42 +0800 Message-ID: <20260725175346.139173-1-chenyou910331@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: sophgo@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Milk-V Duo 256M is a small form factor development board based on the Sophgo SG2002 SoC. This series adds the board binding, the PWR_GPIO controller node for the CV180x/CV181x family, and the board device tree with support for the UART console, SD/MMC, USB host and the onboard blue status LED. Tested on actual Milk-V Duo 256M hardware: verified boot to shell, SD card rootfs mount, USB host (root hub detected) and the heartbeat LED, both via the default heartbeat trigger and manual sysfs control. A U-Boot series adding support for the same board [0] refers to this series as the canonical device tree, and intends to switch to the upstream kernel DT once this lands. [0] https://lore.kernel.org/u-boot/20260710-add-milkv-duo256m-v1-0-0f761100361d@baylibre.com/ Changes since v4: - Fix the coprocessor RTOS reserved region in the board dts. v4 carried over the address from the 64M Duo (0x83f40000/0xc0000), which sits at the top of 64MB and is wrong for this board. The vendor device tree passed by the bootloader declares memory as <0x80000000 0x0fe00000>, i.e. the firmware keeps the top 2MB of the 256MB DRAM for the RTOS, so the region is 0x8fe00000/0x200000. This matches cv1812h-huashan-pi, which has the same amount of DRAM. Verified on hardware: OF: reserved mem: 0x000000008fe00000..0x000000008fffffff (2048 KiB) nomap non-reusable region@8fe00000 (Reported by sashiko-bot) Changes since v3: - Move the pwr_gpio node in cv180x.dtsi to follow unit-address ordering, placing it between usb@4340000 and rtc@5025000 (Inochi Amaoto) Changes since v2: - Add the PWR_GPIO (porte) controller node to cv180x.dtsi as a new patch, instead of dropping the LED node (Inochi Amaoto) - Restore the gpio-leds node for the onboard blue status LED - Add my copyright to the new board dts - Drop the unrelated Makefile trailing-newline change Changes since v1: - Removed the leds node because &porte was not supported in cv180x.dtsi (reworked in v3) - Retained the &usb node because it is already defined in cv180x.dtsi Chen-Yu Yeh (3): dt-bindings: soc: sophgo: add Milk-V Duo 256M board riscv: dts: sophgo: cv180x: Add PWR_GPIO controller riscv: dts: sophgo: Add Milk-V Duo 256M board support .../bindings/soc/sophgo/sophgo.yaml | 4 + arch/riscv/boot/dts/sophgo/Makefile | 1 + arch/riscv/boot/dts/sophgo/cv180x.dtsi | 18 +++ .../boot/dts/sophgo/sg2002-milkv-duo256m.dts | 121 ++++++++++++++++++ 4 files changed, 144 insertions(+) create mode 100644 arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts -- 2.43.0 From mboxrd@z Thu Jan 1 00:00:00 1970 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 4367AC531D0 for ; Sat, 25 Jul 2026 17:54:23 +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:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=fGofvPDTvtnzOhXAoTb1mfKnS7e55Y6bTtWxaAyc3eM=; b=VOlLUfSd/zuqH3 /2Snun7X7B/jJCBgEmjatRuhyzEsA//cbDfOMbdao8y+v0nOXxft4emBFrFno2oK/1zhDRa4XMQpq qgxGCJRjbBwMEq+I/Got7wiB80gQ0Ano7trqtINRoY/4hvZOO+lRskJIR2vJQGxTNYcZoggWYVkwg QnB31UEhlBrYb1BX5utMnkjGos9nzOS5uKvvRRPfftGMHz4fU+MhjGwwtwTaIinBAlW/VF1//g/DO VJWKZWlrp32tX0tCifGgPniw2lrdBdKx1SMsBl1oXv0zC5ZpDxX8FAAN2xFloG3wvJ5HwQXairfGt DeoKm9aAHs2WHk8cF//g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wngZZ-00000000ce4-39HC; Sat, 25 Jul 2026 17:54:05 +0000 Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wngZX-00000000cdW-1R9f for linux-riscv@lists.infradead.org; Sat, 25 Jul 2026 17:54:04 +0000 Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-cb20b0a387bso178878a12.0 for ; Sat, 25 Jul 2026 10:54:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785002042; x=1785606842; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=arLGFyNMfHQJBHgn81ki2JloWGKnqNII6+t2+DnkNZM=; b=cVKRwYklcHImD9HM2tszAwcUDvYfVeCXruRA3Is6phjacodOa4lwvgMh6yMbk3khOz DP9FZkXUMY1xzRW9bn8IbTYnzi7bxNbbwRItrLGQRLjAodcYDYeZReaNVuefz/fOb+UB RIlGhXWRiR0LVcz7bfkFzofEoCHBIbH3G409qWVuhapD7ZSPg358f1z31P0Fv2mFeKHW voCWcebndsr+N91TMRhIubDh32lb9uqxkt2Ojb47bVmtnp5tnNoSDxo8Zo52Tn7lRK3+ spS0Y10DNiCP6hecO8PMT1Udp2UiGUGLhFCkcsOMO94YIIESuAlVq54L0x0ENGyvyX4T GxUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785002042; x=1785606842; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=arLGFyNMfHQJBHgn81ki2JloWGKnqNII6+t2+DnkNZM=; b=iYeGeA7JmanCn/ZfKLhzHp6/iwouyjAloF3DY/R6Pe3IthWoE/zIvq8n20e8qsG37w c5FnTdVS9Dyj7tqxuOWqnucOiq+DG5E2QpJLmpF8tXtHDPaaeOZxnzEn2CdhETGR05Ek qby5mtOpq+FgkPo5tEeE8Gdsishsrhx+4xVCY/+gmro57MS3pFGxCakmnMFRybNElLHO KePHeMvQmZheZElGALQVDGG59RIDf+H7O7k6pl1PGBIdwTL18u+lXEqUSpCX7kAu+Bkc +S8Zr28urTqMBWm8EmRNk73arNY+KxtIu9YHGroKY+yv706hKw+zJ0hGJhIBaFg6jrKe WzaA== X-Forwarded-Encrypted: i=1; AHgh+Rpr2RBA4qINvCBBGJ/iAj43C/39o4/szdyyRUgmlbD5zTobrVJJlV5Uyo4HKVDl97I+/JVRz5x5wP4qJw==@lists.infradead.org X-Gm-Message-State: AOJu0YzOST26pb9J+Gh4vvkiB620HffKgbLw082yiWV9Rxivn4RcPIMn 7f5b5W7Rd3OyiMuGReXMSyBZ40yerWOTWDJ2xWQu4H1yAKLGV2kUSXBn X-Gm-Gg: AR+sD12gvvOLx3m7kmBLGDLVBzhU9I2dRiuPr3QjJcLQBD8uOfFUD3/AwxWSVGzA0Lh 40zO8Rn9YVWkgsd+RXn2tvcyVSCnSsuM67AOve0kfcZrUvalMDv7um/t+DI5ZTTXfIn1DJMRrdT ROArge5vIJH9hboENF00Mjfl3mKwSoXjW1eyST3v4Oe8glzFzcE6SMmgkNzBbAp7hk2kT0xvbId ImpdyUHJVvgKFSraBHLSUev61TZKcW5DGyJhRaLv4fg2ssdivwYEgVNQbaCPs8I638lI8q5QpG1 LIoJplCr4drv8nQkINg83e0ZLsQSOqzzJncvZkkjOI8dqONkdmvgEUFq/Fzo6+tKmk5V4+vcWHP 9n6SS0JOEfy87GEbHrekG9mHiQp0MF1EDCXfuMn1A4teP3Zp7yZ8x5MJTfORGke5UF0HBQHFg// i+ZAbMlRkWGv7v6sOVsWyMqLsA/dKKnQNdhEY0yHiNadAmN5GODAKLh6JMkm9plhVsGrAdXO42y XBfVZ1sww== X-Received: by 2002:a17:90b:53c8:b0:381:2788:a437 with SMTP id 98e67ed59e1d1-38f293cfc02mr2206115a91.1.1785002041668; Sat, 25 Jul 2026 10:54:01 -0700 (PDT) Received: from chenyou.hitronhub.home ([2407:4d00:cc10:114a:3b0:934a:d409:94fe]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-38f031d1d6csm3005276a91.0.2026.07.25.10.53.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jul 2026 10:54:01 -0700 (PDT) From: Chen-Yu Yeh To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Chen Wang , Inochi Amaoto , linux-riscv@lists.infradead.org, sophgo@lists.linux.dev Cc: Chen Wang , Chen-Yu Yeh Subject: [PATCH v5 0/3] riscv: dts: sophgo: Add Milk-V Duo 256M board support Date: Sun, 26 Jul 2026 01:53:42 +0800 Message-ID: <20260725175346.139173-1-chenyou910331@gmail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260725_105403_408399_50CB8D5C X-CRM114-Status: GOOD ( 13.38 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org The Milk-V Duo 256M is a small form factor development board based on the Sophgo SG2002 SoC. This series adds the board binding, the PWR_GPIO controller node for the CV180x/CV181x family, and the board device tree with support for the UART console, SD/MMC, USB host and the onboard blue status LED. Tested on actual Milk-V Duo 256M hardware: verified boot to shell, SD card rootfs mount, USB host (root hub detected) and the heartbeat LED, both via the default heartbeat trigger and manual sysfs control. A U-Boot series adding support for the same board [0] refers to this series as the canonical device tree, and intends to switch to the upstream kernel DT once this lands. [0] https://lore.kernel.org/u-boot/20260710-add-milkv-duo256m-v1-0-0f761100361d@baylibre.com/ Changes since v4: - Fix the coprocessor RTOS reserved region in the board dts. v4 carried over the address from the 64M Duo (0x83f40000/0xc0000), which sits at the top of 64MB and is wrong for this board. The vendor device tree passed by the bootloader declares memory as <0x80000000 0x0fe00000>, i.e. the firmware keeps the top 2MB of the 256MB DRAM for the RTOS, so the region is 0x8fe00000/0x200000. This matches cv1812h-huashan-pi, which has the same amount of DRAM. Verified on hardware: OF: reserved mem: 0x000000008fe00000..0x000000008fffffff (2048 KiB) nomap non-reusable region@8fe00000 (Reported by sashiko-bot) Changes since v3: - Move the pwr_gpio node in cv180x.dtsi to follow unit-address ordering, placing it between usb@4340000 and rtc@5025000 (Inochi Amaoto) Changes since v2: - Add the PWR_GPIO (porte) controller node to cv180x.dtsi as a new patch, instead of dropping the LED node (Inochi Amaoto) - Restore the gpio-leds node for the onboard blue status LED - Add my copyright to the new board dts - Drop the unrelated Makefile trailing-newline change Changes since v1: - Removed the leds node because &porte was not supported in cv180x.dtsi (reworked in v3) - Retained the &usb node because it is already defined in cv180x.dtsi Chen-Yu Yeh (3): dt-bindings: soc: sophgo: add Milk-V Duo 256M board riscv: dts: sophgo: cv180x: Add PWR_GPIO controller riscv: dts: sophgo: Add Milk-V Duo 256M board support .../bindings/soc/sophgo/sophgo.yaml | 4 + arch/riscv/boot/dts/sophgo/Makefile | 1 + arch/riscv/boot/dts/sophgo/cv180x.dtsi | 18 +++ .../boot/dts/sophgo/sg2002-milkv-duo256m.dts | 121 ++++++++++++++++++ 4 files changed, 144 insertions(+) create mode 100644 arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m.dts -- 2.43.0 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv