From patchwork Mon Jan 24 08:28:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12721668 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 5B026C433F5 for ; Mon, 24 Jan 2022 08:30:09 +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: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:In-Reply-To:References: List-Owner; bh=DDoMdgxL3I+GrrwXbit9gkSZM9SfBVTSCAl8m+wtghk=; b=B5lYJ9ZrkOFuyT wfC8+WYb+Cqt3nbAmHoAj4KECBaIjk8O7/5lXeudLTkC447Wl2iVBr9/qEJ9aUduNx1idKGAj+xuQ WBxYhUrUkK/fjnyPyrhKei5mLVG+nJsp4fgVIFkevWCkaxqxKaRQkKNPSCh2mIvq63/fBGUIb4Vcc kHD3VU3oZ4Vr3MVte26nsDDa2ce3eI+IEOSQZzyo6Mg4hFnVH0A9hysS9te2kPcB/Em9pFLdpN1G8 p7gyEnI+3erCPHxZVFCdBA8m1EORIUlRaMxz8ehSL4BxvXxNHOf61c5PBJCfmYJ3ZbjooKPohQFn8 sSK59H6NYuEIpCpTIO4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nBuiE-002amp-Nv; Mon, 24 Jan 2022 08:28:31 +0000 Received: from mail-gv0che01on20713.outbound.protection.outlook.com ([2a01:111:f403:4012::713] helo=CHE01-GV0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nBui9-002ak2-P7 for linux-arm-kernel@lists.infradead.org; Mon, 24 Jan 2022 08:28:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kOmP72pNET/H0mWKoP3y2X/SEcfJtFfLyFmbmsGl0f9uzhwDQb2IvIRJFwfZ9OkBZnhdKZYMSOgwK9SSK5UQRdlP8sjOxHJBp4t8ZEFozP7uvwWnzoUcP4k3gnv0aaWwQPMOPTI2XmsAP8ChI/a84eE1C6JteO+vW2GkHTYwIDiRC6e3qU3dzQw9EeU0RqmlABVOJyd0dl9p5nwKVdaCzxfiISmFd7uxJ8UXxRRGJmT6zMSN+CK22TiCLOWbKge6nTlzE17kcxbL4R5IURmE42ZpDXtzc75sG1+xUIcAWuHhu463p1GFMLiFOm/BOOF/pwBa8f0uyjkamIATTkefOw== 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=pnVzTx2385A4jfz4t0Uoq12PQFUqYmBXCStZwmMGciY=; b=Qol6TcROUMFfJj8p9ZimJSllYzs2Ce8Tysl0IFMFwtYBQXRRsPItTsDJs2ACQ1/p+OoNCt1sv4lfKodJ7+/3Zm2gIjoTE0WggVJ0P6hnwJu8pdj/DnRhdSITye6PuGfD2yFUji+MUIuYRfBr27JwHIRfOEOffuE2wYKQb2amYWKjEAADJ7TCrQrGZyTE7bti3DO1c0gczGSvJLEMS0fVdewMM0WRzCry66JVQGkhJb1ehthpgxDThS98s4PmXv4db05EqeL9z421fyeU7+tayiASNS+mjPv46jQGERoBaPgjsCnp2S+0gHFT6kT5HG0R1/H3a3dU99pMPjzv26cyHQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=pnVzTx2385A4jfz4t0Uoq12PQFUqYmBXCStZwmMGciY=; b=n6UvDuid/xA3sUDCdj2MMBa0Td4JRX9Ouf5RAFtWe+HUQsGG1bF1ZbIvUwlSqGagrPrMiFUXBOQmQ57tWtPkegktcoplZ2kjGxN4VnokutUX+EjXk6BLertOENJSHgFdRWw5vZcR7kgQVl+rsSOR31YHLJeP+NQyIihBcwAm+YI= 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 GV0P278MB0227.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:31::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4909.7; Mon, 24 Jan 2022 08:28:16 +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.4909.017; Mon, 24 Jan 2022 08:28:16 +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: Francesco Dolcini , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Marcel Ziswiler , Denys Drozdov , Stefan Agner Subject: [PATCH v2 0/2] Enable i.MX7 SOLO temperature sensor Date: Mon, 24 Jan 2022 09:28:01 +0100 Message-Id: <20220124082803.94286-1-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: GV0P278CA0051.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:29::20) 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: 633aa44a-b036-4957-347e-08d9df1377f8 X-MS-TrafficTypeDiagnostic: GV0P278MB0227:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VzvHZ6XlIDWXwk6iP3nbM6HLiDpfCKzV+mYphbKV11kKrRNWPhIo0gSZefarSJH0+Izm938bW5+gel8FH35b15f62eMQhPCL4T+3D2EeuZNsa+D5Z0FWiLNJ+J4lYoFO9Hho6yKB6PqtU2Z7p7fz340RaYwxn6D/VzupRN3SImk1rKMBnzJiqp4VOhtQ/QYi0zBDVmiVflg7ja6tbRrZcT2oA7ik8LpfKLHxnTStEMoO0NoZnIpvaJoJtoDw+1fujFu2ecQg9e786qj+eoK0htVVSUm9IfO3tqveQQiRlqWVASE64OMeLoSkhDezlrQGQs4qcc2HuHrAmFZPskdHe/UEDVXlG4e8T453yCyJHcK4XIYNAe0uDNUx1tiS3N0Y5WN/kyQLSzL7wKqPs7He5x8NdndGY2A0ODkh4RQhH3Jc84kaa+dRBOKbW6DwltShxZvToOOt+5Xc5xbC19zYs3fBqd8x4Zj14+3Q+Y/J7/a6nyNmINmDDaxwQrOOqCiOgCgC8+/PvFmwOA9jmOvH5Nv/IzMYqirXZAD4pxklyEqD7eZN27XNv9E/p/DTTRBxjGr6HtWy5zxeFPfGkTQXSsP3PI65oGlZ6spWo7N+hPRWvIOuevs0grazY41teFbhxF8oJD454lg9y2mDCH6J6BI2ERDue3jsNzwrfCugzL8TEg67nhJgYtEo/9kIpItlOXR526GIhekNTGFD64L4gA== 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)(39840400004)(366004)(396003)(376002)(54906003)(52116002)(26005)(1076003)(44832011)(110136005)(83380400001)(5660300002)(38100700002)(186003)(38350700002)(4326008)(8936002)(8676002)(66476007)(2906002)(66556008)(6666004)(316002)(86362001)(7416002)(36756003)(2616005)(6506007)(508600001)(6486002)(66946007)(6512007); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: zKhiZpWA2gYiAoqw8f7y7cVRs/os+lSn2bak+tEYXZx/ititcaK+yjWNrCP70MJMGo1C2zSOXSsOx2fWV5hrBAWAw3ZUNF+o1alWoDUOGkAS804snN3ooRcty366loETPmD234j1MCWBB2n0a5tmhZYNtiAcAf2dfv4FCU1ccVBOM9eB6dMA4794OClpPDy2hY6osLntgB02chzc4WaXOee46U8M95EnxhlnpJCOlQlGI1feeitXAEMIXVlxNogNDLu7BTByZS6VxJ8mgLdmJHBeIntahQrMmyFTtKh146DCaqKZTgWZeq/Iv8fM2FLgCYxKRI1RGarmb0JdbJZQZ6sPbxoNYuBcBqEtZkkw4/fqklkE6ra8Qy3T5vD59ndcXt+pMWagflg2P7IzkCF5LbfxyOq5EnVkWFqZYqIOV8Kkh3rShys54R7IoH2WXTD06Y3tHzOI9PAhbEc8B1ZPK3TnetVBm3LDN+eY+v7DrMEYpQTKOy6bpynWxFFhvIT/iyKO/yU86/lElfWztgArQt2wd/DQ0+bn+bvwOv07yqUpYXCsD+PsdT+5xsISvLJhlB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s6M989pSUyP+jxTTXecjwSF+Tug2soMw== X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 633aa44a-b036-4957-347e-08d9df1377f8 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0642.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jan 2022 08:28:16.0769 (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: ZpDwYKDhphfwBEaQFqz5Z+iYuUd049kWQoDuNQX44MC6cdE2qCSWJuvgmHB9JVBTJL5Z8MIDV4w4P7pef08QSm4Z2GiRA0WbCv51/R22pwU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV0P278MB0227 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220124_002825_842797_771D0ABC X-CRM114-Status: UNSURE ( 9.22 ) 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 To be able to read the T junction on i.MX CPU the imx-cpufreq-dt needs to be loaded, however this is currently not the case for i.MX7S given that it does have only one operating frequency. Add "fsl,imx7s" to cpufreq-dt-platdev blocklist and a single frequency operating point to the CPU. With that it is now possible to correctly read the CPU T junction. Tested on Toradex Colibri iMX7S [ 6.232577] imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 0 mkt segment 1 supported-hw 0x1 0x2 ... [ 6.880624] imx_thermal 30360000.anatop:tempmon: Extended Commercial CPU temperature grade - max:105C critical:100C passive:95C root@colibri-imx7-02983025:~# cat /sys/class/thermal/thermal_zone0/temp 38000 v2: - removed empty new line - rebased and tested on v5.17-rc1 Denys Drozdov (1): ARM: dts: imx7s: Define operating points table for cpufreq Stefan Agner (1): cpufreq: Add i.MX7S to cpufreq-dt-platdev blocklist arch/arm/boot/dts/imx7s.dtsi | 16 ++++++++++++++++ drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 2 files changed, 17 insertions(+)