From patchwork Fri Jan 14 15:18:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12713761 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E4026C433F5 for ; Fri, 14 Jan 2022 15:21:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yFmxhPbcvRS1iH6Tz85j5UP1Ffg6p6EusynyMfS0JsI=; b=0gbVuuaGjxMijv 29CYOWvSsyney6yZY4jCHE76K2BRO3GO1txG+38hbXwUvkrGxjjG59kkuXoDuKjQhoupkADnrjnXB lOHh+Hqj0t0ic9Ci56m8oSnii9hdrQ2BwG23rmzbiUiz9mEYSfSGyIj6uf/GB2K2Fmf5WKAmy1Ce0 bqr3q5IVwAAAb/QdyAGo6xhD+oQdmks2D/HrAZ/yCZ96h+yksXXvLtZNh2mAmbXygDvl/u5mzwHW8 hIlW42wA/ytuq+IYwMq6bc4XtjSFBGx6jAy4KiLoIuOPavENu6R9ysWpDhmzMLy0edtE35q+XnbEJ kYIHQ/oK9ZMPQ0prgMjQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n8OMH-009ZWQ-Re; Fri, 14 Jan 2022 15:19:18 +0000 Received: from mail-gv0che01on2072c.outbound.protection.outlook.com ([2a01:111:f403:4012::72c] helo=CHE01-GV0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n8OMA-009ZRr-IP for linux-arm-kernel@lists.infradead.org; Fri, 14 Jan 2022 15:19:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YsnjECzYAiae9FrmzrdHtJonBGZRQVlMrEirEsjImryE05Vz5BiSesRqYTGWXcjWrqFKlstHoZ946sP4cfps2nxTgXqo6LKnnFlu6MPOtFaZ42tTn9+ILaltggVb2VQmTwJw4y8OVEtykBJFAmbp5r1vINjiUvdHyv22sz5s06j5GeWxlZ7srGSMY9/sLHZrog/IqmV60O4V0rBEMleY/r51zhJKmVooiUYPC6zJ8JmJqskGReJ1SGWNqpJ1OaAtjp8RPnjv8Ig0lz2JIF8IdVXP5IEW/mSGqVGmv011BCFtNBRzKYDS2rtf4/WKqlms05+H0X5vzVDkWBoxgDXCUw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=OZ6Dx16qXtafE5LB02I1rNL4YOgWBSwIzRNI7E26ync=; b=d/OMsWIKIhgD3YANOU6n638gbJcSF1c3VWmAOFCvk0yC97sAjkeRpbxrFaTlJTsh/cG7j0tsE78o8/ZndZupLS7R9GDV/kGB2nIScjYKbVhMH+TKMbpbz6ctTFkjZys94+terUJo1CdS3SWjt9NPIBEyMwx5lColpZMpT8drQZdSOZoVkCP0Kraro9QFqoS23nJI4OIdw7lhmT8c4xQBraq4OhW1uB7+8XND0Q4tUtIzj8vkPCRPBeH7dQKDR3k5WW+cIuKrdGLkUfyOeMu58CfcnWrivj7jm9ohPPRLBEG1KC0KqSKwOrq91YamdWmT/FkEFOHLEjTG5Tbtt6oAvA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=toradex.com; dmarc=pass action=none header.from=toradex.com; dkim=pass header.d=toradex.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OZ6Dx16qXtafE5LB02I1rNL4YOgWBSwIzRNI7E26ync=; b=qli2ZMCje9pniQ+YrWwXYkc7sZIIXRFM8e9EHZg65xXiBqc2KVv6DnEJa37yFFDEGxiUMgUbzqVoKFdly6+ZuUxOIVPN6nw01b0Vw+e0tNe8JSAinfwJTYwv/tFldaEQOiygxe5OxnsQC5UiG+bbihsIvoPIBzRQ4hgSWdVn8cc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=toradex.com; Received: from ZRAP278MB0642.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:3d::11) by ZRAP278MB0080.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:13::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.11; Fri, 14 Jan 2022 15:19:04 +0000 Received: from ZRAP278MB0642.CHEP278.PROD.OUTLOOK.COM ([fe80::d837:7398:e400:25f0]) by ZRAP278MB0642.CHEP278.PROD.OUTLOOK.COM ([fe80::d837:7398:e400:25f0%2]) with mapi id 15.20.4888.012; Fri, 14 Jan 2022 15:19:04 +0000 From: Francesco Dolcini To: Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , "Rafael J. Wysocki" , Viresh Kumar , Matthias Brugger Cc: Denys Drozdov , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Marcel Ziswiler , Francesco Dolcini Subject: [PATCH v1 1/2] ARM: dts: imx7s: Define operating points table for cpufreq Date: Fri, 14 Jan 2022 16:18:46 +0100 Message-Id: <20220114151847.290518-2-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220114151847.290518-1-francesco.dolcini@toradex.com> References: <20220114151847.290518-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: GV0P278CA0056.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:2a::7) To ZRAP278MB0642.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:3d::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3430a882-3d81-47b3-f05f-08d9d77133a9 X-MS-TrafficTypeDiagnostic: ZRAP278MB0080:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3631; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SvV2L5LaLL3xiHLUNK1HQvddPI/Wiyc1NCw8bos5LIMbDWJKXXI7wuz+BIyP1AIJipWhRKI4SSlLKRwK8DEaqYAKGd1mrqSNWqE3KHPeydo2lPV7W88vWiWizVpPYWLvmmdRjK36XOnlOAuVFhO5K/4yfu4nH6c+G5tGX0Zi/nvfNY8jGvPFJemeWm3JCTb6fLE3nTTxJ6fIoI30XFI0szu50/kGx0kNgGNNkcfCD5FBVt2/IqpwNibEHUf2Zvc/iuCUdxa+5l6llvOWqAJAvndKFDYBar1bcLZQau4CDLo5Lhmj0ilTugxaon/HiaiXQ5Bu1G0NsJc0VD8tUvcbW1/FaYzzPvbZKCQOR8XYMWrWFIeblHsyCUw5NZIQ/aB4mnrp78aEUxuDH0PT7PoJsYINLUJe2SuyGQzgI7zTV1EdOBSFhS8ew7Owog6ndttGboaPeS5jPen+Wu4O3RZGBh7H5g4hjYUPocf4CtaCSztvRJD17FUrDUbnXTJXj//z1nvmp5n2+TDYZA7Gy+acbHnyMmLl0shw63BOtTkU7VMHZKZEzG78T+5g4NEe68cVK/1Fi/sJVOOnk6UoNEtQHh4NdgVqIwn/eaDF4UwTJh4Oh+QVQ9Md3UTUDtaV331qCF4K3ObikaKeMFhf+i0zIuvYwH8DSSSh83xsBIYNF6Jc/yYgBNf/+ix3AyddrEqU10u9dQ84KEt8+Qur6vGfaw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:ZRAP278MB0642.CHEP278.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(4636009)(136003)(346002)(376002)(39850400004)(396003)(366004)(36756003)(110136005)(86362001)(5660300002)(2616005)(316002)(54906003)(38350700002)(6506007)(26005)(52116002)(8676002)(66946007)(66476007)(66556008)(186003)(44832011)(83380400001)(1076003)(107886003)(6512007)(7416002)(6666004)(6486002)(38100700002)(508600001)(4326008)(2906002)(8936002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: XXls+rtGCg3IIDvwUTL+ACUotX1/2122gzX4xS6+hTsGvbBsVIBavZojCrEFq45lgT5MCGXxWuvl/11z+W8aIo8RUnoxcIhSGbGGwwLz/nvgvPoTRMfmohAicZdogPB0hAs6BtDdeBNsNkZz2nIwlJfw6saSxMSvyfs4We0RgcS6AJnTaVyAZ57mktpGND4CXyf0VxORsLkyScb5pR8E8jSZ/Av2XPVS2DnKdqz+V1dN5zjQ7wUNncIwKulKzpTkl0mQDb9w2i04ccguX/RdhgtBuQdzgyw+g6KYtGnC/0nEPj6m+LOH/v1KWZGsuRUc0KWjV8OsogpfM7g65mSyqN75wu7rkJ8of61YG2k31Ffz6kAMD9YjMkrrSUMl4/gHZaxAPdS7r6zLDErkzmAudv49OioTUtZvuAnU4WjHnEb5o8k+kkJ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5UrorRXghtvAh6ilcvDkC99KpsoHmL7hy8w4AFJizHqLeA3gCrkkF3R5gE4ZMvxN2BSC6F7hudVPxAwwljFOZXs2H5oavwPOm0h03+LgscjBR6GBrbGePm8dZk+Qp4I/K8H1TTDx2a5hN5uod/olu1BUd6hbkNg== X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3430a882-3d81-47b3-f05f-08d9d77133a9 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0642.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jan 2022 15:19:04.8483 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3rrkv+T9CpZggUJUJLoNLLTIi+n0mhEScdKVK+Yu30xUBxfAL4h8rXS77nSK/cBCHKYH0UUywwJLwwYnFOPtmTTi8gCxr5lYwODHTxaEsX0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZRAP278MB0080 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220114_071910_731118_0F1418B9 X-CRM114-Status: UNSURE ( 8.74 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Denys Drozdov Processor operating points for imx7s.dtsi should be properly defined to perform correct imx-cpufreq-dt probe and registration and provide an access to the temperature sensors using the i.MX thermal driver. Signed-off-by: Denys Drozdov Signed-off-by: Francesco Dolcini --- arch/arm/boot/dts/imx7s.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 52a9aeecdbb2..5af6d58666f4 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -76,6 +76,22 @@ cpu0: cpu@0 { clock-latency = <61036>; /* two CLK32 periods */ clocks = <&clks IMX7D_CLK_ARM>; cpu-idle-states = <&cpu_sleep_wait>; + operating-points-v2 = <&cpu0_opp_table>; + #cooling-cells = <2>; + nvmem-cells = <&fuse_grade>; + nvmem-cell-names = "speed_grade"; + }; + }; + + cpu0_opp_table: opp-table { + compatible = "operating-points-v2"; + opp-shared; + + opp-792000000 { + opp-hz = /bits/ 64 <792000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <150000>; + opp-supported-hw = <0xf>, <0xf>; }; };