Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4328664rwb; Mon, 16 Jan 2023 22:26:41 -0800 (PST) X-Google-Smtp-Source: AMrXdXtFB58wt4+/sH4viKEIqAj5iYSUKPtDKAlhLte4UGEKqk7hryxU79+ktWICwJt6Z762ao0c X-Received: by 2002:a05:6402:c41:b0:499:d0e3:7745 with SMTP id cs1-20020a0564020c4100b00499d0e37745mr2190264edb.14.1673936800897; Mon, 16 Jan 2023 22:26:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673936800; cv=none; d=google.com; s=arc-20160816; b=0OGBXlTZJ9szCXeHQ8yTjO5+2di2CbpBdGLWvNax6hD86A2WkhI1TBnPkN4yk3EqoZ u9ASXarhnvhcrlLKww9x6XGG3djFw9FApvO8I3GgLrbUk2iRc6d5jfCquLdj4wWTzZKK 44HEqB0cevbXmFOdArKfBK2w3SHOerAGrZ7vC9r2UVkpAB18b/87JJeNz922c4KD3rpf GuUJiXZ3ypLW8F5SW3geLa0atNakEtZi6/6XinC4RQo5o/KgwRPa0D41tSzzSTyJjOVq sGUCui93nA2qYzMBEv1aeXyzmMXE7bQ2ixiUYd9K/FP6hrx3QCzhf4ev7t0H7dtikZl3 4Z9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=WMXgor3Mk0Pp4/8EPk6ADBxBq69qtpOZkRPMRbOHBSw=; b=VhW06iNJwO8Z+keCXkvd+ZwD4sRRWT9n35UpUGYDYkphbr1i499hm6qAmEUT+1gUbk HBL8hzqXlARchyW/0MjACdirp6S/QRnoX0O6Z+8xgUAEENYhnySWoCqe7kfpefo1y+NN OynPcH8upTsgf4va1v2JdbTlb/pCKtUbAGB/NxmMFhBpizkqi7CDNhss48KSvssFjlmW 27YFHwRwJ0MZCexUkUQCVCveoGdfLvuDVSfQxippRXekuBE0DeMlf+TrRv2yL4ggkg+R v9wiEhOC/WtKtW3iLRiTt/MqJZ5kAiHD3ElNDt+U6qEPLg7J8mE0U2GgQ629oHFTBHGp 5idA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xe9-20020a170907318900b007c31c5206c5si31810428ejb.436.2023.01.16.22.26.28; Mon, 16 Jan 2023 22:26:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235819AbjAQGQQ (ORCPT + 52 others); Tue, 17 Jan 2023 01:16:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235689AbjAQGPr (ORCPT ); Tue, 17 Jan 2023 01:15:47 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C2FA2312A for ; Mon, 16 Jan 2023 22:15:43 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pHfFb-0002TE-Dv; Tue, 17 Jan 2023 07:15:15 +0100 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1pHfFY-006bzp-O0; Tue, 17 Jan 2023 07:15:12 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pHfFW-00Fcj8-VC; Tue, 17 Jan 2023 07:15:10 +0100 From: Oleksij Rempel To: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer , Abel Vesa , Michael Turquette , Stephen Boyd , Richard Cochran Cc: Oleksij Rempel , kernel@pengutronix.de, Fabio Estevam , NXP Linux Team , Russell King , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v2 07/19] ARM: dts: imx6dl-plybas: configure ethernet reference clock parent Date: Tue, 17 Jan 2023 07:14:41 +0100 Message-Id: <20230117061453.3723649-8-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230117061453.3723649-1-o.rempel@pengutronix.de> References: <20230117061453.3723649-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On this board the PHY is the ref clock provider. So, configure ethernet reference clock as input. Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/imx6dl-plybas.dts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/imx6dl-plybas.dts b/arch/arm/boot/dts/imx6dl-plybas.dts index c52e6caf3996..e98046eea7a4 100644 --- a/arch/arm/boot/dts/imx6dl-plybas.dts +++ b/arch/arm/boot/dts/imx6dl-plybas.dts @@ -75,6 +75,7 @@ clk50m_phy: phy-clock { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <50000000>; + clock-output-names = "enet_ref_pad"; }; reg_5v0: regulator-5v0 { @@ -99,6 +100,13 @@ &can2 { status = "okay"; }; +&clks { + clocks = <&clk50m_phy>; + clock-names = "enet_ref_pad"; + assigned-clocks = <&clks IMX6QDL_CLK_ENET_REF_SEL>; + assigned-clock-parents = <&clk50m_phy>; +}; + &ecspi1 { cs-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; @@ -116,10 +124,6 @@ &fec { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet>; phy-mode = "rmii"; - clocks = <&clks IMX6QDL_CLK_ENET>, - <&clks IMX6QDL_CLK_ENET>, - <&clk50m_phy>; - clock-names = "ipg", "ahb", "ptp"; phy-handle = <&rgmii_phy>; status = "okay"; -- 2.30.2