Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3496454imm; Sun, 16 Sep 2018 20:24:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZeNerMcfBkmbYjf3YwlrIawEW+KIUK7EuIigoekUUGABse9uB/9gyyZ312oakFuNDqRegZ X-Received: by 2002:a17:902:bd95:: with SMTP id q21-v6mr22879157pls.284.1537154685881; Sun, 16 Sep 2018 20:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537154685; cv=none; d=google.com; s=arc-20160816; b=rXgb6hvCM2OAOcOGvQH1QzZO8Iec8HBA0pj7Ou/rprd0HMcIUW43IbxT9Uy4GVi9Mz xn6vi4ap2CUlLLIpzPvnCPkhFVePgDJjKde6WCr6ySRdPbdMVO5XFlHaFqeA388OutVN LJQwpKlr08juaDLRCgxICJIWa0iKPIhRIGUjqz/7SrL13wYbXocTaVcwoUKCyQoQRElW BhWY79br3NSTA04uSOv6eJZ6kCY3RHLHg5wQHw6wIE8Ff1lIUpEzEDpr8jBI5llROYgX iHSaBpS7y/w2G0WcU2KsjXcO4t70g8OnR2GrY4Cm+a15Ze2hdRWZRctA61Z6u7Z6P/X8 2OfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=n2HuukXjsuO7O9I3yj3ffFpQxwUpQbWAV/74nMIwV9M=; b=smAJpnJsLdzFZ/p0wIa7zkgW029xwxtEhV/hZj1+0y80yvaH1SVWDRZg5cNsYCPq0J uQVKLFgsxLIcpZNCXYgigQFFmZpHRV21nucr4pVvM5trCFLrxxY9kjPL8v+/B1iDhGSe +UCVBFDSORkjUBeR44zG/OK0/qy1ZE4CuMpXnFKptEMpQqXcozd2hsQoHpZXjJbIdvVI M9AjCUwsznjbhStWuwTbFDT3CHfmDuCE56k1+v19CM9Ti1kMPR8H1n1oxViaRzZQ18lO M41Cwd99qOg+FnNpWPKMAgAMUN/7h/vl2JR1NXBgpu5WY1VpnaWbjD9t+FnktN8GqDmB xxIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=hir3nCxU; 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 v12-v6si13678717pfm.341.2018.09.16.20.24.30; Sun, 16 Sep 2018 20:24:45 -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=hir3nCxU; 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 S1730274AbeIQIsd (ORCPT + 99 others); Mon, 17 Sep 2018 04:48:33 -0400 Received: from mail-ve1eur01on0055.outbound.protection.outlook.com ([104.47.1.55]:1063 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729632AbeIQIsd (ORCPT ); Mon, 17 Sep 2018 04:48:33 -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=n2HuukXjsuO7O9I3yj3ffFpQxwUpQbWAV/74nMIwV9M=; b=hir3nCxUgzufz4933Otp7gRZdLFTEvgnwFXHEDnj7LKTQNgz42ccydbOnFebuQB+etYi8NOSIhd+A2CGzD7EIxFKSMt3zO+DPw2MX99hY+uAeoXhJkQSx8/so2PV5LP1zrMIX/QHypbI6DcVlpxkeY1vo6Q+whM0szjM5M6GUm4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; Received: from anson-OptiPlex-790.ap.freescale.net (119.31.174.66) by AM0PR0402MB3906.eurprd04.prod.outlook.com (2603:10a6:208:f::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Mon, 17 Sep 2018 03:23:04 +0000 From: Anson Huang To: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, fabio.estevam@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com, rjw@rjwysocki.net, viresh.kumar@linaro.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH V2 1/2] ARM: dts: imx6ul: use nvmem-cells for cpu speed grading Date: Mon, 17 Sep 2018 11:17:43 +0800 Message-Id: <1537154264-23252-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK0PR01CA0018.apcprd01.prod.exchangelabs.com (2603:1096:203:92::30) To AM0PR0402MB3906.eurprd04.prod.outlook.com (2603:10a6:208:f::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fc402f14-453e-4935-a8d5-08d61c4ce436 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:AM0PR0402MB3906; X-Microsoft-Exchange-Diagnostics: 1;AM0PR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z8IaffUCpC9WfrhPuafmHTBA+H8Cki38KGQFrX3TmGm7xUstEtLbblW/Lzc06uDVU0GB41hRutt3+47SZaVkA1MaHzvejUwO4LHIRNJIdG+RGLSB46wJlvMlENyjnAmeZvDSLe7qhN1AtQk+XTuPi46ekjLCsFGczUbXrjS5B06DKvy+J+MiSyUz3sAhBqxohLb0y5pkEJvfjHaKkgvnfEXe+4HgfaTrkgzCII/7r6vSVkEprLw8QtNZWlBseM+WynkEofQz5gpi/I0LIGirlpOaCNpn8k+07NIAJaMOlsQvbPaVe0ZunuMxkMDgp4/qGbC5UmZ7dv86AhNz6NwADy5tbcoDFBuWi;4:9I0Dv2Jy+hQOtL7zuQQzVx/jLwdC2vd30YrafOh+2/VsSGg3Pm21XTFcHSWTueXD2tZuSAFcubHAe0NSNDeKXSa0XP8lNLX/BdjVDob0PFiOt368oYrrrV2Reu11d0pnsdR4XFvWmEsFl0zu8SzpEt77oNeMdSIwL3GEJ7VPwTspi4H9QUaBghKajn1MQ7R2sr502ZZmuPpN0MfQJS5k7ymeD7r7IwPqg+iWM5AkmiAEQUjfs76V/9a0DIjglGZNbD+Eo0qLpi1+w6aDeU0K9Y2PSlLlV2VZ2MpWJ9W8xgMo1jwMdst85eDxQdMGWxg2 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231355)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(201708071742011)(7699050);SRVR:AM0PR0402MB3906;BCL:0;PCL:0;RULEID:;SRVR:AM0PR0402MB3906; X-Forefront-PRVS: 0798146F16 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(136003)(396003)(346002)(366004)(39860400002)(376002)(199004)(189003)(956004)(186003)(3846002)(5660300001)(6506007)(486006)(16586007)(386003)(2616005)(316002)(36756003)(6116002)(52116002)(476003)(16526019)(48376002)(51416003)(6512007)(47776003)(2906002)(106356001)(7416002)(50226002)(25786009)(68736007)(50466002)(105586002)(81166006)(81156014)(6666003)(7736002)(305945005)(8676002)(4326008)(8936002)(86362001)(97736004)(66066001)(26005)(53936002)(478600001)(6486002)(921003)(32563001)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR0402MB3906;H:anson-OptiPlex-790.ap.freescale.net;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;AM0PR0402MB3906;23:+y3938uzyjtqwdAU44QWSNkPpGy1I2ZlDCXm1Ar?= =?us-ascii?Q?a2m4S1sW+U+f2PxVCEcm6uYFtue/0BYnHDrvH4w6Ho6NLOCQly6yRfzGOYKN?= =?us-ascii?Q?81+FY/4ihT+EXZoOcK7Xk+kF9GsFEGyeI6mr73FgZXnAxIMostB5HRJQG9xq?= =?us-ascii?Q?FOKCABCsxDY9p7dGwpiSqYHgZ2XgWtopAFXCw0XdeWJ8NIKrQa8mLNkjJMhA?= =?us-ascii?Q?LflKpWKcLLXkpZ+t/hweH7gRM98Pdq01BRdyjiDv1seSEXhmSI3O7H0GulDE?= =?us-ascii?Q?YfAR88s+zBBzBOAgu8B9tXEAEe6cvkYWG3X99aHTSiEHA1pP6cUwTPxADhM1?= =?us-ascii?Q?2KXehQD+YP+KonZwhA4Jmv8bFqZyDp4r5L70usSzVR0P+W89NSBby02oD0G4?= =?us-ascii?Q?OaXhuarTaroMmJZJ5ABiDMFcd/bnF51+P24qVx2XlqJC/uyvAaAxiTnB5cQ7?= =?us-ascii?Q?RhKknCtqeBBH3a4RshO/skPVNwOOQQcbEyVvb1Qikk7d7/9JMkBHmHPx1fOr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pamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2018 03:23:04.8726 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fc402f14-453e-4935-a8d5-08d61c4ce436 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0402MB3906 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On i.MX6UL, accessing OCOTP directly is wrong because the ocotp clock needs to be enabled first, so use the nvmem-cells binding instead. Signed-off-by: Anson Huang --- no change since V1. arch/arm/boot/dts/imx6ul.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi index 5ef4320..ff8c6de 100644 --- a/arch/arm/boot/dts/imx6ul.dtsi +++ b/arch/arm/boot/dts/imx6ul.dtsi @@ -89,6 +89,8 @@ "pll1_sys"; arm-supply = <®_arm>; soc-supply = <®_soc>; + nvmem-cells = <&cpu_speed_grade>; + nvmem-cell-names = "speed_grade"; }; }; @@ -943,6 +945,10 @@ tempmon_temp_grade: temp-grade@20 { reg = <0x20 4>; }; + + cpu_speed_grade: speed-grade@10 { + reg = <0x10 4>; + }; }; lcdif: lcdif@21c8000 { -- 2.7.4