From nobody Sun Oct 5 23:54:47 2025 Received: from layka.disroot.org (layka.disroot.org [178.21.23.139]) (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 AF9D3285C83; Tue, 29 Jul 2025 09:38:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.21.23.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753781892; cv=none; b=dqfNRYiUX9Xy0nC6EUCQyI0j2pRCGWfQE89PuptL58P6Dmr6/dV6TbqzI+/y+7MH9M2Wu6vwvvPPbKiEm2Q/fz1yHvG/1dniokfQNdEt0C6QpaL1mZQ38PeMYDU2+YMR+n1t4ysFuM3lx91kN7LSTvr4OyGhfxCyefnQByilZzk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753781892; c=relaxed/simple; bh=KckubxbZ+pvtLSm9LYRkKrPsFoinp6cu370w3zIGmtk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RbDvLvUoQ0NMZQYfkP7J3e9SXYa6Muc//ia0HuoVIJ6aoo9+eIBnA1L3JER7R1M92d6+vQEEcIZIzjkKrBVVTaS9lDTBp6sJKbmfNkJQcASJWGyzjGRjbInC6RYbAtUT8vkjDJrVrLlmuHGQHz4DVIn1T35WOyYpBe6Re3CaeU4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=disroot.org; spf=pass smtp.mailfrom=disroot.org; dkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org header.b=YXLWxqz/; arc=none smtp.client-ip=178.21.23.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=disroot.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=disroot.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org header.b="YXLWxqz/" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 0EF442047B; Tue, 29 Jul 2025 11:38:09 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id msMHQLLUizam; Tue, 29 Jul 2025 11:38:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1753781888; bh=KckubxbZ+pvtLSm9LYRkKrPsFoinp6cu370w3zIGmtk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=YXLWxqz/tf0VbrkuyE6TpM6Wc6BNMKRNLm//4y/sVJGdvwV4giddqf94ptF4lG07a yVCMtn86CcTdR06cI3HgX1u5w4uNHWW8SErTcEymAhRkb18KLGD8/HB2Pt4yVCB/aW 40hWtan3L5szusC0X8X1TFYzgtFT9vnee6UvE7vzMqqi02sGMh4dN+ye0OyP3YlZb+ 3jhBFgFHXq7lbtRhveJY2Qrnms/odgyc57B4FjrbfPNd8yBKUQ9wrtPJSIll5P3AA4 l9ykh3o7FozLnzmFNRitHCmCjdq0xW9USV3ssvre2Ri8nE7c7Qa+699SdYUJUuDKL9 bA0uNDHwjwTDA== From: Yao Zi To: Drew Fustini , Guo Ren , Fu Wei , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Emil Renner Berthing , Jisheng Zhang Cc: linux-riscv@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yao Zi Subject: [PATCH net 1/3] dt-bindings: net: thead,th1520-gmac: Describe APB interface clock Date: Tue, 29 Jul 2025 09:37:32 +0000 Message-ID: <20250729093734.40132-2-ziyao@disroot.org> In-Reply-To: <20250729093734.40132-1-ziyao@disroot.org> References: <20250729093734.40132-1-ziyao@disroot.org> 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" Besides ones for GMAC core and peripheral registers, the TH1520 GMAC requires one more clock for configuring APB glue registers. Describe it in the binding. Though the clock is essential for operation, it's not marked as required for now to avoid introducing new dt-binding warnings to existing dts. Fixes: f920ce04c399 ("dt-bindings: net: Add T-HEAD dwmac support") Signed-off-by: Yao Zi --- .../devicetree/bindings/net/thead,th1520-gmac.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml b= /Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml index 6d9de3303762..fea9fbc1d006 100644 --- a/Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml +++ b/Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml @@ -59,14 +59,18 @@ properties: - const: apb =20 clocks: + minItems: 2 items: - description: GMAC main clock - description: Peripheral registers interface clock + - description: APB glue registers interface clock =20 clock-names: + minItems: 2 items: - const: stmmaceth - const: pclk + - const: apb =20 interrupts: items: @@ -88,8 +92,8 @@ examples: compatible =3D "thead,th1520-gmac", "snps,dwmac-3.70a"; reg =3D <0xe7070000 0x2000>, <0xec003000 0x1000>; reg-names =3D "dwmac", "apb"; - clocks =3D <&clk 1>, <&clk 2>; - clock-names =3D "stmmaceth", "pclk"; + clocks =3D <&clk 1>, <&clk 2>, <&clk 3>; + clock-names =3D "stmmaceth", "pclk", "apb"; interrupts =3D <66>; interrupt-names =3D "macirq"; phy-mode =3D "rgmii-id"; --=20 2.50.1