Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp520637ybc; Tue, 12 Nov 2019 05:18:23 -0800 (PST) X-Google-Smtp-Source: APXvYqz6RY1P1EekoyVBWc9+CX/PfYmztgP742OWPPmubQ7KoR7fBpwQdCNaOToPwgBfZLOdyMvJ X-Received: by 2002:a50:ac2c:: with SMTP id v41mr32272553edc.11.1573564703299; Tue, 12 Nov 2019 05:18:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1573564703; cv=pass; d=google.com; s=arc-20160816; b=tba+vh8HKjATrtrjOj52fkB1vv4HsEFtNc8cMOjnReg222MwBOf4NiqECOjAMN/gCH AFggiG1bk/93q8VLtZs6XMeZrE8p5ZyqS14atJoBoE2Qxm8FEEyOl8QUcq2DlIlr5BOv fTKrF7u6/hmHsvw8FGexzJP4WhPqb4ZoE2hFeAOu4GCv1uAdWLo/aPzk7EGoGIa+gSVN nabxKSES0U9uOQrxaCzAgcpcoje/HnU0F/eD+mEGUSXpU1KKFrLT5rVirCLZVQ3OM7JW 9qbBoYe6n+YUj4OlVcQhwKjottBdY4ITnZdx5nC1SqKTtkqIoH0CTNHFy783xb00bC5c MU2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=kjJQF/rMyDwnWAHZ2OgcVJxIiRzJIybjry1lY+4QTFg=; b=UGHV2Ef8KTi9PA9MAWXcj772x+tD6g6anKTLc3iuJZNcpIbEg95tJfoqvv2s5FP/Iy qHBujwWOoNwmrrvlj8++8pYQ1XQj65/oM04zy/ryINit/dcsZD3/MkzArXmExY4KAvmu YE8TQx+mbNMgvLVukQZMB0/r/5x8ZnXalZvNkGeMyJ48FdbZqHLP060ugUK7LrLqegTZ WvNY1zu/AwgMbTx6gm05/LDL1xABPMqxCvPxfWvxILXyFQ+D8b1iiwYAAQbfI1jkuC+e 58xn9So/Ll5mDx7i2z49hKWb+hskqQqDY0HBVdmPUxUj1QiUAFGcFvHGZWlkXbADNnK2 A4mQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=S914k7OE; 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 jo17si1394789ejb.312.2019.11.12.05.17.59; Tue, 12 Nov 2019 05:18:23 -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=S914k7OE; 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 S1727167AbfKLNRP (ORCPT + 99 others); Tue, 12 Nov 2019 08:17:15 -0500 Received: from mail-eopbgr740042.outbound.protection.outlook.com ([40.107.74.42]:21050 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725865AbfKLNRP (ORCPT ); Tue, 12 Nov 2019 08:17:15 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E+8oO8iNbI462fwEIJ8+DV8J19yRbAJq4FFYxRf5Z/19xZRlzU0lTqGqjJLxl7ScXm3igjvmJcJjhYE3VSCBpEdDk4sg6+klPiC9ugHLVxIbpzMZ86qqRvrrH7t0Xgxe2yQIZUIo26Zyt4SAFz4yDK/E9uURmbjgPofn+3c32QN1sd0q9WzFqVylDRNdFmLRgQFvvZUqDbZRsOI6gCbV1jr0A6pcjVfLHIUaYX9824n92NuHyUUIqjVVOJppBR/sLbgvagXEupUGOEbzWPxnQgWH6XwF47htNYM7Kr5LnpVcpQub1qanWSygSrOU3Xk26E4zcfDDsk8P5WXyhv9z6w== 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=kjJQF/rMyDwnWAHZ2OgcVJxIiRzJIybjry1lY+4QTFg=; b=oZGj6wMQVtqHqcbDWyQminzN4BFMXN913ofJj7KXm90kt6FGMWdcSyXDZE28REc1eM48t/6MLT4oW7fUEqwQMjpf1/Yi4DMv2kEdkAErw8QoCZnQOrkOCn2iiaXPT29WGrsOSYxU/Qd/lrSwaUjVox42zDw1Q6BTmTWTE60vUJ4ZvE7dNLNLBIrLIdvbwsBbFZxOQE4KUXAe685kRYoRKL0uQPOhECl8S8nnjPJrPE5jGwaM7ItcV/WsZLdvvlYG4blNDBevJeJ8au4ICM5AxzxG0eoVcNP1P0pLh/XJJr3ySpFGXxcHSSaGK81JMekGwBc2pHLZihs/PhK7c31cEQ== 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=kjJQF/rMyDwnWAHZ2OgcVJxIiRzJIybjry1lY+4QTFg=; b=S914k7OEWIEWTmq7re1aJuuXlNr21nHvUxcyIDxoNMRpjweIj89qqeGcnlDFd/5bGAvBXRBq11WcSnHm5DUz4WyHCwDOfh+Cryxw1KsS7myBtP5Vdj1t+PeSnCm/jHY6gyu4fD6r0u0kJMpKdNOroSNhDLqSWEgcmhg+rxPtigE= Received: from DM6PR02CA0136.namprd02.prod.outlook.com (2603:10b6:5:1b4::38) by BYAPR02MB5573.namprd02.prod.outlook.com (2603:10b6:a03:9b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.22; Tue, 12 Nov 2019 13:17:10 +0000 Received: from CY1NAM02FT051.eop-nam02.prod.protection.outlook.com (104.47.37.51) by DM6PR02CA0136.outlook.office365.com (20.179.165.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.20 via Frontend Transport; Tue, 12 Nov 2019 13:17:10 +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 CY1NAM02FT051.mail.protection.outlook.com (10.152.74.148) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.2430.20 via Frontend Transport; Tue, 12 Nov 2019 13:17:09 +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 1iUW2f-0003sh-8x; Tue, 12 Nov 2019 05:17:09 -0800 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1iUW2a-0004GJ-50; Tue, 12 Nov 2019 05:17:04 -0800 Received: from xsj-pvapsmtp01 (maildrop.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id xACDGwuU022459; Tue, 12 Nov 2019 05:16:58 -0800 Received: from [172.19.2.91] (helo=xsjjollys50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1iUW2U-0004Ds-9C; Tue, 12 Nov 2019 05:16:58 -0800 From: Rajan Vaja To: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, michal.simek@xilinx.com, m.tretter@pengutronix.de, jolly.shah@xilinx.com, dan.carpenter@oracle.com, gustavo@embeddedor.com, tejas.patel@xilinx.com, nava.manne@xilinx.com, ravi.patel@xilinx.com 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 0/7] clk: zynqmp: Extend and fix zynqmp clock driver Date: Tue, 12 Nov 2019 05:16:13 -0800 Message-Id: <1573564580-9006-1-git-send-email-rajan.vaja@xilinx.com> X-Mailer: git-send-email 2.7.4 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)(396003)(136003)(346002)(376002)(39860400002)(189003)(199004)(486006)(16586007)(9786002)(478600001)(44832011)(2906002)(36756003)(316002)(47776003)(36386004)(7416002)(4326008)(305945005)(6666004)(356004)(6636002)(107886003)(426003)(26005)(48376002)(50466002)(7696005)(51416003)(5660300002)(336012)(50226002)(70206006)(8676002)(186003)(81156014)(2616005)(476003)(126002)(8936002)(70586007)(106002)(81166006)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR02MB5573;H:xsj-pvapsmtpgw01;FPR:;SPF:Pass;LANG:en;PTR:unknown-60-83.xilinx.com;MX:1;A:1; MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 69e9ad11-5642-427a-fbd7-08d767729faa X-MS-TrafficTypeDiagnostic: BYAPR02MB5573: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:1148; X-Forefront-PRVS: 021975AE46 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vs/ZzYRbnKavYMDBnB7ZntKM6Re4Xnpxm1Ar0w6ILmX6BYR8A4++lrCxKWVm7FYuKWoseSuDgbwEJ5aWxNhYMj3pWcVCFOPS/qr4sUbksADkt8NFiQmcy3O588kNqtyVtAeAEu+kWAw0UB41y4Eqe8fWTnEVtkPkVKuLzBdyskYHRVpW+MvYngnOIJnv0f9sNkDLLbFOL5nuuGDgprsXIo3fp8NZF0IB1SliktcRTS6afs1HQPTgx+j9uGFlZ7gVvMqObP2G1sBbBVEQ5yBelyxsK8nS71PPZ0YHcoJ/GY6kxEoxeV/KOFsZ2tZOZS9ihnEIcPbMoU25IHtWd6OAuBtaAe9T+a7IfHzPzl2j6AcIwBr3DFXWjXNZWg9I0NbpBw/U5gc7sP0sA886aLjrja6kJOpFmlre7mLJgYCdM39TT8124cMp4PpOpS4ceUu+ X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Nov 2019 13:17:09.7629 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 69e9ad11-5642-427a-fbd7-08d767729faa 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: BYAPR02MB5573 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, fractional clock check 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 (6): 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 clk: zynqmp: Fix fractional clock check Tejas Patel (1): clk: zynqmp: Add support for clock with CLK_DIVIDER_POWER_OF_TWO flag .../devicetree/bindings/clock/xlnx,versal-clk.yaml | 67 +++++++++++ drivers/clk/zynqmp/clk-zynqmp.h | 1 + drivers/clk/zynqmp/clkc.c | 7 +- drivers/clk/zynqmp/divider.c | 108 ++++++++++++++++-- drivers/clk/zynqmp/pll.c | 9 +- drivers/firmware/xilinx/zynqmp.c | 2 + include/dt-bindings/clock/xlnx-versal-clk.h | 123 +++++++++++++++++++++ include/linux/firmware/xlnx-zynqmp.h | 2 + 8 files changed, 306 insertions(+), 13 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/xlnx,versal-clk.yaml create mode 100644 include/dt-bindings/clock/xlnx-versal-clk.h -- 2.7.4