From patchwork Fri Jul 5 15:12:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 168548 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3701619ilk; Fri, 5 Jul 2019 08:13:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzahSWEGm0D4jiRfkytPHFo+FRNXKIJ/Dmr9LtgW2Z+J/oX6wOv+icQGSZWDgqEArzt7vSf X-Received: by 2002:a63:89c2:: with SMTP id v185mr6061970pgd.241.1562339601563; Fri, 05 Jul 2019 08:13:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562339601; cv=none; d=google.com; s=arc-20160816; b=LCDsnG9g2gETG8y7wXkiWFyADai2+2aNqqV9t3A35CJ+V7OhXWKi1gL3mBl9SlUDCR cjKoxhNz54rJ2KtNQCAZvGeXJwtFfoK8oP76HddpfhQhB3ndV8j33nsoAt3xYEOi3TXT LKgrOoiMsgb281BijRziaOjq658NI/EMUO9LG+zlQR6Sm0eGETiYy8ROtt1/2wn4H8DG ASCiUffksbxM4QLgaU+rXeuPkVeZ2MORo/EvKwcDLOAExipeMQZZtMFvxlDhlvfaOaZv 7N9dr9vD6vLW5t/ZVDI88CVj8e2YrJZHf2E3TSVFsFKkZeXh0On1fqjPpI+88BZFW9Lz sh5A== 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=CfN5o3HjWMeiHXmVXxo2XG09pL9K5F+8bTPnC4vVSfU+mZQaVGQLV1qmIs9r2x4Sb7 36i5DAG2HQj97OkY75SxCh+4e9MP0RECpTHONBz2Ejuj789rmcWPjHDGJX2jKCkeit4s PG8CRAk1qbbVzMZejUiya6YX/mMsgsr2ADbk3FgeYVsnyqex4h4qx3ZSVKqDVjWlU9da a1109QDK4C3Pgm2uHhuvaumD2FEfLVJJByY9ckIrv5SWLXpFMzUcVd8Y2ggzI/pf/yz+ b3LkW5mp0XibwG5TOJ9tbffG28vYmqij+bY57UfOuBGb/15GiXoAG/grABFeq29Th1n4 tkqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JgBTE6hy; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 z9si10415216pga.219.2019.07.05.08.13.21; Fri, 05 Jul 2019 08:13:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=JgBTE6hy; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1727874AbfGEPNV (ORCPT + 8 others); Fri, 5 Jul 2019 11:13:21 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:56944 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727717AbfGEPNU (ORCPT ); Fri, 5 Jul 2019 11:13:20 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x65FDEoi087516; Fri, 5 Jul 2019 10:13:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1562339594; bh=xdHvCdOlgRH9td30gOXrpwOJLLdGgZhCVDyggJQOTdQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=JgBTE6hyPzKf4aRNqqvMM3DsLLP4GpZ/dx1s4LccFelNmXDvWUx0m3I3v1BtltHcP HZrq93cFD1DiQgQ+GrQD61dhUFGK2paq0+rM2iHqRqTifKz3nFnVlxBHOZC8EB5TWw BaGCdVBO4Oz4fYrWgjCNRbk1JMCfIMrkOuIRzxdc= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x65FDE7D088974 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 5 Jul 2019 10:13:14 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 5 Jul 2019 10:13:14 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE113.ent.ti.com (10.64.6.34) 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; Fri, 5 Jul 2019 10:13:14 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x65FDD4P033601; Fri, 5 Jul 2019 10:13:13 -0500 From: Grygorii Strashko To: Santosh Shilimkar CC: Sekhar Nori , Murali Karicheri , , , , Grygorii Strashko Subject: [RESEND PATCH next v2 3/6] ARM: dts: k2e-netcp: add cpts refclk_mux node Date: Fri, 5 Jul 2019 18:12:44 +0300 Message-ID: <20190705151247.30422-4-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190705151247.30422-1-grygorii.strashko@ti.com> References: <20190705151247.30422-1-grygorii.strashko@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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>;