From patchwork Fri Jun 17 07:14: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: 583535 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 B706DCCA482 for ; Fri, 17 Jun 2022 07:14:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231313AbiFQHOa convert rfc822-to-8bit (ORCPT ); Fri, 17 Jun 2022 03:14:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380524AbiFQHOV (ORCPT ); Fri, 17 Jun 2022 03:14: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 3CF4C66202 for ; Fri, 17 Jun 2022 00:14:20 -0700 (PDT) Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2112.outbound.protection.outlook.com [104.47.22.112]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-11-vtkNLl0MNjWlE6NYCSBtCw-2; Fri, 17 Jun 2022 09:14:17 +0200 X-MC-Unique: vtkNLl0MNjWlE6NYCSBtCw-2 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0438.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Fri, 17 Jun 2022 07:14: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.016; Fri, 17 Jun 2022 07:14: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: [RESEND PATCH v2 1/9] dt-bindings: thermal: Define trips node in $defs Date: Fri, 17 Jun 2022 09:14:03 +0200 Message-ID: <20220617071411.187542-2-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617071411.187542-1-francesco.dolcini@toradex.com> References: <20220617071411.187542-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR1P264CA0168.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:55::16) 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: a6310d4b-ea5b-484d-2608-08da5030fb95 X-MS-TrafficTypeDiagnostic: GVAP278MB0438: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: GEh68tqCZjv/A5tLd9S2V345v+Qu+jQmHP90H12m38Qwv3FUkEuBq4GM0+/8ycRbAqCPLTd54w4tIABs9NkktEvLky7T8tQg5EmNJ0VmTTaK3e+QDlUan1rXRvnyQk2+hrvarS72h0GqMF5thw8RJlGu7/EqemHFdcRdAFSgHyskGA8s0LKpuHXVVjGeRLVrNVrdia5to7E8KUyEK8yORZbB5EOjQRlJdIRleWp07A1QWcAhOCybnfgWVJlDH4Hrg4/Qt6KaXTLlWsRWoG9bDvpG181jogx6C5YvYIwAJziPJdzcC8QobFkjIE3pnhTwvnfBy0dbIgBGJmpNglR/tGQJPJQjZZxVCO0v3etSNI9ztWE68c11gkyEafGm/KIQcb32MpNGx76/FQvibKWMBRnoDAaOVLpcacMUQ2pqRKBQrUUluuYv2RjAQCSdVslFCUGSt1+/zZpsAYFv5GddgwxssavEcDXbQVDYhh+S4Ppuc2c41GxXngPokQqPY9N2a/HVZxv5cTgad2GKSls0JdLtjBwZx7tjFKkcaAIWU69UwYUxDjIpsoenH19uI7yPUzpiKLU3ZltEocRKS60YP+buQezfviIvDHw40CA1jYkqcsIpFGfe7NuWhBQCEfYRlimXUv8SsVoqkCVcGcebmwSntFyBYvsFQdwyUdfaNzKmd7b0DWYmVOeY3npNSoXW0FHVjtQjZgAT+f3j2i42Bw== 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)(396003)(366004)(136003)(39850400004)(346002)(52116002)(38100700002)(38350700002)(6506007)(2906002)(8676002)(8936002)(6666004)(6486002)(316002)(66946007)(86362001)(7416002)(508600001)(5660300002)(44832011)(83380400001)(110136005)(41300700001)(2616005)(26005)(6512007)(36756003)(66556008)(54906003)(4326008)(66476007)(186003)(1076003); DIR:OUT; SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: u2i6Et2EgTj1S8/WtUZoDD3lyR+eLgORnjJ+j+dY4E9Q1GXFv2AGt5QjqCqoKZEVHh4qUCe9p6K3zfw0nzWr3xmD+hSP8bxo1NbWU4BrqYOckwoRfjN04tJu/mqPfwhToMGnNSHy4cz121xAryJ9+ZvAiCHBJhEkpz1h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85mHvaWQkkZYXOTVVvzmmBBqbxkWyo6Q64R4QGCloBap7l1lrr0R647s8ehWmCD4w5eCOvnDy4T3ztvdcngtHgRHvcfHR19iQZ/vFrcwhs9XrXMkanRsRsLImrZjvzk7shDc34hM/wwnpI8dJC31nMbWKYCne//P4fSsaawprycjicDEy5LMd6uVThbNVPCPbK2kQtnPhgyGEK2luWfK2szOVj1KRlxK/Lz+M2yj1X7d+vRunv0bBGecrtGh/2RhhMmHRsdkjKHSfFgxX4CFLSj73GDqyjeboI3B8DiPTNgyUgLSQTZazV7jJx6/Zd3w4mLi+RijFFmh5ZgbDoIGcBNXV1a1qf1IqCq/Mf1TiSoW/MlnUMM9g3FQDlNKICB8oxajUfkK1vRWMhCC0o46ZvWo3W5n0pc4nps08tKfnu1CUATG1FlcEUP0atOvcaeBtXX4sc7E+4Kx6I64qk0rN+eUzL5dTmA5psPRIRaQl+w1dYEab/5MMsjsdQsg7ioCq7TmwFiO5T4NtIVv56HyoY= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: a6310d4b-ea5b-484d-2608-08da5030fb95 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 07:14:13.6948 (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: WLNgkCT6eXpwBoZsQ8zSmmE5Z6bhl4tRxJLCbV7/EgegYwy9YPuR43HLGHdJVRwDeu25f+UC/fO9JNp2jiPefrTf18Z2IMr/Sr055zHmmfw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0438 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 Move `trips` definition to `#/$defs/trips-base` and just reference it from the trips node. This allows to easily re-use this binding from another binding file. No functional changes expected. Signed-off-by: Francesco Dolcini --- v2: no changes --- .../bindings/thermal/thermal-zones.yaml | 130 +++++++++--------- 1 file changed, 67 insertions(+), 63 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml index 2d34f3ccb257..ba84233d20b7 100644 --- a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml +++ b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml @@ -10,6 +10,72 @@ title: Thermal zone binding maintainers: - Amit Kucheria +$defs: + trips-base: + type: object + description: + This node describes a set of points in the temperature domain at + which the thermal framework needs to take action. The actions to + be taken are defined in another node called cooling-maps. + + patternProperties: + "^[a-zA-Z][a-zA-Z0-9\\-_]{0,63}$": + type: object + + properties: + temperature: + $ref: /schemas/types.yaml#/definitions/int32 + minimum: -273000 + maximum: 200000 + description: + An integer expressing the trip temperature in millicelsius. + + hysteresis: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + An unsigned integer expressing the hysteresis delta with + respect to the trip temperature property above, also in + millicelsius. Any cooling action initiated by the framework is + maintained until the temperature falls below + (trip temperature - hysteresis). This potentially prevents a + situation where the trip gets constantly triggered soon after + cooling action is removed. + + type: + $ref: /schemas/types.yaml#/definitions/string + enum: + - active # enable active cooling e.g. fans + - passive # enable passive cooling e.g. throttling cpu + - hot # send notification to driver + - critical # send notification to driver, trigger shutdown + description: | + There are four valid trip types: active, passive, hot, + critical. + + The critical trip type is used to set the maximum + temperature threshold above which the HW becomes + unstable and underlying firmware might even trigger a + reboot. Hitting the critical threshold triggers a system + shutdown. + + The hot trip type can be used to send a notification to + the thermal driver (if a .notify callback is registered). + The action to be taken is left to the driver. + + The passive trip type can be used to slow down HW e.g. run + the CPU, GPU, bus at a lower frequency. + + The active trip type can be used to control other HW to + help in cooling e.g. fans can be sped up or slowed down + + required: + - temperature + - hysteresis + - type + additionalProperties: false + + additionalProperties: false + description: | Thermal management is achieved in devicetree by describing the sensor hardware and the software abstraction of cooling devices and thermal zones required to @@ -105,69 +171,7 @@ patternProperties: 10-inch tablet is around 4500mW. trips: - type: object - description: - This node describes a set of points in the temperature domain at - which the thermal framework needs to take action. The actions to - be taken are defined in another node called cooling-maps. - - patternProperties: - "^[a-zA-Z][a-zA-Z0-9\\-_]{0,63}$": - type: object - - properties: - temperature: - $ref: /schemas/types.yaml#/definitions/int32 - minimum: -273000 - maximum: 200000 - description: - An integer expressing the trip temperature in millicelsius. - - hysteresis: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - An unsigned integer expressing the hysteresis delta with - respect to the trip temperature property above, also in - millicelsius. Any cooling action initiated by the framework is - maintained until the temperature falls below - (trip temperature - hysteresis). This potentially prevents a - situation where the trip gets constantly triggered soon after - cooling action is removed. - - type: - $ref: /schemas/types.yaml#/definitions/string - enum: - - active # enable active cooling e.g. fans - - passive # enable passive cooling e.g. throttling cpu - - hot # send notification to driver - - critical # send notification to driver, trigger shutdown - description: | - There are four valid trip types: active, passive, hot, - critical. - - The critical trip type is used to set the maximum - temperature threshold above which the HW becomes - unstable and underlying firmware might even trigger a - reboot. Hitting the critical threshold triggers a system - shutdown. - - The hot trip type can be used to send a notification to - the thermal driver (if a .notify callback is registered). - The action to be taken is left to the driver. - - The passive trip type can be used to slow down HW e.g. run - the CPU, GPU, bus at a lower frequency. - - The active trip type can be used to control other HW to - help in cooling e.g. fans can be sped up or slowed down - - required: - - temperature - - hysteresis - - type - additionalProperties: false - - additionalProperties: false + $ref: "#/$defs/trips-base" cooling-maps: type: object From patchwork Fri Jun 17 07:14: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: 583536 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 F256BC433EF for ; Fri, 17 Jun 2022 07:14:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380523AbiFQHO1 convert rfc822-to-8bit (ORCPT ); Fri, 17 Jun 2022 03:14:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380537AbiFQHOV (ORCPT ); Fri, 17 Jun 2022 03:14:21 -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 E765465D21 for ; Fri, 17 Jun 2022 00:14:18 -0700 (PDT) Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2112.outbound.protection.outlook.com [104.47.22.112]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-34-GHOpG-1qOf6KL5FIBHnXfg-1; Fri, 17 Jun 2022 09:14:15 +0200 X-MC-Unique: GHOpG-1qOf6KL5FIBHnXfg-1 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0438.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Fri, 17 Jun 2022 07:14: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.016; Fri, 17 Jun 2022 07:14: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: [RESEND PATCH v2 2/9] thermal: thermal: Export OF trip helper function Date: Fri, 17 Jun 2022 09:14:04 +0200 Message-ID: <20220617071411.187542-3-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617071411.187542-1-francesco.dolcini@toradex.com> References: <20220617071411.187542-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR2P264CA0142.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:30::34) 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: c3518745-29dd-4b3c-19dc-08da5030fb44 X-MS-TrafficTypeDiagnostic: GVAP278MB0438: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: txDlX4ieZlW0vXDXCkgTRWhOCxsivL+rTIycqZusuXiDgnb14AcCJ+q2MSRFMTnRE5cyEGbEiAoBLY/kSx0eLF3OA3Z9DVXh5FVrOQ0bu57vRXtexW4xG12gBCMgGuk9i4UsXh4+G2cDtQT+7MMWI98HdeMa36f2m1Gixrvr/90ocW7S8fx/9D9RUOHjxj4e1bRsMERWb2Gfof4xTxQPIUPsfAAAd+xVZ0PX/NhCic/m80YCsUcZEsvndtT2Onz5F3q2cl8i3G//Cycdlqbwg8cLUGEtEfjLI9rEnJakIlU2Yz3GSowmkIsULogn8bCNcLKbRGwDyrULZ991q85Y6QK446Onbj5aoo+DP5YBdrggjczZ6mjI+lg8XLhZgjcerdbrl9SjgNVNwh7Gb15+j4efSZ6Iwqm7GFqlbEoe1uF9MZSeh+5OJmHR2ggTj4O0pTtCA1tYK0DeMbZtXVyyjtLenfg4Jln215sBmzb2oZBLt8hJxhDHgcOPqaPu23qibbGhDzpO2JRuU0KTUPqw9RyrEbS2IBQGDFwuGEfJBS7nyoXY2QBhCqqC/3HpZY8q498JPsK15s7PwarqSYd1HQnD9upFGTrJj81SN4/TyqHeecpEaZhgT41ICQraiAhZqrvo8ivHLj2hE6uR696H8qg7GX4o0muykrrZvS7WY8kf5XPnM7642+O+50OdfQM7qSWiYbrv3IzBet1RYT+XPA== 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)(396003)(366004)(136003)(39850400004)(346002)(52116002)(38100700002)(38350700002)(6506007)(2906002)(8676002)(8936002)(6666004)(6486002)(316002)(66946007)(86362001)(7416002)(508600001)(5660300002)(44832011)(83380400001)(110136005)(41300700001)(2616005)(26005)(6512007)(36756003)(66556008)(54906003)(4326008)(66476007)(186003)(1076003); DIR:OUT; SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cqpGMR6/vrwmQMFlFoaOVX2ukogGuOsGFFNYIsUkwQWwS0t5UckZqbMn7K26L3BjAbtRsuSU+7r5JkmJCNGeAjM6oEOTpq2VHzAxDrSOXUzI9yoru6uBrXbsCEv+y/AtTGrrcrf8qYpJgzwrauD6BnJ8RkYcEAz4WXQqheZkRiuxfTFUKQRnjslWroPzIvl6IWvLbiaJvMCo70zTwFGDQyQQGLk/BQlaOSb/q2k90Lk36boHeQ9w38WEQDHNatdEFplYrn7y6EOupixFo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TPQxe/c0rCCe4BulUYU3SXCsXF5lnD/+P/F5/D7dbnDjtIO9bmovcCpg/qpT44OBV5cwSuYuZbz9Zoc6xs+DmUPCXCBCvUqsiEFg2Ouzo2RM7Ge3BOVxvL3XwiReCH16KCwmPrKN/ffeEILU9UPDV3wMGydM9FXDtAIJCWkYVegHCxGHLNJyUrJ5pMUTqvCqqsL/ImmXtthSVUBmcFtstOViU+L8GyJDxp6XYzJKwR/htgisOX34HumHY4icButoIvk2VBUnMq4ZCNPNP3cN6dxxQNbExY0oa1SCa9B8hZdMmhSi7soUll3soDykhoJnUdFaDpsnfj7pB6bo2IVIbmt+L5/XMRm2VRyj2VpU/+FQZF24jtSJfquCyLWpFlfPAvvhqYlzqO8I1JwB3RRhx7rUg/qzzw= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3518745-29dd-4b3c-19dc-08da5030fb44 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 07:14:13.1949 (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: xymG69DaySbuhFDtTrU3o/NdvRaWizLH+H0t5/OyasY1Q2kNjbYk/YSOsZbZfUvTnchnSrqDuOkla/hSIYvYnIHqfeqrUVvOS5lIMoZNi10= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0438 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 --- v2: fix build error, use EOPNOTSUPP --- 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..7d429d299d82 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 -EOPNOTSUPP; +} #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 Fri Jun 17 07:14:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 583532 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 63E24C43334 for ; Fri, 17 Jun 2022 07:14:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380490AbiFQHOg convert rfc822-to-8bit (ORCPT ); Fri, 17 Jun 2022 03:14:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380547AbiFQHOX (ORCPT ); Fri, 17 Jun 2022 03:14:23 -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 A2EA014D3E for ; Fri, 17 Jun 2022 00:14:21 -0700 (PDT) Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2104.outbound.protection.outlook.com [104.47.22.104]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-13-9WKeBhhoNa6RWYcw5-vY6g-3; Fri, 17 Jun 2022 09:14:18 +0200 X-MC-Unique: 9WKeBhhoNa6RWYcw5-vY6g-3 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by ZR0P278MB0347.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:33::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.14; Fri, 17 Jun 2022 07:14: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.016; Fri, 17 Jun 2022 07:14: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: [RESEND PATCH v2 6/9] ARM: dts: imx6qdl-apalis: Set CPU critical trip point Date: Fri, 17 Jun 2022 09:14:08 +0200 Message-ID: <20220617071411.187542-7-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617071411.187542-1-francesco.dolcini@toradex.com> References: <20220617071411.187542-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR2P264CA0122.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:30::14) 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: 483fa76f-11e1-49dd-e324-08da5030fc2d X-MS-TrafficTypeDiagnostic: ZR0P278MB0347: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: pgLxwHgFF4UdaWnWezfdryIZv+YnveZ+cfoV7dQ7UR3PYy3HupDizn5AxA+YUhPbL5AXNlnWtvi4+ILYCU49tNICtpxXRZk6PYnjT/gXQhL4FV2HlFsrtkaJjqaRtEvBX1QS+wLXCbZDEmMTNkMeJj1EwDhNbuSDGoFKHr5WPXX1mw53DlitgeEo+Iakh17/vfLM7049TnW6ev1dZuSfUTftLsDkwq4kFZktl/wCFr3HheXAwbzq17g2inndtdrqQQ3fuCM+aCMNRZ6FwlkES9JTWlFJ4bwevJq5Xc4Q6gBObGHrLIXcyFJWG1copVydiRera2UeqVAWVFIhOWZvUSxvRZIuLFiwg8uDJ5kVhQkuJ+1F3h73AO5K0WHJqfW/2RQi5dQmvuFvu4lw2+4G0p7OzGoBVmWMylrQCy73Q6LCfwJoVMOR27We6UgwhaiQd5nFKXByzGs7jrnpS2oErHrrxfkpZPJM6k8FGGWRz+gzsiunAIfCWZUt6QYmhGqCWjCC3xHAQPP6HtatVsnOiv7kEWWPkQ1YYYri9b4e+xhgj18ROqQfXOt9veOzm4z8Ybac+tRRZ/Uw2wWTbSQultxI4pJJIz18f5xVfExm0jaZP+9hMTkdOPJ4DNHc3tyvKauGavWEaMbi+2oeN2L1T5XYNPPPw4eIFDTqDrPreZjOap8ZntXG1EhdzXWiRhCZqul3Run+UE8C7dvS8V+PQ55pvIh/RWzOOFiqE0JlD9I= 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)(366004)(39840400004)(346002)(396003)(66556008)(2906002)(36756003)(66946007)(8936002)(4326008)(8676002)(5660300002)(86362001)(6512007)(52116002)(44832011)(38350700002)(4744005)(6506007)(6486002)(38100700002)(41300700001)(2616005)(7416002)(186003)(66476007)(508600001)(6666004)(110136005)(1076003)(316002)(54906003)(26005)(32563001); DIR:OUT; SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PFIryXpO5Up8hWt32p0+n3wqae+cW9aU4r53b+fyJEBP5ss8hVK34H6KXKEDi4c4wD2V0Oo30Ge3cbucMoQSFIck49kDTsRXIgtqe7oLSt9qztVs9w7ofZbEAOQw1eUuR49rjNB1AqTgMPgidXJkzci/MdTW6kamncCuRjzsdPHFLwXPtOmwWCCcovnMWZRGx/Jkt6uxQhEFdutAf7UEYQpnab1sKrm4zFMhAsBVixFNd3hspiG+ybBgG0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Dufp8bknAa6mlMU2qrca3hIpEjtDIWCiPhR9fEOA2Xh25x9RR75KVYkOIhoFNbgYx+YkunA/KXIyVJjzEIcx7ELOtuqH0tSsT+q5HEgqeR/JAwFV1V6sTt1o/llacGA4bTtiHPkw6Fe5C0Xyd6r5uQHtCluqiOZBL2AhwQZur6SMbB7NXi+kJqchO0c9IlR9pnb9wlQV6ayPPOn7ifJx+AdrLQ1lA8IldAXtST5X6Lap9zOQyeTxMw7etVsuTYAbVKaStwNmcnU1C1IeLI2y3V1WS+dafnyKZRGtu5kgh623mz+UVaevtCrgGsaU4YjLWFRwOgSGas/x1toDQmakzDDUYzR3SdPWyqAAcK1ntW9OnNTs/jJAzHAzgU9T6ZiNdEGaClrv6dpRn0s8lvHEUbXRVfIHK+/hO/br8VsHANwbtwf8= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 483fa76f-11e1-49dd-e324-08da5030fc2d X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 07:14:14.6645 (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: joqhYq7DjMAh7+0sq8XhsI0nesv8z2b+10Ln0kho8AAAgb6GcWXdkLaCSzSvTnNc8DGCNzmvVqUkEf7MDMnmKpC2ZwJ5QlMgunseN5SEyLA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZR0P278MB0347 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 --- v2: no changes --- 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 Fri Jun 17 07:08: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: 583537 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 80792CCA47C for ; Fri, 17 Jun 2022 07:09:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380377AbiFQHJo convert rfc822-to-8bit (ORCPT ); Fri, 17 Jun 2022 03:09:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380448AbiFQHJU (ORCPT ); Fri, 17 Jun 2022 03:09:20 -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 5115E64D1B for ; Fri, 17 Jun 2022 00:09:11 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2045.outbound.protection.outlook.com [104.47.22.45]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-40--saaJ5-OOJG0XSkmcLbaEg-7; Fri, 17 Jun 2022 09:09:05 +0200 X-MC-Unique: -saaJ5-OOJG0XSkmcLbaEg-7 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0263.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Fri, 17 Jun 2022 07:08:52 +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.016; Fri, 17 Jun 2022 07:08:52 +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 v2 8/9] ARM: dts: imx6ull-colibri: Set CPU critical trip point Date: Fri, 17 Jun 2022 09:08:46 +0200 Message-ID: <20220617070847.186876-9-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617070847.186876-1-francesco.dolcini@toradex.com> References: <20220617070847.186876-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR2P264CA0137.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:30::29) 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: d4de4c35-15b5-4c54-2305-08da50303bbe X-MS-TrafficTypeDiagnostic: GVAP278MB0263: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: sDVcDaLdhHcCOlgt7goBsgbX9tZveaNiH0Onfvkhd1/gbuQq/H4nm5zObXmO6v+2mTCKTss+TqN15H76lb5dI4w4fd5G/XEujeGfUK7Up+JI+NftTrluMcwdrM8Q/Qc6v8SLIItbulrg+JOtejIrxUvBxwN+QNyVa0MyJ6A0kqha970k4ta3lTDVocNAQFZh89A445uXqHpNRQlvjDo2dX6BTi07nbVOknntnYgCU5QPAsS7qrNcA1mfragKALiUehBjw+82oQQGfoXVMFX/ePX9uhlAp+C/auFP4nl3ZOV45mZMEEDb7TS1OcUxVCvDj9tr3kE9JKAX0olEApjVpBzhvvGYNozmA/AWWH3e0xcvSODQHL5VMUQTqy6jxtxSelXW7bJu7Tp3JCjGDsd2Xv6WdkF1Mz+x+fMxxQN9vAt/kmxeGStSRYQBJT5QO20PXmrAJ8YNG0gzw04dkimBbLeYCtq0NWs2C81bPTrvW4TAYZ5aJLXZ6du3hKwzcvgHRxqaPuy7kE8JF2y9GgpUya6IZbO9XRH7xVuoOPlbcKqLtYPIuE3nIOm70UPeDno6Xrt32ZfqcEMvWYs5k7nFixwX+/MGeIACbrH1zgIRfnSG86Cc0lcxtNO1ia5JerQz8olSotduPUbMAEmI3qLQDFEI37OhLA0UjXzpxsx16fAgUzeJBzFwV3zdzbe174ddOUzFYcSTIJqORMR2vUpz+vNRYtwTbI+g+1o4YgRN9C8= 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)(39840400004)(346002)(136003)(396003)(366004)(38100700002)(6506007)(52116002)(8936002)(6666004)(6512007)(6486002)(26005)(83380400001)(2906002)(110136005)(5660300002)(54906003)(316002)(36756003)(86362001)(4744005)(1076003)(2616005)(41300700001)(66556008)(4326008)(44832011)(8676002)(186003)(66476007)(38350700002)(508600001)(66946007)(7416002)(32563001); DIR:OUT; SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: UdZBiEca2sc7VZdEp5IjGge74NSf7kwPte3DpgJHqts1s19kE9QJ07wPu+1tf70DX4aQDffcH5pT0IuUNPekd9dwWPRSNhYgk87bvhlyw1C6kvKIm+5hp85EMBQQ54jVhFIGd7/Qf4VBcqQc2XAQ8aSDGubcAAtXRhdl9ZxUwYRD6tQyJzmfn6XL+qgwqklg9Z9UL5+fhBr4R7FZjHllxnBlPN4zjp3c3Ks4zJDQ134U6v4rZzOXFQPOPV5x3sjTHs8aWauMIPCpLq0IM4VWgMqPSxsSpBgRsOQUKxM9Pm0t5GMVTU5B03F3ti3LCGuCybu47p/fTq48uHKUdKBL3pG4O1z+F0R1KfnY4ZIdVjMcoC9N2xs7jyniEinrhNRuhQEOQDjMBrW1D9ygS95DoG9fXo7Q1jLnSl0aJmb6Rk7uhJYeuOZIZcDVknqkoX1Bqw7L7GfbElBHsNRagFvBkKzt5bBryO2V3flBeH2K8O/p8ka9ViuNWfrUMKDku9IYr8G0OyQmTjurmBGmTh+zRYHjefvWuu3Ud4riKZbqh4rFuvg0rckucgxSoCjatpnnFtb9ZDq9LRxYi6jhqcDWt/tjI+D25A6iQp8UnECxpEW8PCBAD10T0D6KC7ec1yQdQiOpS6FhL1HF/Hv11F2hMiMHAMW7D+gYNCrwkre3FOynu34b3JY04twDJm52Hsnx7zV95NyeZftRrA/8N8UHGHF2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Network-Message-Id: d4de4c35-15b5-4c54-2305-08da50303bbe X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 07:08:51.8565 (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: mD94WAzK+KKu+QO8/JVx5Zjd6Z24XpHu2nhDMB/tvhbt3y4JDLdItNZLGM0ZTX2H3vj1lUoYBhjuKPfkWMi4qQo+K72zxocw/YlzAi1dJaE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0263 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 --- v2: no changes --- 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 Fri Jun 17 07:14:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 583533 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 ADC6ACCA479 for ; Fri, 17 Jun 2022 07:14:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380543AbiFQHOd convert rfc822-to-8bit (ORCPT ); Fri, 17 Jun 2022 03:14:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380555AbiFQHOX (ORCPT ); Fri, 17 Jun 2022 03:14:23 -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 5392764D33 for ; Fri, 17 Jun 2022 00:14:22 -0700 (PDT) Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2104.outbound.protection.outlook.com [104.47.22.104]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-13-3GkfPEIeOEKpj6nYUFmeog-2; Fri, 17 Jun 2022 09:14:17 +0200 X-MC-Unique: 3GkfPEIeOEKpj6nYUFmeog-2 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by ZR0P278MB0347.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:33::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.14; Fri, 17 Jun 2022 07:14: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.016; Fri, 17 Jun 2022 07:14: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: [RESEND PATCH v2 9/9] ARM: dts: imx6qdl-colibri: Set CPU critical trip point Date: Fri, 17 Jun 2022 09:14:11 +0200 Message-ID: <20220617071411.187542-10-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617071411.187542-1-francesco.dolcini@toradex.com> References: <20220617071411.187542-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR2P264CA0179.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501::18) 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: 249b8380-29b7-452d-5fd6-08da5030fbe6 X-MS-TrafficTypeDiagnostic: ZR0P278MB0347: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: Zq8t3IAnX//xpP1sdnezoxxzn7M1j5WnSdQ2PVkV3yUvawrseyLdXyeQC4VqsNQ9MpvXAxg9JdSI104XbdNRuHuhWFKU5MP2AaY4w3l3yt6cP2xmoc5Y2ngBr1vKk+AjAn2v6BbIqS0v5uNU/9ybA2cRJs2PVB+MhJcV3zEUruXSEnuXBSNqRvIO67+EmgV68Lni341hcx003H0PVrB9SxSFcasj3oZdFiQjsd7qzEBO+HBGzvPDGul1g6HgVFjP/e85renDYjMgkGLRXqHDMDkFbO1qqlgrp90oOx8qkaG4LCOG52riQa/j3Ys/mOVwSbK22TQqIpjBhevmEuHPE9d2uSR9i/K7iYZGddr5qMpig8uDWC2CL5LD4YNSKpjXoBrVF1J8ggmyW5wv1LulBrPoImDn4EWPPe4kJlyBR2Hcoy/z/BtfTbENQb9RQTusecof9fIJ615QgrQiFa3ne7OKbxOuA2Brw/WBHNXPQffZIM5doGJEKgGKtPh5wim6w5HPDhWSvxkeIxaCofN+QldST+FC7qH5dltBE/61v13SiTsKGh5Q6W4NuO6KVq4eqW20izHpddcHcDrKa/OWSiiIZQyUHPyTLeFCjGcQDwyHjdS2y55WRCkUfq1ZRe8J+oIzzwrlP2LzWuljgAiQzxYe+rhqW/Ctd4T4g+Bk7evam24mbB34+f8lxU8pggihQrAueEvqJHWalFCpuUoj2P9icFZunqrNOGT0wYLsF04= 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)(366004)(39840400004)(346002)(396003)(66556008)(2906002)(36756003)(66946007)(8936002)(4326008)(8676002)(5660300002)(86362001)(6512007)(52116002)(44832011)(38350700002)(4744005)(6506007)(6486002)(38100700002)(41300700001)(2616005)(7416002)(186003)(66476007)(508600001)(6666004)(110136005)(1076003)(316002)(54906003)(26005)(32563001); DIR:OUT; SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ENE6wqM1pDkTRAEyWRcLmnFUVOMx+Xaw09I9fi7kTErAJ79yn5iilDUZhmiqDQjAA8KDq5X3Y4zFXHf6S005i8YdRC/FG7+UQhWB868byv0tQsyY9SLaq/8qNf3oHHS7KsJ20r3DhJ05i3hoOKvuzH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4j4l3a05vXvrLFCi22vXRpPhWdCs0dLzSpVGm9EpqyJ/A467F7v9ca9De0TgLsAVQj89JVnlK4gNJtiROvvZ3DnqfyQ8q7yQ0tslsFzDjx7HlwSfgQO6jO/F95nhUczA08SOX1gPf5ktKTa4lXrzv8/1FsZAbzx5Y9fmlabxVuBwhlFVlGfNsv9F/1QHSuE8n3irIMcFBYZuxkIDjoB6rsVo52J+BDQFcXoB8QcPQxFjfiEMq6kNuiQ3hUiHB1q6tb1mSj53ySFw1qGvbMSvocqqwpWy7+MKYbOA4k41J48Lq5fIvf+CswoEolCdbiTRznjizFgYX13a9DsIvu24d/4RKKv+qr46Jv3mksUCl9iEeBEU8SyutPva4OSztuUUcPE4ipv9yir+e7DunsFhELw4fUEwNsDqWcOex8OzHkREPCcU11DCItb0GP8xotAb3Q3Au3LH2Tg7OJCDYPpcV1FJcyTHeJ1M5JVk91sr0jq5zc8bO0mbDxzahVSAydsk2uoe0lBRND4aXfgXgu5XriQRzmNfRIwz6Y= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 249b8380-29b7-452d-5fd6-08da5030fbe6 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 07:14:14.2115 (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: EtVhXgbWM6+pxs8T8VVZTeL98pseiMwV6KqeCWSkweuRoGf0d4zrOxniKUEkkeSGQqt7Wy2RT88KB/mxssDqTdaizcaddfn1QpER3+NrqrE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZR0P278MB0347 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 --- v2: no changes --- 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;