From patchwork Wed Jun 15 09:47:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 582160 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E2AFC43334 for ; Wed, 15 Jun 2022 09:48:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347492AbiFOJsk convert rfc822-to-8bit (ORCPT ); Wed, 15 Jun 2022 05:48:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347586AbiFOJsW (ORCPT ); Wed, 15 Jun 2022 05:48:22 -0400 Received: from de-smtp-delivery-113.mimecast.com (de-smtp-delivery-113.mimecast.com [194.104.109.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EA23C46C81 for ; Wed, 15 Jun 2022 02:48:20 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2042.outbound.protection.outlook.com [104.47.22.42]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-25-tXfN3WsIMt61Jg9Phr7tCA-2; Wed, 15 Jun 2022 11:48:15 +0200 X-MC-Unique: tXfN3WsIMt61Jg9Phr7tCA-2 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0392.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Wed, 15 Jun 2022 09:48:13 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.013; Wed, 15 Jun 2022 09:48:13 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 2/9] thermal: thermal: Export OF trip helper function Date: Wed, 15 Jun 2022 11:47:57 +0200 Message-ID: <20220615094804.388280-3-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220615094804.388280-1-francesco.dolcini@toradex.com> References: <20220615094804.388280-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MRXP264CA0035.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:14::23) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6d191499-b57a-428e-3a8d-08da4eb429c4 X-MS-TrafficTypeDiagnostic: GVAP278MB0392:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: Qcj9N6QXesJFNWYCRGYj2wXL+xQkI0YYLHMT/9o7Re2/wwsNx8X+5rlCy1401XZfxbaUfGj/x1ppnPNvxeRs/to9PRURNh3pErRqCRL1datTZUvB/mTmDiqAKqW+gmSEyYomfYmmmDrT12XtGC0vagaedaIJWgHED6bDZgw3VhpxAvJUBpKA2EDryKhn87duKRoEBG3sDa6LKUoRMpIQBhbQ4I6nQW2FFQi8HVS+039ocSET7s6PCf37BeRgHbElAIO7p1umkMfZYA8YnIgYRG+AdylCiFzOgQIQUswmuLOrY2jCmy354vgkDR1Ef2vdF9mAJ/XLByiaAB0mOKQDA9x8ImNf9JNHNYvxt2DO3ibMoTpqf7SVT/QBSpa3LyXdJVHP4AVBcZH1FMTMQjzJ94kqDwUMPFTPCV51Gv94f5qpids7TAJtmTyBmNSLl3M5gIQDan3kiXjktrzEy1FaINyOgukXOLNV3shK7hs/sWxJgIgeaWsV/deVps/KagN/aJWrsHRQSGdnnzN4OlzABW1ARjAfujVoeaiMk0mwlyeeHaJh/1tieE5upwgVzm5kj3cVE+bLd3LL3txqUJqswc80j/4l0J6pH245mR26m0mHbdfsDURMMRy6WuweDDk2ItTgQPfzgcVv7FXXZ9oO5MLoistmN/pc+725X84dM5x0LFtqki5Hs0k+vBjMKrabWZbGVWN3cmO1OLAztMSMaA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230016)(4636009)(136003)(396003)(39850400004)(346002)(366004)(1076003)(41300700001)(2616005)(8676002)(110136005)(8936002)(6666004)(316002)(66946007)(508600001)(4326008)(86362001)(66556008)(54906003)(66476007)(26005)(52116002)(6512007)(6506007)(36756003)(2906002)(38350700002)(83380400001)(38100700002)(44832011)(5660300002)(6486002)(186003)(7416002); DIR:OUT; SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 45S4v0CRn4w/pjepl9hXi9TZgWyOZnDIFd5TtSf5lv4E85Uqo9nLMygMcbizuOtg69ORyef/gGOraDpyvM2kdW/f+uSddErPFoMwVn4WfGjoICCnUpe5OoDDPvpo/eDXew3tE2FOv8CH89Ehc1piE24DTB5C96GJlUN532LDJP88GSfW+T3U9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sNoTomYx5lRpzZPsyXtIqj0Nj+pr8zZOagvLjoncqqDPombsWM9d+KoVBNrHaGrAuDqqGdrUXUfpeMNegE9DukIZGqdLM3pVz3Nk7hg5tNNQBgMm3gZq8q5RgCO1I1lIsbW8mgUzHOTaRm7b8Vk1PslEQFTNTZKBf/ZwSBERQbyJFAOGj9AN82XhqLA5H7AfF5Ydq2Kw71IzvVuKsxsTWHbL/qPO7OmIN6/l7L39WQIPraLCtOj3TyJLv0SABhaoTa7X1oQxFqx6GGY0VdgX4SWiLIWxG2Vz1q0bpM8VBAiJPpfi5jBeeNw6rvPoOpF8uWMDn/5YmCZh8HshBh5f/GCqSvrqNyo7sh7sXfxUr6Jnld5uNucn3Ze7ly3N8vjcIYyKpVmAHVXSGlQw+I7siWy8A4pljgE7oFi3mqwlRVKyHAV/calrJwjqZw511Z1XSbG6G3Ghk2klt6Yn4VCH6/YimDsRHsDFjZfjN2cX0wVGDgceeX1VTEgB3gY7qM78XA8vAY= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6d191499-b57a-428e-3a8d-08da4eb429c4 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2022 09:48:12.8933 (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: 1kMcFiNeDq9jYasKGtbBSfEeykjihYU95i34+4UwECQk4rZNlQVbnzhXjXrpIPLpH/fayu553PeFeUB5ca4SXaOAUNGvZEqq6wHbZUg2UEs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0392 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Export function that populate thermal trip struct from a of node to be able to re-use it in thermal drivers different from thermal_of. Signed-off-by: Francesco Dolcini --- drivers/thermal/thermal_core.h | 7 +++++++ drivers/thermal/thermal_of.c | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h index 726e327b4205..81e6d041e79c 100644 --- a/drivers/thermal/thermal_core.h +++ b/drivers/thermal/thermal_core.h @@ -155,6 +155,8 @@ int of_thermal_get_ntrips(struct thermal_zone_device *); bool of_thermal_is_trip_valid(struct thermal_zone_device *, int); const struct thermal_trip * of_thermal_get_trip_points(struct thermal_zone_device *); +int thermal_of_populate_trip(struct device_node *np, + struct thermal_trip *trip); #else static inline int of_parse_thermal_zones(void) { return 0; } static inline int of_thermal_get_ntrips(struct thermal_zone_device *tz) @@ -171,6 +173,11 @@ of_thermal_get_trip_points(struct thermal_zone_device *tz) { return NULL; } +static inline int thermal_of_populate_trip(struct device_node *np, + struct thermal_trip *trip) +{ + return -ENOTSUP; +} #endif int thermal_zone_device_is_enabled(struct thermal_zone_device *tz); diff --git a/drivers/thermal/thermal_of.c b/drivers/thermal/thermal_of.c index b65d435cb92f..dcd6571a3871 100644 --- a/drivers/thermal/thermal_of.c +++ b/drivers/thermal/thermal_of.c @@ -817,8 +817,8 @@ static int thermal_of_get_trip_type(struct device_node *np, * * Return: 0 on success, proper error code otherwise */ -static int thermal_of_populate_trip(struct device_node *np, - struct thermal_trip *trip) +int thermal_of_populate_trip(struct device_node *np, + struct thermal_trip *trip) { int prop; int ret; @@ -849,6 +849,7 @@ static int thermal_of_populate_trip(struct device_node *np, return 0; } +EXPORT_SYMBOL_GPL(thermal_of_populate_trip); /** * thermal_of_build_thermal_zone - parse and fill one thermal zone data From patchwork Wed Jun 15 09:47:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 582156 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B602C433EF for ; Wed, 15 Jun 2022 09:57:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243446AbiFOJ5V convert rfc822-to-8bit (ORCPT ); Wed, 15 Jun 2022 05:57:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240825AbiFOJ5V (ORCPT ); Wed, 15 Jun 2022 05:57:21 -0400 Received: from de-smtp-delivery-113.mimecast.com (de-smtp-delivery-113.mimecast.com [194.104.109.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D6CDA4A907 for ; Wed, 15 Jun 2022 02:57:19 -0700 (PDT) Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2108.outbound.protection.outlook.com [104.47.22.108]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-29-fUnjSoLMM0SUPAfwXtujYw-2; Wed, 15 Jun 2022 11:57:16 +0200 X-MC-Unique: fUnjSoLMM0SUPAfwXtujYw-2 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0296.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:37::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.13; Wed, 15 Jun 2022 09:57:14 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.013; Wed, 15 Jun 2022 09:57:14 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 3/9] dt-bindings: thermal: imx: Add trips point Date: Wed, 15 Jun 2022 11:47:58 +0200 Message-ID: <20220615094804.388280-4-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220615094804.388280-1-francesco.dolcini@toradex.com> References: <20220615094804.388280-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR1P264CA0156.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:54::17) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: da4a8508-5bd6-4a15-79c8-08da4eb56c9b X-MS-TrafficTypeDiagnostic: GVAP278MB0296:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: MyH69wnItQVk/OzJdLAttOae1hVil9OPlDfKk91fvFz+kh4j8CDZZC9ewj/fr/2wuxSgaXNvu8ygFvIoigcZwkUrNnqzzf21gaAQTdnsSgYVCEDsJqusHIiScLwy6c7HyJhDH7YC8to026/507Tt4KKCqws02cfRT5O+lZwAwY+jlk/BfkHnHqAIEeHn+r6jXtbiPAGfr3baVVTWgJq/4LIpdHcvJbTEwAjI7DJQjHvZmJ0VsrZF+anIILiMhRfaZ+smps+PY9YyW9EovfjtNNOt5w5TI+/RqZgfHUTNTg5UQSDdBNPt/On6msgIHuaP9ZJIPv5CunQvjpfZ/xgCCkyVoG6H5HPdcRZO8c3ckEzl43wp2xQdfzEnkVySYYiW4yLg0RKG1aXM+/DlY2AadI5Y71uwz+Kb7IF04iCQ3TZadpvDi7b1cYNrxZ0ks+XgUbjdeliu/wxJ9uUr4TBt5SQsQ2W0mridjshoQvFqVnGWCu/kAXkDWXEpjp13MEbqlLNHHZV9QdDVPMOwzl8bbQZJf3a3D2R7prRuwbPPFlP9U+h7SdFim8yvLf3gOGGC7isVcslM+wKglZxY1/0LFILZMtPrj3PhrYOl0c7iGyR1RbOP2EpBqNASjKXRf02m3VjgjNWLhFF17EsHBlqEZeIcn9kGQhP8BsPOVpw3u+xajhfHt6z3GpeRQkbQ7p+BvMxSdS0bkVN5BKz6zSGSdQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230016)(4636009)(346002)(396003)(39850400004)(136003)(366004)(508600001)(44832011)(5660300002)(83380400001)(8936002)(7416002)(38100700002)(2906002)(6512007)(66946007)(26005)(6486002)(6666004)(186003)(86362001)(36756003)(52116002)(66556008)(6506007)(66476007)(2616005)(316002)(8676002)(4326008)(41300700001)(1076003)(38350700002)(54906003)(110136005); DIR:OUT; SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3xsPZKBUA2saNyzvD8l4/glZiSyYVvlHP06NCG+HVx0Oq0zijTd4CFvRbgAUUMWbw6v+8un4EebEv6M4VoTBAlwHrX2sMlfYYj0jtBGyOk9WWCSjgNMTgmTsYFmnfEViB5ZMmd0hQezRF2El5DBvMQiUyQir1p/uZ8Eq3rqCUEQQQDRmGkpilHpx1wB5lvghLY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d3PUyrIx/zZoZzc2wI7KkuVKoT1GVhTuyvs/d0ZniGkPp55oUBJMGOn8+A1Ss/f1XujrkeCikviqgpPF2bBYXlMl9tl3egVM5BEXei8sqvSBYfPNDe861Rc7S9vJ14OsgOluSxQouZoL+0No9kn85WVj65JnIVq2bwJj2nUkxSkwa/Thbey3Du4Sqkk4n8qqdQLJX/uLkIFp+3aBqdpAvsodxnqvCTnPEe1whZPLhT7JZkE4lRjqzL6tOY6fm8EfDHmk2iYbRKuPMWYlx7G8xs8Fgg0fHauXCyeWa+EidUdI4+qMOwn/DoKz2L29UPA/2b/XcQ11ze9fVmEHF/xJJpCQCG8DY1nPPU0Yj+F3T8EWaRzCGXY6OK0/vrcGau/zwhLWspe8RoNHa5M0gGPu3t27N/3aqcf5TiVkk5+LpwFiCF5pXZoUysgaASbjfx0DSqkzKFz4xU1gBn9D+CqLiJ8PLcQ27Iv4yxzuvixTwXbYt76Q= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: da4a8508-5bd6-4a15-79c8-08da4eb56c9b X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2022 09:57:14.5136 (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: iRVjKEraaAvOa3nYwsWjzHmYNyhaI4170Qp4K0ugffzDFj/MEUb12xziPBrPjnoD/mtjQGBx6s9/Smf0MV1WPq/5HqvjHo7oUYnZrHhZsxo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0296 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add trips point to i.MX Thermal bindings for each temperature grade (automotive, commercial, extended-commercial and industrial) to enable specifying a different trip point than the hard-coded value. Signed-off-by: Francesco Dolcini --- .../bindings/thermal/imx-thermal.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/imx-thermal.yaml b/Documentation/devicetree/bindings/thermal/imx-thermal.yaml index 16b57f57d103..e6349e40d6c6 100644 --- a/Documentation/devicetree/bindings/thermal/imx-thermal.yaml +++ b/Documentation/devicetree/bindings/thermal/imx-thermal.yaml @@ -54,6 +54,18 @@ properties: clocks: maxItems: 1 +patternProperties: + "^(automotive|commercial|extended-commercial|industrial)-thermal$": + type: object + description: + Thermal characteristics for each available temperature grade, this allows + to override the passive and critical trip points. + properties: + trips: + $ref: "thermal-zones.yaml#/$defs/trips-base" + + additionalProperties: false + required: - compatible - interrupts @@ -98,5 +110,20 @@ examples: nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>; + + industrial-thermal { + trips { + temp_trip_passive_industrial: trip-point0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + temp_trip_crit_industrial: trip-point1 { + temperature = <100000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; }; }; From patchwork Wed Jun 15 09:48: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: 582158 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BA2CCCA483 for ; Wed, 15 Jun 2022 09:48:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347831AbiFOJso convert rfc822-to-8bit (ORCPT ); Wed, 15 Jun 2022 05:48:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347652AbiFOJs2 (ORCPT ); Wed, 15 Jun 2022 05:48:28 -0400 Received: from de-smtp-delivery-113.mimecast.com (de-smtp-delivery-113.mimecast.com [194.104.109.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C911347540 for ; Wed, 15 Jun 2022 02:48:25 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2042.outbound.protection.outlook.com [104.47.22.42]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-25-HanQz1KWN8i4r9CjeJF_vQ-4; Wed, 15 Jun 2022 11:48:18 +0200 X-MC-Unique: HanQz1KWN8i4r9CjeJF_vQ-4 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0392.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Wed, 15 Jun 2022 09:48:14 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.013; Wed, 15 Jun 2022 09:48:14 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 6/9] ARM: dts: imx6qdl-apalis: Set CPU critical trip point Date: Wed, 15 Jun 2022 11:48:01 +0200 Message-ID: <20220615094804.388280-7-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220615094804.388280-1-francesco.dolcini@toradex.com> References: <20220615094804.388280-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MRXP264CA0043.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:14::31) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bb4d5fd8-e162-4674-31bd-08da4eb42a21 X-MS-TrafficTypeDiagnostic: GVAP278MB0392:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: YdKTILDYRanf+td/98pzO+shMI0G5t5QFGBeHm6q+lkR90dxAT7ZEGb3wpGuQLBwnK1nfton+YjdwVI0RthZOU34Bj4t/C/k1n/0dVP/z8V3yVm3DG95ES0f5mi6EYCl57gNcHd7IfpKUbmLfloXcl/XxkQvJSucQ7HCHYH2sEgSAlaEI+tpfBkUxu/ULEb9/x7yUgNY9NqouJQk4PqM7bfnJu+GxR51GPs6h0ogGVVrk+rCmCFXmt0i5gRG6A+TOSGeCPM0UrxE2sVKy7IAMc9LMkDaWadNZ5VWxrz2jauimKpctdFI+DDo55uQLJkhiCGXXfdSsWgrF+G5rvorfAZgEln7LX/HHW8o0DzaVKngWogxEmRRPSVkx1PLRSbR40YG2Bfa0MIW2jwRZDGqo/9lL95vJyRp+CnN3w9Lyt1QXgldCOSPczWogomoeiRGtUAj48TK3hflulCgZXocjht6augufZdDJHwsWk4mTddF6KCTkzuXXa4KV0g1cl03FKNX8qDz+JUlkGUEmWZrunDfExVCkbsPz06ABB7RLlUKuzTo5Feo/Np1lhhWRsdcle43nvCEQbhxx8bs6rVkV4Pbre4PpgRhLv3AW1W5rL8T9lzJe+beEO/3emfR9MKi9jgpVWqMibBP2MHbyyXq64YjuNX9gM1AvC2zP8pkMXvCs8K5+M6Hmwbc7E8oyzNPSkZmVlo7mKBzP0dv4XYVGGkJ0NdZ8k2UmULqonFz4QQ= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230016)(4636009)(136003)(396003)(39850400004)(346002)(366004)(1076003)(41300700001)(2616005)(8676002)(110136005)(8936002)(6666004)(316002)(66946007)(508600001)(4326008)(86362001)(66556008)(54906003)(66476007)(26005)(52116002)(6512007)(6506007)(36756003)(2906002)(38350700002)(38100700002)(4744005)(44832011)(5660300002)(6486002)(186003)(7416002)(32563001); DIR:OUT; SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: OMEqgfXRk2jh+s1zezXs6oKpy3/1GI2Kvjlo9NxzdkA1SlzQ9Zlo4Q6VGrXz9QWozoPZuK/0j1g7YX9rb7iSpNdkanrcpkf5CX6+3p6Eh+PiWo6ueQIbxhz9k4kEfZrWONSSEP9zv4eeUhT8NxRuCK9+BZD9jkQIWTGWhj0e2DZt5lnGGzcu9yi2TDzpT7NepWxr3JMWr/B9o0WinI6ROSNcowlAgSdHVxm+wQL8AfzRW9hrautw4VDGVUHfgbBTbX7WpYGp9toYgv9Vi11vjIpPcHzzZRnmk4y2W7/AGg+vQyNyifE8mug8x+cXue7vyYAPSfdR6pI2gyat4N/sstQ9o7ul186sj2R2wNkTgLrkybVibHJv0u67kZXr5+j32DWFNMcnM20XkX+cG4SYhBhALOEPGKLOmW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3Jj2t+8y2k2bZRJm7ivroiiXEI15zhxMWSOi8f4JH4+AtJ9KS4eCQe/uhap52JLXak0ecxhC9O+dpH3Nja0Gjn7gCJ198JwH4ItFT/bk3a1Y9Ut6sk0vRzVp/moD0uodKAmgSys7ETxpkfCy8nDeNjX8hlA6r1cH723ISlJgx6UNmqCm8kh1Q1dFftMNNLofwyWQ1sKjAFonBNGS0Bl5T5aJqonqchQW22gtufBNNY9RcqnbnaxPaQ/Lfjsh5hFWBsU3bAebFjk984XBJ9ksE93AU= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: bb4d5fd8-e162-4674-31bd-08da4eb42a21 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2022 09:48:13.4869 (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: Nj/2vfh2NQjtB+CKS4mIL2uRFnwcfs90aUjhuUtbZC13anO1vkzwqV/L7G+XuLVElPLEH5fdQx4ppD43XEG7g2FHVX3auUzx3kyJuLJ9lyk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0392 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Set CPU thermal critical trip point to the system designed value, 95 degrees for commercial grade modules, 105 for industrial and extended commercial grade. Signed-off-by: Francesco Dolcini --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/arch/arm/boot/dts/imx6qdl-apalis.dtsi index bd763bae596b..21ee16f3926f 100644 --- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi +++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi @@ -390,6 +390,18 @@ &ssi1 { status = "okay"; }; +&temp_trip_crit_commercial { + temperature = <95000>; +}; + +&temp_trip_crit_ecommercial { + temperature = <105000>; +}; + +&temp_trip_crit_industrial { + temperature = <105000>; +}; + &uart1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1_dte &pinctrl_uart1_ctrl>; From patchwork Wed Jun 15 09:48:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 582157 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD48FCCA485 for ; Wed, 15 Jun 2022 09:48:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347636AbiFOJsq convert rfc822-to-8bit (ORCPT ); Wed, 15 Jun 2022 05:48:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347673AbiFOJsa (ORCPT ); Wed, 15 Jun 2022 05:48:30 -0400 Received: from de-smtp-delivery-113.mimecast.com (de-smtp-delivery-113.mimecast.com [194.104.109.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6980E46C89 for ; Wed, 15 Jun 2022 02:48:29 -0700 (PDT) Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2113.outbound.protection.outlook.com [104.47.22.113]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-41-ESRzgEV_OYGUbqc5zL6KJA-8; Wed, 15 Jun 2022 11:48:25 +0200 X-MC-Unique: ESRzgEV_OYGUbqc5zL6KJA-8 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0392.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Wed, 15 Jun 2022 09:48:16 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.013; Wed, 15 Jun 2022 09:48:16 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 8/9] ARM: dts: imx6ull-colibri: Set CPU critical trip point Date: Wed, 15 Jun 2022 11:48:03 +0200 Message-ID: <20220615094804.388280-9-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220615094804.388280-1-francesco.dolcini@toradex.com> References: <20220615094804.388280-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR2P264CA0077.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:32::17) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a85ebaaa-e05b-445b-332d-08da4eb42a58 X-MS-TrafficTypeDiagnostic: GVAP278MB0392:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: pzxGptJCAZiJ6wtIrtIrgNvAigow/smLqsHzoScs0moSPp78aVNovfH75dvdF/TO0KMxIi1bSzj0dn/c9Jusvh8vZvf2BbzncAp/P3M8FaOZockA9eJisMdZFqAb+MRl6sWwCedt2YJlturGTdfwTIDf9sjhgJRcTa72Lc5VNCY0NcVY6A75VWHoPw0QOiiMzqM+Gv1N6L8bZymuL1RmwzufNSWol5iKKBkhWG8e93OOq80EOKJiX8v8syI5CY+0reuK1hFUFbCLI/8gu1XQIxZgYNdDjDHspCFQOryAzzXS9v63QiPD1tFFRSlO9hXFZXicdYqGRGdpUbamL2yiKHRPuZcgGN4wEK2CPS08lCxVgzjMdeSSsoG+kPQa6MUVykDR8YNANHXxnX7xijkeErTaV06GFUX4EDpyVx+4OTXHA5qltHvSULJpVpfrmIF4rJnv5yNqO5jxlpHY51MDLjSuQ2b5f/RDPdrMReV6W2zBvg15nciiMg6Ox3s3ipVbjL9LT6iGWzwE6IGQ4K+6S9W4CbBlKc9IekFwMuk8eLMkzyn6fL9b20m5yUfLRF2BYmZFKmFEpX0cbH+LZEqhgqCuGxleoufqfwAqz0bSTjFwOVTEALwnqOWRGrZu4PYNfLHzjTCV332PGl56tnRjcTI90lbudRQ5KWND0ITA18w8YJKxcrseuZ1ND8ka+2mGsYTUEXBbcIN0q7u7tFVDrsYuDnzHu42XGmz5UhLLPFg= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230016)(4636009)(136003)(396003)(39850400004)(346002)(366004)(1076003)(41300700001)(2616005)(8676002)(110136005)(8936002)(6666004)(316002)(66946007)(508600001)(4326008)(86362001)(66556008)(54906003)(66476007)(26005)(52116002)(6512007)(6506007)(36756003)(2906002)(38350700002)(83380400001)(38100700002)(4744005)(44832011)(5660300002)(6486002)(186003)(7416002)(32563001); DIR:OUT; SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1BHIHuUGqekcwciBCABUPiF6MnA75dnslaczqPgyyr9mN8vkoZkqrbjowEcJ+BK1MI/ikrAoctOrrmw8Z8ATE/6BAdRZzFmZ5tjuu5+ktGeeTgHnYR22+1lP/w5eB4J9Ryu7+rh6p0fk9YrGy1tyfkOBuyJ5QsEejYAVgSijQNi0iaBx5WsloVyuehg5b8KyV/DhSAbx8zfOwfrMd/mBJUVVk+qrbXrJPrJBXI9EKKVGc08E74S8L1sPJXhhfEXwtZ6YR9eOvgTTkNH1NiCU0jUDR/l6iR2GCB+ezzd/XfwETpiIFLjDovAfxWaV4q0mfZJcqLQS1tmZcovfGUcRZeD7Mls9cflUgpuU1dHSdji/1HOYBDSI1wt+2vohYW3dNIgw6/3Yb7UA9xhx64vRKVbdgKLwG+rQysi6TSttvpYiD5j1kKTRufT/KbfKkGkz8DTAbVp564grZU9I0kzIDO13LGkNB6HeqNQqCWbbx3BGkZh9DIo4fSvIG3h+DsxcDyvF0vbTKgufTP1dI/KHriSGlWkGBa/QMYDqqa5uXSzDAaHpU1wX2lVNXc/mrfUiG2eYdmo2MbbH17aX/f6WseZmEhjVE1A4TTDQ3pkPkCmW9iAzPBfXe5GM7MO6obvz43WajFpjO+jo2pFp/lZzwB5AgzEY1cMHu0RoBXj6BXrtGK9pr4BjPnBRRqzyugCfY8Imu/Hly0CnHURTJ58rc6nU8c6vTaoGAkEM2DcbIik+VIyCeYSnO1CKk0sBZXGEPG7vGmU0ioeo2Ya4dx6GMf4sE0S0sMUbMpTjut0dysepeXT1QK6isUrKKJ+I1LcuLZJ5yrPlbl+A4PBObaWfBp7wSsM8CP15JO+58PyK7/Xtw/06fePF1djoAmW6GJyaXI3fHLMKBUnAini70SVvKVwpSm1r9HXHEgFArFGqA6tztc5Z0ljvH7FTsPoZzYb+n7r9CRA588H7o6+au1oWtFnMP8NzNBU4e/gibVq7aIfoNwnSXoQBHgNaomx0P8+zr0kcQRtKaJ2ZcuoW7Gq+CdbkQrsRkqZ1cQiO2/o8hR86wYJ/C3i6rpJZMb4bZOrhbM6Ul9VZFCM1ple6VrKWE981+78wF59hpT+0TGQ3KKZuPZWiGR7BhWrBllzkORwIWIHErLv/c4PO1oBHxcL1OU68LX9saHFELUJwmQzk1hR0mRVAuPoFFE+CJxy/OqwdD468KzxSa7KNmT/kL0EeiVwWP89fv1BdO8owWaBQCiX7PAwRknh4fBF+V4nYCIp02u4Lw9iE8zi7e0c0WJ6OV2soaHgXwjHq5dzKc58+QB8nhzgcNvMwcj7K0xUgnFUfx2pp1R9XsRoabtfWGvXvqcOk+TwWnptQcG4NVMMsc2FtMZZJ3dO1La9yaLJbw+ZOWVXZP45xDR9/ayU/l7+QR48Ca2lljPf69YJJRxCBz+28MM2g/l+rgvh5Z9MI3hjKIrBT4LrKa98dOgoAnKdJRMIl/vTSKOZgRjEuQQ/Lq1ukeqr9bCs++CInSyZ/Q+Z+zj+boBUvibqVFM8UK9jF2/7pWGzxI7PQ9+PBYt8Z+WdEyv3Pz1oXIwbWm848G25BXK6L5ZzbRwLtcU/AyPBFg8EBzQWfLYfDnTUIuQfpTuDFtRb2gxs9L/bYPq51P944/0nbNQK357FbfLJ5bxBSPg55kGD/JQ6rfS/2fU6rW624i80ColKTVGY2UVjU804uWgL1UjTWzmAMYUAE+DmP7fgxhMyHUA7NZA+ow9AhhlQ= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: a85ebaaa-e05b-445b-332d-08da4eb42a58 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2022 09:48:13.9411 (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: t78K/eAHZxWwLnEN5jE/VxNYYRsl5rDpjdkoLbEIr879EGFyY/uD2IaRSvPPcnhU8ZyrAEt7VEJD5sy6HRmJMSAe1apOqmSB8bw/G6aCFRk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0392 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Set CPU thermal critical trip point to the system designed value, 95 degrees for commercial grade modules, 105 for industrial and extended commercial grade. Signed-off-by: Francesco Dolcini --- arch/arm/boot/dts/imx6ull-colibri.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6ull-colibri.dtsi b/arch/arm/boot/dts/imx6ull-colibri.dtsi index 15621e03fa4d..6d8e1ef0315b 100644 --- a/arch/arm/boot/dts/imx6ull-colibri.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri.dtsi @@ -250,6 +250,18 @@ &snvs_pwrkey { status = "disabled"; }; +&temp_trip_crit_commercial { + temperature = <95000>; +}; + +&temp_trip_crit_ecommercial { + temperature = <105000>; +}; + +&temp_trip_crit_industrial { + temperature = <105000>; +}; + /* Colibri UART_A */ &uart1 { pinctrl-names = "default"; From patchwork Wed Jun 15 09:48:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 582159 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68D0DCCA47F for ; Wed, 15 Jun 2022 09:48:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347608AbiFOJsn convert rfc822-to-8bit (ORCPT ); Wed, 15 Jun 2022 05:48:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347630AbiFOJs0 (ORCPT ); Wed, 15 Jun 2022 05:48:26 -0400 Received: from de-smtp-delivery-113.mimecast.com (de-smtp-delivery-113.mimecast.com [194.104.111.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 01E0346152 for ; Wed, 15 Jun 2022 02:48:22 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2041.outbound.protection.outlook.com [104.47.22.41]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-32-F80T32lxMdWwgIFqYfPEcA-1; Wed, 15 Jun 2022 11:48:19 +0200 X-MC-Unique: F80T32lxMdWwgIFqYfPEcA-1 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0392.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Wed, 15 Jun 2022 09:48:15 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.013; Wed, 15 Jun 2022 09:48:15 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 9/9] ARM: dts: imx6qdl-colibri: Set CPU critical trip point Date: Wed, 15 Jun 2022 11:48:04 +0200 Message-ID: <20220615094804.388280-10-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220615094804.388280-1-francesco.dolcini@toradex.com> References: <20220615094804.388280-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MRXP264CA0045.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:14::33) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9c6b905c-7e7a-4078-0c70-08da4eb42a51 X-MS-TrafficTypeDiagnostic: GVAP278MB0392:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: ASgfbbLdoMPibhkyPsI+GPIRF2/1u4HLq6YBER5ixxYXzEwzvjf442PBJdG2Pf/iZ51ovCTCzGHTmFGsv52XMc3+PycFuJmDgr3Fs2+dd5w0L4ewUPCXUm/qwyOHcDXapFpjdpbVmimPAL1VfICE1u45Cm0TOnj208MRUT930x0LlMHUHLhNmQ1i4JmEEaRjFZ5f54y1HZbrAgpq8sGqhwk8ZdGtmIs6YC4L91/6+3RonSvBDhqpwCOebuQuQ89MVV9/ljkYCIrbHFmr/3l9L8Zm8FO6elNLjifCVDwBTGklUrHl/InKLlRun3nMa1E2tsc7/+e2PS21C+6MJ89LnYxgpIWBoyzxpG0V2Z8CnArafgcjDkXlMwWY5BjUfr5yihRpjmaiVWAsL3AeQ5B+ktyzOn9z2UHwKBMBvsq+KbPAEUlB7Q4V/oKWHyaC+xrWkUJu25Fk5akZbrNIBDyBVLleDIMP2C4oFDInAp5tp3XRBNEZq7eG1ZrLxLwnDORsbD524154UV2LtRgAFatiI0PZEujJqp4y/5pFdcvZYNyH9mWFLj2m3dBbGY0qano5TJ1TgUgFpAzZa62l8+t9jiZvWeLKY7jGXpq8+08V48cL3oc41bfCiQrPegwNlKEpQcafJMu9QCbreiXtXNAWP+hQyfLe0DKG/oTJpkugBlmB+KSD6S9cd6jxXn/wlb/ndcWtxf40u2tmqnVx4glBGDOapDSayS4811/LqDN7Cn0= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230016)(4636009)(136003)(396003)(39850400004)(346002)(366004)(1076003)(41300700001)(2616005)(8676002)(110136005)(8936002)(6666004)(316002)(66946007)(508600001)(4326008)(86362001)(66556008)(54906003)(66476007)(26005)(52116002)(6512007)(6506007)(36756003)(2906002)(38350700002)(38100700002)(4744005)(44832011)(5660300002)(6486002)(186003)(7416002)(32563001); DIR:OUT; SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: fVVPtm5Q0eO1tHG2/dpoh26q6o+n4mELeN4NCtBxdyce4m1Nig3V36nWk9Jwsef8YuCl77YBdKtueJOrn7wL1+ndbKA/UHj5HWtmnVhiFEgPicITTq7Cj9UKCtymGRTLJJ7IkBs3vMzRaBUaeRALKLTv1ou1kBjkjYy9/p2z3OIrwIlaATXgYLLDnQYL1bmIrkDVyx3TH1n81RHIXglCxJ7YduJwGeXAnW2rytI8q3xIhRZlg59bC5HCAKoU9FvKRQ0BjEL9SODBKSwb84xJrw6PsJileeNtSBD3XpQYy5/YtqmgJoufQF1HiChlwphRK9gHlBag7/JzmbDCVm7MZuN/XzMhuFTZML7yJZrT4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xbCxV/o6l1PnhMGzijudP4pF/+7l8PpiK96DSqSAQPGv8+1gk0pUjI2DLa4uFMDdfku/xnWbKD2CPtJON6Z6cdx8e6DbokNZ1Jx6DK22QJrBkQbJ3yWcxad5pZoQjXRI9aDEwieYv1TDPQ6o6vd0okmfk53T57YDtKkm0uNZwQhyTJ+RyWBBg5rZkjl2qEweaTGJj+zWCaMXZ/RHcyw1CDeCmcRWnAkWRIx76qaIf0xVmKA7GsV3Go1QRh397MJyT+j1Q1n/0esdYDm38iKCM8oQlmzSBUIgh/CIFbjvPk2YhmtfBDWWo4rAIkfc= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9c6b905c-7e7a-4078-0c70-08da4eb42a51 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2022 09:48:13.8162 (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: VMozsiVT076W5mOWx++xNy67gC2sozVfE+ruQCTGdn2uUSKX9SEKWtf7bLN+PgCwQIM6R/HPLoKuot00jJhN23c7IdKi+wAYZY6a6Wu7UwU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0392 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Set CPU thermal critical trip point to the system designed value, 95 degrees for commercial grade modules, 105 for industrial and extended commercial grade. Signed-off-by: Francesco Dolcini --- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi index c383e0e4110c..fb7bdf65a0bd 100644 --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi @@ -642,6 +642,18 @@ &ssi1 { status = "okay"; }; +&temp_trip_crit_commercial { + temperature = <95000>; +}; + +&temp_trip_crit_ecommercial { + temperature = <105000>; +}; + +&temp_trip_crit_industrial { + temperature = <105000>; +}; + /* Colibri UART_A */ &uart1 { fsl,dte-mode;