From patchwork Sat Jun 1 10:45:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 165573 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp1970707ili; Sat, 1 Jun 2019 03:47:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzs74RowXiFD5dcTYjzuA5SCC5KhN+zjRTR7FOqk3L9QF/3NdD4++bOnsb/JDuNCjP5SjQZ X-Received: by 2002:a65:64d9:: with SMTP id t25mr14565204pgv.130.1559386028224; Sat, 01 Jun 2019 03:47:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559386028; cv=none; d=google.com; s=arc-20160816; b=amMU0Dj+Gpoz0gdqyMJBP9ZLpFiuGwaUkopVw/6DfBKXt98Q/VLGyMQoTjdTsOrSnp 5Jy9Nmi4hbTHouqOWJ4ItXx42LZA+dhum0SmC0+OpS3m+hXojH/Mc9khUDS/vMP/mmcN h6PrXRKUdy8DD1iimKqn0ldHqVBNqil/1RhFoDIcvfwJqh0YKwicgH0ijQePYa1jUefv 8UYxQ0J/r1uBOJeP3kEWgh2vr62tc3/vOrlv+WrHjyE4xKqwyL1KJuRI8T1IRxmL3Hb0 /Yc7lpnbuVFKfdONlevt89Ye+AVuLGqbhtmVL5+2oeXTWCLol99N2TuSy8H4ouRi5Dd5 DrzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=xdHvCdOlgRH9td30gOXrpwOJLLdGgZhCVDyggJQOTdQ=; b=F4VheasLxRfGxSzov5uXtBkro2WiIjwUgvxjpSZsSSh5qOYvgkekjk2jRXeU0AaThj S6SIcW5Lq0SlRFIqrCvT9shyfuc2yKH/XST4uWPfLz9v0V2s8YLk2XJYeS3TNpdSCN6H RkTCUVh0gjwuIBbFQCdVs6LLq2VLPGUNoRJBbmwlOwQP69k5CtOh5cMcDkmD+JYaYh8b nIUfT0PtkI3BR0aQcmXNmW0KbJczAd0L8q/KUWhpmFDWjmOKP7qFRjBYV5k0sgAsXO0o 6RQuiPIJknpt+uSxgeBu4z+9mqw+L52qkajhK9guMXu/h5dYHfAjBKuMso8pdi3C1we9 BM0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="a7tRfjz/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q138si10002598pfq.149.2019.06.01.03.47.07; Sat, 01 Jun 2019 03:47:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="a7tRfjz/"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727428AbfFAKrH (ORCPT + 30 others); Sat, 1 Jun 2019 06:47:07 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:34836 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727184AbfFAKrF (ORCPT ); Sat, 1 Jun 2019 06:47:05 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x51AkZnS018652; Sat, 1 Jun 2019 05:46:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1559385995; bh=xdHvCdOlgRH9td30gOXrpwOJLLdGgZhCVDyggJQOTdQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=a7tRfjz/j5Y14w7/dLNQ7ripYiqKCVW+zhA6TgsbwtRhllhoXd2bNHrvrfAIoDVd8 lbUaI/5YQt1PZ34OSM6vnFroHMHgLDCjmBLhyAmFW7AdcpEZ4Ju8JyET7lAYeuzUcy uhUIsZWNSUuifrVxg3nfM6cn8gbQIySD2jrUvtEs= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x51AkZEH037345 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 1 Jun 2019 05:46:35 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Sat, 1 Jun 2019 05:46:35 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Sat, 1 Jun 2019 05:46:35 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x51AkXnT112900; Sat, 1 Jun 2019 05:46:34 -0500 From: Grygorii Strashko To: "David S. Miller" , Santosh Shilimkar , Richard Cochran , Rob Herring CC: Sekhar Nori , Murali Karicheri , Wingman Kwok , , , , , Grygorii Strashko Subject: [PATCH net-next 07/10] ARM: dts: k2e-netcp: add cpts refclk_mux node Date: Sat, 1 Jun 2019 13:45:31 +0300 Message-ID: <20190601104534.25790-8-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190601104534.25790-1-grygorii.strashko@ti.com> References: <20190601104534.25790-1-grygorii.strashko@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org KeyStone 66AK2E 1G Ethernet Switch Subsystems, can control an external multiplexer that selects one of up to 32 clocks for time sync reference (RFTCLK) clock. This feature can be configured through CPTS_RFTCLK_SEL register (offset: x08) in CPTS module and modelled as multiplexer clock. Hence, add cpts-refclk-mux clock node which allows to mux one of SYSCLK2, SYSCLK3, TIMI0, TIMI1, TSIPCLKA, TSREFCLK, TSIPCLKB clocks as CPTS reference clock [1] and group all CPTS properties under "cpts" subnode. [1] http://www.ti.com/lit/gpn/66ak2e05 Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/keystone-k2e-netcp.dtsi | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/arch/arm/boot/dts/keystone-k2e-netcp.dtsi b/arch/arm/boot/dts/keystone-k2e-netcp.dtsi index 1db17ec744b1..ad15e77874b1 100644 --- a/arch/arm/boot/dts/keystone-k2e-netcp.dtsi +++ b/arch/arm/boot/dts/keystone-k2e-netcp.dtsi @@ -135,8 +135,8 @@ netcp: netcp@24000000 { /* NetCP address range */ ranges = <0 0x24000000 0x1000000>; - clocks = <&clkpa>, <&clkcpgmac>, <&chipclk12>; - clock-names = "pa_clk", "ethss_clk", "cpts"; + clocks = <&clkpa>, <&clkcpgmac>; + clock-names = "pa_clk", "ethss_clk"; dma-coherent; ti,navigator-dmas = <&dma_gbe 0>, @@ -156,6 +156,23 @@ netcp: netcp@24000000 { tx-queue = <896>; tx-channel = "nettx"; + cpts { + clocks = <&cpts_refclk_mux>; + clock-names = "cpts"; + + cpts_refclk_mux: cpts-refclk-mux { + #clock-cells = <0>; + clocks = <&chipclk12>, <&chipclk13>, + <&timi0>, <&timi1>, + <&tsipclka>, <&tsrefclk>, + <&tsipclkb>; + ti,mux-tbl = <0x0>, <0x1>, <0x2>, + <0x3>, <0x4>, <0x8>, <0xC>; + assigned-clocks = <&cpts_refclk_mux>; + assigned-clock-parents = <&chipclk12>; + }; + }; + interfaces { gbe0: interface-0 { slave-port = <0>;