Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp921846ybx; Thu, 31 Oct 2019 03:04:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+1vfQ/w8H3axqiNgvJ33Al8/EE6rM7MFtezKUfbHBPwkne0J2pXOPL0Z/Jj/LePABnlKy X-Received: by 2002:a17:906:9418:: with SMTP id q24mr2909244ejx.28.1572516293273; Thu, 31 Oct 2019 03:04:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1572516293; cv=pass; d=google.com; s=arc-20160816; b=omZOOtF5cOTwOGLqirgHv2ZsWHfqHLA2Nl7uc2ii19vxyvRlZ7Xbp09FL3WTJMEXEM shgc7rKgY9iI9bOiSxApiU9YKx6HWDpIiyqlsu1VU2YhR6/ectqpYqqKdJeuyUvGyk6f gos9wonQ9Fjd0IAmLMBBGj0oNBk/51twRQITsa3Otx06cvp22ul3vmkee49XCPUxw3HW ihssKRyLPp/wKJTgULGhwnu3T4l/0JGZAkqqCmIekW6HYCWB6I4dj/VhNtcg1h8dDUuc oAAFoezhmBgGpn7kD+zpi2j09BAkQ/+Yg4fVL9ef07m5lOWTXnG/mXqKeMKqQ8+AInid vJ8A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=FuEwUkMU6aUSPQit30wKHkooFj+yWbCmhYyxpg+14fg=; b=hItAVtaI10uadsaJZfOW2T+hzD0xualaCenaQ/Nrqm6MTKmAcGhDzrsbyDqRDVjjKW GqD1NqrvYrvDSmtuFqphryy35SlclO4vbjcy8RFyRA1sl9CnaB1TvnQUh6aqefPp+zWI kuUb65Tk/UE06TX/DCKtwsx6DuEiEtRRow72RwNTeLjJsOYSqC3VECyjnvrV52/9txTX DmEi1G2ruZ0hxMPekw4cvd9wPw1yiQzcBFjmnnucZSRdjlubhXh+SRHkCyOyVPbmt+2z t5Ka0p6mca/7yCD0XDEA6aOd6sQMzIt7ffZQsP88T3qp0sjVoKuh+zlrCs6Uu7bWVswo 0DkA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=ctQDsBSi; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k7si3511359edb.265.2019.10.31.03.04.29; Thu, 31 Oct 2019 03:04:53 -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=@nxp.com header.s=selector2 header.b=ctQDsBSi; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); 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=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727348AbfJaKCF (ORCPT + 99 others); Thu, 31 Oct 2019 06:02:05 -0400 Received: from mail-eopbgr130058.outbound.protection.outlook.com ([40.107.13.58]:28266 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726864AbfJaKCE (ORCPT ); Thu, 31 Oct 2019 06:02:04 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jWxgD9piWbcmDyd9QX7Z9LVEAgtMq1CXrzupgwHfTP1ScNxUI0SnHsCH2tJdW3Nd2QULssE/LKpAxchuLu8CxqRIszoyYn0EuzfCmZElIymGML82lXKxIukBB3znGsmuDDim6d1FTHMrCsR87lT0aifU2jvbNNhub3NIDSETdMtTRHkuNaKAv1rEfLCGB5brGpBSc+viZjg1PWbIVtzJCihj40uCXmAczlZvVR1D29dv9DkaJKbLLA9i+NIUYJc5KOi49KVcCfmT8n5VLYJLZ6gtsLcuKm/72JIw7c2MnQ8BUoL52Bb1QH6gy5+R75wIQdn0VX37SDpXvi6ybwXsgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FuEwUkMU6aUSPQit30wKHkooFj+yWbCmhYyxpg+14fg=; b=AJcssvlCGnlYt3dnpEcVDq7UCwCVFL23bi9pB2YQlzDWKcuJRqOi8En/sq/D/TS0pOml0RMg//oCNHluCMBvF0039MUz+tHIyAviXPhqsvOk8HgWK3eZteTuRhyx/aZuga60KZltssUCKo8wOJEaghULgKGVDU6gx3iPiQoanwx0jy8hUbzq46zkL6ZxW/Ynbax4PmHuzhDnv6cyAqdkY1jmeCzcoSKCk+R6slvH5MQTssmQ8sBRdLLqje1/lm4/98DZu3Sv1Jl0DDIzylaXKFIbFhR6wcKUYYfz67y7tpCFzhcWz9XXZLYBOL2fu2hVIcd7vuFWflG8pQyWClDtxg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FuEwUkMU6aUSPQit30wKHkooFj+yWbCmhYyxpg+14fg=; b=ctQDsBSixnLiVhAh6rqc4aFwDvjF5olbOn84Z2hAmhvHk+bffwRulnc1VuRm43Yoh9E/YBEiSUF0E9lAgL+1U+v6vSOuErIsT4UAjDbQxIBwP8ovTWK5sIW232melmD+3PFkeYJGgoW3vnR0JJKARcnreDJCG5p7C35d/tviKec= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB6337.eurprd04.prod.outlook.com (20.179.253.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2387.28; Thu, 31 Oct 2019 10:01:56 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::843c:e722:27cb:74e1]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::843c:e722:27cb:74e1%5]) with mapi id 15.20.2387.028; Thu, 31 Oct 2019 10:01:55 +0000 From: Peng Fan To: "sboyd@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "festevam@gmail.com" , Abel Vesa CC: "kernel@pengutronix.de" , dl-linux-imx , Anson Huang , Jacky Bai , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Leonard Crestez , Peng Fan Subject: [PATCH 1/2] arm: dts: imx7s: ccm: add assigned-clocks Thread-Topic: [PATCH 1/2] arm: dts: imx7s: ccm: add assigned-clocks Thread-Index: AQHVj9I60I1lwvMAGE+caaX9vv5lLA== Date: Thu, 31 Oct 2019 10:01:55 +0000 Message-ID: <1572515888-3385-2-git-send-email-peng.fan@nxp.com> References: <1572515888-3385-1-git-send-email-peng.fan@nxp.com> In-Reply-To: <1572515888-3385-1-git-send-email-peng.fan@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK0PR03CA0118.apcprd03.prod.outlook.com (2603:1096:203:b0::34) To AM0PR04MB4481.eurprd04.prod.outlook.com (2603:10a6:208:70::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: e4580acc-9d46-4b43-f119-08d75de95c69 x-ms-traffictypediagnostic: AM0PR04MB6337:|AM0PR04MB6337: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-forefront-prvs: 02070414A1 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(39860400002)(366004)(346002)(136003)(396003)(376002)(189003)(199004)(446003)(2501003)(71190400001)(71200400001)(6436002)(11346002)(8936002)(2616005)(99286004)(316002)(6636002)(66946007)(476003)(478600001)(50226002)(256004)(14454004)(110136005)(54906003)(305945005)(7736002)(2906002)(2201001)(102836004)(76176011)(44832011)(66446008)(64756008)(66476007)(6486002)(66556008)(486006)(3846002)(66066001)(26005)(386003)(86362001)(52116002)(81166006)(81156014)(186003)(5660300002)(8676002)(25786009)(36756003)(6512007)(4326008)(6116002)(6506007);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB6337;H:AM0PR04MB4481.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: AgUYKdF4cfgqDjRsjWNZnp5HNJdymYrWTEr3hfvNEIeRWYyBx4uMMFvgRzUziA2FYTNtoeGaMz6X13ZkiNf1BhonBiZB/5raOwOzLsCzmGO/9CQTBKTfrVyeWZhmJgAe+eBwFJf4E8iM1V59Mrm7ZU7Ego5ctUpxbplvFxHaSd1YNZVoA7ww8DxdyGHN5GwLvCVMlBI9ICpipBhro8gCMk9MKjy6+plL+i1BBePP/29/RpDXffyNK14sOtljJbTeUx0HLkZ7Zb9uAzd/fJJvA+1c8wlVhpotrafWui7e91dRriBjv09NTMOMtNVOUBgg+hXd3iuwClacNMEjURcPFaAy0Kd+sN8by2Bc/hl9bDMeN8YwResvIQnnYW4UB0CcQfz5amgLesg4Zb8kWhcJpPO+xP6Iw7KNldCsymZcVW5dK5RS/vZbBrK+6qKmpAqF Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e4580acc-9d46-4b43-f119-08d75de95c69 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2019 10:01:55.7433 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 6epMvkXEmYY3oZekKdiQoSLzo/+vvSECtGf4ogxBJvZ5yjqZyCBhhLpzZe+hHaDZJgfAiXGs3MwJLchfB3x2vQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6337 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan Add assigned-clocks and assigned-clock-parents, then we could remove the clk_set_parent code in clk-imx7d.c. Signed-off-by: Peng Fan --- arch/arm/boot/dts/imx7s.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 1b812f4e7453..36ae864d9b7c 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -625,6 +625,26 @@ #clock-cells =3D <1>; clocks =3D <&ckil>, <&osc>; clock-names =3D "ckil", "osc"; + /* + * gpt1 root clk must be twice as gpt + * counter freq + */ + assigned-clocks =3D <&clks IMX7D_PLL_ARM_MAIN_BYPASS>, + <&clks IMX7D_PLL_DRAM_MAIN_BYPASS>, + <&clks IMX7D_PLL_SYS_MAIN_BYPASS>, + <&clks IMX7D_PLL_ENET_MAIN_BYPASS>, + <&clks IMX7D_PLL_AUDIO_MAIN_BYPASS>, + <&clks IMX7D_PLL_VIDEO_MAIN_BYPASS>, + <&clks IMX7D_MIPI_CSI_ROOT_SRC>, + <&clks IMX7D_GPT1_ROOT_SRC>; + assigned-clock-parents =3D <&clks IMX7D_PLL_ARM_MAIN>, + <&clks IMX7D_PLL_DRAM_MAIN>, + <&clks IMX7D_PLL_SYS_MAIN>, + <&clks IMX7D_PLL_ENET_MAIN>, + <&clks IMX7D_PLL_AUDIO_MAIN>, + <&clks IMX7D_PLL_VIDEO_MAIN>, + <&clks IMX7D_PLL_SYS_PFD3_CLK>, + <&clks IMX7D_OSC_24M_CLK>; }; =20 src: src@30390000 { --=20 2.16.4