Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1323509ybl; Wed, 4 Dec 2019 22:39:05 -0800 (PST) X-Google-Smtp-Source: APXvYqy1X7sU4q1GLqK8bxUOFnC1x6HUl/LfqoV+u16wzfS1lfZxTYt1JCmZvPzkUT8tkFxWNdSf X-Received: by 2002:a9d:7495:: with SMTP id t21mr5613053otk.86.1575527945390; Wed, 04 Dec 2019 22:39:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1575527945; cv=pass; d=google.com; s=arc-20160816; b=tIuP/lqqsrAg8/RXpOTj4vPOFI90lyjGFj8wj6KVldqbFDi1/uTfjkYh4VCFJ4U2cs ORzhMDAgkr6HUAdhoGyEPNoRLULaJ9dZypVXGCLBPB3EMtsvpY+Ax12nCUU6hR4bCuLt lEd2qxYKMoTfQ24Ad1pedYGJp4ArDXieAtVm2P5+53IhPqOGVejU4m0s6YQuqOIuk56g 5ieCs5aCAS4LtZ15zrw6COeWupUzjA4dNS1o1jqKgesY8BQjgC2OrmVysSRosgll3ABF 4HYjgixxEwW8kQw4Ns4UrA+qyBbbA3dMzry92zxY6UOjpLa4pPfSU6UzmxKueCSEvp1c TFkw== ARC-Message-Signature: i=2; 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=33LS+ZyloUssHMLNiVKIi6pfKqJm0s1OswnsyX5QmCY=; b=vSmVzZjWy8wXYC3xsKGarwnsEySKm2RN4qnu5MADXmmPSigLRpN/lUR9zZEb8DcYYl 6G41mQXNOf4eGNUgAdlwB7YYEEi026cTyNQ0Ne3xiQjl+ovj9dJIcfECK7aqvsk8huAF efS36Fu1bjnvWJ5Iac+u4em9V5HbY1iBRfXglpWGmPJaixWXmS2W5FWsLEHLEHjCrZaT hLjY4uGjvrdkdjIgGykRj0BjYWPL/+nCXG0PbRccxF4M0cuUPrC7iOdZy8BZHO8k2GRx vYL2XMAzYGgGYXGfWcg1ZucjUsk3Ffjr6/kil2pYaa9PskB2IDTpcJdZGCRkjKnGzH7w JUAQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=XtbWNw7P; arc=pass (i=1 spf=pass spfdomain=xilinx.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t184si4384875oig.184.2019.12.04.22.38.53; Wed, 04 Dec 2019 22:39:05 -0800 (PST) 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=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=XtbWNw7P; arc=pass (i=1 spf=pass spfdomain=xilinx.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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728902AbfLEGh4 (ORCPT + 99 others); Thu, 5 Dec 2019 01:37:56 -0500 Received: from mail-eopbgr680074.outbound.protection.outlook.com ([40.107.68.74]:2267 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726211AbfLEGhk (ORCPT ); Thu, 5 Dec 2019 01:37:40 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RVk1kCycfYPkLbfNWkT4UdIhWBW3pdBKyaMnWgcFqtvxJBBRXmZPB6esP8fBjEVB+k3fYTAf0zGK0VRu+zCuuILM0pqodpvBasrnKdQDbeKshv/fhLoIdtYPBeWGfCnoThD4AE4hH7WYr0emguVYDSRPyuKj75iQg22fkAg6tGoL6E0BKW+/O1Fgf3GrPVMxDi78QagWs1dPYU7zU/E6TYMQxc0TtJ5wD/cQACV60sstGCYtTlRNOWPkA9vRLHVyhcoUlE/gmEvStUyFUDB4x8xK1PLIr6oQl6lX3egW4XejjhN8M3lXMTEB0vQkNJKy3zERGm0JyRjj9UCtIKnksQ== 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=33LS+ZyloUssHMLNiVKIi6pfKqJm0s1OswnsyX5QmCY=; b=kwxhVZfxMESCN1b2sRR0PKUNNkomisw9kJgmbvdBuX3xsP8uEpoKK5+S/ss8TAV3NnczgCqdOJgZU9ky1ib2xKddprdkghqQscaYcLZMqR72ZsT9plOGRQErqX22Omcm8oZd+zqe6cGbPoefthn8XUKZGkfxx9DtFi5HBrnyRl2zSV8wDVPmekdA0S9RTTErM51rjqesnm8CWe1newjAQnvIwvG4PpcsIMrCO/P+PTgwU/OVanMZZG87QkOAMxG1tCW0UzYPN7jemCKMrSa7EgVCkzUT2mtRGt5vjhcdbXhXJevGlq2cEW/gqqtydbAP3rynv1GpMb5qDRb60g8h3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.60.83) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=33LS+ZyloUssHMLNiVKIi6pfKqJm0s1OswnsyX5QmCY=; b=XtbWNw7PeC8HngHNHgxnqby5z51/+Pw3X/tfyDDhA6R0RCaVdtbvWzHybwtsAK7tD/O7KudJHqTxV0ewYJx64Lh14wTGXc3cG2eIPc0EX4DoD9YgLARPQ/KiuIEPAg/2K2APtMpgtRPVgdQHlBczfe3s/PmIpVESLosjdpna7jc= Received: from BL0PR02CA0130.namprd02.prod.outlook.com (2603:10b6:208:35::35) by BN7PR02MB4978.namprd02.prod.outlook.com (2603:10b6:408:2a::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.18; Thu, 5 Dec 2019 06:37:36 +0000 Received: from BL2NAM02FT013.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::204) by BL0PR02CA0130.outlook.office365.com (2603:10b6:208:35::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.18 via Frontend Transport; Thu, 5 Dec 2019 06:37:36 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2NAM02FT013.mail.protection.outlook.com (10.152.77.19) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.2474.17 via Frontend Transport; Thu, 5 Dec 2019 06:37:36 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1icklb-0000xN-1u; Wed, 04 Dec 2019 22:37:35 -0800 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1icklV-0000XV-Un; Wed, 04 Dec 2019 22:37:29 -0800 Received: from xsj-pvapsmtp01 (xsj-smtp.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id xB56bJdw010325; Wed, 4 Dec 2019 22:37:19 -0800 Received: from [172.19.2.91] (helo=xsjjollys50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1icklL-0000WL-Mg; Wed, 04 Dec 2019 22:37:19 -0800 From: Rajan Vaja To: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, michal.simek@xilinx.com, jolly.shah@xilinx.com, m.tretter@pengutronix.de, gustavo@embeddedor.com, tejas.patel@xilinx.com, nava.manne@xilinx.com, mdf@kernel.org Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rajan Vaja Subject: [PATCH v3 0/6] clk: zynqmp: Extend and fix zynqmp clock driver Date: Wed, 4 Dec 2019 22:35:53 -0800 Message-Id: <1575527759-26452-1-git-send-email-rajan.vaja@xilinx.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1574415814-19797-1-git-send-email-rajan.vaja@xilinx.com> References: <1574415814-19797-1-git-send-email-rajan.vaja@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(4636009)(376002)(396003)(346002)(136003)(39860400002)(199004)(189003)(4326008)(5660300002)(16586007)(50466002)(7696005)(81166006)(316002)(336012)(8676002)(48376002)(9786002)(107886003)(76176011)(356004)(51416003)(6666004)(81156014)(11346002)(305945005)(478600001)(14444005)(50226002)(8936002)(26005)(36756003)(7416002)(426003)(186003)(2616005)(2906002)(70206006)(44832011)(70586007)(36386004)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR02MB4978;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;LANG:en;PTR:unknown-60-83.xilinx.com;A:1;MX:1; MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 008fa6ff-3627-4751-bf7b-08d7794d9e10 X-MS-TrafficTypeDiagnostic: BN7PR02MB4978: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:3826; X-Forefront-PRVS: 02426D11FE X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GixZawCC27bTcGF15s5shn5D7og2KQf6FBLpMwvLopd7E2MG1Bkm6XHqwa323sQe1kdWialSpvRtL5OeMXjtBEp3UKHSmqahn+ToANwUG9KR0zPyzxBta+IQEeWA82FQ99ZY3Pd4thmlSZyMN8iQGlOhe0D/1CVg3alGrDRN5rGcK6axvw1efNK2CThYkGWBOZW7eVlilo2PZDYyZgtJ+uf8nt8fXq0P3nV7vFJpzQTwtrWXsPqIAGyDcq+SqWKl69Ucezk5VZOXtnOvMHzEldRW/WhNYUhw4VghvJ4/xwxUE7p0LEOwqGZEAV5FcPDXp78dHPHvQIK9bVR/pifG68w3FFE6wb5edzR5pdg3KUnJ2Y2e9a8jdGBDZ5qTWh7PJr51K+3afDsKSNkiFwrWZM9Wd5yd836VG+CYSWBMcD+saytjXHTq3E9jBCBLz6W2y+H2jqv6oauq74Wb4OBFAwdjqU4MmoXlI5DBNOKTjM+XtsVTMpQzIOWDAG7Mc2s2 X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2019 06:37:36.5823 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 008fa6ff-3627-4751-bf7b-08d7794d9e10 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN7PR02MB4978 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ZynqMP clock driver can be used for Versal platform also. Add support for Versal platform in ZynqMP clock driver. Also this patch series fixes divider calculation and adds support for get maximum divider, clock with CLK_DIVIDER_POWER_OF_TWO flag and warn user if clock users are more than allowed. Rajan Vaja (5): dt-bindings: clock: Add bindings for versal clock driver clk: zynqmp: Extend driver for versal clk: zynqmp: Warn user if clock user are more than allowed clk: zynqmp: Add support for get max divider clk: zynqmp: Fix divider calculation Tejas Patel (1): clk: zynqmp: Add support for clock with CLK_DIVIDER_POWER_OF_TWO flag .../devicetree/bindings/clock/xlnx,versal-clk.yaml | 64 +++++++++++ drivers/clk/zynqmp/clkc.c | 3 +- drivers/clk/zynqmp/divider.c | 118 +++++++++++++++++++- drivers/clk/zynqmp/pll.c | 6 +- drivers/firmware/xilinx/zynqmp.c | 2 + include/dt-bindings/clock/xlnx-versal-clk.h | 123 +++++++++++++++++++++ include/linux/firmware/xlnx-zynqmp.h | 2 + 7 files changed, 310 insertions(+), 8 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml create mode 100644 include/dt-bindings/clock/xlnx-versal-clk.h -- Changes in v3: - [PATCH 1/7]: Update SPDX-License-Identifier. Changes in v2: - [PATCH 7/7]: Removed patch #7 to fix clock frac to handle backward compatibility. Will send this patch separately with proper backward compatibility handling. - Rest of the changes are mentioned in individual patches. -- 2.7.4