Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp250252imm; Thu, 13 Sep 2018 20:08:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZxhTczFFWyfpJEoIyHUzeTvedvrcm3Z8qK3scL8EQuZAQkBhSZ42JCNAQ+whl+/yYYdSs/ X-Received: by 2002:a17:902:6808:: with SMTP id h8-v6mr10025999plk.27.1536894506784; Thu, 13 Sep 2018 20:08:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536894506; cv=none; d=google.com; s=arc-20160816; b=cXDTWfoTtztPhE9Iv/8EmjN4ja566D+KLYBsO2eMGEXUllDHPXRPzwZEDEnuhNP2B/ 6FILW1KZUfod9fLIIete/5eips/l4CjLiwC08ZbkXEJoIKPWl8JR9SFxeiQLNwxTqMxS CAoOczqrDrNe6ybfGvOsNd9gKyjYAkD3VIgoGSVLXZWQ9xeexG2wr/o2FExTmJ2aUqWd 3a42jk2fj/NVHkgGRNOrHnHF0IkffXYzjAXsuyWUkYSDgDAv4gC/7xOGj4pog5Lz8IDF L+8EZDa+vMN8hbDaTdjou3tAFCOYLq/9JAhUwbugT5uUQKzH+Zk0L0Xfum9d2X5XMALB DtMg== 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=xNOZ16vBNMsljN/uF/C0F0bpj6lB5J6S1Esja74Hp+Y=; b=HksTDf/1/zn0xL29SsUq8r+ovpHKihGtoa06eCJNWVw6NL+eO0wp7iUdXmbuWQBT5d 4KoAHsqOmL/uZ4x636FxunPtNX0CW+hyXTAKximI60ZT/WmLxzDoX3/C4Pe0o791XyqG 24MnG0VqI40iw5teW71VtGlKxzehpS/Cg5nW6JijyJLVJtHc+s81YMYXqvCRM+aGSheu XkrFduU3fpum/k+tPgWIc7Bc4mVjf09tPN4nirFif1NDEifX4kIi/BDvMDmXtG+BX9MM HnhpJw7k/zhvgg7Sp4KvZHhaaw76Ujx3JtnYv5rSoHtXi93CND0WKnwSuEiD6CbfRj1I g3Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=Qy+aZjO8; 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 t7-v6si5508465pfh.3.2018.09.13.20.08.11; Thu, 13 Sep 2018 20:08:26 -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=Qy+aZjO8; 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 S1728386AbeINIQd (ORCPT + 99 others); Fri, 14 Sep 2018 04:16:33 -0400 Received: from mail-eopbgr00085.outbound.protection.outlook.com ([40.107.0.85]:50144 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725953AbeINIQc (ORCPT ); Fri, 14 Sep 2018 04:16:32 -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=xNOZ16vBNMsljN/uF/C0F0bpj6lB5J6S1Esja74Hp+Y=; b=Qy+aZjO8Cqdx/CGi6UZHZNGXUxAMG8z5QSsfrzarbSxwyW1T/UiDbHqLd7ooDGNVSynSBHCo2wxlIWQufdN7k5i3w2o5hz95r4oznKLmKf8+ySiKmbwz5CPzuyDkJgOTzX2FobGXXYxanto537IbmThZrmVxDKVV2sjBrOAqTfM= 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 AM6PR0402MB3911.eurprd04.prod.outlook.com (2603:10a6:209:1c::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.15; Fri, 14 Sep 2018 03:04:02 +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 1/2] ARM: dts: imx6ul: use nvmem-cells for cpu speed grading Date: Fri, 14 Sep 2018 10:59:21 +0800 Message-Id: <1536893962-11200-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: HK0PR03CA0064.apcprd03.prod.outlook.com (2603:1096:203:52::28) To AM6PR0402MB3911.eurprd04.prod.outlook.com (2603:10a6:209:1c::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7e8cdd8d-27c5-4547-b065-08d619eebbef 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:AM6PR0402MB3911; X-Microsoft-Exchange-Diagnostics: 1;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Fs+4y1Jr6d2904UfELdMYMMLqNAdeY+5Aki/iE8FzegWhGiGhhbiQUz9FHI+d1lAwganEeqwYdjItQBNk6YmEqcsn2z8BKl5NP7Oxam5jdOPr6t/6E55cdO5ZrvJlBVnl8FMnE1XOFZojRlEKJ1BdpNFyUnVKl+sgcWVM0LQ5+jMgY1nGz2evNoO9oCrbiBaRqG8cgl6LEOIWKBkm3ox1OMjEPnpifLVeFwiDnlN9Hy3unsgL2ATIG1+NQMJ6KYDphxj7am6iC0t8YPflio/Vymck5OY8onKbHdIBmA9p7/+ztknpi2u+hNtQXH9oPmR59VRI1ndVE9qyQL8TQoVWwrnMiuIM;4:pohkgf8/sjtpXCG9Go2G9p/zXSrYdJ1TKKCqBGF230jaAyrlnVHkvL30mNz6f3UjEmwVsSBrc+RCVrE/6S+lAKMGlVShf08j8ngYmTAhV8dxyWY1LHnwach9iKtN98WbHvyVugOe5ShShAJ4cHtHKFEKkun98s9hcZQiXtb6iO4ZXQBQj+OEDtMCW+tTE7GHlzx9eIRcPlXSy6gEeew1PUh8/z9oycySSnBoO8+3L4buZ9IdxnnlREC8robrxojV2MW/xHe4gCbNTgC0UImreVa2cyH7Ee1bQ1AzG7p0S49f8AzDGyknaKLLnXdb8g8K 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)(823301075)(93006095)(93001095)(3231311)(944501410)(52105095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699050);SRVR:AM6PR0402MB3911;BCL:0;PCL:0;RULEID:;SRVR:AM6PR0402MB3911; X-Forefront-PRVS: 07954CC105 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(136003)(366004)(376002)(346002)(39860400002)(396003)(189003)(199004)(956004)(2616005)(81156014)(81166006)(6512007)(36756003)(47776003)(476003)(6506007)(386003)(5660300001)(7736002)(2906002)(305945005)(478600001)(26005)(3846002)(316002)(6486002)(66066001)(105586002)(16586007)(8936002)(97736004)(68736007)(4326008)(486006)(52116002)(53936002)(106356001)(51416003)(186003)(575784001)(86362001)(25786009)(16526019)(48376002)(8676002)(6666003)(6116002)(50466002)(50226002)(7416002)(921003)(32563001)(1121003);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR0402MB3911;H:anson-OptiPlex-790.ap.freescale.net;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-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;AM6PR0402MB3911;23:0/7D+b5ZSZ4/MU7XZV+3Uf8hUwzgzLtYlujWHy+?= =?us-ascii?Q?XP/fynmg0IqW0uF1zprzoZZhYS3WokjRKv5DdGoXnhTDRQNOB8DaF81uz4pQ?= =?us-ascii?Q?aqx5RGo0IpMLBzpOwqtnpyPBb/ZNJMmUw5PqpLE9tWmhfSf55rfUNCKswQT9?= =?us-ascii?Q?KHL8EcsHxXtRkneIAbgNcXcUSRv3l1EWUHdlDPuRaCgFBohBSVwhyyE+uWzA?= =?us-ascii?Q?2sJKgt93Z9WxjbgAFTlP/1U+qLB5yu8dGp8TR2xQsqbJj32gmcSkpZxBovTR?= =?us-ascii?Q?xn3XkjNVDffK1pXbW3StwN3GXwRSq/xEote5N4RQ6016SCFqLFH1nQrO/qVu?= =?us-ascii?Q?DElSfV5q8ib/a6eIYC+orfEs5jAgwcbgpveunOb4wCnHqRfI/d44y4T46AgA?= =?us-ascii?Q?dCvNYC8F0SnWvU7J0MwT34hsmIhe/2E5yzaj5uR+tqnazfMw8xZFFE29+5V9?= =?us-ascii?Q?3NcqZMHbBH1UvNKDSuPuNrfaPjJcqo35JReMmKTCy21KedUTKg5aZOXOIZug?= =?us-ascii?Q?fBh5j6MJKanJUqbjBeDG0UVWH8+Rlb5af9Y6GTrc+VDpZpVCHZVUSVNRhXax?= =?us-ascii?Q?TKhdB8HOUepzDSk71HXjJiF8Sg/+KouwxWkdTYAavorSacsUbykJ2DP0DNoL?= =?us-ascii?Q?ZLSUwlrfEp33xQDbDdPRYq1d1rNkd1HU7M+lgw5wlp4TsTRYe52xvxHMgVfT?= =?us-ascii?Q?RkUxudnr0E+aesfygKneF218BzFVsYl9VEINq2Rzk8DlWzbGPnLiorgoVWXG?= =?us-ascii?Q?MK7j6ydf3b3xT4VsYQR99MqUUctuX97TtZoS0EK2DWgx+1LG0Xc97hwBIdFv?= =?us-ascii?Q?W3X1U37A47Mk8cUGGvLCvH6mV1ZLldOOId46u+o36mPt5et1NTRKneGjhnND?= =?us-ascii?Q?XA3OEEJxGUIgONj0vz2dPXleZtTbMg1WruF39wIzvGHh1vs+mZcK6Jk8PL2Y?= =?us-ascii?Q?B09I9DhTLIsVgRzxKLeoC3pJL4jZ9z0sYqAcKpYl+ethHLAqZ1fXm25dwZk2?= =?us-ascii?Q?nz+iyYkrwTGlOKTDyJKYoYc5W5DFUtVlnVwQ8AnPgc6dEicgSZRnWwBU0G6T?= =?us-ascii?Q?IkEgneg9ayj92mE9o7YuhBIPod+PenKbIzYf9e/aBHL/RPzylsgEiHaCwhbP?= =?us-ascii?Q?0N9sIkqu8t5alLR7wKuA93z+4asFTd+e2wBS7VCRO0dNHp1K4wTIHaISyWjb?= =?us-ascii?Q?ZJYh3+i18U7H++qI=3D?= X-Microsoft-Antispam-Message-Info: o4KMdA+890zYN4HE1xvuWj8P6GrYTrxMLcEpn2IaFV6u1+nfgOo5LEfG+4lzNTO1WYOTTKAGs1dp+KFoAIhpy05WpMSMsOLBOV6KMabDONseuxudFg4rEAr/ZHDCVDlBsTD2ksv+FeI+iC89nnnqf0wFVcwwIweyegQWI9iUOrXO3yGITVUCfVoAWPZoCULf0CinwMkS5XmyOLqag1+YzFxB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9DaK/YarKYL8mTi14QhHAaJl5feaar SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2018 03:04:02.6044 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7e8cdd8d-27c5-4547-b065-08d619eebbef X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3911 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 --- 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 6dc0b56..c670d8e 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"; }; }; @@ -932,6 +934,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