From patchwork Sat Jun 29 02:18:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13716774 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 3FFCBC3064D for ; Sat, 29 Jun 2024 02:18:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=6TIZB7+6l4rnZsulVpkrnf4V1s8AZHLAx8f0kIZb6H4=; b=pq1684EgxB4DV89klS/tQH74ix +cO4v36O7FRtM9oRh1ZbSBoS+9ME416DabepVTZtE7FImcC2s3++P8lpD5MhDZpu01WIJ5v/54Ny2 CbDSBTeKP3Z9wYxIV+77e3q012u8X3XMIU1KHlsB0stsRmBfr5rysLqobJYZg8hZcw+1TyKzKi9co 7H20zZQ57s/No5OCjrx4B9wI5eUqMu7vvS2H0xvNELBVhgfAvvWge0bpyV7iwwuC0uVpE8n434jP1 8F/QIUNpZ7NaOEgS9VVez19doyfhO/dnCdfB0qeeNTtij4FtNZyDrOBs4Djg9rXQOpt9vt9EjaTAg ++XsptQg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sNNfu-0000000Fgd3-1GZN; Sat, 29 Jun 2024 02:18:50 +0000 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sNNfh-0000000FgYZ-1F7S for linux-arm-kernel@lists.infradead.org; Sat, 29 Jun 2024 02:18:38 +0000 Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-2c7af3116aaso197120a91.2 for ; Fri, 28 Jun 2024 19:18:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719627516; x=1720232316; 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; bh=6TIZB7+6l4rnZsulVpkrnf4V1s8AZHLAx8f0kIZb6H4=; b=FQjmuc/+mvziFSP5njv3J8gjlTWT0ID0KdVhbFZ9ElsKWQijq+3PjJxulF5HXN0zzd OAAUqhxKvmR35qu5BWqEE9cImwq5ZpKIw0C1v4mDKBZywoNCr9u4iKM5uU2GYkjUfj13 szHoQEXMT8oBQVpbYj2SFvEATGjGzz3WkDTo1oR71Ked/gJA5xfaNwz4t4OmBIXVIpmu Qlb4E8QFbx10qcaTDIj/h8/Vqz18Ooz5kKOarqRq8D1u6eMNa2XNHw2boVF+vo/DPAOO azUYoABn9E/q9pcgnCwkD8yuxpB74rrlKpWsFc1UoKr/La0vaRPY4LjQKoeUnH4nMQ+W lO3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719627516; x=1720232316; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6TIZB7+6l4rnZsulVpkrnf4V1s8AZHLAx8f0kIZb6H4=; b=Q89ZCqTE9tJIO1nFr/1JuHB2RzjPo5hi8nRzqklM6JaYpCMbJBRUCZV8jjBrRXj9/R 3KJxJYPd4TlUq3oucgHPwlF9e0MTDs/KUZtM8U1EKPgTbilM4afxgRUgTc5IvFembyeS BSI6ecTF2Nm/Gy8Y2iNqZ4oB/ZkairmU9x/4myXRWf1HRRrJ6IrgFQNAv8Ew01Bw5Nl9 qhqi//j1ZaAS7VggHjhpiKHh8B9rrd0JD1DlGGzhuO1pjyjk2H3TisLaGypnY/R9gCVv P2jYYcCSix19YNzzk8CEF5aXzOTb7zBcKlJNpCgpBWEnX55z80eJwTWyTTmglBDchSO9 tDuQ== X-Gm-Message-State: AOJu0Yw7x62sF08YmRKfJlnaebFEEo8etkJseUSRWXtyAF3M4OkXJoS/ MItq6Mo3CXOB9a/zQVC1ScytVYn1q9WoCntmkMH/QnRP3uKG/KSr X-Google-Smtp-Source: AGHT+IG1aMBumXQIsx8xVkXtXDTPfZJKZBlXoGwbnLT4u8EnA3cXusuC6ZcfaYu/vly3YW72mwJPKw== X-Received: by 2002:a17:902:e54e:b0:1f7:2b3:3331 with SMTP id d9443c01a7336-1fa0d81773emr221710435ad.4.1719627516183; Fri, 28 Jun 2024 19:18:36 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:3b92:aca:e1bb:86dc]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1fac1538e6dsm22113895ad.178.2024.06.28.19.18.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jun 2024 19:18:35 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH] ARM: dts: imx6sx-udoo-neo: Properly configure ENET_REF Date: Fri, 28 Jun 2024 23:18:27 -0300 Message-Id: <20240629021827.389274-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240628_191837_366431_0A870543 X-CRM114-Status: GOOD ( 10.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Fabio Estevam By default, the ENET_REF is configured at 125MHz on i.MX6SX, which works well for boards that operate in RGMII mode. The imx6sx-udoo-neo has a KSZ8091 Ethernet PHY that is connected via RMII interface, so a 50MHz ENET_REF clock is expected. Describe the IMX6SX_CLK_ENET_REF accordingly. Signed-off-by: Fabio Estevam --- arch/arm/boot/dts/nxp/imx/imx6sx-udoo-neo.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/nxp/imx/imx6sx-udoo-neo.dtsi b/arch/arm/boot/dts/nxp/imx/imx6sx-udoo-neo.dtsi index 725d0b5cb55f..bbf792ac4896 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6sx-udoo-neo.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6sx-udoo-neo.dtsi @@ -72,6 +72,11 @@ reg_wlan: regulator-wlan { }; }; +&clks { + assigned-clocks = <&clks IMX6SX_CLK_ENET_REF>; + assigned-clock-rates = <50000000>; +}; + &fec1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet1>;