Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4313794yba; Mon, 29 Apr 2019 17:59:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwtEFfeZMCEHpr9xyIghq6a1I0BEF5Ah+wg/YXscAxnudGgEUIxnlnOOgcWP4HT36mVV00 X-Received: by 2002:aa7:8694:: with SMTP id d20mr66196005pfo.81.1556585990550; Mon, 29 Apr 2019 17:59:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556585990; cv=none; d=google.com; s=arc-20160816; b=NoFfxdkvIneerFdmegPHM04kT/yBrHKDid0sODLXqKm1n2kjwMme5+bWQlR1HoYtNY JC5O6TU8xe1fGQG7scnwv27V7GHxy+UosTwnQtqkaExgE4GnDrY28PJMvIbk53nh/s52 VsV7jJCXKYHyyQiNiZKYPMqWNsjIjkx7W7mWpEtptAUJSBgQ1sBaICIE+3KktSW4DtpC CXQERzo2K0xOoAF1eA1hfD1z5QPTGJF6LOfKpkPo3+sXYWWtidUu9LJVR8O1eHIk++Mj Fruw1De1Ogn4MztMXkVCoh1H+AsOVnDUA8B3Xk+khz9pt3Y3fqxvlybaHmzhu+6sTt4L bjUw== ARC-Message-Signature: i=1; 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:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=VUNyhrII1OT+eH8jknP9HHyxvJ9BILSAybBP29zZMTk=; b=psKxH2EwDwijIvKTBM1tTSn4j5TqRRdjpSaFNUHc0pOptUhCvjqYBysV8I1NNVmwbf CrNdWzKWCzRUkxZSAWaCYATxLtQwAtCo8Sp84JGkgzL9U9I83AvJ0EQvabPaA9ECajWi kw3Wrh/RvhbjYOYS7/I66mC9uL7ODMnJfwvS6hOsFmLU10jf2PDUbUm0PnYMZcjiAYtt cY6k66FWFNvBJN7xowrt7Auo1KFuDz/YkUHU6dfUjN+3BHQ0woZx81u7pVFrNYdTbLF4 o+fe0aegihTL5qrycgt7MoakkXeQNN6qDO2WmZLi3s3Ewq6R1JxJs8D+QIJzoEhZV/CO +FCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=Kf9a1Q1J; 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 e15si20935779pgm.377.2019.04.29.17.59.34; Mon, 29 Apr 2019 17:59:50 -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=selector1 header.b=Kf9a1Q1J; 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 S1729671AbfD3A5a (ORCPT + 99 others); Mon, 29 Apr 2019 20:57:30 -0400 Received: from mail-eopbgr00048.outbound.protection.outlook.com ([40.107.0.48]:6214 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728997AbfD3A53 (ORCPT ); Mon, 29 Apr 2019 20:57:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VUNyhrII1OT+eH8jknP9HHyxvJ9BILSAybBP29zZMTk=; b=Kf9a1Q1JnaYWh7w5lDYAbOr5kiBF7eavYd4jW5gIl5py01e/SgGlTyw+iKuGM1czYD0uykEKRWklgdrZPm5xocKLK6RZVcrjmObmv1nuRxDHVxRpgSHy93gvErcs+JOy6H5JEhDzEEt5WYNw1albgzIiIBBAbYoFzF9pypIbpbo= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3866.eurprd04.prod.outlook.com (52.134.71.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.13; Tue, 30 Apr 2019 00:57:22 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::e8ca:4f6b:e43:c170]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::e8ca:4f6b:e43:c170%3]) with mapi id 15.20.1835.018; Tue, 30 Apr 2019 00:57:22 +0000 From: Anson Huang To: "mturquette@baylibre.com" , "sboyd@kernel.org" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "festevam@gmail.com" , Aisheng Dong , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH V2] clk: imx: pllv4: add fractional-N pll support Thread-Topic: [PATCH V2] clk: imx: pllv4: add fractional-N pll support Thread-Index: AQHU/u+rfzNhsf6HmUqZui5Dk6oOlQ== Date: Tue, 30 Apr 2019 00:57:22 +0000 Message-ID: <1556585557-28795-1-git-send-email-Anson.Huang@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: HK0P153CA0032.APCP153.PROD.OUTLOOK.COM (2603:1096:203:17::20) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b8978e38-a7ee-456c-e734-08d6cd06cd9d x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020);SRVR:DB3PR0402MB3866; x-ms-traffictypediagnostic: DB3PR0402MB3866: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6430; x-forefront-prvs: 00235A1EEF x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(376002)(136003)(396003)(39860400002)(346002)(189003)(199004)(2201001)(386003)(53936002)(316002)(6436002)(6486002)(68736007)(86362001)(6116002)(5660300002)(3846002)(102836004)(26005)(6506007)(186003)(110136005)(2501003)(36756003)(8936002)(6512007)(66066001)(66556008)(256004)(66446008)(99286004)(4326008)(2906002)(476003)(486006)(2616005)(305945005)(7736002)(8676002)(25786009)(73956011)(71200400001)(71190400001)(66946007)(50226002)(478600001)(97736004)(81156014)(66476007)(81166006)(52116002)(14454004)(64756008)(921003)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3866;H:DB3PR0402MB3916.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-message-info: MwMOdXuvCIsE6EUFLVg2mLoGEMfc2GCLIuiim/SzvoK2JAzH1sfMkkmddB0EgwFjjiGPKI4o23aKMm9et9S3C7yhQxjqC3GV0RrkbdzWOTAKHKNyyWtwv9ADqjhig2GmY0AiHi4s13SFzsE0hqi0gSlt1+1DljLa8awcUSYTTRScMPwgd8UrZTmciXZRtA0H8x8aLd7w4Ve52bbgOlpFFxD99HsAHNEMtk+hx+zpmXGp22/JOJldtTrvWSIFFQndR1BL/bY1g0uP036EpDgkpSnUHIHnkkHmhcD0sLxY6ltwq+o91LXpI7K0kRHe1hibPe2NhnclBRqvEWTD/oXsIw1IvJLoHrX3O84haIe1Xo3+75o0qk0hQCG9DRmYx4p5fQRcA2SlAp2LfMQydTd75JoeYzcniRBrwPu5TP9ZXAA= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b8978e38-a7ee-456c-e734-08d6cd06cd9d X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Apr 2019 00:57:22.8513 (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-Transport-CrossTenantHeadersStamped: DB3PR0402MB3866 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlIHBsbHY0IHN1cHBvcnRzIGZyYWN0aW9uYWwtTiBmdW5jdGlvbiwgdGhlIGZvcm11bGEgaXM6 DQoNClBMTCBvdXRwdXQgZnJlcSA9IGlucHV0ICogKG11bHQgKyBudW0vZGVub20pLA0KDQpUaGlz IHBhdGNoIGFkZHMgZnJhY3Rpb25hbC1OIGZ1bmN0aW9uIHN1cHBvcnQsIGluY2x1ZGluZw0KY2xv Y2sgcm91bmQgcmF0ZSwgY2FsY3VsYXRlIHJhdGUgYW5kIHNldCByYXRlLCB3aXRoIHRoaXMNCnBh dGNoLCB0aGUgY2xvY2sgcmF0ZSBvZiBBUExMIGluIGNsb2NrIHRyZWUgaXMgbW9yZSBhY2N1cmF0 ZQ0KdGhhbiBiZWZvcmU6DQoNCldpdGhvdXQgZnJhY3Rpb246DQphcGxsX3ByZV9zZWwgICAgICAg ICAgICAgICAgICAgICAgMSAgICAgICAgMSAgICAgICAgMSAgICAyNDAwMDAwMCAgICAgICAgICAw ICAgICAwICA1MDAwMA0KICAgYXBsbF9wcmVfZGl2ICAgICAgICAgICAgICAgICAgIDEgICAgICAg IDEgICAgICAgIDIgICAgMjQwMDAwMDAgICAgICAgICAgMCAgICAgMCAgNTAwMDANCiAgICAgIGFw bGwgICAgICAgICAgICAgICAgICAgICAgICAxICAgICAgICAxICAgICAgICAyICAgNTI4MDAwMDAw ICAgICAgICAgIDAgICAgIDAgIDUwMDAwDQogICAgICAgICBhcGxsX3BmZDMgICAgICAgICAgICAg ICAgMCAgICAgICAgMCAgICAgICAgMCAgIDc5MjAwMDAwMCAgICAgICAgICAwICAgICAwICA1MDAw MA0KICAgICAgICAgYXBsbF9wZmQyICAgICAgICAgICAgICAgIDAgICAgICAgIDAgICAgICAgIDAg ICAzMzk0Mjg1NzEgICAgICAgICAgMCAgICAgMCAgNTAwMDANCiAgICAgICAgIGFwbGxfcGZkMSAg ICAgICAgICAgICAgICAwICAgICAgICAwICAgICAgICAwICAgMzUyMDAwMDAwICAgICAgICAgIDAg ICAgIDAgIDUwMDAwDQogICAgICAgICAgICB1c2RoYzAgICAgICAgICAgICAgICAgMCAgICAgICAg MCAgICAgICAgMCAgIDM1MjAwMDAwMCAgICAgICAgICAwICAgICAwICA1MDAwMA0KICAgICAgICAg YXBsbF9wZmQwICAgICAgICAgICAgICAgIDEgICAgICAgIDEgICAgICAgIDEgICAzNTIwMDAwMDAg ICAgICAgICAgMCAgICAgMCAgNTAwMDANCg0KV2l0aCBmcmFjdGlvbjoNCmFwbGxfcHJlX3NlbCAg ICAgICAgICAgICAgICAgICAgICAxICAgICAgICAxICAgICAgICAxICAgIDI0MDAwMDAwICAgICAg ICAgIDAgICAgIDAgIDUwMDAwDQogICBhcGxsX3ByZV9kaXYgICAgICAgICAgICAgICAgICAgMSAg ICAgICAgMSAgICAgICAgMiAgICAyNDAwMDAwMCAgICAgICAgICAwICAgICAwICA1MDAwMA0KICAg ICAgYXBsbCAgICAgICAgICAgICAgICAgICAgICAgIDEgICAgICAgIDEgICAgICAgIDIgICA1Mjky MDAwMDAgICAgICAgICAgMCAgICAgMCAgNTAwMDANCiAgICAgICAgIGFwbGxfcGZkMyAgICAgICAg ICAgICAgICAwICAgICAgICAwICAgICAgICAwICAgNzkzODAwMDAwICAgICAgICAgIDAgICAgIDAg IDUwMDAwDQogICAgICAgICBhcGxsX3BmZDIgICAgICAgICAgICAgICAgMCAgICAgICAgMCAgICAg ICAgMCAgIDM0MDIwMDAwMCAgICAgICAgICAwICAgICAwICA1MDAwMA0KICAgICAgICAgYXBsbF9w ZmQxICAgICAgICAgICAgICAgIDAgICAgICAgIDAgICAgICAgIDAgICAzNTI4MDAwMDAgICAgICAg ICAgMCAgICAgMCAgNTAwMDANCiAgICAgICAgICAgIHVzZGhjMCAgICAgICAgICAgICAgICAwICAg ICAgICAwICAgICAgICAwICAgMzUyODAwMDAwICAgICAgICAgIDAgICAgIDAgIDUwMDAwDQogICAg ICAgICBhcGxsX3BmZDAgICAgICAgICAgICAgICAgMSAgICAgICAgMSAgICAgICAgMSAgIDM1Mjgw MDAwMCAgICAgICAgICAwICAgICAwICA1MDAwMA0KDQpTaWduZWQtb2ZmLWJ5OiBBbnNvbiBIdWFu ZyA8QW5zb24uSHVhbmdAbnhwLmNvbT4NClJldmlld2VkLWJ5OiBEb25nIEFpc2hlbmcgPGFpc2hl bmcuZG9uZ0BueHAuY29tPg0KLS0tDQogZHJpdmVycy9jbGsvaW14L2Nsay1wbGx2NC5jIHwgNzIg KysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrLS0tLS0tDQogMSBmaWxlIGNo YW5nZWQsIDYzIGluc2VydGlvbnMoKyksIDkgZGVsZXRpb25zKC0pDQoNCmRpZmYgLS1naXQgYS9k cml2ZXJzL2Nsay9pbXgvY2xrLXBsbHY0LmMgYi9kcml2ZXJzL2Nsay9pbXgvY2xrLXBsbHY0LmMN CmluZGV4IGQzOGJjOWYuLmQ3ZTYyYzMgMTAwNjQ0DQotLS0gYS9kcml2ZXJzL2Nsay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