From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f172.google.com (mail-dy1-f172.google.com [74.125.82.172]) (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 2DE0542188C for ; Tue, 20 Jan 2026 11:40:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768909203; cv=none; b=CCshUVVlUb9+b0Gs+Sbdie1yfkarNUOyzpj9svbOUo/5FfoVvIiwQ9ocjsv3vo4L/ADLISAyXVzvTdK33ZPEyo8H7pfWWYS6MOUy3eYUU/Eo6OYvO/qyfZ5FuaPSpZNn+jIwYvwHQXPLsT7r56S+9O0g66V63xQIdjoCj9tiK7U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768909203; c=relaxed/simple; bh=jrQhr8hRcob+nmP7FXhfmRMEqhWFIhwmQ2N3yM90I3U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YiMD489zW2H0q5l5zKccg+yXcxGjT67FfsEM8bPzabUCWBy7lUGrSPUYzg5DffnnzCo2KLEOMkRDr8QXM8wJcqlQfPTx2vRCSEx5SToQJjQL8OxSs0MixzjlGz8sVi6lZ63WXE4GOCxo1lijFd6XyOSr6/lmnMi7iT8otmjzAy4= 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=VneoogXh; arc=none smtp.client-ip=74.125.82.172 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="VneoogXh" Received: by mail-dy1-f172.google.com with SMTP id 5a478bee46e88-2b1981ca515so5659904eec.1 for ; Tue, 20 Jan 2026 03:40:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768909201; x=1769514001; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=QeACF3mv4Ishn0NV7RQhnzhSMHx1UMVLhYGwPqoV7AE=; b=VneoogXhouU1bgDmoCFpGVIO0NQ12Tu1rmi6aayCtGwxDdscrGNYffXXIiaWX7M8cx hyo9Bvn8vBwg5d8PiMjm1wCFlCyBdGQx+BILG0SMBFVaaDtojpo5/fnZ9Gu3JJs0DMu2 uzwCjm+BGX1W7gYJJTKH386Z63vVMwDJE3nyP+bchcH0TpcMTrs9GAYyrneuA4MidQTE 5fr+gxPTCCMBJzwXW8MX16Rzn2+F6ttFg84FeutdUKyAREoUpPcMGRM0OeemWPju7oMN pO+ICJe9pWKPTAdKvzI152THat+6X1fn0E9ktvSeLQgPT1prEcJlJost3F1qEMvenSqG K0Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768909201; x=1769514001; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QeACF3mv4Ishn0NV7RQhnzhSMHx1UMVLhYGwPqoV7AE=; b=sarH6cks0OJftz0fjjDKABP5tXPQlnUNPIOUL+RGOPbJXL696tBV+NhnIKJQ1WfP/R rELzm2Napwc5VmULkFAtjLdJCfO5PtsFmnZaZboRc+gO0BSDQmPPyGrVZxePIEt0Bdr3 VDit5ydtzPZJqmCUS2fbG7MfObz+FE1uJaEZjBiE11piKHSL/TmW5meO5WXxhHwi8V0C DMftrN7m6Co3GjCDG0btPZxW/8LYaq+17FzoPGvBOWrY+AhH8rw8eO3teX8pUUup0rVr hmA5bNaNwweG5dUdOWN2pb/80gZ/u292d4E9KDnJpfx/Hp49UukOXJb3ifPn6Wstu+Ot +IAg== X-Gm-Message-State: AOJu0YzJtR8KOnisGRU+uUOuSo8Omc1AvICORg35gj34K5tr+50yUqay uomX8/uQ2bHtg2bUi53DUdAa/cRJV/ZQIeDLpvXsfDHg1BnmvW5roetl X-Gm-Gg: AZuq6aLUF+7gmmLVQV+bqOCKR7Il5TehYzadFNGZWVIjPb8r94OanaeNBze2vmfyyyJ Why5xqWQh7HLzZYGxuQJO5yCz7dxQ4XjymVz8/r4mgeNrrYF2/JEkeNxykX+GrNFNBd0PzVHQsC J6RRE/4/n/ihJOWQGoXiC3AboPWVTVOs5WLp5W7Zv+Vqa9WZyLUaLlf/mbMQnBARkD2P7NTnFMk 86EhhDLBxTEuQGnpSl2Hc9kzczY1FMpoWhDiB4xKI0tH3/fzbppDRklNbvjMorJ08y5+lrbAwWk Ncfa18zVbaprp43OP4QxMp3QE7n2uQY+nrPBsEPHC/vkoVAuFwHN4vKD/W0ZEfIoN4IzyPXZXVU R0X9Z5nIKNO5XSpAfIft+8FCmOfYTGCAFaCcFrExk+bw+tefNveTwMt/FkyIfLMh970Uelsuh8c E5JG4HuvT0eQ== X-Received: by 2002:a05:7300:2315:b0:2ae:5967:db5d with SMTP id 5a478bee46e88-2b6fd746cacmr1048269eec.13.1768909200775; Tue, 20 Jan 2026 03:40:00 -0800 (PST) Received: from localhost ([2001:19f0:ac00:4eb8:5400:5ff:fe30:7df3]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2b6beeb4b9csm17558900eec.30.2026.01.20.03.39.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jan 2026 03:40:00 -0800 (PST) Date: Tue, 20 Jan 2026 19:39:49 +0800 From: Inochi Amaoto To: Yao Zi , Inochi Amaoto , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yixun Lan , Maxime Coquelin , Alexandre Torgue , Richard Cochran , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , "Russell King (Oracle)" , Yanteng Si , Yao Zi , Vladimir Oltean , Lad Prabhakar , Choong Yong Liang , Maxime Chevallier , Chen-Yu Tsai , Shangjuan Wei , Boon Khai Ng , Quentin Schulz , Giuseppe Cavallaro , Jose Abreu Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, spacemit@lists.linux.dev, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Longbin Li Subject: Re: [PATCH net-next 1/3] dt-bindings: net: Add support for Spacemit K3 dwmac Message-ID: References: <20260120043609.910302-1-inochiama@gmail.com> <20260120043609.910302-2-inochiama@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, Jan 20, 2026 at 10:55:43AM +0000, Yao Zi wrote: > On Tue, Jan 20, 2026 at 12:36:06PM +0800, Inochi Amaoto wrote: > > The GMAC IP on Spacemit K3 is almost a standard Synopsys DesignWare > > MAC (version 5.40a) with some extra clock. > > > > Add necessary compatible string for this device. > > > > Signed-off-by: Inochi Amaoto > > --- > > .../devicetree/bindings/net/snps,dwmac.yaml | 3 + > > .../bindings/net/spacemit,k3-dwmac.yaml | 107 ++++++++++++++++++ > > 2 files changed, 110 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/net/spacemit,k3-dwmac.yaml > > ... > > > diff --git a/Documentation/devicetree/bindings/net/spacemit,k3-dwmac.yaml b/Documentation/devicetree/bindings/net/spacemit,k3-dwmac.yaml > > new file mode 100644 > > index 000000000000..58dd98f79e8a > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/net/spacemit,k3-dwmac.yaml > > ... > > > + clocks: > > + minItems: 3 > > + items: > > + - description: GMAC main clock > > + - description: PTP clock > > + - description: TX clock > > + - description: PHY clock > > Why does the MAC require "phy" clock? Shouldn't this be handled in PHY > driver instead, or I get its meaning wrong? > IIRC, the "phy" clock is used to pass the phy from the mac core, I will double check if it is possible to connect to the phy directly. > Also, I don't see "phy" clock is acquired anywhere in the driver. Is it > really necessary for the MAC? > This is a mistake, I remove this by accident, if it is necessary, I will add this in the next version. Regards, Inochi