Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2906879ybf; Mon, 2 Mar 2020 18:21:32 -0800 (PST) X-Google-Smtp-Source: ADFU+vsrV+ENdie2phakEj3zdWYlDc0mSmMURCQqLrMbN3QzV/zcgJogvScV0dvYqqE3R52S5M4K X-Received: by 2002:a05:6830:1ca:: with SMTP id r10mr1635878ota.319.1583202092640; Mon, 02 Mar 2020 18:21:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1583202092; cv=pass; d=google.com; s=arc-20160816; b=nBfXYjYajIp3/A7W1lQiSUHVrzIlldbFppxHA6bIC9pv/hptDLfgCjfZ4hIY94C3Tf eQuqV04FMiU7ONi9BhKGG3A5rk+ipVeRSe6Qc0ApYIqaUQK7GDV1gzIgA1X/0nxNSdZE xABtMfXalgZ2Z3WsudFItGc9sZKYYU1UBSvIy2oZv0uReW8HUrVBETCxSaSmmAH9YvTh oJteSWOx73YdNYDLYiIa5XTydsY2i+7z9N1+aA2V6fqPo795Zsp1Q/iNK73fklJIwL0v iSnkTp04mVZ6EkJYO+Li+FBCmbNmWWctpdxzgbpfwb0uwnmpkzsrbcdY2zh8xbgjf3/R gPeA== 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=ApoxnE+7GTMgREW8eu4JqW5FNpwlkH/KHHDvdbtOE5M=; b=CQnFLaodm9U1NeHynGYXsLugQZ1XIbsIqgt8JK1yOuVmoNzbFSBhxapojYr/gcvN+c QcsycNtqkrn59WdpqSwXo2jvFt+PqodqOF55V7DFw2sraM/ZwjiigDif6DBSqScbMKRS 2whJwxRlGw43b9SgG2OP0LoKoE3KGjPazoy2IMV7rRg+NPvLNgDet6Tw7b8Bnkmu6CrA GtacZZ1Znvv3ki21TtD6Gv5AchVobmulaaqkfOibcLJza3kHts+fru4HU+4PUpUtATPb MC4CHPUqMInodRChNqJgTE8+0O8P4qVuDgictAi9JjmBbFGFxvqPV+FZGLS35TTFbcG9 ke7w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=NAjgJSPM; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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; 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 a59si1058675otb.8.2020.03.02.18.21.17; Mon, 02 Mar 2020 18:21:32 -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=@nxp.com header.s=selector2 header.b=NAjgJSPM; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726990AbgCCCVL (ORCPT + 99 others); Mon, 2 Mar 2020 21:21:11 -0500 Received: from mail-eopbgr70052.outbound.protection.outlook.com ([40.107.7.52]:38137 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726859AbgCCCVK (ORCPT ); Mon, 2 Mar 2020 21:21:10 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jDjCHQqJBrEqxtWxDNzUyN/a9sCSCuFasUf1LnezEYFJSr6xb8s0oYyA/XkqafOxCrsgxXYIIBlmmTJDrw6KrcETaJt22vKNJlkBGGlG6RFVJNGqTqvj0CWUwepV59eZp8bn7AJcZdJLlNg96hjHnEx5M1HZl+2ToprKba2vghGhJga/dS3L0DQ2Ej9Hea1sa45V17V4oB8+TK4nuU7yyys4Uo9xT/OedsBvMoONMsejmLr9GJmOeIUAA45SFIVfo4sfILezqw6YBvSLSV0Vl2sJUqNHYKJ4XlzTxzKH99aZ6VDMsXW2ClxJC12/o8bqvtHT03mTxU5W7uAcvcRj3w== 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=ApoxnE+7GTMgREW8eu4JqW5FNpwlkH/KHHDvdbtOE5M=; b=dHsFy/WT/VGGmAOLgXANSnA6ZkaQYcSHMztbI4oPGGAw7ql5l/8IuDB/ZTRbSrd1LkW9un8CDjRPGxyU5CJUcAyiNeMOlS+eD/navK6UMQFEueZMrgpJ0rU0UQaPp/yP7R4y/0eTlUOy7oMytA/KlODVGWJ6/ZwWVvzZ9k7eO1or9NrMimXo6hN3V95DeyHRSvdvajM5m3khzB5YVORS5l6/64zi+0OH8kNx54GSRJTPsTqGGs9+oaP/Y+T/iMZF8w820hHcYIJ3ehBWW7vaz8GCJ/Zh3A8G65ZARS8p7E0RdTBjfA6XFYmAe4M37jZbrRvK0cJYWYImtZWb4jHg9A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ApoxnE+7GTMgREW8eu4JqW5FNpwlkH/KHHDvdbtOE5M=; b=NAjgJSPMBDZlyaqPtA7EaHeuqQ5vKlY+wHXBoLDHI2oV9tSXoErTaeUDaqE7gl4bf1dqobwegehYf6ADUGAWhtmZ50pT6NGPnzftmaze25+3nUQIxmzJmx48F2QvXQ9CNdMWjmWIf+3RdCZSDzwsIoBKDHDZLz70S0V1EM1KyX8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB5283.eurprd04.prod.outlook.com (20.176.215.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.19; Tue, 3 Mar 2020 02:21:05 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::91e2:17:b3f4:d422]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::91e2:17:b3f4:d422%3]) with mapi id 15.20.2772.019; Tue, 3 Mar 2020 02:21:05 +0000 From: peng.fan@nxp.com To: viresh.kumar@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, Anson.Huang@nxp.com, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, Peng Fan Subject: [PATCH 0/3] Convert i.MX6Q cpufreq to use nvmem API Date: Tue, 3 Mar 2020 10:14:47 +0800 Message-Id: <1583201690-16068-1-git-send-email-peng.fan@nxp.com> X-Mailer: git-send-email 2.7.4 Content-Type: text/plain X-ClientProxiedBy: SG2P153CA0018.APCP153.PROD.OUTLOOK.COM (2603:1096::28) To AM0PR04MB4481.eurprd04.prod.outlook.com (2603:10a6:208:70::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (119.31.174.66) by SG2P153CA0018.APCP153.PROD.OUTLOOK.COM (2603:1096::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2814.1 via Frontend Transport; Tue, 3 Mar 2020 02:21:01 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.66] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: c2baa6eb-8d74-433a-156e-08d7bf1986f1 X-MS-TrafficTypeDiagnostic: AM0PR04MB5283:|AM0PR04MB5283: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3383; X-Forefront-PRVS: 03319F6FEF X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(366004)(346002)(376002)(39860400002)(136003)(199004)(189003)(69590400007)(36756003)(66476007)(66556008)(66946007)(2616005)(956004)(52116002)(6486002)(6506007)(5660300002)(6512007)(6666004)(9686003)(16526019)(26005)(8676002)(186003)(478600001)(8936002)(4744005)(7416002)(4326008)(2906002)(316002)(86362001)(81156014)(81166006);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB5283;H:AM0PR04MB4481.eurprd04.prod.outlook.com;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-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ekH41jHyXN0igscOxIVJgyBw3BDW6k2qN8vP5NoD3ckNdDvN+c6VS329QREjRkJK3W1Su0KI6fE0CfqkgZ734tyVcmRQELrARDbF6JEVE9cSBDrcFScjSwKwHTR02UB9KyE/u27yUo1KbQCkNj4NspPF/P/mhvJ+In3+7+4P9lJq8ub2AAP6T2slsc29oxf9AyNEbogzJnIwH23VFQc5v9hW6taN6envNuvOf9LuRtEo8Pa1h6rIXJED4UD1iQKlreMFY7M4MzshlQmfS4dPRhnnKqcRVGaM3Lbr79nKbwtQJ0ryvWEklKNY/RYeEuHcosVAxpxe/k3i1NhGX6dJOidzHAAQXVznd+L1D9UxaJuquS2NBW4UN2+6p2mU34gH7HQ91zV14xIPm5OEalb+G5NjD3/Y7/N1zqfua2L1qRRfxMX/QzbjxoBzI/zNJRbaZc1qmCMhEvcZr4mbMAO1fjogYylqheEKY0VHmCQs7Vpoej99VX8aXKiob3n/7cd3 X-MS-Exchange-AntiSpam-MessageData: ijboTv6KsbF9/a4BKYW/AI0toUVaNOG3aq9REOs/RSauqBRGw8oYryYPwG+NE8AgWIjbnJ63sXWLjCBzItGZS6fOli7g14PNzxZto3Xry5e4HuSaK0gw/rTGll5BXpxoWhzdVkH02Mgif+r26B575w== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c2baa6eb-8d74-433a-156e-08d7bf1986f1 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2020 02:21:05.8616 (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-CrossTenant-UserPrincipalName: 6gScQPUapxuE2uHUo+3/Jg4ow9MTqCkHDY5vnqNR5dRfkie0+OEIAcQYCWhZgT/iv8TUOZkbNoEyabl8cQFr7A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5283 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Fan Use nvmem API is better compared with direclty accessing OCOTP registers. nvmem could handle OCOTP clk, defer probe. Patch 1/3 is dts changes to add nvmem related properties Patch 2/3 is a bug fix Patch 3/3 is convert to nvmem API Peng Fan (3): ARM: dts: imx: add nvmem property for cpu0 cpufreq: imx6q: fix error handling cpufreq: imx6q: read OCOTP through nvmem for imx6q arch/arm/boot/dts/imx6dl.dtsi | 2 ++ arch/arm/boot/dts/imx6q.dtsi | 2 ++ arch/arm/boot/dts/imx6qdl.dtsi | 7 ++++ arch/arm/boot/dts/imx6sl.dtsi | 9 ++++++ arch/arm/boot/dts/imx6sll.dtsi | 6 ++++ arch/arm/boot/dts/imx6sx.dtsi | 6 ++++ drivers/cpufreq/imx6q-cpufreq.c | 72 +++++++++++++++++++++++------------------ 7 files changed, 73 insertions(+), 31 deletions(-) -- 2.16.4