From patchwork Fri Jun 17 07:08:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885145 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 14492C43334 for ; Fri, 17 Jun 2022 07:09:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380520AbiFQHJZ convert rfc822-to-8bit (ORCPT ); Fri, 17 Jun 2022 03:09:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380512AbiFQHJI (ORCPT ); Fri, 17 Jun 2022 03:09:08 -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 1CFD864BC5 for ; Fri, 17 Jun 2022 00:09:00 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2043.outbound.protection.outlook.com [104.47.22.43]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-31-6SI1p9w7M8KLL0ipN7mrjQ-2; Fri, 17 Jun 2022 09:08:57 +0200 X-MC-Unique: 6SI1p9w7M8KLL0ipN7mrjQ-2 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:51 +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:51 +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 1/9] dt-bindings: thermal: Define trips node in $defs Date: Fri, 17 Jun 2022 09:08:39 +0200 Message-ID: <20220617070847.186876-2-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: MR2P264CA0116.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:33::32) 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: a4f854aa-8c9c-4739-4e89-08da50303b31 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: me1WG8aupkuS4f0WTnZYCMt5nnsDDuphqKiR8z2/wj8yXJuj+ggGLXg+m/wNDrWotSrOG09Q75Z3FZElH1BrhCugYKj06ShCOojhwqxl3dWWRaQY0cDSixLQSMPbJd5R4IbvqROV4rDf+qlrYg+TQPOq79V6x/Rt7XbDfy1lG0Jsy0ygu1pnpkwN/jOFTfxz++e81M/qzQ3S/FDcwEG9ccAYyx/Tsm++ehk42M7emw4LCzcRYYMoY+/jHT3E47DBdvGYl25ZZwRwN3BGYFwNiKp0BOZZ2fmLKevvXMg/uwZ7XIEQH4WbLCYI6cVKeefxSyju7wIqm9U2Qf6IRAwlu/vkoQtB2dhcUOJuUr8cUVD/dLg+W6lSTAuX1OSBTSKfgA/MmcgVw9+xWWN1EDYKNDgrAC9yt9jZuEgXT025iWo0exJjJBA8cBYe+CYX14AvijdJfDve3y4s0NhhBOU4xbSB4atd2U9CJ2P7xzhcHAlydAZtp4C1cG1eQyGPQiPsCT2oxQzd6l2zwLqjKcKEgP024uzunNuKIFop61/gZG5tdx7FQaQSja8ZKUqFN0Of+KlXfZUdZKbdyOJeVt6fro8wa00g6Pf3p7Su6+f1i0KICgHagD1xs8qZM13G207MU/mWMFP+wnA0PYnUF5BW5qJd3c/5LnIJ0WhNs/rKOAeVCrzZ8rFQPSsKO8HEdVoJieZYkGIgVSXEPox159jHDA== 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)(1076003)(2616005)(41300700001)(66556008)(4326008)(44832011)(8676002)(186003)(66476007)(38350700002)(508600001)(66946007)(7416002);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: aQsLJcqqGeE+NcY9eBMYg3MD5mta17lfoAFuwUE7Rea/GaZTJL8ObbUVeHF3s058/oYPZLW+t+JzQ0XMPk5OHDA+1t7/c+L6JGjmcVYtjYJod2bkwBAEpsm7sfidw8QsuSxfrT16dN3NoLCZj9p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9yMhkaIGk2uaeFGHFNheCPEH9MoLunMboJkib8kQT4e+2/fLxhw4yxE6n4phYE1E8sM+vqf+uFweFhZq+Lg2P2tMZseD4DCKyiJG2wzFYu3atEm7bg3kMVItKNSokAY5OfXA++Yrdo9f3lUgqJCg4qOA64vffJF3sGnGGmWO186u0UQmglHa3m5O17jtIg5myZ9DVDUY3eeG21bZcvNYHyThaZg/Haf1QeASjzthXs0R44n3iSKWMz4QXUTpP3qJnwBkbyLdVZfk7o7IuAkUrCOFhvdMTG+7RQ3Zq+88wr+r03xaKCEaXSyDa/CoqCMOIubOyHpZ4OrMI40BNnv3U0aKNcV+HxweIJDK5z8TVXNt4RlNxs1cthLdviUk2ulIap1BvURpVYKWDeZA6tlNNlAkNOwUjvn6HU1dJ+LkR+gZHQX5QRZVSY+wTK7DMzFqru32eTIY+s2fhaHea3xS/stR/2shRXvhlu5mhIklMqgvzZgi/mYHJ9iU6OYPxgncDvGMRsAuUM5iv/7Y8WG+umMcoY8LVJ/0AIMGuHQ= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4f854aa-8c9c-4739-4e89-08da50303b31 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:50.9491 (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: yx6oFfSHoC0w4azkdFDZJ+Ib7UG2qZmNzT3b5Z9NGIiMC9SlvcfA99CvRFqoBljXRI/cm5oYiCbzxlUAPbEhYu/2jdyDVuP521PxKm/XScE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0263 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:08:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885142 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 49766CCA481 for ; Fri, 17 Jun 2022 07:09:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380506AbiFQHJW convert rfc822-to-8bit (ORCPT ); Fri, 17 Jun 2022 03:09:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380490AbiFQHJH (ORCPT ); Fri, 17 Jun 2022 03:09:07 -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 C731764D11 for ; Fri, 17 Jun 2022 00:08:58 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2048.outbound.protection.outlook.com [104.47.22.48]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-15-HiX9Ztl5OHGCcyCCHrYQow-4; Fri, 17 Jun 2022 09:08:55 +0200 X-MC-Unique: HiX9Ztl5OHGCcyCCHrYQow-4 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:50 +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:50 +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 2/9] thermal: thermal: Export OF trip helper function Date: Fri, 17 Jun 2022 09:08:40 +0200 Message-ID: <20220617070847.186876-3-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: MR1P264CA0149.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:54::15) 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: f29491f6-84b8-454c-e4c7-08da50303abe 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: 68Ipod9J7oUIltabKYSX6yy0b+/lzGEdyvKSJSDjXMBuW91NKzr6Ey2xSWIVdKlVP8ih3G1cGyhptVmt91ZWFNY8HF2otvYvooEs/pmfF+fnv3iumtunUE86QIJ6p+QWF2+aM/htCPSzqOUOdrJhTvg1E7I6yFalnHwaufd6V4kGNqAJ9GiwXtFW8Cq9Mwd4sk+yvDbmNChc9AllxrtlS/c8JefIjkPrS0zRp3w3h0g9RISIcxACqJ/8bugSYVQWVNDRrbJnw7Eafmp+RUFR9XxgFjXK1NlJsyyAGoTjatOwZAFAmWrtdeY9UDYXpFjmcEo/8ZaTDpRQFfROcgZGMbAY8TvfbxDRihuidoa2tgM6sml2r6Rdo6rS7bIgzW2XMhiRHcUEhWOqJrLKcf4+8liOqIfeM2KHhiCbEU8WrFs4kvoeVkQgm5gfqVsww9zIJPXIFo8mDesWoaD6sRKRzwsWH0NSn5zxK7h1IKUI6Php6+ggYxdm994iaS8KKfKZBrUbYB8TnR46oBJOl/gLV4/kzMHeNqcTwz0SKtXVVWyKs9iXbN1tSB0jAbjiPaFcQ1orNw9LhOipblbSu7iV5U0NnYFVV2F5+/CshpXvf13nxsuHOmAVL//GiiipgC9TEIPB/MNUEQrtWCjr8UCakjbc3V8mqNQqmes3plfRH+lmT6JoYQ1uT/W/bZNJtiGZnyQwbMYX+BIlDw3Ix1E+3g== 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)(1076003)(2616005)(41300700001)(66556008)(4326008)(44832011)(8676002)(186003)(66476007)(38350700002)(508600001)(66946007)(7416002);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hmg6VvfWvfNHFg8cNppHGZY76ahWeyqIyO1SZCvSewR+myTnpZ5OSkGqeG1haBULheGnLFXZcqnLIDTvrO+EYR+dzhOPQ4NhOUUT52nal9YMJ2YHonnLzvLLhianh7+1rfueFik4OdDuHZ5TTxReWnQVDbIG5cjDJwYPOY+WUZ99gcBz02N3DfTDKlBVO4I/qVv0gLr9qf3yIDrk2TExjTUZGKNpCxWP9NIGo43mClCJqfVSb25nDHfIjAzqi6sioRirGGjKFleLq4Gq69TDdMaL7w0usgfcm8EIPbc5ls0OsMgTAZOEirzz1Ud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+KNf6NZZkeC/7XTMKdcLF2OpyCCauMiBNkFW7x4KpFAGRB4H4kguRNyv7iQtjUsz+Q4kAFS/dIXt99bUc3Ju9jQ9s+RGNIKLr8wEBbE8ya6LeKNgSzN/nkSu5+lEcmV3AdisXTJvpf/g5ijYFs/mSi/4Od8dHK22i5QFw6KLpD2JhjA2vZRYpcnY7oFAlyzlbomKermiw+Y5ESe5DRCjdQPsJCp+SaROdIgEb867h8IFL3ysfIOY8qNkE9RFydWW7Ts8in6BSSMc3IkGptlU7nVhokRge2H7JxvbuTfkAhWMTopzpo9Xuldh8yMsT2VF6aQMcd7xHw1QasSN8NyCw+6PTL9Zlxix1Fc9Lyc4NAEM= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: f29491f6-84b8-454c-e4c7-08da50303abe 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:50.2462 (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: GRUMhGYnWl4xuqfe70O1x7m/JY2x4BCOu3c766dmWom29b5DFF2OYJ3ipc6XG3WBIMGEYnAst+DRK6pNYjVd79DCewcZmvqgTLh2amlKtPA= 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 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:08:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885140 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 76166CCA479 for ; Fri, 17 Jun 2022 07:09:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380413AbiFQHJV convert rfc822-to-8bit (ORCPT ); Fri, 17 Jun 2022 03:09:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380412AbiFQHJF (ORCPT ); Fri, 17 Jun 2022 03:09:05 -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 884AF63BE1 for ; Fri, 17 Jun 2022 00:08:57 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2048.outbound.protection.outlook.com [104.47.22.48]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-15-Dh4YVhQxMS26iIzfskeUJw-3; Fri, 17 Jun 2022 09:08:54 +0200 X-MC-Unique: Dh4YVhQxMS26iIzfskeUJw-3 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:50 +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:50 +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 3/9] dt-bindings: thermal: imx: Add trips point Date: Fri, 17 Jun 2022 09:08:41 +0200 Message-ID: <20220617070847.186876-4-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: MR2P264CA0138.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:30::30) 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: ae209dc8-7505-4b4c-e4c7-08da50303abe 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: gvXmXcCAk6Mx+DOKY12wFMntoxzEsAzzWmhFvM/nhdPpf5bqg2QJJqicqQbjEWbUi58iDG0LshOd1wRDZqacj/T7xISr4GcXA+TcHeVXMFNxNRmRqDhGdWRGRikfZg4mgM5a5u6mQWgNHorKnFHGvF4RM6bK9q1lhZS7/fcziPTxboVWa0Xp9O0LtSX+K6gTYiZiMP38tU8SpyvtKRZZ73OXxQyLYeNZ2MTxtVWD0zwDjLT7lCFD5Ry9OFQioD+srMH/jJR4fKA78ZuGYVxRT/3rh+5agMskPOJmKL7qTOAenIgkpGhXcuAtWTQMdi8fBv5sRleN9HSR4J8g+yEFzDqwwRAu09JKWONLGrlPvqPdGYwLYrw9w4RgY0SbCeJ/0JtkOtVFuJhlyF0KNjVvG5o+mxFQFsq9CUSfSjwlG+RyUkZrR2Y/upxVrQ079z5vCj2PwF76+G7dZtGJvR0qGOFAArAc7H4T2jRdlunG+XDF2GmhUUyg7AEUq80zeSr/xigmrBQ9NH3N6iTFmlVj0POr9irfdw1lRI5nlWdrNwFH14Wdv9A8P1of3boxF2DJZLrEkUWMOSJ1vMRFM6cOTFrRUOFXrCqTiWJvLroOYruMZQ8gApEvYJ+vHKxrCUCF044QM+V+wi+GgNqQbIeCgSSBLUpQemvEJN+e3GZuRRM1/Dp2xu8I2NQ1aiG3qkzlnIOr1I3F/HuJPQDIz0I4+Q== 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)(1076003)(2616005)(41300700001)(66556008)(4326008)(44832011)(8676002)(186003)(66476007)(38350700002)(508600001)(66946007)(7416002);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 85AKQR5F6UOE8I9EUdfBS4uM3o5GkUh26xpk5ojbwg7vWwiFHC4FNNEstpAimlEwX87jtpQ8eV5zA/8oPO7xMOP3VT5AJBEduOIchLWF/TtOX0l4U6P6kU9Z8X9ZHcWrOjfw1WjhFokY+8upXT/VaLoaYZsJwWnQLnC3yGuQP6adIjjs7HOoOTiZezvTk/suWS7QwIL17mdo8CM8+9nzyH3CkyCTxkJXpBI5OtJUNipoS0MKTt2fyjreVs92BGayJEeI+6BVCZPRc1FhLM/r6v+5INi79tNF9343vQskVDSR+hHIsYbXT3kuDkIGrrvrcjw80G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hOskqnTavz7FH7n5MgWgnn/Z2FPd+utmGVeKvXHksNWP7138lAtLvF6Php7WMA4r/iGSj143RHfE+B+ZZBA3CjigUv73gkiJkXkui3pDekCaTfSiC4F3Tku3VJ68vDW/HhJdieMUHorp2uu5bOKSgs+K3iDkiXV11FnaQeojVo05CCZ5lh28GAXV2uMik3PgYqEqMqyx14IhfAZ85qJZIk2Bvh3Nl9xRlxqxw3YHiGMt1luDsHQl3sm19PNWKL6rKPigzOLNKX/D78QuzAP6UEN6zU3imIEcW3NeuYoKDtW/MUI0SR8zR3c2aW23AASrtLZWPa9BtTzaBOPOY9s0bVLCJqsQCdZB8= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: ae209dc8-7505-4b4c-e4c7-08da50303abe 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:50.2305 (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: ZRr3GiisuQ6ts4TGfnmGo5eHgfL3gdv0gJSarMKouHq+qi+ikpC7R4cGEAWpqQE3HDQ/7NcLCyFO9lSIlcPO4lGZlu1m6BH230WMKCN7XoU= 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 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 --- v2: no changes --- .../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 Fri Jun 17 07:08:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885144 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 A290DC43334 for ; Fri, 17 Jun 2022 07:09:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380458AbiFQHJX convert rfc822-to-8bit (ORCPT ); Fri, 17 Jun 2022 03:09:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380457AbiFQHJH (ORCPT ); Fri, 17 Jun 2022 03:09:07 -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 9801664BF0 for ; Fri, 17 Jun 2022 00:09:01 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2043.outbound.protection.outlook.com [104.47.22.43]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-31-inJrkMMeN7ilk6Iy1a5WUQ-1; Fri, 17 Jun 2022 09:08:55 +0200 X-MC-Unique: inJrkMMeN7ilk6Iy1a5WUQ-1 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:51 +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:51 +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 4/9] imx: thermal: Configure trip point from DT Date: Fri, 17 Jun 2022 09:08:42 +0200 Message-ID: <20220617070847.186876-5-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: MR1P264CA0106.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:50::6) 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: 45f7e960-8879-43fb-9ee0-08da50303b20 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: ocUC4vZEmZjch65m1MjMyi3x6dGnIg3Eek1H3taveVrCI/oKi91VnZwy7OiqPrSlwCoIhIG1c7ie0EaMv3Wpte4Zvxk1bf2kfwuyzAhERlxP88oC5dtWZjQQGVsJ9sxDSAgaZ7E7nwT1N4a42d0eAz30Nnq8h1D8yI2X3uC+NYpPvDCa+XofPUDSvwD4so7eG13dm0WnsH9InspamZ57BtqPBOkWqGjSMRavC3FPENj0ey5sU3fqjpAwuqNOom14d6Vp7T48MO45SD12OChlFtQndpspLeNN5YOinFEWMGNlQS7Y50bLpYkaWfvyDNb1HvfIXW20eD13yNnGcypDcHY3Yz2QdEKAL7fh7qR0lfU1zr+fJ6F3bnk8Di/pFsybjueOcTfJ5dRysbB3zTACDo1DBbmFL443pAH4G/uI8sOMOhU3YTbG1Ewv6gSCSjfqkJ5zQ4mQN/TgfJh10S6H8CrNzdZnBNWm6k5iOJZV2JezzscFG5bULsp9NX6HWMuHnVrLttHniz4Cp94xcbV20a+Io8PCbQc7lzHbT1/MulilJqcZQWLvDJE3nWQHT9tJSf1o6gNNnez1sLAdcZeDnydwxsbZuJ4zUHRksRhxS+d7dKqXWO0C7RDLYITWfXpSRMmW+GyDLaQ83V2ED1nB6ZtWVWFGwy3YhLlVlOzl2XI4dkvj4WFLDf6ov7CYWA0gH5ZCQktteo9JZbgg37cFVg== 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)(1076003)(2616005)(41300700001)(66556008)(4326008)(44832011)(8676002)(186003)(66476007)(38350700002)(508600001)(66946007)(7416002);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: u/TcxaIDgQATQot86UfP+djSB6LC8gj1KrImI6ZaHE2Lie8uVk41pLbHAY8B/gK3Bk8qBkn5EXfmEvPZKz1yyoXrSETfGqlvdxIhSaSyISZiywe3o1InoaKU86yOzJvVa2khLL7xvz3kGBuEUelnvLdkYIHgUwE6pxwsJV0TQ+7qX866lF//t3IFKP5Fy5AU+Ihl1uGChd/z2JwnPUBFxXyF0rTYWGYW+QjKcaHGl0yiBTBPNpMHQKxHcgj4AmzuvHJ2B6v3HfKIW9xmpyMtfYT1BkT8XNTN1na7BuZ3+76sN91dClKcbpeo3sH1B1T01rxOjTgs/rU8AcjCVuOfFr76CaVOysxpBRVRvouS08BAKn+FpPOuhdkGBsWvkqfUC60gXm/gKssxu4rBRJDIyk0p2XxBKLF31fw2x8vt64v0RVgM0NI8EopGepeo+Kf6d+5QcehvOjsoHChhaqG/x2qdOppXx3MDPRmJhPFJQ7p4fJxO8BzG8ZA9uksJ3QO+OIlFgrVuedYqFbi39+KI3OblLL2poxtMwHgTkEHuTzaloxdmlJ2Jwj8nm32F89NRyXRhrq9EsVMejLdcr7GAn5hTcH2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0ASfyXn4UBv5ocErJMHnEajST1Nl4NyKxXJBdrTOsVC8zQgEZQN46o+NhnRVBw2+4x2ecHFlR9QhhPN3GQ= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 45f7e960-8879-43fb-9ee0-08da50303b20 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:50.7929 (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: S8488D7bxBNG1E9AUM3wbX/+k+WDusKXb1QV7C4vaKIOsX4aqm3THGGGfk6rGxVn9LRg8FI96JERh9/4qdUadyJzG7nFXRo/iHCdZnYik+w= 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 Allow over-writing critical and passive trip point for each temperature grade from the device tree, by default the pre-existing hard-coded trip points are used. This change enables configuring the system thermal characteristics into the system-specific device tree instead of relying on global hard-coded temperature thresholds that does not take into account the specific system thermal design. Signed-off-by: Francesco Dolcini --- v2: - return immediately if no thermal node present in the dts - use dev_info instead of dev_dbg if there is an invalid trip - additional comment in case passive trip point is higher than critical --- drivers/thermal/imx_thermal.c | 58 +++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c index 16663373b682..a964baf802fc 100644 --- a/drivers/thermal/imx_thermal.c +++ b/drivers/thermal/imx_thermal.c @@ -17,6 +17,8 @@ #include #include +#include "thermal_core.h" + #define REG_SET 0x4 #define REG_CLR 0x8 #define REG_TOG 0xc @@ -479,36 +481,92 @@ static int imx_init_calib(struct platform_device *pdev, u32 ocotp_ana1) return 0; } +static void imx_init_temp_from_of(struct platform_device *pdev, const char *name) +{ + struct imx_thermal_data *data = platform_get_drvdata(pdev); + struct device_node *thermal, *trips, *trip_point; + + thermal = of_get_child_by_name(pdev->dev.of_node, name); + if (!thermal) + return; + + trips = of_get_child_by_name(thermal, "trips"); + + for_each_child_of_node(trips, trip_point) { + struct thermal_trip t; + + if (thermal_of_populate_trip(trip_point, &t)) + continue; + + switch (t.type) { + case THERMAL_TRIP_PASSIVE: + data->temp_passive = t.temperature; + break; + case THERMAL_TRIP_CRITICAL: + data->temp_critical = t.temperature; + break; + default: + dev_info(&pdev->dev, "Ignoring trip type %d\n", t.type); + break; + } + }; + + of_node_put(trips); + of_node_put(thermal); + + if (data->temp_passive >= data->temp_critical) { + dev_warn(&pdev->dev, + "passive trip point must be lower than critical, fixing it up\n"); + /* + * In case of misconfiguration set passive temperature to + * 5°C less than critical, this seems like a reasonable + * default and the same is done when no thermal trips are + * available in the device tree. + */ + data->temp_passive = data->temp_critical - (1000 * 5); + } +} + static void imx_init_temp_grade(struct platform_device *pdev, u32 ocotp_mem0) { struct imx_thermal_data *data = platform_get_drvdata(pdev); + const char *thermal_node_name; /* The maximum die temp is specified by the Temperature Grade */ switch ((ocotp_mem0 >> 6) & 0x3) { case 0: /* Commercial (0 to 95 °C) */ + thermal_node_name = "commercial-thermal"; data->temp_grade = "Commercial"; data->temp_max = 95000; break; case 1: /* Extended Commercial (-20 °C to 105 °C) */ + thermal_node_name = "extended-commercial-thermal"; data->temp_grade = "Extended Commercial"; data->temp_max = 105000; break; case 2: /* Industrial (-40 °C to 105 °C) */ + thermal_node_name = "industrial-thermal"; data->temp_grade = "Industrial"; data->temp_max = 105000; break; case 3: /* Automotive (-40 °C to 125 °C) */ + thermal_node_name = "automotive-thermal"; data->temp_grade = "Automotive"; data->temp_max = 125000; break; } /* + * Set defaults trips + * * Set the critical trip point at 5 °C under max * Set the passive trip point at 10 °C under max (changeable via sysfs) */ data->temp_critical = data->temp_max - (1000 * 5); data->temp_passive = data->temp_max - (1000 * 10); + + /* Override critical/passive temperature from devicetree */ + imx_init_temp_from_of(pdev, thermal_node_name); } static int imx_init_from_tempmon_data(struct platform_device *pdev) From patchwork Fri Jun 17 07:08:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885143 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 3F643CCA479 for ; Fri, 17 Jun 2022 07:09:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380452AbiFQHJX convert rfc822-to-8bit (ORCPT ); Fri, 17 Jun 2022 03:09:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380453AbiFQHJH (ORCPT ); Fri, 17 Jun 2022 03:09:07 -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 4CE8764BDC for ; Fri, 17 Jun 2022 00:09:00 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2048.outbound.protection.outlook.com [104.47.22.48]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-15-Z4S1hmKuNrut7qCJJOoaGQ-5; Fri, 17 Jun 2022 09:08:57 +0200 X-MC-Unique: Z4S1hmKuNrut7qCJJOoaGQ-5 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:51 +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:51 +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 5/9] ARM: dts: imx[67]: Add trips points Date: Fri, 17 Jun 2022 09:08:43 +0200 Message-ID: <20220617070847.186876-6-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: MR1P264CA0101.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:50::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: f970999c-05d3-4863-753d-08da50303b38 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: o+yqQYmRCwYiMCbkhSHKA0fuOnqyDoBC7UtgaJ2vs9r+IuXshZC+ci7kXG/lQXArkS2MXj83UXFbi3mJhDDxejVBXkkGCIEJMEbnBG92IuvGRPGyFY1Oxn39TDcq2z5GKQcjCA2lZk1OOf+uqz8T7AKEsiF1hdwglz406nPfRbvnPqNhGbS7oiHaRsP9gbJ9XbzCNNtdud2CMV8DSHd6prURAUtMqTPMXU/Dh6KK55LaCQPoklSW3mfbEfLmRpl3QznrpxPNGL5fk22KCTT6o7rhEucF3zMPYYo0YcdEKb+tF8hJ9h6+re7rMMg0GAL5cZwxEbn04TliD4eD7jXcklxJDiNd3EiiVhfv/mBePxFWgm4y1Q955Rz6ZO32oGi4fcKrXGpur2vNLQouW2mHkYtP3gTXIPbdMR8FJ9TmHExmpN92eD4gJgO5BjHb1pxXPmGWHWA5gj7+fli/khPFbI0iyqlTKJp8eQXinSs5cuOEPUKl/g8WpC1kG+/V/FJ8KXEti3UvL+1KxoFo+gun35VHvXf+s/OkI8HKfp2OzbTbDeC4ZITa4sG0QqUFd4siPoflo+zNlMFs6E3J95gHl6b+Evy7yVQKNGY+OqWs+pQdcEy7XIsxaYnsHCs8VoohWPzlfLZjpHs4SibDCBUHHq+BhgXb+ZUbFBTxMu/ew8IGG+a2eA1qDpu3qjw7lMERZJFfcl4P+wvGILJZet9o8w== 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)(1076003)(2616005)(41300700001)(66556008)(4326008)(44832011)(8676002)(186003)(66476007)(38350700002)(508600001)(66946007)(7416002);DIR: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/12c/m6Km4XfuZbzftm7SifKZ+neLjah4VEOcd8gxCIIMz/kCyqbp3tygrOibkkiH9qxPodWY61dFGtClHUnOX3331xP9e3xXxDSg/Mn3nvBHW5VTdJV44DCLbmWPJrHAgutij2N+F9qhSm7rXKb05LuBrA2qi4jx9lYtkPhC7ZYai6IdLwTRy5ZeoiIFr4+g16NYt5W8BB9fh/vLAz9CSqWRMO0m14KO1e9y3e/ZBc8ynuqsaWmz0nQm9Thqockzx7gF0R5gPdmtQc4jFulXSmClsBX18Z1RhxhLi9diwoEShAE8tzklevJnechfvgRNfczHBYi/iOPO1mkKiDCLd+pfV79CV9nnkBCIEFlu3ho8JdYIp6rBuJCGk485UiAxOi4vjTQWetw3U6750+Q/5QmslTadEzKLmZToPwAne1plCD1shIhha3jvub10vzzzMmBwjqw+WNNfIhm+fFsMIQCCGHVBxx66ofcZL7kR3E8rhBFLT7kVYAokstvq01DK0wfeoVMlYYdcPMZHsQdzFQ3ElEiowrGEs8grple5KyhZJVx7q8G2MPL6r1l9RQ3trLohaO+d/i9MwhWNXGxDUMEQfU6rz7Gg3ldV36ltHxt8HKO5MpMb7CsolUOczGSMrHIaqU3GDYSpUv6jEnJdsn1DHgxEof+yPIDY40+FhOHXXzHbtVcrIFK4Cg/IWW7aG8FTxfb9QEdA+yrQ/7ka20kXyQWumf7wH5VutestnxounDRF4MBgHmYgq6LISap/DpxrO9x/9xx5p3i1xz1Fd5jDs= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: f970999c-05d3-4863-753d-08da50303b38 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:50.9804 (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: slXMO/VXbkxmnuaRx+Z8wcOp/vJ/Wqz2LYDCnokvv6cI8AyKVKW41jevii0W5TUedZzH6JAzNThtNmVOOcUp8Sx5bZkBmGNfl8AelTch2WU= 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 Add thermal trip point to the i.MX[67]* dtsi for each available temperature grade. Signed-off-by: Francesco Dolcini --- v2: no changes --- arch/arm/boot/dts/imx-thermal.dtsi | 61 ++++++++++++++++++++++++++++++ arch/arm/boot/dts/imx6qdl.dtsi | 2 + arch/arm/boot/dts/imx6sl.dtsi | 2 + arch/arm/boot/dts/imx6sll.dtsi | 2 + arch/arm/boot/dts/imx6sx.dtsi | 2 + arch/arm/boot/dts/imx6ul.dtsi | 2 + arch/arm/boot/dts/imx7s.dtsi | 2 + 7 files changed, 73 insertions(+) create mode 100644 arch/arm/boot/dts/imx-thermal.dtsi diff --git a/arch/arm/boot/dts/imx-thermal.dtsi b/arch/arm/boot/dts/imx-thermal.dtsi new file mode 100644 index 000000000000..2303f1a99d84 --- /dev/null +++ b/arch/arm/boot/dts/imx-thermal.dtsi @@ -0,0 +1,61 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +// +// Copyright 2022 Toradex + +automotive-thermal { + trips { + temp_trip_passive_automotive: trip-point0 { + temperature = <115000>; + hysteresis = <0>; + type = "passive"; + }; + temp_trip_crit_automotive: trip-point1 { + temperature = <120000>; + hysteresis = <0>; + type = "critical"; + }; + }; +}; +commercial-thermal { + trips { + temp_trip_passive_commercial: trip-point0 { + temperature = <85000>; + hysteresis = <0>; + type = "passive"; + }; + temp_trip_crit_commercial: trip-point1 { + temperature = <90000>; + hysteresis = <0>; + type = "critical"; + }; + }; +}; +extended-commercial-thermal { + trips { + temp_trip_passive_ecommercial: trip-point0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + temp_trip_crit_ecommercial: trip-point1 { + temperature = <100000>; + hysteresis = <0>; + type = "critical"; + }; + }; +}; +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"; + }; + }; +}; + diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi index d27beb47f9a3..0a492d9750dd 100644 --- a/arch/arm/boot/dts/imx6qdl.dtsi +++ b/arch/arm/boot/dts/imx6qdl.dtsi @@ -800,6 +800,8 @@ tempmon: tempmon { nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX6QDL_CLK_PLL3_USB_OTG>; #thermal-sensor-cells = <0>; + + #include "imx-thermal.dtsi" }; }; diff --git a/arch/arm/boot/dts/imx6sl.dtsi b/arch/arm/boot/dts/imx6sl.dtsi index 06a515121dfc..3719225126d0 100644 --- a/arch/arm/boot/dts/imx6sl.dtsi +++ b/arch/arm/boot/dts/imx6sl.dtsi @@ -628,6 +628,8 @@ tempmon: tempmon { nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX6SL_CLK_PLL3_USB_OTG>; + + #include "imx-thermal.dtsi" }; }; diff --git a/arch/arm/boot/dts/imx6sll.dtsi b/arch/arm/boot/dts/imx6sll.dtsi index d4a000c3dde7..3192dae452fd 100644 --- a/arch/arm/boot/dts/imx6sll.dtsi +++ b/arch/arm/boot/dts/imx6sll.dtsi @@ -530,6 +530,8 @@ tempmon: temperature-sensor { nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX6SLL_CLK_PLL3_USB_OTG>; + + #include "imx-thermal.dtsi" }; }; diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi index fc6334336b3d..d88c89696554 100644 --- a/arch/arm/boot/dts/imx6sx.dtsi +++ b/arch/arm/boot/dts/imx6sx.dtsi @@ -718,6 +718,8 @@ tempmon: tempmon { nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>; + + #include "imx-thermal.dtsi" }; }; diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi index afeec01f6522..70d503c74e73 100644 --- a/arch/arm/boot/dts/imx6ul.dtsi +++ b/arch/arm/boot/dts/imx6ul.dtsi @@ -639,6 +639,8 @@ tempmon: tempmon { nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX6UL_CLK_PLL3_USB_OTG>; + + #include "imx-thermal.dtsi" }; }; diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 008e3da460f1..887b3618d20e 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -604,6 +604,8 @@ tempmon: tempmon { nvmem-cells = <&tempmon_calib>, <&fuse_grade>; nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX7D_PLL_SYS_MAIN_CLK>; + + #include "imx-thermal.dtsi" }; }; From patchwork Fri Jun 17 07:08:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885146 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 A87EECCA47C for ; Fri, 17 Jun 2022 07:09:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380526AbiFQHJ0 convert rfc822-to-8bit (ORCPT ); Fri, 17 Jun 2022 03:09:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380518AbiFQHJI (ORCPT ); Fri, 17 Jun 2022 03:09:08 -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 3EB0065D34 for ; Fri, 17 Jun 2022 00:09:01 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2043.outbound.protection.outlook.com [104.47.22.43]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-31-xghosZeTMpWkYXLUSFePJw-3; Fri, 17 Jun 2022 09:08:59 +0200 X-MC-Unique: xghosZeTMpWkYXLUSFePJw-3 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:51 +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 6/9] ARM: dts: imx6qdl-apalis: Set CPU critical trip point Date: Fri, 17 Jun 2022 09:08:44 +0200 Message-ID: <20220617070847.186876-7-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: 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: 81aa5d90-ee26-4742-c2b9-08da50303b46 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: NLF4dgtkU9yzmS0Yw2Akm+BsrSo980UjCrzaIeE8dhbwx3RJ4y5QyCJj8uxTwE2uhFyX82JCwaqdIi89yt44TTYlWwXDxK/L5k8tyi0juOm8UVdH59yUO4tLOFhDV/Y+DVO2GX5TfCWOgUVEEJUcWeXLS5iXCO8oHjCa6ViJrQhfRUv1J4N3SBU3/UaR6HSYeGOb736Q+Pbctnsbzn7FQE+jIRuXFcx0KdcAPEXYXDjz0bl5hFXGNpiGULRwolmCmomt9JNAqvkQ6tj78i0IQYmSRDbEiDF9VK1rgK4AioMuVirG79Hd9PiLfxKRWGuwJj0FwjlDKJeI6FvqEqE31Yoc1v0djPZWJk+v2ThZQSEg8kOb8IMV9Vsrkz5vmtbQc5R8K+RvBB4+GeDOryAu4Q5e5xzbd+Er0JO5Uko5CCJb1CDaLKcH3tIKvfzC/KXmrJxbLq4XCD4dMMxqZ7cHS94jdGvjH8GtI4rB5rcKzlYKHVq2ydYFo/PnBfUh7BgPcmgynTPQWWsiatTL78b5o0XsvFcJc5JrpwTswl+ufZHXPtuylnZogpvKsI6wnlNqFJuamBXvVcc2w7u+rqJKxBiASiDz/kEQFISF2whdAPwFiqeDQVFuseloNn+/BYIKcaMuB74pr7dBhtcLijXFcmu6LbWJibGJQt0STBMq0FV8aaAxU01DFw9IBfmolhToevH4WM7jKjBJtWGy2kV8myowVOi0TcyDGTgkkxY3EqQ= 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)(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: 3Fi0sxHw6RsVeLFrGhcAbArFZfF1XoLeeN+wgn2ADQKWzGJf3zoVRDfRQmDY8ajctRjY+5jTibFjHURFCjwMuLBR/p31h28Iz2gLRfvocApxrwPFXQ4RD8mAgfetjzB4gUpB8K8httD5TWOUEPBLCKz/M4Pmms8GdTBlKuSDYPmlYbiEuchVdt2geailM7y33AV4HXhtWZxgnX5+X8kf10HRQT3RwF9orNNgUbtC2E0QpDUjnpkqyhXnf2EQNkFwq59SoGlad0+MdX6ujb3SHXo3DPCHqbossGpJjDNJl/YGO7WgR9nPRLgt8vMQJG2Lv+pEg5HB+jn8xLTpoo4RN7mVbLhM2F82roM96m3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Bti/rQGPrfFMiQjaCpS0M0vU9CeozZ9mzXvrfoRS4Qlii5/s1xhcUfrplsKjYDzcK50mvDeuuT5mM6VM4sVFG4tU1kaPpOHEuYNN/tNvjBjvPdhW7VO+XTiW5I/6fsNDOWZECbjika3e/ao+UsQ/qmz02nnp6cKCDa7r2f/BmPbOhrzRVbWva6vWv3W/lxlIdcG450MBSk97fJV9vZYYRJPL5wu2ayqHPH2qkqg+Jzo4Bt/nYddpJCIWrWwCFAo6M8O4IFV9azpgu54EIluSULxZHdqdrYQpT2mS4td0trxcXYtdi6bTSFP/Zb2BugXnVmBqjYHq/hg= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 81aa5d90-ee26-4742-c2b9-08da50303b46 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.0597 (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: I8N0dw3Lxq0tHU0DruxnrXC/RPGs+udBi+uEjr5KgEP3YhVtsmmBqoMROPL2FpJyRpc+9uVmL8tUv9i3l/pT0qJaloBbuacgyU6Z6jYHJ1o= 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/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:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885147 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 8BB3BCCA47C for ; Fri, 17 Jun 2022 07:09:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380378AbiFQHJi convert rfc822-to-8bit (ORCPT ); Fri, 17 Jun 2022 03:09:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380475AbiFQHJO (ORCPT ); Fri, 17 Jun 2022 03:09:14 -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 8030D663F8 for ; Fri, 17 Jun 2022 00:09:06 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2048.outbound.protection.outlook.com [104.47.22.48]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-15-N5L7AjIpM1-R7Tf0dWcO5Q-12; Fri, 17 Jun 2022 09:09:03 +0200 X-MC-Unique: N5L7AjIpM1-R7Tf0dWcO5Q-12 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 7/9] ARM: dts: imx7-colibri: Set CPU critical trip point Date: Fri, 17 Jun 2022 09:08:45 +0200 Message-ID: <20220617070847.186876-8-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: MR1P264CA0151.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:54::8) 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: 474c785f-3e1e-47de-ae07-08da50303b52 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: fSGc89KSvo2vU7DLskadvGjif1AOD8eNSSEviyWGCdqlog43VD4OhPT9GaL8+eCD3SAoEWWr+xcx5fPIK9G6NFLEz138jnLIsGet3LFxXZZd5YONorC3BRcNx/pO5bAc6sAzzS+DjrzyVqVuE3aJgVKCSqawF1JeKfhziQDJIdQDRIIEEqL4ZwrqprfJ3vf/IW+TC8IN8TIJu3r3md4uAwWKzsFj1JSMnTJk+u1TgyUWs5s4Uf2dldvRvmiUL9RuP3hZrp9/R51cs0H8WXp4oQ2LukSVwFBOo+gY6CBb7xpvBMgfbKQdeOO0+lnvCULUFTjoo1vwNBv2l/NiloZl77ULVzlCnoPiud4/feswtHu41zqs+06robyKj6kEsKVstaHrFCtmIjHC4Ln4X8lmJK7Jr8yF8XPY7a8fo4CjMDRZdJz8F0pckt4MBouWIy2b4BcNXqi/kk+3+VgdSXGYHswSG6NOEmz6/bBfKPasfQYywx7y0BzBfVJ4wQT1BFayo1vmbiOTSLLQ1CIAaz1Ftx2oVzVInVVgjbbZ3aHECU+rHuLekpDIN2Khou2wJhSWGFj9USSmFc3HYT1DK1DOBqYlAk3rDzs+2WnXw0zEo8O/yhXonUFPfvPoF4InOpFHcsENilmTxGxYGCxL3p2D/9tAggetS4uNQVJl9PZB2XVe5ydUG1Op3S3qfwa5rOXpiXJ8PLLS5NYE7Vzoqtf20A== 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)(2906002)(110136005)(5660300002)(54906003)(316002)(36756003)(86362001)(4744005)(1076003)(2616005)(41300700001)(66556008)(4326008)(44832011)(8676002)(186003)(66476007)(38350700002)(508600001)(66946007)(7416002);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ZSFBJ/a6U86SHrrKpQArt+Aq1SGB098tcJeDEe0bS4vIUwJwJzgwB2Q02Q+r/gLAFsEL5qwa7hcEzDshmblzlWjG8Vf3RSbqFdTMRjduU+nr0dMxLzWsihDwcYQLu+3Gwketd811MPjmGKA1Dt/tWIu7q6Hi9bE3OBFQmR+9sOqESaEgZtxLOEi8REUInpcPAJJ5UrMKLBl8eSLmwew/L/FpbCd+wnDnQvUyGpBs6aG2VrjHQOyl+Q1i8Jz+LuWqgj596qcd1i8ry/G8kvdt84k80kRgH0ow6yr3gBj+ra6n8pDDZ5nBbySh8x3ql6C8bdgLHTQP0qe5IcfhdPOpE2vWIa5fXJczsbYlsik3k++w5UNKC+VtcHqwETP5wHAlZ3IdPD556Tzj41042bisbfilB3SbXUBVdfK6HYjrLvPTMz2oXQmax7PPwDVcFrzW/BgaUGe7ry0dNV6mYGrjfq1LQ++m0H4JuscnBD1Xzs/6TLfCdczyPQRzhE6kpE/TTYCue0w1tk0VZsoKvVSXTvjjsprFHHSbgrUkDvDM7RTgd+UXpfji/UdCS5WDF4MYwYbHUWlx2GY9aiReXoAGfdayy2eJky53DA8dd7avgLUtvbEg8kbidOo3ljit6CLE2BGk6bsCk1QnohYM25QtCFRYGFwVm5hmxxHxCYbuFGCYZduHuhzJGf0I0mfROsT7LoDzybpFoei+plXUUKNcbWiu9aPp4CEvZS4pL+Hrwe6UQGo9MdtxLatGLhC3SPzRCq8AEqE42CI/NLccSsItjbkBrDKTcmoKws9GKsGZVv132dpW1gztYQ2rCei8ZKm5Vl/EMNa2FRufn+G9cyH89VKFGtDMrv0wjx7lyFfuldLtjh9y3csAffb+ZhUGAAwks/bVwAI0RjCdAaAjKox2dROr+KO3W2gz3CoXXFuMjHqA6Y3jki/3zZQ8dugSeyWDzj482qGudMhnt1hrhSPFyMK9Sx+aClCz2CqseK6caCTh1pBM/RTjJc8Q0GcpJXE8AycQgVbBoOLPXNy6abJ8YP++lcciL3eLcVTLIZMCxZoxYtEJd8exHySFojgUsOb2GR0EHmxSRnwdyLSH6FeqABupSSjwlu14Q3hOS7BmL+CaA1KRP6PstlhUHDrPxIE42lurcWILKzSy1JcfljgZd3mk6U5HFwZiA7/ZZysj+ypStpNJCkoqc/0cTfxjzi2Im2/FCewvgp2gu+HnjLVNBbwkSALTBe4o+ioqL/UVGBYUdVRj1jyNUdRt7PXiZTiyMnwgkFD6evqRA5xBGJsyBGmPlA/IEqxoQxA+69bml73nGtLT0ne6yr97mW+2GSmkvH+R6gWAyKLshsQtrkzNv7/4vtDjgdsLXHz82GUTsAfP3HDpNeM8Vgs7r8wOTBu4yiTkJHk4PBGZfULoV3Ojhx/jWh3GPH0S0aXV5I7BGLbMmbPyaiApC6nDsXIGeyIoOEkyOfNuCq29UtszcoBPa4OIQKF598CGjjz22dtxidxC4rNONg09qITudCeNmZvhbrZKLDKRq01hkcny+lZXtrRduhp3+OvOs+0vp1wIgngbkpvdc73Cluq0Y5b9rM4Zs3ZuUUx7QdFnYRw8FurneL6ss9YKKMTcOs1at5Yk0O7LcVDQrMYSr+fnA6ZOX+8iW1FekcmvMqukBzzduV5wE26ssKKRasAcmYGqyUsGogFxbjQs9shvk7DgktRwtgPZHTSkpoKr2ocEB2EIAMHOMQBYe419qQWcvjDoIbl7NCM= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 474c785f-3e1e-47de-ae07-08da50303b52 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.2160 (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: mOLb3soHnQXdxYL7wQFcd3Ge3TWKrBEzcBVJ2QtxhUON+NWRoeRezWoqz1Buq476a/Le6VxrgOaMIK9tS+vEcO8oPz/sTsyCpxnodqr7voE= 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/imx7-colibri.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/dts/imx7-colibri.dtsi index f1c60b0cb143..ac6dfb664d53 100644 --- a/arch/arm/boot/dts/imx7-colibri.dtsi +++ b/arch/arm/boot/dts/imx7-colibri.dtsi @@ -430,6 +430,18 @@ &sai1 { 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 &pinctrl_uart1_ctrl1 &pinctrl_uart1_ctrl2>; 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: 12885148 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+fhBr4R7FZjHllxnBlPN4zjp3c3Ks4zJDQ134U6v4rZzOXFQPOPV5x3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zRsyKQSFz9jtklvpY0qgZZ72aL224IHnQHt5C4sPeuKzJXmcFz+GsM3bKHurUPwOgyGtscIWiiZBtTTpQRPvrHdmbfz6PlKOyjuf2ydpbwjJ7MDsw6jWg7TFl2x7Mj5TwLJsSddI5xukHWXfVQizDbGwqx0LC8oCAO1AG9AnpQFmk5b+LbzAimWX7+IFZqXGsu0enoC0CPTIDuqG4FzPbYnxiG+elkr1RYNHuBIW8dKK+2Tgv950ZCaIhcjSqRZ+ZDfU0m99/UnZBOSaN6XpTKwUjIb+2HFZbt4VBBrjkkhWTYLrTexSUbFen07mauxsJsVcpY/I4N6QD/BRVenL0c7xntewNG31jhS5qcgOq47lF2B8vaHONdajYHW0jOGigvCX4j2HnemnPjXoEl/pDMSoU0U3KGE+Zi5NEP1YopM7+enGOHpxacANZo= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-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:08:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885149 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 1DB1ACCA479 for ; Fri, 17 Jun 2022 07:09:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380571AbiFQHJp convert rfc822-to-8bit (ORCPT ); Fri, 17 Jun 2022 03:09:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380538AbiFQHJT (ORCPT ); Fri, 17 Jun 2022 03:09:19 -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 E4EF23BBC6 for ; Fri, 17 Jun 2022 00:09:10 -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-Yw9DEakvNPyFAuOQiXgZzw-6; Fri, 17 Jun 2022 09:09:04 +0200 X-MC-Unique: Yw9DEakvNPyFAuOQiXgZzw-6 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 9/9] ARM: dts: imx6qdl-colibri: Set CPU critical trip point Date: Fri, 17 Jun 2022 09:08:47 +0200 Message-ID: <20220617070847.186876-10-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: MR1P264CA0116.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:50::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: a747e867-0bda-4e2d-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: zGVITcGRqMzFRHnhsrFb1nVX3R5+ZoC/9rNjnPhUAbjBY7/5xMtwarvJcCOV7yTjxyfqQEfv5a6A3c8xLo2NqEMWdzVjifbAsNKkRyTS1/BBSt/yh3IO/VaqFSLhVIGU1+a2VbPU7MBxXiXgBbvdrZ/aSJrSB+pvtQ2mnYij6bPcpehnXdb2ujsnZjM6PTytfUhYf9ycpksdKAR6o3fpgkHrcpL8XQpBJC51GtM6YAeXWQfPNs4AmCDqgGaf6gyaSIbxVG2hinFnR2AYK86MCxbapm0fvVH42cQCVzbghx57OhsKvUxnscS/PdBiU4jIfmejasmo1hkYZAILK4TwjzNIZQ/2rp/X0bQ2K46rQ7p0DMXX7IDDZWn1WOHS952pd4lRHfOhY5/b3/rtAK9hXCC4pZ5f1iN0nxG49645si3ww7xOqXLjQzdBlnTeiI5anB2YrncBI+e7Bf/esTTFet+apqFuoZR9wmJjm21XcG9ryBvPrrrBsD5G/nXK+ZwasEKjIEKWZJ1aVrJI9vEs7wm+vpX9F/TQm4PY632/FU4ZkDyiAWlN0Xbj2IYnxKvU99ywITxP/5KDmV37E284d7TMwzbf05382EeAbuN5xsl9Ne/cxMCPx64gX6tlSd1IGhAmv5NZwrM6Ub76zg0TH1OMRQhvY/4qbukKhOhc13XG52EBm/lNx8jJqxCGCL1aYKfo+rQIHBXIk4oR5loVeNMfasEIM8cPqWr/SuwdTb8= 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)(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: /95c4sCqRcp+tSsfVTZSq+z1rrgXUFUAwINJsC9VUIWNisEFR3aL/6kg/rbFWYlK0OrIb94xA8GfLn/rCmr39Ui28OIg5iw7pJ/0k5vk4qFEl7u9ak0cCQ+1rB+eP7CRPDiCG8GEQoBDfj2SqXbUTBJt3zxkPCrECUU3xWHSQ2hDtkvF/Cz1fg0azebMlU7xT4uaSGjK0MbjJU9QsXp3qDn/QJlj9jaYWIu179FAAqi/JK8tNnNMvJBy6+Su+pfec8QGHCQik6eJKZWw5+8LN+x2abw0wTZ2r1Vgggiq3hd70VyaHS7yg6Ln+QadIU+q2pkPLAf24ynKiLnG8K80ajYXDChUvW2JHxzIVN3nTZ9NdzxyUISC24oIEq/h12zJNzb9KxjyWdWA8Pjhp7vNUU58hJOFOTD8hLARGVqLeikQBPZugla7o7bUGiEWdwlSXxnKaxllBtZV1yCmi/B2rcEqekskYYyNR8lu4su0bXHXYcXfCVuFy3zkDrJ6K3ft86Wqqt+jsI9nAP0Tb2IU2VjLJ2PBzJ8AQbFZHiqqofLFF1yytpbMng59ne2v5Kgfintkvn8h+YR2nAREL1i8AuKT3watvvTAGAdiiHSSz+5NPjYWTqLRD6k6rOjk8lKAW5nJv18tC8kAPQo3QP2/dPEcRTUlWbqlXxrW0oOT4gQeUr/rf0UqiPO3H+iEEJA7lgB8AzvsikArQyrwgL+MsL142UKCOP9Y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Id: a747e867-0bda-4e2d-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.8096 (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: EPUlNHuSDf79ev0tzDnQvipP4LQ/4HJpsIIMQMe2LdAp17wIPXMoWxivNKFnsUuWCVaWvJQSVSLQswPNf5bEySzYhZTIukd7eyd8R7YybKk= 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/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;