From nobody Wed Oct 8 15:58:29 2025 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (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 7C8F225C6FA; Thu, 26 Jun 2025 08:01:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750924875; cv=none; b=ZWb6jsWVGn1XBQK2LX03JZlMOjycqGasrE08K7Ay4G1FxKjVvrqUDPxRV1jJKq1yEJmNuka5aKKkOdkDUrZdtlBZR5YtpO+4iiThwa9uiUIub+NsZuwNTGCj6RdjoHcPNsSa1ZmyKXommwpjrZlU+s5urRmR+u1XyZp3czaDXcI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750924875; c=relaxed/simple; bh=Zf9YtBRoyG1fXgqH+qYiZixnKJmXnCz2BxV3aQe2Ago=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XbXpDBGPksUwxnBuWIvOdhuA0lS6+HSsIoDKECpvWwc6UrtyLNu4D+2+Un/P6vLE8vu8NHQRiHrVmQUBTNIfJ/pPGjY97YaBuO0S9HGmP0nvXSVjUB8bSLArOUVj9FD+dxn3Vx1QVHi7dfXnlm+dIwIUYPrtczf9O1hsrWnSjYA= 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=D6QA/HZg; arc=none smtp.client-ip=209.85.210.178 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="D6QA/HZg" Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-748d982e92cso590794b3a.1; Thu, 26 Jun 2025 01:01:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750924873; x=1751529673; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=w6V/oR/DnwI2Qi+5VQkNfiNRfkRvGXnx3kp/m9SpAb0=; b=D6QA/HZgZ81oHY6+JIEhjVX3agXk3rI3dP2OzvrgGdMFpl+H/HzhLs1pffTavanFKe DTpYhs4mQyu2VAKJaIjq6P4Ap2l/4AwbgtWGD2nTe0cg1k33DVeFv1LEeOMzfGUUxj8N SUwfdHerygmldit/NoqLQVcH8vOc/X9BFPBw6T2ulJkiiwC4T3I/LY1W3QBTSs8lHj4q DxXyFyFfOPDeY3S+H2GV41GOyZmJsrxkBwZ44PBylWEsSdFnnTiWg/l5kZ5ZH+PRRWF+ gaIM0yXlwL5fS9bsy1vOlO8lVebLIpgiT3QHG5mw2OYrx+fze8xDVIcaWH24I7vhPCfJ Ru9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750924873; x=1751529673; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w6V/oR/DnwI2Qi+5VQkNfiNRfkRvGXnx3kp/m9SpAb0=; b=gnLaubA+MoKsTFxI9rAin4Av9M/3Qn078izFMNgwIim6XckyQkHZ/9BVfkviNRbHcc Ce2IbfoFBR8BLFfmh8mldduvaOclypPBWerKKlk7W960+yzMcP1ewsIiLI/yULrVOT+D wVJBlvSC4RPgPkdEWho4nDutTZs9qS7zQYhARSFCChdM2jZ71op8pfLiRTJdRz4K5k1T dlGBHhreUrVu3cDA7Z97aOAFoF9UrMrZTQi1GrhtuNUToaCnqTgUX7PjM36AKwXUH4ui omUD+poFBiYdcAs4x8Cunxn8QA2YpaiGzeYxSB+foSGEejeaB62vGybBOKkrEFdOuUoj eDQg== X-Forwarded-Encrypted: i=1; AJvYcCVUbuNaWpYKT3//Dz9tPtm7TiQ2YnQR1kOJRcb9TSRqfVdBVHJ5R8ushqhzksqNuWImneSr7+Ptu9HrnlD1@vger.kernel.org, AJvYcCWbyWNvqJM05C6ZVW7QqCcPdviDekT0MQV0Rb6AfkIDPKtHX9XIEJJe8LqlDhnDQVItsh8hy5HuJ+1L@vger.kernel.org X-Gm-Message-State: AOJu0Yzn2naS/GLNVZAxf8Bg1feVdVpH9+BgDSPlxfwqseb4Prko/kFe 8cZtz1ndF9xwBRRK5YCze5v+H8WLKLuE4EuVWGUYg/84tg9g18bkhW8I X-Gm-Gg: ASbGnct5ayQR72/QP1tzPZRIqlElAs0liSr3Tr6UMOtd1xqF2RtC8AxuCHV/BOTOqw/ DVPTJ1xCeS9V0d5O89AymK19EwrF1w4hQmTVX2jcd9mBAcBcBE0gUFCzZFlOL5U6Sa/uvX8j8bJ lzOo40i2MkqeQmcdpXS8nf7lTsoJdSTE86o7XVCAaZRjgPxfvcBvSvkUJX2eLVSrhjcPkLslzkR cAdmKsky3Xe/7TbmJyAh9Bqu0bkGin82E1xhdwDlw5rdUskv92WHeJe34WiYEEdyTTaogDLuN+z tLWPrfKy+ig/1gCAoHvVNd2490/UaXzewMnKgyFnIbja4y3r0+HHTnra3icFVw== X-Google-Smtp-Source: AGHT+IHj+Op94mzlo16js4gRYFsEOUzqX/RPIICMR4H1DzKdZ+5MaSCW3aQOPebkZZvTUcK0EQmzrw== X-Received: by 2002:a05:6a21:103:b0:21a:e751:e048 with SMTP id adf61e73a8af0-2207f289a0emr10750457637.35.1750924872745; Thu, 26 Jun 2025 01:01:12 -0700 (PDT) Received: from localhost ([2001:19f0:ac00:4eb8:5400:5ff:fe30:7df3]) by smtp.gmail.com with UTF8SMTPSA id d2e1a72fcca58-74ad63d3facsm3799107b3a.102.2025.06.26.01.01.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jun 2025 01:01:12 -0700 (PDT) From: Inochi Amaoto To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Richard Cochran , Alexander Sverdlin , Ze Huang , Yixun Lan , Thomas Bonnefille Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, sophgo@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Longbin Li , Conor Dooley Subject: [PATCH net-next RFC v3 1/4] dt-bindings: net: Add support for Sophgo CV1800 dwmac Date: Thu, 26 Jun 2025 16:00:51 +0800 Message-ID: <20250626080056.325496-2-inochiama@gmail.com> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250626080056.325496-1-inochiama@gmail.com> References: <20250626080056.325496-1-inochiama@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The GMAC IP on CV1800 series SoC is a standard Synopsys DesignWare MAC (version 3.70a). Add necessary compatible string for this device. Signed-off-by: Inochi Amaoto Acked-by: Conor Dooley --- .../bindings/net/sophgo,cv1800b-dwmac.yaml | 113 ++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/sophgo,cv1800b-dw= mac.yaml diff --git a/Documentation/devicetree/bindings/net/sophgo,cv1800b-dwmac.yam= l b/Documentation/devicetree/bindings/net/sophgo,cv1800b-dwmac.yaml new file mode 100644 index 000000000000..8abd2cf06e2c --- /dev/null +++ b/Documentation/devicetree/bindings/net/sophgo,cv1800b-dwmac.yaml @@ -0,0 +1,113 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/sophgo,cv1800b-dwmac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sophgo CV1800B DWMAC glue layer + +maintainers: + - Inochi Amaoto + +select: + properties: + compatible: + contains: + enum: + - sophgo,cv1800b-dwmac + required: + - compatible + +properties: + compatible: + items: + - const: sophgo,cv1800b-dwmac + - const: snps,dwmac-3.70a + + reg: + maxItems: 1 + + clocks: + items: + - description: GMAC main clock + - description: PTP clock + + clock-names: + items: + - const: stmmaceth + - const: ptp_ref + + interrupts: + maxItems: 1 + + interrupt-names: + maxItems: 1 + + resets: + maxItems: 1 + + reset-names: + const: stmmaceth + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - interrupt-names + - resets + - reset-names + +allOf: + - $ref: snps,dwmac.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + + ethernet@4070000 { + compatible =3D "sophgo,cv1800b-dwmac", "snps,dwmac-3.70a"; + reg =3D <0x04070000 0x10000>; + clocks =3D <&clk 35>, <&clk 36>; + clock-names =3D "stmmaceth", "ptp_ref"; + interrupts =3D <31 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names =3D "macirq"; + resets =3D <&rst 12>; + reset-names =3D "stmmaceth"; + rx-fifo-depth =3D <8192>; + tx-fifo-depth =3D <8192>; + snps,multicast-filter-bins =3D <0>; + snps,perfect-filter-entries =3D <1>; + snps,aal; + snps,txpbl =3D <8>; + snps,rxpbl =3D <8>; + snps,mtl-rx-config =3D <&gmac0_mtl_rx_setup>; + snps,mtl-tx-config =3D <&gmac0_mtl_tx_setup>; + snps,axi-config =3D <&gmac0_stmmac_axi_setup>; + status =3D "disabled"; + + mdio { + compatible =3D "snps,dwmac-mdio"; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; + + gmac0_mtl_rx_setup: rx-queues-config { + snps,rx-queues-to-use =3D <1>; + queue0 {}; + }; + + gmac0_mtl_tx_setup: tx-queues-config { + snps,tx-queues-to-use =3D <1>; + queue0 {}; + }; + + gmac0_stmmac_axi_setup: stmmac-axi-config { + snps,blen =3D <16 8 4 0 0 0 0>; + snps,rd_osr_lmt =3D <2>; + snps,wr_osr_lmt =3D <1>; + }; + }; --=20 2.50.0 From nobody Wed Oct 8 15:58:29 2025 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (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 8E06325D8FB; Thu, 26 Jun 2025 08:01:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750924878; cv=none; b=J1c9vvlyqV2Jlh5NVzsboZ2Q9Odm/8pZfbd6zJ7gRz0SXUZQYO5k7YLALtBjh9/+iy0ryfgNkhe6NoYu7Y1380MMo6xxQiZgq+7GF6lmFFPN2lKnOTKSHmSPNnJS+DWB/54fx7nerHB6UQPkCsusI9whQVAErQ2mB4KehHHqRcI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750924878; c=relaxed/simple; bh=28w6W3M5RoMtkXpLoM2r5jUmQHSYfM+9m3hFwUL1h6w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RsChHR3WJH16vhvKYUgq/H3EIHaX2UGcnLKHwsZQ99i+d8Ao+20a8+0s+SseDtKUPmO65+xDDJBLiYRvdRgJV0Aa/Krb0Kv1EWG3XS/WqBtP8dY6TWctLHJxZG8R9r9ydruu/rHWojOzahc7Ju8VmN1lLL596iCXuqL5mHKTMXI= 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=I3bQmW4s; arc=none smtp.client-ip=209.85.210.180 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="I3bQmW4s" Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-7424ccbef4eso783976b3a.2; Thu, 26 Jun 2025 01:01:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750924876; x=1751529676; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9G8EsFLPHcydSdSrFsRKcmtgOEiF67NnihrfLuZNDOk=; b=I3bQmW4swNcc7JbqosrB9DxlGSDhU8uHisnxRLY60nhW3vlZLtWewfFMlzdJRdi8Gn QRT5fCX6FJzfUpr7Tog2o17vrhHsbtyBzl9pTUvzYTxLbPykBom89g6N5+2Oy2tllPvV A6rauWWiLb+NwlqXm9UgaXnRYZoSW8JXc887fmH4fPCqgusONFFBQq1E/av/eU16PLO0 xKJDZJ2fK+lZ1e6eIxgqiTH6L3nr2qFRBZ38jw9XAZOC9J2EAihMDmhfBIBdo9UW9O/d /SS0puobnPiKPtogNCZU+A0kIeGTpZQ+hv1M4Gh1yBNOgA2339Usrg0Hax/n5MpjuD8w 9JSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750924876; x=1751529676; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9G8EsFLPHcydSdSrFsRKcmtgOEiF67NnihrfLuZNDOk=; b=ngxNc8rB1eJlAzJR4ZprYxm3J1tdCiMD1YGVIMCDp8GVDexKHCCZiBIZ9L3diDl5CA r7Moh/PP1meT/SLuo9+lIFAHjTiw29WwRw5f+Cf9lL5UpYboN1tXJ+uYRmXRdi0GxK84 7DbHw2dIIQdkPZfKa7EBlqCTX+VhY5pf4IzQ4NjxXlfQSPkEdhP6jMO3iu82Vr/Onew1 NaFX++IHF+UGekgtebWyP3kRKsXCoQlAJS/leifjLgiMCqJH5woA5J2cVx4Erz3VKY8p UuqqNpuj+xkW4RHRRfC1v6VWJsUnHMsuN710Vrw9kVuLQg2LQkoUa78Ow9vzGm0eYF7K pxRw== X-Forwarded-Encrypted: i=1; AJvYcCUSaJxtQsg09cukR1jv/pjvFoYVUXGeG8kAeWS+BoodPbqhSA6+sx5yTGFYCKT3l646WfOgpeS0HDg6hHM2@vger.kernel.org, AJvYcCWr6MaJzNxqA0P78DeD/eZXbd4sSj9i3a2v3Ob7+j4oeZcO+QfLWXOebYQq4W0CyhhKZwByskTY+0Bv@vger.kernel.org X-Gm-Message-State: AOJu0YzqhnQtAKz1qqR1qctiZZ71dUqhoXd3p81RvTSOOp0eJ8ocrjjY M9ahse5w+KIdHGD8PR8re2qmwpvFb3wzLmgJPLbgTFvv9Xbl2z3ps2xy X-Gm-Gg: ASbGncvtVRhlrxd90xTgocyTdyqtwfsk6ouy4i2T+dFwpYg2VIDhFdSHIanQX8sQ6Mo ILpf9a4Sp2KW5RB+QwKEvQHs6FSYeDAzRxl3eO4bYDpQoVGm53MksmNi/PtWFf0EMjfg86n1d1/ 8n7ijpcQGps/g1x4YGLbFQmGUWmZHRCfLtVdFfb/5EwrBLmPP+uFwNpBEfQSlsVbRD4X7i5QFPM +ZpSAKgIpcyL1Fm6ORbamGDbICFgY3mN1DIkNN82eOLzqCo0HTd1vT2D7fJugR0mVgSSwd6OIFO k5IvFc8fajWzTNYsq9KXq1KhDPvJwfYuOpZ4f9WnjHRRyHE8sgP0SOYxCEssVw== X-Google-Smtp-Source: AGHT+IEeIBWKO8E5PCuCUGThQMx4lBDCQNancA7w0a6KHPfjh8T/RV1VkMb32vMY4xaiTzsYTWtccg== X-Received: by 2002:a05:6a00:800a:b0:74a:e29c:2879 with SMTP id d2e1a72fcca58-74ae29c2a25mr3579898b3a.15.1750924875839; Thu, 26 Jun 2025 01:01:15 -0700 (PDT) Received: from localhost ([2001:19f0:ac00:4eb8:5400:5ff:fe30:7df3]) by smtp.gmail.com with UTF8SMTPSA id d2e1a72fcca58-74a9697817esm6108788b3a.124.2025.06.26.01.01.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jun 2025 01:01:15 -0700 (PDT) From: Inochi Amaoto To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Richard Cochran , Alexander Sverdlin , Ze Huang , Yixun Lan , Thomas Bonnefille Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, sophgo@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Longbin Li Subject: [PATCH net-next RFC v3 2/4] riscv: dts: sophgo: Add ethernet device for cv18xx Date: Thu, 26 Jun 2025 16:00:52 +0800 Message-ID: <20250626080056.325496-3-inochiama@gmail.com> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250626080056.325496-1-inochiama@gmail.com> References: <20250626080056.325496-1-inochiama@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add ethernet controller device node for cv18xx SoC. Signed-off-by: Inochi Amaoto --- arch/riscv/boot/dts/sophgo/cv180x.dtsi | 44 ++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/riscv/boot/dts/sophgo/cv180x.dtsi b/arch/riscv/boot/dts/s= ophgo/cv180x.dtsi index e91bb512b099..7eecc67f896e 100644 --- a/arch/riscv/boot/dts/sophgo/cv180x.dtsi +++ b/arch/riscv/boot/dts/sophgo/cv180x.dtsi @@ -189,6 +189,50 @@ i2c4: i2c@4040000 { status =3D "disabled"; }; =20 + gmac0: ethernet@4070000 { + compatible =3D "sophgo,cv1800b-dwmac", "snps,dwmac-3.70a"; + reg =3D <0x04070000 0x10000>; + clocks =3D <&clk CLK_AXI4_ETH0>, <&clk CLK_ETH0_500M>; + clock-names =3D "stmmaceth", "ptp_ref"; + interrupts =3D ; + interrupt-names =3D "macirq"; + resets =3D <&rst RST_ETH0>; + reset-names =3D "stmmaceth"; + rx-fifo-depth =3D <8192>; + tx-fifo-depth =3D <8192>; + snps,multicast-filter-bins =3D <0>; + snps,perfect-filter-entries =3D <1>; + snps,aal; + snps,txpbl =3D <8>; + snps,rxpbl =3D <8>; + snps,mtl-rx-config =3D <&gmac0_mtl_rx_setup>; + snps,mtl-tx-config =3D <&gmac0_mtl_tx_setup>; + snps,axi-config =3D <&gmac0_stmmac_axi_setup>; + status =3D "disabled"; + + gmac0_mdio: mdio { + compatible =3D "snps,dwmac-mdio"; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; + + gmac0_mtl_rx_setup: rx-queues-config { + snps,rx-queues-to-use =3D <1>; + queue0 {}; + }; + + gmac0_mtl_tx_setup: tx-queues-config { + snps,tx-queues-to-use =3D <1>; + queue0 {}; + }; + + gmac0_stmmac_axi_setup: stmmac-axi-config { + snps,blen =3D <16 8 4 0 0 0 0>; + snps,rd_osr_lmt =3D <2>; + snps,wr_osr_lmt =3D <1>; + }; + }; + uart0: serial@4140000 { compatible =3D "snps,dw-apb-uart"; reg =3D <0x04140000 0x100>; --=20 2.50.0 From nobody Wed Oct 8 15:58:29 2025 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 073B325F7A9; Thu, 26 Jun 2025 08:01:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750924881; cv=none; b=L/lp4X5MHEzOWdWWva5cidKQzIo3UbPGEqNPYnWupc4S6gqyUo+vlmUvLuepgzqPzUrpH5nU1aaEWPtEVKgATRMMuwCnSGN/OFazZh7UaRNlS10xx57bDKayvp1X4crea2HLqk89/b3f2mbrG3Qc+eXlnLh03Q3oASLbA8u/mGI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750924881; c=relaxed/simple; bh=fj+xPee/HF/mBDPxlPDL/LzsHQQkwlx0t0JHpZFbg4I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jo3hATh6AmO5ja+DSLkY8tkTNJLJk1BRdUdHi5I5XhzsJ2WH7KrRNJ02xdW9yFvI813qQN7mfQp8J5QAiVBNjtDJC1Kbv27cf0mGongZdkX1uoPEVb7ujHH/srlIKSBJHDv3O3EHJW+H1QRjoYoU5TBFncm9v34vArPy05AlhmI= 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=DoNTxfAJ; arc=none smtp.client-ip=209.85.214.182 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="DoNTxfAJ" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-234d366e5f2so10175555ad.1; Thu, 26 Jun 2025 01:01:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750924879; x=1751529679; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=uFiZF96xm8hXJ6qEv7hyvXI+A/Fh5sgECxhLDPhb+6c=; b=DoNTxfAJUX/IT4lIsfAEOTPPHIhDi/WPPwi3tE92XjWWRZ8LoYYveQJ3eZjXTLIhsT pBt4pAXdttRzCO8vLevtOIghqCQHWNZbm4TEiI4L2QtUp/jqr06W9DLrmYdEylqkTZpo PeVYxqKp9ie6X/vqnw0VqQAoZb79UFFQ2ajCwb+ZsyJD3rMvJtk/VwalWq6z4lDRrDxd 8acAEc/B5bN5aXh0kBKZ1T8YBTUOXrfZncHBrteF266W05LPaahTKtLtEqYDwfAQ7Wsg LsYN73G/qeEjEK2/GJ9FugcDF3du+mBzjA1KNMqy1gZhMLY05q8nQsfzfvTgM0yRcoAW dc8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750924879; x=1751529679; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uFiZF96xm8hXJ6qEv7hyvXI+A/Fh5sgECxhLDPhb+6c=; b=Q7m2mQ1Q060KZmX6vmkE+GYpwhAeAxQhiof14mw2OC/g1uFtTRkLq/hPI5U21Nz0Eg rn4WVUUY+d6DYD3NCfzw3KjnfIG5iDMU+RN/qnoEOgjAk0wQOFHT8ojE+nCR4ITuDilV wDlKEoRiZplE4V4cLGeqWu551tVDejxbwhcDA5CLfVNrhDzWGR8E4yyZKaNVpdE5oflk /de6K4jDVhn9+oGD1nVIoKh8w6yOKLuQ7CJqg2H+IQLLIMVJw4nqS6yU1A0mXB9Dsu9V QqOhOsUiQzCjfJuirTq3vQwtBT4SS8UKR5TK8XkUv55/fRF9UM3h8gEJiK7QybuwGBzQ k4Ow== X-Forwarded-Encrypted: i=1; AJvYcCVDEmJ5hubLFSKbzFa8hzOfu0InDdMFKMmrkgCjwnE6QbC9zErQKsy/fs04IQg4HXdETDLZL+0WEb/s@vger.kernel.org, AJvYcCVFUGA25N/XxTxRlXyvYn31IvOJkUfejQTIuDHIfFSFG9j/Id6bcPuGduHi16ilEIcZsEOLZ1yN+Tjf4G0k@vger.kernel.org X-Gm-Message-State: AOJu0YxyPUh+yEtGC9DHaeCzjnOK0KjmYS9YxyRdTQnYCGvsft2lY4Lq fpXGA0McWbQ+ldxKanGIJVLjWAwc/GK+vPT/VfTuqmcvZ9+ufKpXldri X-Gm-Gg: ASbGncswtqEaFW5RJPfa+NOK2HJ9SikbeMu3yNtO6ERv1imwLRXtwdio18aV6eFQoJn DJAsaoV6xVM4G6DL8V7E6cPSBjZg4yoiMN8ice2NgiK8dTj4dKapzPCOKKC/fBWdhyo9JhBNRYM 9xXxcV3QM78ZwvSYZz+3kgP/3RaGR+KW4rIcFlYqc8YenOQB4gs9R4YclYcRZJoXa504XWwndRt 7JiOHt6z6mifoKec5HGgOw/AtPJdS/qWyXsjZBd3KU9S2oXbGZvNYfU78bS9dE2ofEL04erzXpz BjV1jHnI3kBZf0zsICTwj97K0EwG8T5qoz5z6ZrnhmAoqkAA1kI+LHTEanguRw== X-Google-Smtp-Source: AGHT+IEa1Hm8a3WI+XQ+UR9EdbEMJuz6B0Te5cpmW0w6UUDcyQFF377cGhIUp8q+Q++YcoVyKJYXMg== X-Received: by 2002:a17:903:22d1:b0:235:1706:1ff6 with SMTP id d9443c01a7336-23823e51556mr102958175ad.0.1750924879294; Thu, 26 Jun 2025 01:01:19 -0700 (PDT) Received: from localhost ([2001:19f0:ac00:4eb8:5400:5ff:fe30:7df3]) by smtp.gmail.com with UTF8SMTPSA id d9443c01a7336-237d8393249sm149406985ad.14.2025.06.26.01.01.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jun 2025 01:01:18 -0700 (PDT) From: Inochi Amaoto To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Richard Cochran , Alexander Sverdlin , Ze Huang , Yixun Lan , Thomas Bonnefille Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, sophgo@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Longbin Li Subject: [PATCH net-next RFC v3 3/4] riscv: dts: sophgo: Add mdio multiplexer device for cv18xx Date: Thu, 26 Jun 2025 16:00:53 +0800 Message-ID: <20250626080056.325496-4-inochiama@gmail.com> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250626080056.325496-1-inochiama@gmail.com> References: <20250626080056.325496-1-inochiama@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add DT device node of mdio multiplexer device for cv18xx SoC. Signed-off-by: Inochi Amaoto --- arch/riscv/boot/dts/sophgo/cv180x.dtsi | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/riscv/boot/dts/sophgo/cv180x.dtsi b/arch/riscv/boot/dts/s= ophgo/cv180x.dtsi index 7eecc67f896e..4c7335ff93a1 100644 --- a/arch/riscv/boot/dts/sophgo/cv180x.dtsi +++ b/arch/riscv/boot/dts/sophgo/cv180x.dtsi @@ -31,6 +31,33 @@ rst: reset-controller@3003000 { #reset-cells =3D <1>; }; =20 + mdio: mdio@3009800 { + compatible =3D "mdio-mux-mmioreg", "mdio-mux"; + reg =3D <0x3009800 0x4>; + #address-cells =3D <1>; + #size-cells =3D <0>; + mdio-parent-bus =3D <&gmac0_mdio>; + mux-mask =3D <0x80>; + status =3D "disabled"; + + internal_mdio: mdio@0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0>; + + internal_ephy: phy@0 { + compatible =3D "ethernet-phy-ieee802.3-c22"; + reg =3D <0>; + }; + }; + + external_mdio: mdio@80 { + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0x80>; + }; + }; + gpio0: gpio@3020000 { compatible =3D "snps,dw-apb-gpio"; reg =3D <0x3020000 0x1000>; @@ -196,6 +223,8 @@ gmac0: ethernet@4070000 { clock-names =3D "stmmaceth", "ptp_ref"; interrupts =3D ; interrupt-names =3D "macirq"; + phy-handle =3D <&internal_ephy>; + phy-mode =3D "internal"; resets =3D <&rst RST_ETH0>; reset-names =3D "stmmaceth"; rx-fifo-depth =3D <8192>; --=20 2.50.0 From nobody Wed Oct 8 15:58:29 2025 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (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 753B625BEEC; Thu, 26 Jun 2025 08:01:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750924884; cv=none; b=jed877sv74iGniGQWn95vQyQjTtfmIscxwRTjQbfOhNrwBU03qU2H61whGFQNSTlwPKa+cDOtsjAT1PwWhwP3DklfZ220z3dcC6wp/hZeOrluyQMx98fSvpgdZibTOZsK2rzP0VXiwOtRQdNKssvwaHwSReOZYh3jMx0uvztmxQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750924884; c=relaxed/simple; bh=Hq80mkzOm4sDH1lo61LQlZ+WhvZpGs/2+0D69YVEncc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ro3R6v39sIF+IX5QCwlStOc/SfkzJ/DeLdl9IxAbA3KttzWraa9OQFWqM1nbRcbt/pB1tlPKnM3tsUoJPekvdKUoiI5nA+ZnRAmUhLgxYJyZrGWOprYEUZqAHiKqXvZMRBVikABfsh4v/T7ix6iYcmBENXapL5P1K09srLJog4M= 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=c6/PNaPf; arc=none smtp.client-ip=209.85.214.181 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="c6/PNaPf" Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-234b9dfb842so7216105ad.1; Thu, 26 Jun 2025 01:01:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1750924883; x=1751529683; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RnJ5HyRFTLzSb90lPZ0kytxtuJ4Ps5kIpRokWvdn6qw=; b=c6/PNaPfKI/QcO223m05Msok8wJhB7/39HoDUczqjtJ+ZkeYLrMuxZKEByRx/GJ4S7 uDo+1hvoCbRYJOoyZ+9iI9p9/EK67vf4gLgfZUXaJSoeaNWgr4VH/3Hcr/DVlxq8sxDQ pIT7MBfCK40w28Z5WRosWi7Kvwc+L2cIiAmF02iZ+tSvP7w7jjx3JgE49DBeA4P5qD2F xg+0KYDhLhv3Jzf7QYJxB6BUMMBDfn9cBrdp6zkv3hQTmq8puGRFpmuq/tNBRRAJPfVk 2AbM6m6UbuboQy6u/AT/UYULJqC/WJX6chfMixSxa/Mhag90iRZ7HFug97l5DKqhFbdk YKDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750924883; x=1751529683; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RnJ5HyRFTLzSb90lPZ0kytxtuJ4Ps5kIpRokWvdn6qw=; b=ocyIPwrriOWGMfQ8bL9MSRTaIyW7VWS9K82NkFhtYjbsmvske/YqtvTdastsAFHlx4 v9Nu9kqRk6JWxleK0gjuXGSeR5Xv/PsXS4BXf/EChOuYd27kGFWrSSq2KA7YXOx8+eBd P4YnglUebbKy6NaGn+vraAIL5o49BAefeDs/eVbH1ZUF6T05CKWY7+vMCBLZrOKbUEWc 4cHj8TRd1xx5IO9MoM+nOsKkxJi8+ma+IgYfXmDJNdfWEH9YxgHfsI+m2S0O7W/x4aft FA5dBoVb1PeBGsHM/DUvUC1pxmgj81feWZlcxkRfqfAF71EPsh69W9HmKLPwGjy55FbK C+wQ== X-Forwarded-Encrypted: i=1; AJvYcCVUSzVbE/h95LdZd0NRaNJzQTfqmr9XvCINGZxnIAqiI7yqQRLLf7KeOZ/S8qSHlxdkpHfRn0Ke5X3T@vger.kernel.org, AJvYcCXFLAeyBp9kl6yjmslg6IUsEjOBR7i2dj7epqgy3c2W4nOT5aoZWDJ0jbCvYarEjHRopHHHT1U4YxGyfU7q@vger.kernel.org X-Gm-Message-State: AOJu0YxpjzW4dZJnh71evbJNmrMyKgBNjIyHZ6B/V6yAfZ0Iil9zdykt nuDsCl6wRPaih2MZKjUuDxoIf6Gn6X5Y5bDtg0efxTLfBHUfTlrsQaPh X-Gm-Gg: ASbGncuiqb7i1VgCm1o3EsgMtG2g+rGCg9LLy8YL35qFNsQ2P5TPqmpFnJlNPn12u7R 1Ls8+G0ZvmdXRGDy0lgJlzHDUzf+udXDuZOEd2CNalaukMLFwr3Bsck5UNlGFTfP9xMC0f732Ff pxro7D0fy+HaD3S+se2TRIhVfaEaGK8c0wTJAPt9qvb3n3bzlYOSY3YpKJ+g6po0AhfvjJtWBjj B0+2YRB2aOkR/CgFV9yt/z8j2Zww6XFoMaiFhidy1CTCQQnMVvJXM1ctlxVuez1nsnKi+Odn3ja OotOCWhsTLM6lTK3oxvEKUGaKV69FTh3GVpA8x61QLv6X0KxEj/Wub37OeIOJA== X-Google-Smtp-Source: AGHT+IHEcN9TqXpZqCIhiJkeXd5Rd4ZpIJF9ZCmoYkubJ2AJSnfavgHhpNIHpdPsx+RjCvP+UqGFrw== X-Received: by 2002:a17:902:e947:b0:235:7c6:ebdb with SMTP id d9443c01a7336-23823f88824mr119070055ad.10.1750924882766; Thu, 26 Jun 2025 01:01:22 -0700 (PDT) Received: from localhost ([2001:19f0:ac00:4eb8:5400:5ff:fe30:7df3]) by smtp.gmail.com with UTF8SMTPSA id d9443c01a7336-237d8695195sm156236865ad.187.2025.06.26.01.01.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jun 2025 01:01:22 -0700 (PDT) From: Inochi Amaoto To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen Wang , Inochi Amaoto , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Richard Cochran , Alexander Sverdlin , Ze Huang , Yixun Lan , Thomas Bonnefille Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, sophgo@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Longbin Li Subject: [PATCH net-next RFC v3 4/4] riscv: dts: sophgo: Enable ethernet device for Huashan Pi Date: Thu, 26 Jun 2025 16:00:54 +0800 Message-ID: <20250626080056.325496-5-inochiama@gmail.com> X-Mailer: git-send-email 2.50.0 In-Reply-To: <20250626080056.325496-1-inochiama@gmail.com> References: <20250626080056.325496-1-inochiama@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Enable ethernet controller and mdio multiplexer device on Huashan Pi. Signed-off-by: Inochi Amaoto --- arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dts b/arch/riscv= /boot/dts/sophgo/cv1812h-huashan-pi.dts index 26b57e15adc1..4a5835fa9e96 100644 --- a/arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dts +++ b/arch/riscv/boot/dts/sophgo/cv1812h-huashan-pi.dts @@ -55,6 +55,14 @@ &emmc { non-removable; }; =20 +&gmac0 { + status =3D "okay"; +}; + +&mdio { + status =3D "okay"; +}; + &sdhci0 { status =3D "okay"; bus-width =3D <4>; --=20 2.50.0