From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj2-f38.google.com (mail-pj2-f38.google.com [74.125.227.166]) (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 6412544DB7B for ; Mon, 5 Oct 2026 09:38:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.166 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791193104; cv=none; b=qqtf6f2eW4LdNrAzUhW87UbpIgrsFSw9l3hQEHfmxhYniug2cNInWkdf734SKAphS3tYqJJne0h9UI1lUj0FEWxqfvnyKlSOkfxMObcju76VrY6zwAZzOavi/257miYcIfqUJTt/eGIDoXBNC3kp6DY7aGDZp/KdARJ9czg3hjU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791193104; c=relaxed/simple; bh=xqP/CkkXDKW6WUx5r2Zm/NU9mTw5OptnDKy0fMjk3j4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JsMyBzqc5HttVKyx5ldxFBEePR/ngreQ7bx10LBSCIzyolCCBglVofOsmfMpaRfoY6rutkifmQqEwhySXhhhB0qXNi/rg2kXUMbDWea9cUseJtk44kH4HIu8oQ7sSKJMepKu2N7Wf4JIf1Yc0pQQntgAQaCUbOKFx/0MPHqnQjY= 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=iAdpCTds; arc=none smtp.client-ip=74.125.227.166 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="iAdpCTds" Received: by mail-pj2-f38.google.com with SMTP id 98e67ed59e1d1-3a4bbc51755so102263a91.1 for ; Mon, 05 Oct 2026 02:38:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791193083; x=1791797883; darn=vger.kernel.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=pizd1CDxJLDh2tlooS3lUpX6Wou0K6RZNg4IvzQLo10=; b=iAdpCTdsr/Ro+qABdpkD3fODmrJ3U6rrGUyn1TaZB5rPk+q/YG0MzHnXi5T47Pg6xK 4bcdSz66WTZAKGH1jSUV7vlVQFhxi1RURdLGBwoQwgfkgRyVXqYInUanMqz/tnt3OeE+ MGACTXtAg3jmDdy/zisYkwixbRPVFEo8m6y/p5gAJzjkHewB8WSTKP57/KHY9NUCfCMn u0upBnlH7u3E7ViU8taxNof52DVIN2uR5O+RMoN2AwWUSoXpmHx79OSVEJEj/xkfYf8O cMUBttCRsfB8EJVkQZYXYCBt5xlCx40HK48FG8jNsuEUStA8CYODddOJ025LXsp8Vwho XtuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791193083; x=1791797883; 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=pizd1CDxJLDh2tlooS3lUpX6Wou0K6RZNg4IvzQLo10=; b=Y6ZfPyRhO18ek0LZe7L/nen5ZueAfINSQLvTwC3NOMuFLU0g8duUjNZnzT5XIff0/8 SOo8LOVp231pHWRS3E5otwpfISQzZllGS3RHyAClzyHvr4VPKGw3cR1JESySjy0EUD0u 6MC3TZeOEG9OaZA2pF2+AQ1gZVcg729E/fExRg0Ntcdz3plBihGNKyTpKX3h+/DxXzK3 eAEMvdlCiu+ps9R1mnRJdwWMjMVugyIzyXfZftMwcI4Nsm9n22eC5iXWReOFFrkgjULr YYlo9JlNPb9VW68jyLLb0GJZzgwcIVTkICxquuT1ap/pkdXXAB9/CcJvQqWcSEM1Uk23 ywYQ== X-Forwarded-Encrypted: i=1; AKwUvBwBHFj6CZKWkTqg1myTJhj2/1DQgC2A4uJzz68fLHd35V9NRZk6oDYCLSBBwTtgyHD9LrX6K3jnc8L6@vger.kernel.org X-Gm-Message-State: AFq9FYIDAjKD4xk/N/7GU1w8IcLNiewYg6uRWT/yvk4Iv3wcaySGZHSL P7VshPxo0fFVxd4UytdKvGaYYa5ReDZI+6zVMusHE+SJB/CSOq727LJC X-Gm-Gg: AYBFou3tz0O1PBltek2IiX1lJHX5w0tCmCad3m7Byvi+rqC312sTi6Zh1GuOZlGAETo GYRfXqTjIjKGGgXCJGdOkfqx2icCjnjUPEFWh93mkTrFtNe6IdrBHTFt2cFMxuI0LtIfg0vXUw+ /Y1QPj3egbEljTIJY2kijK70/qFaDQXs1xjb9BBWlBPnqg7iBZjlEhxDjK5XyKMLXukB+ZBJ4fJ yonQdg0QptQ2m7ubiXprrMlodn+99RT3QJ0ssSjLi5pboAs9eSdEUp7ETQ9oarjZGLujvvEQXLD i+0msLQudcNVRpdouq1yKFamwgTk5wMp1KIMh9jNcZu6zYz7itpcfGgK6Mehlb0hTOJ4Dhdxw/E BdgyzL56J4O8nm5CHoMFv3HANaVecJPqaB1T5nzg1T1pcvFC220otPRpIxD/sSM9mN5cNsVPUqR irui79e560d9Y0qPaxc6goea2N79vh2u0MYUfYe1Nnv9TKbHSXvsvzattgsQMpSqV2TzuMZZRtE 7JoaMAaQVlQF3uZAM8wBLkMuTHjlE+Wi6N7uAs/5hNGGnxa3pLHlu4NeQ== X-Received: by 2002:a17:90b:4f87:b0:3a8:1759:2217 with SMTP id 98e67ed59e1d1-3a81759270amr2038440a91.2.1791193082911; Mon, 05 Oct 2026 02:38:02 -0700 (PDT) Received: from chenyou.. ([140.116.39.229]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3a78e42026fsm10568067a91.3.2026.10.05.02.37.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Oct 2026 02:38:01 -0700 (PDT) From: Chen-Yu Yeh To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti Cc: Hiago De Franco , Longbin Li , "Anton D. Stavinskii" , Joshua Milas , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, sophgo@lists.linux.dev, linux-kernel@vger.kernel.org, Chen-Yu Yeh Subject: [PATCH v3 0/2] riscv: dts: sophgo: Milk-V Duo 256M ethernet support Date: Mon, 5 Oct 2026 17:37:47 +0800 Message-ID: <20261005093749.645014-1-chenyou910331@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Milk-V Duo 256M has no Ethernet connector of its own; the SG2002's internal PHY is only usable through the optional USB & Ethernet IO board. This series adds an overlay for that board and fixes the name of the internal PHY node it exposes. Changes in v3: - Rename the PHY node to ethernet-phy@1, as the commit message already said; v2 only changed the unit address (sashiko-bot). dtbs_check now validates the node against ethernet-phy.yaml, with no new warnings. - Drop the blank line in the trailer block of 2/2 (Hiago) - Collect Hiago's Reviewed-by - Keep Inochi's Reviewed-by on 2/2, since the only change is the node name Changes in v2: - Enable Ethernet through an overlay instead of in the board devicetree, since without the IO board the pins may be used as GPIO (Inochi) - Send both patches in one thread (Inochi) - Test link-up and traffic on the IO board, which v1 could not - Collect Inochi's Reviewed-by on the PHY node name fix The overlay has the same shape as Hiago's for the Milk-V Duo [1], so the two boards stay consistent. The PHY node name fix is in cv180x.dtsi and so covers that board as well. Testing, with a kernel built from this branch: - sg2002-milkv-duo256m-eth.dtb: eth0 comes up at 100Mbps/Full, gets an address via DHCP and passes traffic - sg2002-milkv-duo256m.dtb: no eth0 is created, and the gmac node reads back as disabled Kernel log with sg2002-milkv-duo256m-eth.dtb: [ 1.426499] stmmaceth 4070000.ethernet: User ID: 0x10, Synopsys ID: 0x37 [ 1.426536] stmmaceth 4070000.ethernet: DWMAC1000 [ 6.052829] stmmaceth 4070000.ethernet eth0: PHY [mdio_mux-0.0:01] driver [Generic PHY] (irq=POLL) [ 8.138131] stmmaceth 4070000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx # ip addr show eth0 2: eth0: mtu 1500 qdisc mq state UP qlen 1000 inet 192.168.0.47/24 brd 192.168.0.255 scope global dynamic noprefixroute eth0 With the base sg2002-milkv-duo256m.dtb: # ip addr show eth0 ip: can't find device 'eth0' # cat /proc/device-tree/soc/ethernet@4070000/status disabled iperf3 against a desktop on the same switch gives 94 Mbit/s with the board sending and 70-74 Mbit/s with it receiving, with no retransmissions either way. The receive side being slower is not a CPU limit on the board; I have not looked into it further yet. v1: https://lore.kernel.org/sophgo/20260803163323.74414-1-chenyou910331@gmail.com/ https://lore.kernel.org/sophgo/20260803163427.74445-1-chenyou910331@gmail.com/ v2: https://lore.kernel.org/sophgo/20261003084627.353899-1-chenyou910331@gmail.com/ [1] https://lore.kernel.org/sophgo/20261001-milkv-duo-eth-overlay-v1-1-78bc1454f35b@baylibre.com/ Chen-Yu Yeh (2): riscv: dts: sophgo: add Milk-V Duo 256M ethernet support overlay riscv: dts: sophgo: cv180x: Fix internal ephy node name arch/riscv/boot/dts/sophgo/Makefile | 3 +++ arch/riscv/boot/dts/sophgo/cv180x.dtsi | 2 +- .../dts/sophgo/sg2002-milkv-duo256m-eth.dtso | 17 +++++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 arch/riscv/boot/dts/sophgo/sg2002-milkv-duo256m-eth.dtso -- 2.43.0