Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp603197ybh; Sun, 12 Jul 2020 17:26:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKQvJLZb2/QukMGuJm1iOU/1HXvH6Y8BAUalvnSXGpLKyq40l/yq3ooMb2WlB4thckPPCz X-Received: by 2002:a17:906:c18d:: with SMTP id g13mr67305656ejz.239.1594600005886; Sun, 12 Jul 2020 17:26:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594600005; cv=none; d=google.com; s=arc-20160816; b=bJvBJH2rnDel8amT9vcCWzwsL3sYKBi7v3oF74bHpnZyQq4laP1ny0T5xu7otc4ba0 2a+wCQd0aob0GWghHeNFpHGYuGdELvvB+FhWx2MpdmVVYQ34SSP674SNlkIaHIXnm2HQ 7n2kjJW9N+FEN88VXFM9njvhY4cXN1jvjlcGcn5xlQkqJ/eqV1kbgu0AgKHZzzXRRerO 57P/YUZ8OPX6DEYFFfFfneDCZ0PBOinNlbK04SL5YygolTeuu4iveeSf2VtQx8OJ4IGJ puuTXg3iA0i+3L9aiq2OOynRY14MH4C92Cr2b7Nl7RNNMsXwr03r/lk+td0KaY3/Ht/K 0lQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=okBx7c23F7f5k4i72k982zu3s0srBhuRGGNWTz+lcgU=; b=g/vRZC4WP6GR74wSUDqT5D98oe/oBUnfHZhjyhEramF1wI+JExElDwy/43C/gXTXan PfGs095fWgDQWsHkFsgWGdNn8hRpHBEwAyWbJqOVQotAg7WvrjYPGa3E8i6zXjNkUTsk 4y6c/YRTXSJgEGtg/5YUGNf/AD2dwguLcyESAJ5VU+UNVTPS7eTvi+X5PJIzgqXEMw1D jQ9vPc8OKQm+uHYzSBrf3bk8To7uXle2zKRadyCip1NxZwaOprWJSd9yPxKnSGfAIBo8 2cY4y5Sq8uoJBKcdrY4lec6P5RgkC39SEft1ziCZurdX8LDauBSXDc+Kje2NFhmrBQZe S6qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kjwVvKkn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j31si9646014edc.371.2020.07.12.17.26.23; Sun, 12 Jul 2020 17:26:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kjwVvKkn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728935AbgGMAZ3 (ORCPT + 99 others); Sun, 12 Jul 2020 20:25:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728916AbgGMAZX (ORCPT ); Sun, 12 Jul 2020 20:25:23 -0400 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7B7DC061794; Sun, 12 Jul 2020 17:25:22 -0700 (PDT) Received: by mail-qt1-x841.google.com with SMTP id x62so8800365qtd.3; Sun, 12 Jul 2020 17:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=okBx7c23F7f5k4i72k982zu3s0srBhuRGGNWTz+lcgU=; b=kjwVvKkn8vMu0rcKHnD7nAhnOJ/IC2+HXBKgQmVAk/GUbw2JvY82qR9o6bkywcsB5e goKgi+zdC/oi0BRYDaNJqfNkCvewYgcd/3hdmLPxLWeMuSyd6D1PZAM5sfk8MSg7jH7D YDZb2fQlObK5vqkdViegI3UTNGYLl18SCNVGiTK6kOkDxU3DroVXslJteLkb61h+QK3m qGB86o8swJG6Vdxid92hFBB6geXiYgZIMyLRfFo4wT/lG24k9uotXGjvdqhDIetrqGAO pHmpwvQf2OnXf16ElVaqsbxAPO9b+UlVcjYsqy/yCf92ny5s86r9gg2VUaTnzhDWpDv1 +GVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=okBx7c23F7f5k4i72k982zu3s0srBhuRGGNWTz+lcgU=; b=k+dtVJX28mVOXjIWgsM2RO4S94+GpywRLPS5uxdNZKBSyZE/t4fd+HT9EkWLZG9LC8 RrHBS7GGBcNXsUeZeZPgavdukqGwCTUJr7/tq90g69z13NF2B5jGARRW7YSpHX1rUtkK pNwCnrDhz99iiyfqj4Y5Oj1V2qLRL6U0SCTifxfOWHvxpHy20NhninxbmZWP054EpoSK KxezJACP7fhDAm9R6lY6EeNSjJaky1iA7nWJPrXqwqlxqxpfpwuiWy43SWAasOK9U9bC D9WbPZ3a27sCvuOYWxTTokJjGQaPDDNZmuA82AtO7KayL8Q0yHC6h/7ePsBJdHyP+Wx2 20/g== X-Gm-Message-State: AOAM5306zx23m9vykDibkv6NVEk14Dw3W1Hngo477x6J/6JbaLn18U+s VtAKibUyuqQMhrz0KN2PGvY= X-Received: by 2002:ac8:4ccb:: with SMTP id l11mr79978575qtv.18.1594599921681; Sun, 12 Jul 2020 17:25:21 -0700 (PDT) Received: from localhost.localdomain ([72.53.229.195]) by smtp.gmail.com with ESMTPSA id u5sm17044309qke.32.2020.07.12.17.25.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jul 2020 17:25:21 -0700 (PDT) From: Sven Van Asbroeck X-Google-Original-From: Sven Van Asbroeck To: shawnguo@kernel.org, s.hauer@pengutronix.de Cc: Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH v1 5/5] ARM: dts: imx6qp: support improved enet clocking on QuadPlus Date: Sun, 12 Jul 2020 20:25:12 -0400 Message-Id: <20200713002512.28742-6-TheSven73@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200713002512.28742-1-TheSven73@gmail.com> References: <20200713002512.28742-1-TheSven73@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Board designers are now able to choose between all three supported enet clocking methods, by changing the clocktree via the devicetree: a) route enet_ref externally from pad to pad (the default): no clock tree changes required b) route internally on SoC from enet_ref &fec { assigned-clocks = <&clks IMX6QDL_CLK_ENET_PTP>, <&clks IMX6QDL_CLK_ENET_REF>; assigned-clock-parents = <&clks IMX6QDL_CLK_ENET_REF>; assigned-clock-rates = <0>, <125000000>; }; c) route external clock (from PHY or oscillator) via pad / { clocks { phy_osc: anaclk3 { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <125000000>; }; }; }; &fec { assigned-clocks = <&clks IMX6QDL_CLK_ENET_PTP>, <&clks IMX6QDL_CLK_ENET_PAD>; assigned-clock-parents = <&clks IMX6QDL_CLK_ENET_PAD>, <&clks IMX6QDL_CLK_ANACLK3>; }; Signed-off-by: Sven Van Asbroeck --- Tree: v5.8-rc4 To: Shawn Guo To: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-clk@vger.kernel.org arch/arm/boot/dts/imx6qp.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/imx6qp.dtsi b/arch/arm/boot/dts/imx6qp.dtsi index b310f13a53f2..7f81d35f56c9 100644 --- a/arch/arm/boot/dts/imx6qp.dtsi +++ b/arch/arm/boot/dts/imx6qp.dtsi @@ -79,6 +79,9 @@ &fec { interrupts = <0 118 IRQ_TYPE_LEVEL_HIGH>, <0 119 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clks IMX6QDL_CLK_ENET>, + <&clks IMX6QDL_CLK_ENET>, + <&clks IMX6QDL_CLK_ENET_PTP>; }; &gpc { -- 2.17.1