Message ID | 20220124082803.94286-2-francesco.dolcini@toradex.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 37884C433EF for <linux-arm-kernel@archiver.kernel.org>; Mon, 24 Jan 2022 08:30:27 +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=FFs70/D8g2HWnsR9Voh0LGmdvOqEeHccwSFhlQ/+hgU=; b=WojbLN+1yZ7dy8 ZQ7+qqwFyhlSypB23tKUD9pjEkQw3OtKBykCV8fCQum+MwyyRstc9T86V5prBVRESrlX2ddvUPg9s yb1PA0sfLYOJ+8eakkPbVtTxc1pksVJ6QaTsOl9qz4sy3PEqJQcMDaSnFRTx0RZwEqeg2VSqwNCy4 qP0hOY2nYDcEv/9EEW8QFqdr4cYAS3S4YpA0jnjj9yH3Vn0/vRYDI8yDTvDhrsEeEw25GZqaa0R/+ Ze6YtQm4d9PGhYO4ddKqlVgOOOgGuENofInn0jq3wuyIyrof2UbEqUtD044ZpUopxqLNi7U3LmI3u mCkNfS7T5LBAO6Oq8xDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nBuim-002au2-D4; Mon, 24 Jan 2022 08:29:04 +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 1nBuiD-002ak2-9Y for linux-arm-kernel@lists.infradead.org; Mon, 24 Jan 2022 08:28:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G8pyt7FdFPbib5r5cgrcaZqznj9VvN8SpTcUTWjYT1Rray1jvTWB82WLs1vFG8hRQj9BbANsTq4mX63qkYpxaFv5LOewDQU7Dxf3Z1u1tPwymio4+U6xT6LrI2YCYDi0PQMpyh+ZTT28dgQxbFpScK7twSU9B4ICx0UzH/+v1Ovrd+vDxEosAQkwQPuen0miNfsc3L/kQNqepc1yTBAqqHtltezItlagGIuW/GMAe1bwesmsEgSwtw29hAm/qvMKU0Ab9JIEhmCUYTfIfsjIMe/i5jpo2b9NkzQC13DPBdyuBOpXb+TL8OWunxJltO3Jo3xdp+nQsJ6Z6kwR6ftxtw== 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=oWmaWbMbNAfXdTupUt6m92kFhXSXdjA3e27dLOocQpM=; b=DYEart3L9hx4IWpBqF08beusno9sdGymgSAxRjwHMMybTV2NVOqbFkCHnoWOmp2yRRbibrwfAiCAMat542e+8HCPHKwR5svo9LIt5J2adBVo1OLb5IMTfA1S8WX4tty0iNAHe4CradsTNIP92v860s60YkHixxa79fCHkzj1gK3RzlATOsDblxikln8tJUDsxMJHBvdzmhhnrcaujs7pblTUS7NaIBaPCfaXWH+JJRzg5KdNX1xyh5k3XbFyYpg58wAORW/OHXj9o+cHJ6lCJVYWZ6MKXwr1YcqEuA7EFs+yh5S6zDrBbtIri+zIdHjrNaQLvCE1FP3bLmJ//HReEA== 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=oWmaWbMbNAfXdTupUt6m92kFhXSXdjA3e27dLOocQpM=; b=Jq2pSzuCvGAowhmUwNm5EM/dNDQ4d6tArsC4RGsCrD+2xrwKmZmu3WWgnlVuioPBTfDO+mBfEIKSdhmM49W2pb0OnydfvS/Nw7OvS/u/R8qk+DEcRjwOWvSiD2BkJxXsBFSq04GE8+CoTrdRL36Pnm1Y40Q8/4cCNYL0R6lhJrs= 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 <francesco.dolcini@toradex.com> To: Rob Herring <robh+dt@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com>, "Rafael J. Wysocki" <rafael@kernel.org>, Viresh Kumar <viresh.kumar@linaro.org>, Matthias Brugger <matthias.bgg@gmail.com> Cc: Denys Drozdov <denys.drozdov@toradex.com>, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Marcel Ziswiler <marcel.ziswiler@toradex.com>, Francesco Dolcini <francesco.dolcini@toradex.com> Subject: [PATCH v2 1/2] ARM: dts: imx7s: Define operating points table for cpufreq Date: Mon, 24 Jan 2022 09:28:02 +0100 Message-Id: <20220124082803.94286-2-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220124082803.94286-1-francesco.dolcini@toradex.com> References: <20220124082803.94286-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: GV0P278CA0052.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:29::21) 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: 985b5869-faa1-412a-f6e5-08d9df1377f8 X-MS-TrafficTypeDiagnostic: GV0P278MB0227:EE_ X-Microsoft-Antispam-PRVS: <GV0P278MB02270D0C8F6C7DD2564D5825E25E9@GV0P278MB0227.CHEP278.PROD.OUTLOOK.COM> 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: 6HfirZSyT0lSY20COGAmWXmCjEXIrwl+Yc5Mb+gUehBItrKD9k/Kh6XmcpIU6Zwx422jgSYc2TupwsVX4U556leYIT9u2Ssn1KWmqAqrzQigfZOLvUvSCyrCpKun68ID3SZrAwRsy4IbDV1mpB6xpFXeNX+LIUoSfK4xLBdaB1DPdrtLEA6PpSvp6QgK/KIDmfZUdj4RhxcrQ1YRcbZB4faS1uSMEYYER4tBL9tntZlVZf8SrAhSJ1PsuSlzXb3S6ECWdjbEYtk0CQ6RGN1HLsElPMloOwC/97xnPSQddwf3Hw3SyCJE6S//xUi5kELXkKkUyGmbuPuHMiz769ezSDvQZZU1Wec/e1Zco7CSWNIaP8ybXvHenj8J8dj17mZ3mtmBDEIvGFHUorgVwl7vMdMmx8gwl3vwRBfUXcu6d0a7yXGYOcbzTKK8HneMgRdco+XXxVxt06avRRaY8V9BMLA47I2CRSiqwvzuPuoATxIpy3k2QukKRMKiF91y4zCw/SpcRZHdRNI80EbBvfeRS1/AG+A2dRxs4bFne+w9KkOqiI98+VCK0f5YQ8dSjnOZjIeeygWtRrgWnTrlMKWRwr6XDV3Ssjg62DQmNmKfgP7etSyJrsxo3sPHMzxKgTMd/cOfVBVZswZQn5CnjCkw300uCo/VJpTh0bgu/oCTWT9K8C0PCFyAEJY5pow6SfhjxCfRp7GwMtwTnu5Jq0srgQ== 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)(107886003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lGg6Xr1jvGCY1e7hwCC57gQPz6qyLgx11HDp0dOgeXG7+m2PJDmwi3xXsTw3CqYQ3hzjCI9Om6yXKiPoIYOK90SFMt8EOBSUabRCbkAq4tMF1bEzOkUpkzq9TT7hHFS0Dh+eSPz4QQXr8Y/soTol/XbiKGPOUd3XixxXXyqbDAmzxfYhUU/fpBjut9YTtiU1AX4fkFFnTLiESCwl/9t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PAIwqcMfVDzark2emVTit0m1djlN6WfqQ1KHFVRgeqztA14MPGbTJIfcF63f29dU7qTghMiR3utdbv8bq7/t0X7Szkqc6R0+1wqRS3TQ2u+A3LJtLLgN7WlgN5eFgxySaZ0FzHXQhTVwDINFxCrtQ9OdHR0m2yRaVhuyWP/hoOrB/3Dgh9j9NW5OjUrcjgz48CnEKsLgRqxf40O1mmr3rv1/eTll086G8p+i7C7N7XV3jP7tmf45MilHA4BeEgzHPfFjIefvK8EIrBxUS03D5vc2bgcqeQOIyswowC64Dp5c0wn/9IWDZvMEkYcLiIjFuaGztyW9l+dkAWmR6J8H/gara3qeR1oAjEsVc6Tdghi1l28+UaLlXh/KkD8iyOyw2V+w== X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 985b5869-faa1-412a-f6e5-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.1047 (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: PaYwZjiZ1I5yM2H9KaD9jQHjM2JXQYWq2yaSZe/6lSmXkIUM8wX3N73iCWB4hLMbTLML28M6zXaHVzLjpMLqfbFroDKXlQdcQqQ6wEl+CQg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV0P278MB0227 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220124_002829_401339_A5B217F1 X-CRM114-Status: UNSURE ( 9.18 ) 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: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Enable i.MX7 SOLO temperature sensor
|
expand
|
Hi Francesco, On Mon, Jan 24, 2022 at 5:28 AM Francesco Dolcini <francesco.dolcini@toradex.com> wrote: > > From: Denys Drozdov <denys.drozdov@toradex.com> > > 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 <denys.drozdov@toradex.com> > Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> Reviewed-by: Fabio Estevam <festevam@gmail.com>
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>; }; };