From patchwork Wed Jun 15 09:47:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12881999 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 45026CCA47F for ; Wed, 15 Jun 2022 09:48:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344435AbiFOJsj convert rfc822-to-8bit (ORCPT ); Wed, 15 Jun 2022 05:48:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347492AbiFOJsU (ORCPT ); Wed, 15 Jun 2022 05:48:20 -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 99B0346CA5 for ; Wed, 15 Jun 2022 02:48:19 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2047.outbound.protection.outlook.com [104.47.22.47]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-23-5Gm0WjbeOoyZIhzSSzAsLg-2; Wed, 15 Jun 2022 11:48:16 +0200 X-MC-Unique: 5Gm0WjbeOoyZIhzSSzAsLg-2 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0392.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Wed, 15 Jun 2022 09:48:13 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.013; Wed, 15 Jun 2022 09:48:13 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 1/9] dt-bindings: thermal: Define trips node in $defs Date: Wed, 15 Jun 2022 11:47:56 +0200 Message-ID: <20220615094804.388280-2-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220615094804.388280-1-francesco.dolcini@toradex.com> References: <20220615094804.388280-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR2P264CA0074.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:32::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: e798e596-538a-4aab-d844-08da4eb429c1 X-MS-TrafficTypeDiagnostic: GVAP278MB0392:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: tMmZJDRnqEA8YQQD3RVIsV+v7XqhI2z7FXKjKi1wfdHNZHi4a7bnDX5USXZiPYB6r3iCvaIypNtmnJQlsHFe7YEQt9T6/VPM1RrTWdzPVu3Mz5KBZOb04Cbi3DL07Uv4xwZ1GZUEe4hE64BvODNFuO7OpywKKgR+h3BDUb+FOzgYV+nH4dZVaRUkoI/NKXVVZ0wNOTiu+X+41aJ9w6LuKSF+aA9B7nkWyDwgpwlCDdLyMyfbIiUIkFc85CaKAnUl3BpxCazfLYhtpl9u7tmOaa+xH8RYfOKpj3jMwYOzVimvWQpDiiwh0VZDSv8B4mnHzF0Ra7bD0/BHcYaJh6pYrTDXCUO97/o2x4NkcYDdjW9yOEPfpPTnvygcfrDpDbFTEHuv9RM19q3wzWQZKyICaNH+RnvGzCrDtYYUbCKXTzg3Hf/Rrm4g+SZfYt7NRHIuwlZLkGpZ8mjt5hAy7t8wODkHZUp3PF+/EBKT9PS/xf9zCDm2/S3PDe3kvYpCy5+qIg5ZBiQLrvcfenvdl7HAioac3vjTe9XfwByIdlC1vmV8Z3AQIwZJC4S0TdI9Bc0jpz6oA4T+G0oPLkYFh7PV3PCRXMJm2lgxDWnbOYEmtWDUIvB7j6UKDwVz4P4uoYbYMKgpUADBvGtkbYSGgZMhLtiC2OZaLpa1D08Qom8YtbBdmS0+2ILk/ZKlIG6bWtVsQHY1SIHZ8s/iCXtUsfjqDg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(136003)(396003)(39850400004)(346002)(366004)(1076003)(41300700001)(2616005)(8676002)(110136005)(8936002)(6666004)(316002)(66946007)(508600001)(4326008)(86362001)(66556008)(54906003)(66476007)(26005)(52116002)(6512007)(6506007)(36756003)(2906002)(38350700002)(83380400001)(38100700002)(44832011)(5660300002)(6486002)(186003)(7416002);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: yIcpwDR/OicJxOCOIRtZ2Pv2Y9A1CRJt7vjD0vSjmhmlrbFoXAakU/Vot8FCM57RPpKzX7urjdgKqvg3C08ln6PFn2nYDinw5VwBFDRDrqcD6Zdy0aSNpNfP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zy4wabWeRxtGB3xCtUXQtXJ0H9w/6PBodCm5vVURSCbV1k/MU1ktRuCsz72SvVSjrm5qY1EN3vjBN/Qr1XBRJLWr58iElGwrZE/za7nHGvGgGgBjh0yYQMQwi05BMiEpIqzmKr688hViW6w1rrZ2ZPmUpM/cMMacfY3LMPfY1KmrplyzB5PrplrItcF6Ni3UhpVokelEM/vOaROwoE7R153DRk7znBWVqymBS2gldTLqrWEE6BiYhgNkMJXklDt3jjhVTU0pyKBU+Av/jUHQAKt3ysvnBKELDzKVBaVV7sKa4pcg8GmBdM1PmTiUORcHXo+xpQGw8tRO2U1SRIzi5BBek/KMZScDYo1bEopYog5X5pwHkpM++mwk6yZbCm0WYhpSsZJXOXzjEaK3W7HpQ2dfjW8bUtzxHRUbwZMbD2VoNeFpkGClZ3AGvQ70MvGE6GUu9/MmEzI0AHO7O/n52qVERLwhLKLQc+NZsLwZU5wPk/dHGoivkmTEYFh3Y4Iu7tvOE4NDype0gLhgZ+wExvl7pv06+6RzjdLpH5lyetUGpnWkOy1ud/IIBLrENPAx4k= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: e798e596-538a-4aab-d844-08da4eb429c1 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2022 09:48:12.9245 (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: ve1LTIvPR5BZTh8K0pD37sbAjTXexppto12E0EMNH2fZtLmX+DrsVMZ++7TMGtswjvge6lOfkJnEo0jPQVcARwZ5wUX8AroHAM8x7YmX/rE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0392 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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 --- .../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 Wed Jun 15 09:47:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12882000 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E2AFC43334 for ; Wed, 15 Jun 2022 09:48:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347492AbiFOJsk convert rfc822-to-8bit (ORCPT ); Wed, 15 Jun 2022 05:48:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347586AbiFOJsW (ORCPT ); Wed, 15 Jun 2022 05:48:22 -0400 Received: from de-smtp-delivery-113.mimecast.com (de-smtp-delivery-113.mimecast.com [194.104.109.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EA23C46C81 for ; Wed, 15 Jun 2022 02:48:20 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2042.outbound.protection.outlook.com [104.47.22.42]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-25-tXfN3WsIMt61Jg9Phr7tCA-2; Wed, 15 Jun 2022 11:48:15 +0200 X-MC-Unique: tXfN3WsIMt61Jg9Phr7tCA-2 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0392.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Wed, 15 Jun 2022 09:48:13 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.013; Wed, 15 Jun 2022 09:48:13 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 2/9] thermal: thermal: Export OF trip helper function Date: Wed, 15 Jun 2022 11:47:57 +0200 Message-ID: <20220615094804.388280-3-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220615094804.388280-1-francesco.dolcini@toradex.com> References: <20220615094804.388280-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MRXP264CA0035.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:14::23) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6d191499-b57a-428e-3a8d-08da4eb429c4 X-MS-TrafficTypeDiagnostic: GVAP278MB0392:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: Qcj9N6QXesJFNWYCRGYj2wXL+xQkI0YYLHMT/9o7Re2/wwsNx8X+5rlCy1401XZfxbaUfGj/x1ppnPNvxeRs/to9PRURNh3pErRqCRL1datTZUvB/mTmDiqAKqW+gmSEyYomfYmmmDrT12XtGC0vagaedaIJWgHED6bDZgw3VhpxAvJUBpKA2EDryKhn87duKRoEBG3sDa6LKUoRMpIQBhbQ4I6nQW2FFQi8HVS+039ocSET7s6PCf37BeRgHbElAIO7p1umkMfZYA8YnIgYRG+AdylCiFzOgQIQUswmuLOrY2jCmy354vgkDR1Ef2vdF9mAJ/XLByiaAB0mOKQDA9x8ImNf9JNHNYvxt2DO3ibMoTpqf7SVT/QBSpa3LyXdJVHP4AVBcZH1FMTMQjzJ94kqDwUMPFTPCV51Gv94f5qpids7TAJtmTyBmNSLl3M5gIQDan3kiXjktrzEy1FaINyOgukXOLNV3shK7hs/sWxJgIgeaWsV/deVps/KagN/aJWrsHRQSGdnnzN4OlzABW1ARjAfujVoeaiMk0mwlyeeHaJh/1tieE5upwgVzm5kj3cVE+bLd3LL3txqUJqswc80j/4l0J6pH245mR26m0mHbdfsDURMMRy6WuweDDk2ItTgQPfzgcVv7FXXZ9oO5MLoistmN/pc+725X84dM5x0LFtqki5Hs0k+vBjMKrabWZbGVWN3cmO1OLAztMSMaA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(136003)(396003)(39850400004)(346002)(366004)(1076003)(41300700001)(2616005)(8676002)(110136005)(8936002)(6666004)(316002)(66946007)(508600001)(4326008)(86362001)(66556008)(54906003)(66476007)(26005)(52116002)(6512007)(6506007)(36756003)(2906002)(38350700002)(83380400001)(38100700002)(44832011)(5660300002)(6486002)(186003)(7416002);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 45S4v0CRn4w/pjepl9hXi9TZgWyOZnDIFd5TtSf5lv4E85Uqo9nLMygMcbizuOtg69ORyef/gGOraDpyvM2kdW/f+uSddErPFoMwVn4WfGjoICCnUpe5OoDDPvpo/eDXew3tE2FOv8CH89Ehc1piE24DTB5C96GJlUN532LDJP88GSfW+T3U9Mu8rukcC7aUb6VR0K+fFRaPh0fIGNKWNI9x6LIeit5UiFfNvvjprpCi6lgutUFLdTC8XDJnp8/kpi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MNegE9DukIZGqdLM3pVz3Nk7hg5tNNQBgMm3gZq8q5RgCO1I1lIsbW8mgUzHOTaRm7b8Vk1PslEQFTNTZKBf/ZwSBERQbyJFAOGj9AN82XhqLA5H7AfF5Ydq2Kw71IzvVuKsxsTWHbL/qPO7OmIN6/l7L39WQIPraLCtOj3TyJLv0SABhaoTa7X1oQxFqx6GGY0VdgX4SWiLIWxG2Vz1q0bpM8VBAiJPpfi5jBeeNw6rvPoOpF8uWMDn/5YmCZh8HshBh5f/GCqSvrqNyo7sh7sXfxUr6Jnld5uNucn3Ze7ly3N8vjcIYyKpVmAHVXSGlQw+I7siWy8A4pljgE7oFi3mqwlRVKyHAV/calrJwjqZw511Z1XSbG6G3Ghk2klt6Yn4VCH6/YimDsRHsDFjZfjN2cX0wVGDgceeX1VTEgB3gY7qM78XA8vAY= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6d191499-b57a-428e-3a8d-08da4eb429c4 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2022 09:48:12.8933 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1kMcFiNeDq9jYasKGtbBSfEeykjihYU95i34+4UwECQk4rZNlQVbnzhXjXrpIPLpH/fayu553PeFeUB5ca4SXaOAUNGvZEqq6wHbZUg2UEs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0392 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Export function that populate thermal trip struct from a of node to be able to re-use it in thermal drivers different from thermal_of. Signed-off-by: Francesco Dolcini Reported-by: kernel test robot --- drivers/thermal/thermal_core.h | 7 +++++++ drivers/thermal/thermal_of.c | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h index 726e327b4205..81e6d041e79c 100644 --- a/drivers/thermal/thermal_core.h +++ b/drivers/thermal/thermal_core.h @@ -155,6 +155,8 @@ int of_thermal_get_ntrips(struct thermal_zone_device *); bool of_thermal_is_trip_valid(struct thermal_zone_device *, int); const struct thermal_trip * of_thermal_get_trip_points(struct thermal_zone_device *); +int thermal_of_populate_trip(struct device_node *np, + struct thermal_trip *trip); #else static inline int of_parse_thermal_zones(void) { return 0; } static inline int of_thermal_get_ntrips(struct thermal_zone_device *tz) @@ -171,6 +173,11 @@ of_thermal_get_trip_points(struct thermal_zone_device *tz) { return NULL; } +static inline int thermal_of_populate_trip(struct device_node *np, + struct thermal_trip *trip) +{ + return -ENOTSUP; +} #endif int thermal_zone_device_is_enabled(struct thermal_zone_device *tz); diff --git a/drivers/thermal/thermal_of.c b/drivers/thermal/thermal_of.c index b65d435cb92f..dcd6571a3871 100644 --- a/drivers/thermal/thermal_of.c +++ b/drivers/thermal/thermal_of.c @@ -817,8 +817,8 @@ static int thermal_of_get_trip_type(struct device_node *np, * * Return: 0 on success, proper error code otherwise */ -static int thermal_of_populate_trip(struct device_node *np, - struct thermal_trip *trip) +int thermal_of_populate_trip(struct device_node *np, + struct thermal_trip *trip) { int prop; int ret; @@ -849,6 +849,7 @@ static int thermal_of_populate_trip(struct device_node *np, return 0; } +EXPORT_SYMBOL_GPL(thermal_of_populate_trip); /** * thermal_of_build_thermal_zone - parse and fill one thermal zone data From patchwork Wed Jun 15 09:47:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12882007 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B602C433EF for ; Wed, 15 Jun 2022 09:57:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243446AbiFOJ5V convert rfc822-to-8bit (ORCPT ); Wed, 15 Jun 2022 05:57:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240825AbiFOJ5V (ORCPT ); Wed, 15 Jun 2022 05:57:21 -0400 Received: from de-smtp-delivery-113.mimecast.com (de-smtp-delivery-113.mimecast.com [194.104.109.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D6CDA4A907 for ; Wed, 15 Jun 2022 02:57:19 -0700 (PDT) Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2108.outbound.protection.outlook.com [104.47.22.108]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-29-fUnjSoLMM0SUPAfwXtujYw-2; Wed, 15 Jun 2022 11:57:16 +0200 X-MC-Unique: fUnjSoLMM0SUPAfwXtujYw-2 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0296.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:37::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.13; Wed, 15 Jun 2022 09:57:14 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.013; Wed, 15 Jun 2022 09:57:14 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 3/9] dt-bindings: thermal: imx: Add trips point Date: Wed, 15 Jun 2022 11:47:58 +0200 Message-ID: <20220615094804.388280-4-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220615094804.388280-1-francesco.dolcini@toradex.com> References: <20220615094804.388280-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR1P264CA0156.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:54::17) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: da4a8508-5bd6-4a15-79c8-08da4eb56c9b X-MS-TrafficTypeDiagnostic: GVAP278MB0296:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: MyH69wnItQVk/OzJdLAttOae1hVil9OPlDfKk91fvFz+kh4j8CDZZC9ewj/fr/2wuxSgaXNvu8ygFvIoigcZwkUrNnqzzf21gaAQTdnsSgYVCEDsJqusHIiScLwy6c7HyJhDH7YC8to026/507Tt4KKCqws02cfRT5O+lZwAwY+jlk/BfkHnHqAIEeHn+r6jXtbiPAGfr3baVVTWgJq/4LIpdHcvJbTEwAjI7DJQjHvZmJ0VsrZF+anIILiMhRfaZ+smps+PY9YyW9EovfjtNNOt5w5TI+/RqZgfHUTNTg5UQSDdBNPt/On6msgIHuaP9ZJIPv5CunQvjpfZ/xgCCkyVoG6H5HPdcRZO8c3ckEzl43wp2xQdfzEnkVySYYiW4yLg0RKG1aXM+/DlY2AadI5Y71uwz+Kb7IF04iCQ3TZadpvDi7b1cYNrxZ0ks+XgUbjdeliu/wxJ9uUr4TBt5SQsQ2W0mridjshoQvFqVnGWCu/kAXkDWXEpjp13MEbqlLNHHZV9QdDVPMOwzl8bbQZJf3a3D2R7prRuwbPPFlP9U+h7SdFim8yvLf3gOGGC7isVcslM+wKglZxY1/0LFILZMtPrj3PhrYOl0c7iGyR1RbOP2EpBqNASjKXRf02m3VjgjNWLhFF17EsHBlqEZeIcn9kGQhP8BsPOVpw3u+xajhfHt6z3GpeRQkbQ7p+BvMxSdS0bkVN5BKz6zSGSdQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(346002)(396003)(39850400004)(136003)(366004)(508600001)(44832011)(5660300002)(83380400001)(8936002)(7416002)(38100700002)(2906002)(6512007)(66946007)(26005)(6486002)(6666004)(186003)(86362001)(36756003)(52116002)(66556008)(6506007)(66476007)(2616005)(316002)(8676002)(4326008)(41300700001)(1076003)(38350700002)(54906003)(110136005);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3xsPZKBUA2saNyzvD8l4/glZiSyYVvlHP06NCG+HVx0Oq0zijTd4CFvRbgAUUMWbw6v+8un4EebEv6M4VoTBAlwHrX2sMlfYYj0jtBGyOk9WWCSjgNMTgmTsYFmnfEViB5ZMmd0hQezRF2El5DBvMQiUyQir1p/uZ8Eq3rqCUEQQQDRmGkpilHpx1wB5lvghLY3q71nNw7QyVzOLUysDVMyUGyNd9aI++N1IEwdtb4038Boa9AQHX8V+ZKi/FQ7kS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ss/f1XujrkeCikviqgpPF2bBYXlMl9tl3egVM5BEXei8sqvSBYfPNDe861Rc7S9vJ14OsgOluSxQouZoL+0No9kn85WVj65JnIVq2bwJj2nUkxSkwa/Thbey3Du4Sqkk4n8qqdQLJX/uLkIFp+3aBqdpAvsodxnqvCTnPEe1whZPLhT7JZkE4lRjqzL6tOY6fm8EfDHmk2iYbRKuPMWYlx7G8xs8Fgg0fHauXCyeWa+EidUdI4+qMOwn/DoKz2L29UPA/2b/XcQ11ze9fVmEHF/xJJpCQCG8DY1nPPU0Yj+F3T8EWaRzCGXY6OK0/vrcGau/zwhLWspe8RoNHa5M0gGPu3t27N/3aqcf5TiVkk5+LpwFiCF5pXZoUysgaASbjfx0DSqkzKFz4xU1gBn9D+CqLiJ8PLcQ27Iv4yxzuvixTwXbYt76Q= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: da4a8508-5bd6-4a15-79c8-08da4eb56c9b X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2022 09:57:14.5136 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: iRVjKEraaAvOa3nYwsWjzHmYNyhaI4170Qp4K0ugffzDFj/MEUb12xziPBrPjnoD/mtjQGBx6s9/Smf0MV1WPq/5HqvjHo7oUYnZrHhZsxo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0296 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add trips point to i.MX Thermal bindings for each temperature grade (automotive, commercial, extended-commercial and industrial) to enable specifying a different trip point than the hard-coded value. Signed-off-by: Francesco Dolcini --- .../bindings/thermal/imx-thermal.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/imx-thermal.yaml b/Documentation/devicetree/bindings/thermal/imx-thermal.yaml index 16b57f57d103..e6349e40d6c6 100644 --- a/Documentation/devicetree/bindings/thermal/imx-thermal.yaml +++ b/Documentation/devicetree/bindings/thermal/imx-thermal.yaml @@ -54,6 +54,18 @@ properties: clocks: maxItems: 1 +patternProperties: + "^(automotive|commercial|extended-commercial|industrial)-thermal$": + type: object + description: + Thermal characteristics for each available temperature grade, this allows + to override the passive and critical trip points. + properties: + trips: + $ref: "thermal-zones.yaml#/$defs/trips-base" + + additionalProperties: false + required: - compatible - interrupts @@ -98,5 +110,20 @@ examples: nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>; + + industrial-thermal { + trips { + temp_trip_passive_industrial: trip-point0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + temp_trip_crit_industrial: trip-point1 { + temperature = <100000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; }; }; From patchwork Wed Jun 15 09:47:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12882004 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 43631CCA473 for ; Wed, 15 Jun 2022 09:48:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347627AbiFOJsp convert rfc822-to-8bit (ORCPT ); Wed, 15 Jun 2022 05:48:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347641AbiFOJs0 (ORCPT ); Wed, 15 Jun 2022 05:48:26 -0400 Received: from de-smtp-delivery-113.mimecast.com (de-smtp-delivery-113.mimecast.com [194.104.109.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3600F46CA5 for ; Wed, 15 Jun 2022 02:48:24 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2042.outbound.protection.outlook.com [104.47.22.42]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-25-b2yI8NakMo67c_ZUP3cFQg-3; Wed, 15 Jun 2022 11:48:16 +0200 X-MC-Unique: b2yI8NakMo67c_ZUP3cFQg-3 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0392.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Wed, 15 Jun 2022 09:48:14 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.013; Wed, 15 Jun 2022 09:48:13 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 4/9] imx: thermal: Configure trip point from DT Date: Wed, 15 Jun 2022 11:47:59 +0200 Message-ID: <20220615094804.388280-5-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220615094804.388280-1-francesco.dolcini@toradex.com> References: <20220615094804.388280-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MRXP264CA0043.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:14::31) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7c196331-b62b-4bdc-87da-08da4eb429d2 X-MS-TrafficTypeDiagnostic: GVAP278MB0392:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: 3khyPStUl7MH7vt17yO2T0Gb+npu4U+Ecyq6vLdeqSTAZ3fBzgCuIa5PIRUxveUCGcp74hC5TE1m90pPEjomPv3sbwdv43yt4Hl//1CnN7bLkZKcjYnQmZwOd2Q24/n+BJIxB0yQ3wHeBtJ8b8d6sFROGRXWca7iYIIBtAd5YUTulnt/J4f99kgJamllLbkt4es1mlPSX1JHXHcDL5Cqf4x7w7gJB8KPbQ8DcBH963gKvmqXm66/wkOp4uCdCmO/Dsw3MzyoFI8cpGva612fmXK1oAuToGyeuf0DJKPx5WVeVPkPJqC42uYhlYpfXO9gUjeCrHz/6MdjVx6pluwUo7Dr4IO5K5iOXG4EtcHCQ2bEoV8LD2tcVRUklIQ+SOw6gecO1HRz9M2o+qUG1FbyLpa8JWC3fcIDUAGqctIQrXLTwZ974AFKiAqH+HzWcMi0+BqbgFP0B3AeZFjH7+lhPAspXPv85zKWO/pHAdXqWgLw9iwhLVpUHbMF+TJChbiI+yJjzfDU3J6NDhIAk4LKwkp0WdyMq/Z8FMivPVswxqu2XjEK7Tu/am7mZZm90DPUgcd6iWlG9upNo6rav2jpkdWGmsXppkbr9LwIlYSPXOMj2ZhCu2voB47h3bkoRmy6uFf8x9LNfwXGKQAHnD94uPc2h1sCA/vWwc1liYTIOKl4v9b8qrHtq/pHp63J6K4NN30DHbJoeoOeKayX+uVoHg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(136003)(396003)(39850400004)(346002)(366004)(1076003)(41300700001)(2616005)(8676002)(110136005)(8936002)(6666004)(316002)(66946007)(508600001)(4326008)(86362001)(66556008)(54906003)(66476007)(26005)(52116002)(6512007)(6506007)(36756003)(2906002)(38350700002)(83380400001)(38100700002)(44832011)(5660300002)(6486002)(186003)(7416002);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GCPrv6sUnpYLMhvQK9IQnNxQPVO0YHavV695Q+D7F7RH4C+LdcYW7+VtJFbo4xrJzmBmnlafJiFlmk3oXcyS4fOx2OK1Z81peLrK6LY0L33eDHEdjYuDXuDfkhWsr495COvtCQrcq4yglmB4Z+f3h3+TJmUshisio8YgSXAaE13ZBB7U06O0ZJiTa4EnQzTeZxwRFougyM6EazPdWQmJSkPPWAPtx6TcFCJnV9dUWyzlKLJ+itw+XcdIuu7GwngzSIkOZYIpLCSPcQd4KM8tLYIumXFi9hbTAfna4EH9jXqKCZMR4VsUUicPbh2HbklqPu0WBBY1zpcv0NHg+R91yqV0I3aUllZ+YSoh72pIHsjVCyRKhB6psayJCZjBkYYgWeO4CSTclNO4eX/dvzZ+fWezAUfRyii+TwTHN69mAGZT2WCWU/PLQ/1FvpxEWHA7zLUTffqlLVU/onjSj3LQpMfBYhoUy7ur1xFdbWkjWRr6ymcYOJM+jlzAaDkn1h6D3g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oi2xLmBA0A7U/8fEl6bia2unP4cMxPoz5aYlIQBpjVD4X336hh5t4xP2fhsMSqJ32o6XOmjN0MHsvsXr/fYedmzsMQIeJifcZ6gAy4pBwcy28vTP9bwXZKE7oWrgdQGi9FqrKCe25ng6HUSMlA7RDDtbDrkjCuYHggsAQE8hPK4BzeN1fxHo= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7c196331-b62b-4bdc-87da-08da4eb429d2 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2022 09:48:13.0183 (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: PNMRwWF5mzgD0m5CF4BhENtefFdWToRJA8l2hcl21WoPC2UOF0JDNymNEPoknA2wYF0t2vCRzlzQvBV3gPGhpc63vz/XJxuvDnAn+xl4+O0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0392 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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 --- drivers/thermal/imx_thermal.c | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c index 16663373b682..ef3e152b5ee2 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,83 @@ 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); + 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_dbg(&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"); + 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 Wed Jun 15 09:48:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12882001 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 8EE87CCA473 for ; Wed, 15 Jun 2022 09:48:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240591AbiFOJsl convert rfc822-to-8bit (ORCPT ); Wed, 15 Jun 2022 05:48:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347613AbiFOJsW (ORCPT ); Wed, 15 Jun 2022 05:48:22 -0400 Received: from de-smtp-delivery-113.mimecast.com (de-smtp-delivery-113.mimecast.com [194.104.109.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8DE6F46CA5 for ; Wed, 15 Jun 2022 02:48:21 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2047.outbound.protection.outlook.com [104.47.22.47]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-23-e5qwAzegMKaNs9kcs8tfJg-3; Wed, 15 Jun 2022 11:48:18 +0200 X-MC-Unique: e5qwAzegMKaNs9kcs8tfJg-3 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0392.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Wed, 15 Jun 2022 09:48:15 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.013; Wed, 15 Jun 2022 09:48:15 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 5/9] ARM: dts: imx[67]: Add trips points Date: Wed, 15 Jun 2022 11:48:00 +0200 Message-ID: <20220615094804.388280-6-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220615094804.388280-1-francesco.dolcini@toradex.com> References: <20220615094804.388280-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MRXP264CA0041.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:14::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: 0e6731c5-2c10-4079-bf19-08da4eb42a42 X-MS-TrafficTypeDiagnostic: GVAP278MB0392:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: bikdPB/ss76ooXRr9j4j2K16ioG2SBb9ab4GY8PnLGuuYN1gmjLSvIGmd3jPc/LmU7/eM2qo/9sTHCoZflRr526ja3C8KrHb1erFpNvsKH7YEYRc0qNX+gyM1hP505ackmoh6x6BuJOI13AgfYgcabWVbNJTFgbmu2LnOG7cbESV+2mbiYD3+vHC1Za488BogY4zw5XvSYa6nWWTTjzUDpPoO3DOMy8S0dvP9ZVgOemrcWGqWGUzLP3JCnN3fjUsowLSN+tE4SGJSs9yegTAqOcXXtRQ8RoP46vWPcLD0lgZ1sH62ZF5e7TwBxDUVm24/so+xYJPJ8sBUn8C5AutQGjGd8ChOLxqNqyHF0gJ7SOlA7VaPQu7A53y0jgB3AZVINKcR1Q6nCAZZOmXfFZ8EoA/5BuoKfhkmQ/BTdld1fqXoFs8x/ZTJ9VRzxVUQY1mOIkviJyzZM7yLwuXHb0uNtgDgplY/pP5PgN47uvrymtFv5MTVFM6I+u7IlxyGn9NYPx43skGUUvP7gIME/ZfliaQlYw/SS6Wro+ASUAPSDC1JGKHEOXrOahvcOufj2Ds7A3ejBKhw/1NJWrpzaAw5BlG6INGpZJVg84fOOymdJ1KG23kBCkdlfu6agMh/mNaBM6/r05yYij1lbY/HPN0PCtIyUWInbJgEuqDdh3s3Pe6B+INfj5QAYn+/8KVIMswpsz5FtyAbRTxeou9PDAgRA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(136003)(396003)(39850400004)(346002)(366004)(1076003)(41300700001)(2616005)(8676002)(110136005)(8936002)(6666004)(316002)(66946007)(508600001)(4326008)(86362001)(66556008)(54906003)(66476007)(26005)(52116002)(6512007)(6506007)(36756003)(2906002)(38350700002)(83380400001)(38100700002)(44832011)(5660300002)(6486002)(186003)(7416002);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1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QNeWLwS70FD0KmXOQXhGMMCiOEWLqNEwpPGHMbZedftsc8TieDnYUriwP5tAUOuvEJeZN4jeboUS/y3USY00ArOJ1UDA+vJkG59jn7yCRPmMtn33028QSZ1cdyeHOUmoRqbeiEpGh8dWmpzhCsntsUQec4kptlFFL0skLjsZHI5FyqgskqdkPNIgaRlnjT5mNKYog4afedQ3QUTB9JE5PX7AiVkMUcduZlsRBML+qO4c1dyP/PmgBt1ToIcrLQvGbmNUpG8Vq/SNxJdp8feNnI4nKH5AaFip5IjsxLIaPfNH9VvoVioBf2CWaNMg/eHoqoFVbYzJEiJQ2dZ7LaF3bA83CD95L/hkqfCci9dGAvGQAdoCeR3kv5JVKtnhPtnUG+tzlL47+DSXW2NWdL2CPyTbTQmxkY1ImZ1pg9X6DGTF8Ojc0cCxNgO9J0TzG4flrBEZeKco2VkXv24EtwACLT9j90BH7Am1tgqlZLkHEss9wYGVfzy1qPnIPVtUB3/vloW3JHm0nxIm69stmM7sznEBz4p1S7Jxx8YXAR9qKCOZoiRyuKS3eYlb8UAcFFINpsBGOYa6tby/7ywBJX2ksQBQeJi5hqZplz5KIOtzWFPV4h8ZTJnOcHXjWuNrHQFMS3RgajKIWruaaFfPGR9kSrvrxZvIvZjP4MRlGuyLCmXFoNpHHLCXDRNxtr9aWB9k= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e6731c5-2c10-4079-bf19-08da4eb42a42 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2022 09:48:13.7224 (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: U3ZgLhgsM4RzdhuRXGEi7IOSIszT8lQdPSM3U/IZzsBpvFYAdcdDwTe7s5FO61M97ymka6rQvyRplYWS00jKY9g2yg83eJLRZvp3Y+DvEqQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0392 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add thermal trip point to the i.MX[67]* dtsi for each available temperature grade. Signed-off-by: Francesco Dolcini --- 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 Wed Jun 15 09:48:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12882003 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BA2CCCA483 for ; Wed, 15 Jun 2022 09:48:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347831AbiFOJso convert rfc822-to-8bit (ORCPT ); Wed, 15 Jun 2022 05:48:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347652AbiFOJs2 (ORCPT ); Wed, 15 Jun 2022 05:48:28 -0400 Received: from de-smtp-delivery-113.mimecast.com (de-smtp-delivery-113.mimecast.com [194.104.109.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C911347540 for ; Wed, 15 Jun 2022 02:48:25 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2042.outbound.protection.outlook.com [104.47.22.42]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-25-HanQz1KWN8i4r9CjeJF_vQ-4; Wed, 15 Jun 2022 11:48:18 +0200 X-MC-Unique: HanQz1KWN8i4r9CjeJF_vQ-4 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0392.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Wed, 15 Jun 2022 09:48:14 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.013; Wed, 15 Jun 2022 09:48:14 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 6/9] ARM: dts: imx6qdl-apalis: Set CPU critical trip point Date: Wed, 15 Jun 2022 11:48:01 +0200 Message-ID: <20220615094804.388280-7-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220615094804.388280-1-francesco.dolcini@toradex.com> References: <20220615094804.388280-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MRXP264CA0043.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:14::31) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bb4d5fd8-e162-4674-31bd-08da4eb42a21 X-MS-TrafficTypeDiagnostic: GVAP278MB0392:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: YdKTILDYRanf+td/98pzO+shMI0G5t5QFGBeHm6q+lkR90dxAT7ZEGb3wpGuQLBwnK1nfton+YjdwVI0RthZOU34Bj4t/C/k1n/0dVP/z8V3yVm3DG95ES0f5mi6EYCl57gNcHd7IfpKUbmLfloXcl/XxkQvJSucQ7HCHYH2sEgSAlaEI+tpfBkUxu/ULEb9/x7yUgNY9NqouJQk4PqM7bfnJu+GxR51GPs6h0ogGVVrk+rCmCFXmt0i5gRG6A+TOSGeCPM0UrxE2sVKy7IAMc9LMkDaWadNZ5VWxrz2jauimKpctdFI+DDo55uQLJkhiCGXXfdSsWgrF+G5rvorfAZgEln7LX/HHW8o0DzaVKngWogxEmRRPSVkx1PLRSbR40YG2Bfa0MIW2jwRZDGqo/9lL95vJyRp+CnN3w9Lyt1QXgldCOSPczWogomoeiRGtUAj48TK3hflulCgZXocjht6augufZdDJHwsWk4mTddF6KCTkzuXXa4KV0g1cl03FKNX8qDz+JUlkGUEmWZrunDfExVCkbsPz06ABB7RLlUKuzTo5Feo/Np1lhhWRsdcle43nvCEQbhxx8bs6rVkV4Pbre4PpgRhLv3AW1W5rL8T9lzJe+beEO/3emfR9MKi9jgpVWqMibBP2MHbyyXq64YjuNX9gM1AvC2zP8pkMXvCs8K5+M6Hmwbc7E8oyzNPSkZmVlo7mKBzP0dv4XYVGGkJ0NdZ8k2UmULqonFz4QQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(136003)(396003)(39850400004)(346002)(366004)(1076003)(41300700001)(2616005)(8676002)(110136005)(8936002)(6666004)(316002)(66946007)(508600001)(4326008)(86362001)(66556008)(54906003)(66476007)(26005)(52116002)(6512007)(6506007)(36756003)(2906002)(38350700002)(38100700002)(4744005)(44832011)(5660300002)(6486002)(186003)(7416002)(32563001);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: OMEqgfXRk2jh+s1zezXs6oKpy3/1GI2Kvjlo9NxzdkA1SlzQ9Zlo4Q6VGrXz9QWozoPZuK/0j1g7YX9rb7iSpNdkanrcpkf5CX6+3p6Eh+PiWo6ueQIbxhz9k4kEfZrWONSSEP9zv4eeUhT8NxRuCK9+BZD9jkQIWTGWhj0e2DZt5lnGGzcu9yi2TDzpT7NepWxr3JMWr/B9o0WinI6ROSNcowlAgSdHVxm+wQL8AfzRW9hrautw4VDGVUHfgbBTbX7WpYGp9toYgv9Vi11vjIpPcHzzZRnmk4y2W7/AGg+vQyNyifE8mug8x+cXue7vyYAPSfdR6pI2gyat4N/sstQ9o7ul186sj2R2wNkTgLrkybVibHJv0u67kZXr5+j32DWFNMcnM20XkX+cG4SYhBhALOEPGKLOmWLj9Wz1krgLgHv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ZRJm7ivroiiXEI15zhxMWSOi8f4JH4+AtJ9KS4eCQe/uhap52JLXak0ecxhC9O+dpH3Nja0Gjn7gCJ198JwH4ItFT/bk3a1Y9Ut6sk0vRzVp/moD0uodKAmgSys7ETxpkfCy8nDeNjX8hlA6r1cH723ISlJgx6UNmqCm8kh1Q1dFftMNNLofwyWQ1sKjAFonBNGS0Bl5T5aJqonqchQW22gtufBNNY9RcqnbnaxPaQ/Lfjsh5hFWBsU3bAebFjk984XBJ9ksE93AU= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: bb4d5fd8-e162-4674-31bd-08da4eb42a21 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2022 09:48:13.4869 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Nj/2vfh2NQjtB+CKS4mIL2uRFnwcfs90aUjhuUtbZC13anO1vkzwqV/L7G+XuLVElPLEH5fdQx4ppD43XEG7g2FHVX3auUzx3kyJuLJ9lyk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0392 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Set CPU thermal critical trip point to the system designed value, 95 degrees for commercial grade modules, 105 for industrial and extended commercial grade. Signed-off-by: Francesco Dolcini --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/arch/arm/boot/dts/imx6qdl-apalis.dtsi index bd763bae596b..21ee16f3926f 100644 --- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi +++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi @@ -390,6 +390,18 @@ &ssi1 { status = "okay"; }; +&temp_trip_crit_commercial { + temperature = <95000>; +}; + +&temp_trip_crit_ecommercial { + temperature = <105000>; +}; + +&temp_trip_crit_industrial { + temperature = <105000>; +}; + &uart1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1_dte &pinctrl_uart1_ctrl>; From patchwork Wed Jun 15 09:48:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12882006 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 5C166CCA47B for ; Wed, 15 Jun 2022 09:48:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347647AbiFOJsq convert rfc822-to-8bit (ORCPT ); Wed, 15 Jun 2022 05:48:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347656AbiFOJs3 (ORCPT ); Wed, 15 Jun 2022 05:48:29 -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 0E45B46152 for ; Wed, 15 Jun 2022 02:48:27 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2041.outbound.protection.outlook.com [104.47.22.41]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-32-9iyU_XNcPGWX01L9UTltdw-5; Wed, 15 Jun 2022 11:48:24 +0200 X-MC-Unique: 9iyU_XNcPGWX01L9UTltdw-5 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0392.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Wed, 15 Jun 2022 09:48:15 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.013; Wed, 15 Jun 2022 09:48:15 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 7/9] ARM: dts: imx7-colibri: Set CPU critical trip point Date: Wed, 15 Jun 2022 11:48:02 +0200 Message-ID: <20220615094804.388280-8-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220615094804.388280-1-francesco.dolcini@toradex.com> References: <20220615094804.388280-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MRXP264CA0042.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:14::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: 4c12617f-d10c-448a-0c70-08da4eb42a51 X-MS-TrafficTypeDiagnostic: GVAP278MB0392:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: e8DVSRR05NOV2HjIYt55xaG6YFNT1gzfBh+Xh2QyHDiss4r4HvIfIuNIRGiHhzwX9HvBpSbW7zqNVqPyHvL2QPEhVNBthv2UmVu0Ub+6dTQhIOSxi29Tt2LOFVCT1djTb5X+uhKFTExcqJ6emKHJZKoEHxGRXbxqT6Obz6UKM8ZnRGGdgR4R76UEb71MQpoMrzqMe9ofoZiE4/MwgXfOjHsmwkTdpH+I1g8e5t2nvZyOw8GMy99gXp+AMoKV+Jk7ORQ1aVXhPWI6ugjsRpWHTHGg6g8gKmI9fJjlpXE/aVgJzC6JwdXTDf8d1ae99DusguEh8DNm5QRRr3Am/GTFYjdrtaGVG920gEJqEQ7h9tdzY7XOL5fn168PeLcwswo1LoMuStd+KMfMkQNqHoY2VKfGs4MQyZuzawZ1+uQpgWq7LKvHaazdk9YVB0j7V3Nma+CIygyky6ysi6AsVS8BarujbrTWw3h4Ba7UfV46FsYyTHsCmZRqoVLN/3KVRHWDCwDYTRISTuEYuy7T6r3PcMOirdyFSATVypaAPJ+Y9RPsDPhH4YtEqUMn9Ku+wNcYxFiUL/EtIe0a+EKZ6HDM3qKxRDo7i1MoBoCNS69X2ugaFApd6ACvLn3BQkuajaBgSnb7xq2X4yPjGIsfNGj1AW2917MBsh7p5S9+e7z91teRz+V0l8DMfY3Izb1UFm15xaDUMUhVrkb8vHnO5Q3xBA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(136003)(396003)(39850400004)(346002)(366004)(1076003)(41300700001)(2616005)(8676002)(110136005)(8936002)(6666004)(316002)(66946007)(508600001)(4326008)(86362001)(66556008)(54906003)(66476007)(26005)(52116002)(6512007)(6506007)(36756003)(2906002)(38350700002)(38100700002)(4744005)(44832011)(5660300002)(6486002)(186003)(7416002);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: I3lcCpRkG1SFKtT+xAv8Wq9HsQi150ZnnhQyPtA18CUr0y3S/R6zDERXM4Gt1EuTpawjOl+ZEuuIAy3dLPYYs7prgng20E3hj8+v/PpGi1XIbKJHnUr4IjiPvvgmdzH7Q6dX+zOUPPbE5qSQ7t8pxY8b3rrNDRjJXmXQR1JvcclzpJieiltGn4aDxguruT1oq6bib/vJUbtnxen32nj25mlNnb1eXPp/iJTGE3+JeFZa0KG6T28IHs0lPgELdpIYp0TF0BJKXpQD3H9UIrwREHP0CNHyoEMIFkLihfRSP4IjSsGL/vDuzqK08e6scyCsEf7nXe0JDX9eSmRWGyNs0Xd7PThergTfsrsIq0o6/1cKVsPTitYkbLIyxOTiUgtvh7J1tARjYgDJ+h9vqhIx3RUZzK89xgBMpApMHl9OVhiCAYSDGz/8OoC6PRvMNLzqMZvLEJDU01/Fi/bqvHa+2UZ19Cr3Zig9AS3jWWZ9ubcQx6enXlD1X+iiSHbOyAgOdecJBxuXn4wl9aiJ7M2Vs+MbUxCgLnFkktEzpK8HRxNja9b4XJdkvkHRy9XGWHqUDJ4W8Q3p4paUl7dcQ9HtZ2wqWss6CmjF9ZlcHnY6DAzh3nI2YIHcuxcZsy9yg4lOvuigfZLxz24c9O/OnXCXhmfBE8AV08XaGCIxE3qFaWtsLzciKKL2Ij5fpYJH1Afi3sxYl+kDdm2hhLzMG5rJrjuRUnBLWRlQPEDiMIRUik+piPNWOhR9phwjHcnDMNyvIbXSf4Ng/o+e2drHMQ+Z8/kkQR7qJQX0Eq0Jho/qTOaXI9ATEQ8E9UAmeBlCkX2JcMr9hpCg2FQv/p4s1pulOJUooj7GSPCcvRjZLrh68jjJOliW+5fvzWSbN9y9vXBvF3krsej9Ik0Wn/IwxBCV6W6go+WWSajOHfVPwrAgkl0UjBCYbwr5/qTyYn2+onR4fUhJuvhsc8ZRg9aVQqLoKidgiIWUT4GrJJk+Zfeh/ZChaeNlyZrhhOVh15yhsudNVTABAfKG+UFr4OOx5LsE+Km+31rf0zqAJS/zV0xGbylKqRdI52sCWrDQG43LTs0JdvLI5HWvnRb4srOaR1PFWsSKaHJK7UPrEGlidchZdhER/x7LjsioGU8oN/qR9zdPOiIKE6kRLWuZGKqpOgW3U11m8hf1tBJxrQ50f6+ShYZFZWG1Mx6YDwr7TVYfc+Kn7y5Ia3LXeZEanuxOdUlSjzia11obsNrx6KmiB4JHd2xTG/Y0VpRGb+o2latRp1ZBIuFmj+Uvskm7unWOT/Yf00H7TBbSHvUsAIxAxgN4YFkwLK0NJz1q5wGYEMApdH83PM4B+FH6eAUX86Cb4RTk3pC1/B4bEEhlycsBDT4CMOfVI1uv4ww1WH9jevxi0I5EKzpvg7E9Q8BBPqyolvBqaFmAwMrL1ji1NlEStuOtfjct06wdlHhBD+l3XyhUGVck6C8LBadYaWX1oex6lieZUQ5RAw0BO39E1LmPmBFjQVxlXMl1koeG04mjK5INTe9i5H4dJpOBOnEscW4R3VWXHDAQVVvjAgvhbxjIpT7PyaEsESERNsnEJhOjh0Ji7gWp1zAJ9yxKyUlUb0eiz50uM7tLyVf2uC5O/sYBlXdXN9dKVemFuHvM0dv2e5MZNStnFZKGM8XACw7pW9lK2ymQB5MBfna2B6qyHL/IvUYw/Sa1/UuXRjv5+fWj4omMet3bCMR02sCD3dHLGyff4oqBIv+gHkPh9EeKi7yOOMz+goQ= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c12617f-d10c-448a-0c70-08da4eb42a51 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2022 09:48:13.8630 (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: cPvH0cumFHnxo7/y9u8QG10mnfJJZ+OSKHMKJfqjAXFSPxjI0tEJdUDRz61FfonFZLpAg4kC8IfcRPRXQoUddWxjdZNgMo3ZVS3dc9cnuNc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0392 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Set CPU thermal critical trip point to the system designed value, 95 degrees for commercial grade modules, 105 for industrial and extended commercial grade. Signed-off-by: Francesco Dolcini --- arch/arm/boot/dts/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 Wed Jun 15 09:48:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12882005 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD48FCCA485 for ; Wed, 15 Jun 2022 09:48:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347636AbiFOJsq convert rfc822-to-8bit (ORCPT ); Wed, 15 Jun 2022 05:48:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347673AbiFOJsa (ORCPT ); Wed, 15 Jun 2022 05:48:30 -0400 Received: from de-smtp-delivery-113.mimecast.com (de-smtp-delivery-113.mimecast.com [194.104.109.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6980E46C89 for ; Wed, 15 Jun 2022 02:48:29 -0700 (PDT) Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2113.outbound.protection.outlook.com [104.47.22.113]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-41-ESRzgEV_OYGUbqc5zL6KJA-8; Wed, 15 Jun 2022 11:48:25 +0200 X-MC-Unique: ESRzgEV_OYGUbqc5zL6KJA-8 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0392.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Wed, 15 Jun 2022 09:48:16 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.013; Wed, 15 Jun 2022 09:48:16 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 8/9] ARM: dts: imx6ull-colibri: Set CPU critical trip point Date: Wed, 15 Jun 2022 11:48:03 +0200 Message-ID: <20220615094804.388280-9-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220615094804.388280-1-francesco.dolcini@toradex.com> References: <20220615094804.388280-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR2P264CA0077.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:32::17) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a85ebaaa-e05b-445b-332d-08da4eb42a58 X-MS-TrafficTypeDiagnostic: GVAP278MB0392:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: pzxGptJCAZiJ6wtIrtIrgNvAigow/smLqsHzoScs0moSPp78aVNovfH75dvdF/TO0KMxIi1bSzj0dn/c9Jusvh8vZvf2BbzncAp/P3M8FaOZockA9eJisMdZFqAb+MRl6sWwCedt2YJlturGTdfwTIDf9sjhgJRcTa72Lc5VNCY0NcVY6A75VWHoPw0QOiiMzqM+Gv1N6L8bZymuL1RmwzufNSWol5iKKBkhWG8e93OOq80EOKJiX8v8syI5CY+0reuK1hFUFbCLI/8gu1XQIxZgYNdDjDHspCFQOryAzzXS9v63QiPD1tFFRSlO9hXFZXicdYqGRGdpUbamL2yiKHRPuZcgGN4wEK2CPS08lCxVgzjMdeSSsoG+kPQa6MUVykDR8YNANHXxnX7xijkeErTaV06GFUX4EDpyVx+4OTXHA5qltHvSULJpVpfrmIF4rJnv5yNqO5jxlpHY51MDLjSuQ2b5f/RDPdrMReV6W2zBvg15nciiMg6Ox3s3ipVbjL9LT6iGWzwE6IGQ4K+6S9W4CbBlKc9IekFwMuk8eLMkzyn6fL9b20m5yUfLRF2BYmZFKmFEpX0cbH+LZEqhgqCuGxleoufqfwAqz0bSTjFwOVTEALwnqOWRGrZu4PYNfLHzjTCV332PGl56tnRjcTI90lbudRQ5KWND0ITA18w8YJKxcrseuZ1ND8ka+2mGsYTUEXBbcIN0q7u7tFVDrsYuDnzHu42XGmz5UhLLPFg= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(136003)(396003)(39850400004)(346002)(366004)(1076003)(41300700001)(2616005)(8676002)(110136005)(8936002)(6666004)(316002)(66946007)(508600001)(4326008)(86362001)(66556008)(54906003)(66476007)(26005)(52116002)(6512007)(6506007)(36756003)(2906002)(38350700002)(83380400001)(38100700002)(4744005)(44832011)(5660300002)(6486002)(186003)(7416002)(32563001);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1BHIHuUGqekcwciBCABUPiF6MnA75dnslaczqPgyyr9mN8vkoZkqrbjowEcJ+BK1MI/ikrAoctOrrmw8Z8ATE/6BAdRZzFmZ5tjuu5+ktGeeTgHnYR22+1lP/w5eB4J9Ryu7+rh6p0fk9YrGy1tyfkOBuyJ5QsEejYAVgSijQNi0iaBx5WsloVyuehg5b8KyV/DhSAbx8zfOwfrMd/mBJUVVk+qrbXrJPrJBXI9EKKVGc08E74S8L1sPJXhhfEXwtZ6YR9eOvgTTkNH1NiCU0jUDR/l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abtfWGvXvqcOk+TwWnptQcG4NVMMsc2FtMZZJ3dO1La9yaLJbw+ZOWVXZP45xDR9/ayU/l7+QR48Ca2lljPf69YJJRxCBz+28MM2g/l+rgvh5Z9MI3hjKIrBT4LrKa98dOgoAnKdJRMIl/vTSKOZgRjEuQQ/Lq1ukeqr9bCs++CInSyZ/Q+Z+zj+boBUvibqVFM8UK9jF2/7pWGzxI7PQ9+PBYt8Z+WdEyv3Pz1oXIwbWm848G25BXK6L5ZzbRwLtcU/AyPBFg8EBzQWfLYfDnTUIuQfpTuDFtRb2gxs9L/bYPq51P944/0nbNQK357FbfLJ5bxBSPg55kGD/JQ6rfS/2fU6rW624i80ColKTVGY2UVjU804uWgL1UjTWzmAMYUAE+DmP7fgxhMyHUA7NZA+ow9AhhlQ= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: a85ebaaa-e05b-445b-332d-08da4eb42a58 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2022 09:48:13.9411 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: t78K/eAHZxWwLnEN5jE/VxNYYRsl5rDpjdkoLbEIr879EGFyY/uD2IaRSvPPcnhU8ZyrAEt7VEJD5sy6HRmJMSAe1apOqmSB8bw/G6aCFRk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0392 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Set CPU thermal critical trip point to the system designed value, 95 degrees for commercial grade modules, 105 for industrial and extended commercial grade. Signed-off-by: Francesco Dolcini --- arch/arm/boot/dts/imx6ull-colibri.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6ull-colibri.dtsi b/arch/arm/boot/dts/imx6ull-colibri.dtsi index 15621e03fa4d..6d8e1ef0315b 100644 --- a/arch/arm/boot/dts/imx6ull-colibri.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri.dtsi @@ -250,6 +250,18 @@ &snvs_pwrkey { status = "disabled"; }; +&temp_trip_crit_commercial { + temperature = <95000>; +}; + +&temp_trip_crit_ecommercial { + temperature = <105000>; +}; + +&temp_trip_crit_industrial { + temperature = <105000>; +}; + /* Colibri UART_A */ &uart1 { pinctrl-names = "default"; From patchwork Wed Jun 15 09:48:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12882002 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68D0DCCA47F for ; Wed, 15 Jun 2022 09:48:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347608AbiFOJsn convert rfc822-to-8bit (ORCPT ); Wed, 15 Jun 2022 05:48:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347630AbiFOJs0 (ORCPT ); Wed, 15 Jun 2022 05:48:26 -0400 Received: from de-smtp-delivery-113.mimecast.com (de-smtp-delivery-113.mimecast.com [194.104.111.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 01E0346152 for ; Wed, 15 Jun 2022 02:48:22 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2041.outbound.protection.outlook.com [104.47.22.41]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-32-F80T32lxMdWwgIFqYfPEcA-1; Wed, 15 Jun 2022 11:48:19 +0200 X-MC-Unique: F80T32lxMdWwgIFqYfPEcA-1 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0392.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Wed, 15 Jun 2022 09:48:15 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.013; Wed, 15 Jun 2022 09:48:15 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 9/9] ARM: dts: imx6qdl-colibri: Set CPU critical trip point Date: Wed, 15 Jun 2022 11:48:04 +0200 Message-ID: <20220615094804.388280-10-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220615094804.388280-1-francesco.dolcini@toradex.com> References: <20220615094804.388280-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MRXP264CA0045.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:14::33) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9c6b905c-7e7a-4078-0c70-08da4eb42a51 X-MS-TrafficTypeDiagnostic: GVAP278MB0392:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: ASgfbbLdoMPibhkyPsI+GPIRF2/1u4HLq6YBER5ixxYXzEwzvjf442PBJdG2Pf/iZ51ovCTCzGHTmFGsv52XMc3+PycFuJmDgr3Fs2+dd5w0L4ewUPCXUm/qwyOHcDXapFpjdpbVmimPAL1VfICE1u45Cm0TOnj208MRUT930x0LlMHUHLhNmQ1i4JmEEaRjFZ5f54y1HZbrAgpq8sGqhwk8ZdGtmIs6YC4L91/6+3RonSvBDhqpwCOebuQuQ89MVV9/ljkYCIrbHFmr/3l9L8Zm8FO6elNLjifCVDwBTGklUrHl/InKLlRun3nMa1E2tsc7/+e2PS21C+6MJ89LnYxgpIWBoyzxpG0V2Z8CnArafgcjDkXlMwWY5BjUfr5yihRpjmaiVWAsL3AeQ5B+ktyzOn9z2UHwKBMBvsq+KbPAEUlB7Q4V/oKWHyaC+xrWkUJu25Fk5akZbrNIBDyBVLleDIMP2C4oFDInAp5tp3XRBNEZq7eG1ZrLxLwnDORsbD524154UV2LtRgAFatiI0PZEujJqp4y/5pFdcvZYNyH9mWFLj2m3dBbGY0qano5TJ1TgUgFpAzZa62l8+t9jiZvWeLKY7jGXpq8+08V48cL3oc41bfCiQrPegwNlKEpQcafJMu9QCbreiXtXNAWP+hQyfLe0DKG/oTJpkugBlmB+KSD6S9cd6jxXn/wlb/ndcWtxf40u2tmqnVx4glBGDOapDSayS4811/LqDN7Cn0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(136003)(396003)(39850400004)(346002)(366004)(1076003)(41300700001)(2616005)(8676002)(110136005)(8936002)(6666004)(316002)(66946007)(508600001)(4326008)(86362001)(66556008)(54906003)(66476007)(26005)(52116002)(6512007)(6506007)(36756003)(2906002)(38350700002)(38100700002)(4744005)(44832011)(5660300002)(6486002)(186003)(7416002)(32563001);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: fVVPtm5Q0eO1tHG2/dpoh26q6o+n4mELeN4NCtBxdyce4m1Nig3V36nWk9Jwsef8YuCl77YBdKtueJOrn7wL1+ndbKA/UHj5HWtmnVhiFEgPicITTq7Cj9UKCtymGRTLJJ7IkBs3vMzRaBUaeRALKLTv1ou1kBjkjYy9/p2z3OIrwIlaATXgYLLDnQYL1bmIrkDVyx3TH1n81RHIXglCxJ7YduJwGeXAnW2rytI8q3xIhRZlg59bC5HCAKoU9FvKRQ0BjEL9SODBKSwb84xJrw6PsJileeNtSBD3XpQYy5/YtqmgJoufQF1HiChlwphRK9gHlBag7/JzmbDCVm7MZuN/XzMhuFTZML7yJZrT4WbMaPAa0nsznlMxeYnZs+VNNH0l97/mO0npoJbH8TYEvucRz7K8VwDPcOQaugkchlt9UIod/O7qkFOzp/Pvd5heVDSW1gmpCGewulkbzBsMjyqYj1VX0z4iSdpPn0vVphX9cFulVkHyVgQBnc14LESIGVRwxeD3U8WkCoBro5JSP4GIDfawN5cjfaz27DDBS5o2PdlaWWYaK9GbWh24h0qX60qqajcgI13TDvMPX8AUJPro6944AqxpkSiakosLu1fNp+TnR5Vsxp18c+PDYVlslJao8PQfx6ZZbWhHA954fOwoN2AdD4Oy51ECybIDQ8G+jlbcU9xJFF9LbES7X7fg86ziKsw12uZyT67s4zpI3Fh5KuKrwD0tuRjDEl6nWhYDAACcKSI1oWRkmQ+t+5uEopLlg23x0PiJTQC6+4XWZjo23Xp3Jq6CEVrncJMqGCvn7i0GuzSOcMWFeZ7c0TC5n2vc9ofxr1f1HPLAPZcnGu7Tl5JhUXahCtLWMSOtuqXLtZBIHvGzIHWcaVdj0A1sRxajeJPE9q+dYEmp5TwHh/zESxGf67y4l9EiXD7nT3JUbuWXrzZPsTGAuSEUUpTn8IzoT08dTOyeNwDusx2ntTPwkz522qAljGIva4JvykIr879ScHzUy8l1nD5+IU5mM9sWhVpO5yk4lolIWBG5cCur/U7noXSJZMZJCmjBid1UMJ9ldBj0TaCTooSccqv7KpGSyS33Pr1tAZp7URagQCtsCSb+YhewN7BLtUPGJLrkCXPXagXhq2yezmSrWJMWMgFih+Es6oOOGi6WgoyqpiKyVsVgm0xti7hcL843gjhHGB3GOsRCXZP5zL+aoIwKQE7W9zgCVj3AVNITxfJAeeK/5yn74HdyFeVxdBFKKZiTrfBs3eAqbU4UzJHMPndg03URek1IxHLP7fMF1pnAK6LzP/5zwGUOgjkb2TWUXlwk7lFx4GuRMM8ujgmDT5F4lKBUoFDzCfFu64jtytgQIGs+OOI250SkRpE+cnkt5QwkxNwf38lJJSDQ/x8uXvI/aiZIjKtU8PeXHX5r7zFcavbP3iG3MnenxFWRTc+O6nc7d8cxbCxV/o6l1PnhMGzijudP4pF/+7l8PpiK96DSqSAQPGv8+1gk0pUjI2DLa4uFMDdfku/xnWbKD2CPtJON6Z6cdx8e6DbokNZ1Jx6DK22QJrBkQbJ3yWcxad5pZoQjXRI9aDEwieYv1TDPQ6o6vd0okmfk53T57YDtKkm0uNZwQhyTJ+RyWBBg5rZkjl2qEweaTGJj+zWCaMXZ/RHcyw1CDeCmcRWnAkWRIx76qaIf0xVmKA7GsV3Go1QRh397MJyT+j1Q1n/0esdYDm38iKCM8oQlmzSBUIgh/CIFbjvPk2YhmtfBDWWo4rAIkfc= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9c6b905c-7e7a-4078-0c70-08da4eb42a51 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2022 09:48:13.8162 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: VMozsiVT076W5mOWx++xNy67gC2sozVfE+ruQCTGdn2uUSKX9SEKWtf7bLN+PgCwQIM6R/HPLoKuot00jJhN23c7IdKi+wAYZY6a6Wu7UwU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0392 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Set CPU thermal critical trip point to the system designed value, 95 degrees for commercial grade modules, 105 for industrial and extended commercial grade. Signed-off-by: Francesco Dolcini --- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi index c383e0e4110c..fb7bdf65a0bd 100644 --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi @@ -642,6 +642,18 @@ &ssi1 { status = "okay"; }; +&temp_trip_crit_commercial { + temperature = <95000>; +}; + +&temp_trip_crit_ecommercial { + temperature = <105000>; +}; + +&temp_trip_crit_industrial { + temperature = <105000>; +}; + /* Colibri UART_A */ &uart1 { fsl,dte-mode;