From patchwork Sat Jun 1 10:45:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 165571 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp1970433ili; Sat, 1 Jun 2019 03:46:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7nklJxfasObapB/lELflQU6fVLUCztzwR6RnhqTrcrrJo6zgEO3IsAKRjrYMlmIiwuLQq X-Received: by 2002:a63:3141:: with SMTP id x62mr14810521pgx.282.1559386011773; Sat, 01 Jun 2019 03:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559386011; cv=none; d=google.com; s=arc-20160816; b=i1lo2TnaCize718EO9i9UvXLXhYf/Ogh2OXqRVWZ79vncLw9xDMToGQSU2nlC1hn/T vw4tSXY77WQ8TDhKODZum6mxvM6YRA9moMJeZNUwgB++U5Gqscsu14Y1wCwa3wXJZiFz l6eLjwsUytCs064SB++i56nnsdslYGhOk0Rg9YCIIO3hVk85nq83otqE3LIGKBNJgOcV WZrr5T3GW2eUVZLxl8gabBYIFHDRPVZ9Q4zEDt+tgIj7r9R6rpI/rQdxn4FxGhXaTX2V j6YE2MhgdlUVVI56eQhEfkn4lxSPRxc1z/3R1rNRO7p6cYfQ7z5sR0zGUr2sWsBxsjRH +ibg== 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=AznSeI2qecv3FPLBtJdM/efVn5C8LoHjb0YeI/MvakI=; b=TYZx/idLY02z4ff27M0Xx5YfrVqSFuCePH6RHLUEzdyjXmmXZSLSzjRffmTPELOjcU tjQXAl4nRloqyNF/j4cKBWMWg2a04/k7dawOOj8d5bo3H9ASimAYLwVPkh8EoOtMpLq4 F+q8iFvMLbcF+xEO8yaCMOYUdQyUABtMpd4QWUzpVZVY4y1zPeEWeNIw4xZT5oUEpyVu 1L7zYZLGYMk9rUPfj7e+EloRsJCPnlaG9uLv/4cJ0SWONnbRTDx4C5jPBPBdvjEGGFTD 9vq0JUo243BIzpp09JlxNk6xEgzrrjbp1Y1Y494fvaUgGx6KdlY5xXOWarRaH5fLmn9O K3Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ZgUPu+8u; 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 s11si9205783pgm.376.2019.06.01.03.46.51; Sat, 01 Jun 2019 03:46:51 -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=ZgUPu+8u; 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 S1727376AbfFAKqu (ORCPT + 30 others); Sat, 1 Jun 2019 06:46:50 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:36358 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727318AbfFAKqs (ORCPT ); Sat, 1 Jun 2019 06:46:48 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x51Akg5O092119; Sat, 1 Jun 2019 05:46:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1559386002; bh=AznSeI2qecv3FPLBtJdM/efVn5C8LoHjb0YeI/MvakI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ZgUPu+8u6pBE7NbmPZkyvCLhT+lkuvwkk5A4NW0SZ57TEN3rCZ6IdR+k840VKF4+z 03HWHWoR/aOxJx6sT1ujKFLOklsU4UrQso9ohVfS6pnLEzwMVLr8j/9QnG4CO6XsIU weis0+8+NMUrnYYDzGb3qxgvsQ7IcsL3Ff7zSTwk= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x51Akgs1026699 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 1 Jun 2019 05:46:42 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE114.ent.ti.com (157.170.170.25) 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:42 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE105.ent.ti.com (157.170.170.35) 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:42 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x51Akflv052292; Sat, 1 Jun 2019 05:46:41 -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 08/10] ARM: dts: k2hk-netcp: add cpts refclk_mux node Date: Sat, 1 Jun 2019 13:45:32 +0300 Message-ID: <20190601104534.25790-9-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 66AK2H/K 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, TSREFCLK clocks as CPTS reference clock [1] and group all CPTS properties under "cpts" subnode. [1] http://www.ti.com/lit/gpn/66ak2h14 Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/keystone-k2hk-netcp.dtsi | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/arch/arm/boot/dts/keystone-k2hk-netcp.dtsi b/arch/arm/boot/dts/keystone-k2hk-netcp.dtsi index e203145acbea..d5a6c1f5633c 100644 --- a/arch/arm/boot/dts/keystone-k2hk-netcp.dtsi +++ b/arch/arm/boot/dts/keystone-k2hk-netcp.dtsi @@ -152,8 +152,8 @@ netcp: netcp@2000000 { /* NetCP address range */ ranges = <0 0x2000000 0x100000>; - 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 22>, @@ -175,6 +175,22 @@ netcp: netcp@2000000 { tx-queue = <648>; 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>, + <&tsrefclk>; + ti,mux-tbl = <0x0>, <0x1>, <0x2>, + <0x3>, <0x8>; + assigned-clocks = <&cpts_refclk_mux>; + assigned-clock-parents = <&chipclk12>; + }; + }; + interfaces { gbe0: interface-0 { slave-port = <0>;