From patchwork Fri Jun 17 07:14:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885177 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 193F4C433EF for ; Fri, 17 Jun 2022 07:19:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PRGPfAAbHAhEA8mU/OuAKmU7OvLt+/mtVnUJfJ/0VgQ=; b=RT5s48E8wUYtve XVpGUfqGIM/Xvy9sA+9LjiTVgDAOttHZOLpT1eIpFA2Q8AdeO62+Axl5SuGdg/ijsJ+5PBDlUg+Z6 BMLxD7l1NnR3Y6A/mtgGx2TSbxZ3BUt+nvJejYMzOYT0dTrcu1+O8dmI2kstVjdR4vmM/Sefy3l2o b7u9njR5SHmEAVky2nUOmdXEJ0J6rfgEJy5pU2jPPyG/oYCBrAp5uj11hmrHR2sXIxS2QqxF3qAWH Fpebzac/OnHQyBHXED+agfTeaKKLsBLauULrSLm/9Um+NfQyB29MxEkUWOtwC7k9RZTZOeTc5yTj/ HUikGtv+VCaVDKe57oNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26Eb-005tz5-Ig; Fri, 17 Jun 2022 07:17:38 +0000 Received: from de-smtp-delivery-113.mimecast.com ([194.104.109.113]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26BQ-005sar-C0 for linux-arm-kernel@lists.infradead.org; Fri, 17 Jun 2022 07:14:23 +0000 Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2112.outbound.protection.outlook.com [104.47.22.112]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-11-vtkNLl0MNjWlE6NYCSBtCw-2; Fri, 17 Jun 2022 09:14:17 +0200 X-MC-Unique: vtkNLl0MNjWlE6NYCSBtCw-2 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0438.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Fri, 17 Jun 2022 07:14:14 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.016; Fri, 17 Jun 2022 07:14:14 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [RESEND PATCH v2 1/9] dt-bindings: thermal: Define trips node in $defs Date: Fri, 17 Jun 2022 09:14:03 +0200 Message-ID: <20220617071411.187542-2-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617071411.187542-1-francesco.dolcini@toradex.com> References: <20220617071411.187542-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR1P264CA0168.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:55::16) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a6310d4b-ea5b-484d-2608-08da5030fb95 X-MS-TrafficTypeDiagnostic: GVAP278MB0438:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: GEh68tqCZjv/A5tLd9S2V345v+Qu+jQmHP90H12m38Qwv3FUkEuBq4GM0+/8ycRbAqCPLTd54w4tIABs9NkktEvLky7T8tQg5EmNJ0VmTTaK3e+QDlUan1rXRvnyQk2+hrvarS72h0GqMF5thw8RJlGu7/EqemHFdcRdAFSgHyskGA8s0LKpuHXVVjGeRLVrNVrdia5to7E8KUyEK8yORZbB5EOjQRlJdIRleWp07A1QWcAhOCybnfgWVJlDH4Hrg4/Qt6KaXTLlWsRWoG9bDvpG181jogx6C5YvYIwAJziPJdzcC8QobFkjIE3pnhTwvnfBy0dbIgBGJmpNglR/tGQJPJQjZZxVCO0v3etSNI9ztWE68c11gkyEafGm/KIQcb32MpNGx76/FQvibKWMBRnoDAaOVLpcacMUQ2pqRKBQrUUluuYv2RjAQCSdVslFCUGSt1+/zZpsAYFv5GddgwxssavEcDXbQVDYhh+S4Ppuc2c41GxXngPokQqPY9N2a/HVZxv5cTgad2GKSls0JdLtjBwZx7tjFKkcaAIWU69UwYUxDjIpsoenH19uI7yPUzpiKLU3ZltEocRKS60YP+buQezfviIvDHw40CA1jYkqcsIpFGfe7NuWhBQCEfYRlimXUv8SsVoqkCVcGcebmwSntFyBYvsFQdwyUdfaNzKmd7b0DWYmVOeY3npNSoXW0FHVjtQjZgAT+f3j2i42Bw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(396003)(366004)(136003)(39850400004)(346002)(52116002)(38100700002)(38350700002)(6506007)(2906002)(8676002)(8936002)(6666004)(6486002)(316002)(66946007)(86362001)(7416002)(508600001)(5660300002)(44832011)(83380400001)(110136005)(41300700001)(2616005)(26005)(6512007)(36756003)(66556008)(54906003)(4326008)(66476007)(186003)(1076003);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: u2i6Et2EgTj1S8/WtUZoDD3lyR+eLgORnjJ+j+dY4E9Q1GXFv2AGt5QjqCqoKZEVHh4qUCe9p6K3zfw0nzWr3xmD+hSP8bxo1NbWU4BrqYOckwoRfjN04tJu/mqPfwhToMGnNSHy4cz121xAryJ9+ZvAiCHBJhEkpz1h6qzxkFnlrn2VJDtxunUH5xDjEvFSXbUMcFR9v631Qo7VcJ2a6bfqnD5RLI/XXjbmowgqjfQxjyjLr5iBpSF3ix3I4waQrS2vQOGhaPZlQdRu174dwJq0EB0tX8Z0XUFUeNdFBMhYS3fthpz+6ho7rzZwsoBXjo+jBr+fm0r/qP5wh0OSnkh9uY3MU5sCO3AmrHoz/VmuD+uLf+ZSr8zqZhO2qZwjIpLGV86G/Twy56+7J5OiprcizSVUEllM5FE3DERLMHp0P4MXySk9XvzDj3oJOI4qatHZ/UsOGJWlkqES3i/2Q4HLToNh1Yw+qCbJWAjsTYesjk5mMGSF/iN3QDJ7TheSEm3ik2BZJXfVq9VVMuAVNb3EKQCaiqw4qHFgnnYwUJ0B0rjRvVDfp4LOeax2QRyGxA/NKnivOm5qY/HYKXWyXHMCo4fXCQsEb+34RMzoNMEjWiggWoT0Ithu/6X7vg+PHQ6TCa4fFVoqrIXYX2bVLuFuXLIMhlJXPwKclAoIWBdqRIHvRClTMzx/yMJnG2sXz224TxQoMG4+AfoaPzkSOHvRbe+FPl/wGWDMcf9cnmXEPQL64H4pIalwq7p35u7dpXfmhS+R9vOd6yYxL308+8y3HBlOFpOvFsDzRROljhTv8pdQm7Dr0SjKnMum8Kp5aF//1RcIslTuUteflmdxxyFj2ZLlMb+SoNdt68JkZEu7anTcGuC8GldjCbjpqN9T2KpwmUMHquX17TevB4E2L8CpofSpKXAxlMCABCK9nfijmDDnaTZFB4tak/QT6ftGvCp+nnlw0JoYeAK7dr2vV85Qgq2qmOigqFnsmkatTDPbwp4CBCqBxUYPi/Xa7/G17W+ZAccooiC+OOXlJMvkGf3DpM3qUZJ3S3oVljGc4lDm47QIn6UhggxQUcN6bKiziBYYCZXl4z47qWZlpbbezKMNrS0Zn9TRzXlBTyDMz9HtI5my6frrHJ4PYgXAdmLcOZPXcYEywSrM/t/WY9Ev0EIJNGTJOkOLJjX9xdWYeUO9f/gRMI88XtNt/AL9s2loC690Rfv2cyt76ZGx02XhV85mHvaWQkkZYXOTVVvzmmBBqbxkWyo6Q64R4QGCloBap7l1lrr0R647s8ehWmCD4w5eCOvnDy4T3ztvdcngtHgRHvcfHR19iQZ/vFrcwhs9XrXMkanRsRsLImrZjvzk7shDc34hM/wwnpI8dJC31nMbWKYCne//P4fSsaawprycjicDEy5LMd6uVThbNVPCPbK2kQtnPhgyGEK2luWfK2szOVj1KRlxK/Lz+M2yj1X7d+vRunv0bBGecrtGh/2RhhMmHRsdkjKHSfFgxX4CFLSj73GDqyjeboI3B8DiPTNgyUgLSQTZazV7jJx6/Zd3w4mLi+RijFFmh5ZgbDoIGcBNXV1a1qf1IqCq/Mf1TiSoW/MlnUMM9g3FQDlNKICB8oxajUfkK1vRWMhCC0o46ZvWo3W5n0pc4nps08tKfnu1CUATG1FlcEUP0atOvcaeBtXX4sc7E+4Kx6I64qk0rN+eUzL5dTmA5psPRIRaQl+w1dYEab/5MMsjsdQsg7ioCq7TmwFiO5T4NtIVv56HyoY= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: a6310d4b-ea5b-484d-2608-08da5030fb95 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 07:14:13.6948 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: WLNgkCT6eXpwBoZsQ8zSmmE5Z6bhl4tRxJLCbV7/EgegYwy9YPuR43HLGHdJVRwDeu25f+UC/fO9JNp2jiPefrTf18Z2IMr/Sr055zHmmfw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0438 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220617_001420_737303_F2AC07FE X-CRM114-Status: GOOD ( 14.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Move `trips` definition to `#/$defs/trips-base` and just reference it from the trips node. This allows to easily re-use this binding from another binding file. No functional changes expected. Signed-off-by: Francesco Dolcini --- v2: no changes --- .../bindings/thermal/thermal-zones.yaml | 130 +++++++++--------- 1 file changed, 67 insertions(+), 63 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml index 2d34f3ccb257..ba84233d20b7 100644 --- a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml +++ b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml @@ -10,6 +10,72 @@ title: Thermal zone binding maintainers: - Amit Kucheria +$defs: + trips-base: + type: object + description: + This node describes a set of points in the temperature domain at + which the thermal framework needs to take action. The actions to + be taken are defined in another node called cooling-maps. + + patternProperties: + "^[a-zA-Z][a-zA-Z0-9\\-_]{0,63}$": + type: object + + properties: + temperature: + $ref: /schemas/types.yaml#/definitions/int32 + minimum: -273000 + maximum: 200000 + description: + An integer expressing the trip temperature in millicelsius. + + hysteresis: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + An unsigned integer expressing the hysteresis delta with + respect to the trip temperature property above, also in + millicelsius. Any cooling action initiated by the framework is + maintained until the temperature falls below + (trip temperature - hysteresis). This potentially prevents a + situation where the trip gets constantly triggered soon after + cooling action is removed. + + type: + $ref: /schemas/types.yaml#/definitions/string + enum: + - active # enable active cooling e.g. fans + - passive # enable passive cooling e.g. throttling cpu + - hot # send notification to driver + - critical # send notification to driver, trigger shutdown + description: | + There are four valid trip types: active, passive, hot, + critical. + + The critical trip type is used to set the maximum + temperature threshold above which the HW becomes + unstable and underlying firmware might even trigger a + reboot. Hitting the critical threshold triggers a system + shutdown. + + The hot trip type can be used to send a notification to + the thermal driver (if a .notify callback is registered). + The action to be taken is left to the driver. + + The passive trip type can be used to slow down HW e.g. run + the CPU, GPU, bus at a lower frequency. + + The active trip type can be used to control other HW to + help in cooling e.g. fans can be sped up or slowed down + + required: + - temperature + - hysteresis + - type + additionalProperties: false + + additionalProperties: false + description: | Thermal management is achieved in devicetree by describing the sensor hardware and the software abstraction of cooling devices and thermal zones required to @@ -105,69 +171,7 @@ patternProperties: 10-inch tablet is around 4500mW. trips: - type: object - description: - This node describes a set of points in the temperature domain at - which the thermal framework needs to take action. The actions to - be taken are defined in another node called cooling-maps. - - patternProperties: - "^[a-zA-Z][a-zA-Z0-9\\-_]{0,63}$": - type: object - - properties: - temperature: - $ref: /schemas/types.yaml#/definitions/int32 - minimum: -273000 - maximum: 200000 - description: - An integer expressing the trip temperature in millicelsius. - - hysteresis: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - An unsigned integer expressing the hysteresis delta with - respect to the trip temperature property above, also in - millicelsius. Any cooling action initiated by the framework is - maintained until the temperature falls below - (trip temperature - hysteresis). This potentially prevents a - situation where the trip gets constantly triggered soon after - cooling action is removed. - - type: - $ref: /schemas/types.yaml#/definitions/string - enum: - - active # enable active cooling e.g. fans - - passive # enable passive cooling e.g. throttling cpu - - hot # send notification to driver - - critical # send notification to driver, trigger shutdown - description: | - There are four valid trip types: active, passive, hot, - critical. - - The critical trip type is used to set the maximum - temperature threshold above which the HW becomes - unstable and underlying firmware might even trigger a - reboot. Hitting the critical threshold triggers a system - shutdown. - - The hot trip type can be used to send a notification to - the thermal driver (if a .notify callback is registered). - The action to be taken is left to the driver. - - The passive trip type can be used to slow down HW e.g. run - the CPU, GPU, bus at a lower frequency. - - The active trip type can be used to control other HW to - help in cooling e.g. fans can be sped up or slowed down - - required: - - temperature - - hysteresis - - type - additionalProperties: false - - additionalProperties: false + $ref: "#/$defs/trips-base" cooling-maps: type: object From patchwork Fri Jun 17 07:14:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885179 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 79DACC43334 for ; Fri, 17 Jun 2022 07:21:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=B806UdpnNHidMP/CNfqh71xOh8udGlZFPY+e1bF9Mn8=; b=gRUvBOXVUgLmZw axgaWPyuTZJkN3zUVC5qOqr+YkUV6UfLOJcXa0lzc6R794ncvkvQmim+Fiiery213zFWpVzIlz04O q3goOjlpCk7zBYNmNaV1MYt1YSN/CeRMcWVzX833RxqNJv9Pffa2gkTDABuNB28+K8IsoSV3NVihM jFoFSaT6xMG3u5tgoOBGOmQLGz4eljg9tvIGqyPd+Q2HJYR8KDUS42B+byVgLH2orenrltApJVn9R +GxmgHHDqLv8iZWBZynFWt4mSEVGBX5SEweRjSHxjGPnFvv4gjS/Mo30HTc3Qkt6eXkKm4sfIbAA4 A1pwkou4dc0LyVifao6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26Gs-005ulf-W0; Fri, 17 Jun 2022 07:19:59 +0000 Received: from de-smtp-delivery-113.mimecast.com ([194.104.111.113]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26BP-005saH-8W for linux-arm-kernel@lists.infradead.org; Fri, 17 Jun 2022 07:14:22 +0000 Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2112.outbound.protection.outlook.com [104.47.22.112]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-34-GHOpG-1qOf6KL5FIBHnXfg-1; Fri, 17 Jun 2022 09:14:15 +0200 X-MC-Unique: GHOpG-1qOf6KL5FIBHnXfg-1 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0438.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Fri, 17 Jun 2022 07:14:13 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.016; Fri, 17 Jun 2022 07:14:13 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [RESEND PATCH v2 2/9] thermal: thermal: Export OF trip helper function Date: Fri, 17 Jun 2022 09:14:04 +0200 Message-ID: <20220617071411.187542-3-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617071411.187542-1-francesco.dolcini@toradex.com> References: <20220617071411.187542-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR2P264CA0142.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:30::34) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c3518745-29dd-4b3c-19dc-08da5030fb44 X-MS-TrafficTypeDiagnostic: GVAP278MB0438:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: txDlX4ieZlW0vXDXCkgTRWhOCxsivL+rTIycqZusuXiDgnb14AcCJ+q2MSRFMTnRE5cyEGbEiAoBLY/kSx0eLF3OA3Z9DVXh5FVrOQ0bu57vRXtexW4xG12gBCMgGuk9i4UsXh4+G2cDtQT+7MMWI98HdeMa36f2m1Gixrvr/90ocW7S8fx/9D9RUOHjxj4e1bRsMERWb2Gfof4xTxQPIUPsfAAAd+xVZ0PX/NhCic/m80YCsUcZEsvndtT2Onz5F3q2cl8i3G//Cycdlqbwg8cLUGEtEfjLI9rEnJakIlU2Yz3GSowmkIsULogn8bCNcLKbRGwDyrULZ991q85Y6QK446Onbj5aoo+DP5YBdrggjczZ6mjI+lg8XLhZgjcerdbrl9SjgNVNwh7Gb15+j4efSZ6Iwqm7GFqlbEoe1uF9MZSeh+5OJmHR2ggTj4O0pTtCA1tYK0DeMbZtXVyyjtLenfg4Jln215sBmzb2oZBLt8hJxhDHgcOPqaPu23qibbGhDzpO2JRuU0KTUPqw9RyrEbS2IBQGDFwuGEfJBS7nyoXY2QBhCqqC/3HpZY8q498JPsK15s7PwarqSYd1HQnD9upFGTrJj81SN4/TyqHeecpEaZhgT41ICQraiAhZqrvo8ivHLj2hE6uR696H8qg7GX4o0muykrrZvS7WY8kf5XPnM7642+O+50OdfQM7qSWiYbrv3IzBet1RYT+XPA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(396003)(366004)(136003)(39850400004)(346002)(52116002)(38100700002)(38350700002)(6506007)(2906002)(8676002)(8936002)(6666004)(6486002)(316002)(66946007)(86362001)(7416002)(508600001)(5660300002)(44832011)(83380400001)(110136005)(41300700001)(2616005)(26005)(6512007)(36756003)(66556008)(54906003)(4326008)(66476007)(186003)(1076003);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cqpGMR6/vrwmQMFlFoaOVX2ukogGuOsGFFNYIsUkwQWwS0t5UckZqbMn7K26L3BjAbtRsuSU+7r5JkmJCNGeAjM6oEOTpq2VHzAxDrSOXUzI9yoru6uBrXbsCEv+y/AtTGrrcrf8qYpJgzwrauD6BnJ8RkYcEAz4WXQqheZkRiuxfTFUKQRnjslWroPzIvl6IWvLbiaJvMCo70zTwFGDQyQQGLk/BQlaOSb/q2k90Lk36boHeQ9w38WEQDHNatdEFplYrn7y6EOupixFoIiCo/H9zfwUQ9jy3An4afqCx9rEgMun5sC3b1vil33a2BEEXrzNTCyrCvO78+xU8RyB3AbYSRopfNhmKxEDmbcieqoVLzxU8N6ZABtiZjxfx+J5/lgNQRE3xPegSHce3org+yKrJgsP0EQNF/+DiWGGlEn1wiO+8U9TjCSHm5BCRLx85rabiD5qF2dwai8bbcLcPeGZg8aBpFCkV69Ce3f0mGwIRW+aAXGHxUZee+caOetlTDfZplXFNA1yuDJZwn3va6VjxgGnEnKo2A7Rd4zUBGXZnL5WfCbVl9/iP26pbOXVo9lsulb6MJB7nJjme8v1TL2Ep+sP92atTxT6pZxIqR4OTZHFgnL+SRJQIct7TNtE/Z+3+STiAE8lc905rg/yEz7JRjWg6i+G9ZWLoU8DakuNYWFIULia6VX7hba9D/eTIrspfNLnptVI3FvaXuvoqhIF7Gcs2lq8VZ3BjqHkQ/jrBMBWFbZbyvbJoKtiPLApGxdig9+GdO6XlxwBdKuuG4tvsqRqYfVB+Hhn4BdDsF8YoSkndLGNK7mNrBqMczfha49JhzQYS1bZdOYzSHfJji3mFkZHXtOymB8JuVQDjAreR4d6m2BLtZ53IxNu+T/1HFwkB5q2+upDdCCglAde6DQ2XaDafSXYOc2AsSz+eg7GfOP0ZvFvYKdETdt4jwlBoyscYwe7ZxPdUK3dxV4huAUWcxKiX46corbwXSMCgnGum+hVlynsYylnSqV7WMS6e8kDX3+vKTIJV80DibHfBNwXxQ8KBcLhQpzNPsYlK9aFSVR/HQRSyp8vAvTrPKl9vjmcrFO64KH5HDtfTsTgWjTqeB5732CvgwicTb9aVhp0cDi++6e6VVg37xVWj2ATXxZtcOvcG0yBrztZVxPfNuJm784Mzgsy2+ksSxGNkyw+GSXLrTko4TmeL4ByL/qdsUoJroRRQjGcBJiQ263UgxVbFTI6WCXKty4MCIiD6qt6QVWQKjyj1ojwuJfUbaJQSWkvXIv/AclgyyDUQ/CDV+ZDol62vl3raGKcV3zdIfYAPrsGAP3UjEtUSi0hZNJ6pVbDboIvlgRjdTPQxe/c0rCCe4BulUYU3SXCsXF5lnD/+P/F5/D7dbnDjtIO9bmovcCpg/qpT44OBV5cwSuYuZbz9Zoc6xs+DmUPCXCBCvUqsiEFg2Ouzo2RM7Ge3BOVxvL3XwiReCH16KCwmPrKN/ffeEILU9UPDV3wMGydM9FXDtAIJCWkYVegHCxGHLNJyUrJ5pMUTqvCqqsL/ImmXtthSVUBmcFtstOViU+L8GyJDxp6XYzJKwR/htgisOX34HumHY4icButoIvk2VBUnMq4ZCNPNP3cN6dxxQNbExY0oa1SCa9B8hZdMmhSi7soUll3soDykhoJnUdFaDpsnfj7pB6bo2IVIbmt+L5/XMRm2VRyj2VpU/+FQZF24jtSJfquCyLWpFlfPAvvhqYlzqO8I1JwB3RRhx7rUg/qzzw= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3518745-29dd-4b3c-19dc-08da5030fb44 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 07:14:13.1949 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: xymG69DaySbuhFDtTrU3o/NdvRaWizLH+H0t5/OyasY1Q2kNjbYk/YSOsZbZfUvTnchnSrqDuOkla/hSIYvYnIHqfeqrUVvOS5lIMoZNi10= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0438 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220617_001419_653447_5E5D8658 X-CRM114-Status: UNSURE ( 9.81 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Export function that populate thermal trip struct from a of node to be able to re-use it in thermal drivers different from thermal_of. Signed-off-by: Francesco Dolcini --- v2: fix build error, use EOPNOTSUPP --- drivers/thermal/thermal_core.h | 7 +++++++ drivers/thermal/thermal_of.c | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h index 726e327b4205..7d429d299d82 100644 --- a/drivers/thermal/thermal_core.h +++ b/drivers/thermal/thermal_core.h @@ -155,6 +155,8 @@ int of_thermal_get_ntrips(struct thermal_zone_device *); bool of_thermal_is_trip_valid(struct thermal_zone_device *, int); const struct thermal_trip * of_thermal_get_trip_points(struct thermal_zone_device *); +int thermal_of_populate_trip(struct device_node *np, + struct thermal_trip *trip); #else static inline int of_parse_thermal_zones(void) { return 0; } static inline int of_thermal_get_ntrips(struct thermal_zone_device *tz) @@ -171,6 +173,11 @@ of_thermal_get_trip_points(struct thermal_zone_device *tz) { return NULL; } +static inline int thermal_of_populate_trip(struct device_node *np, + struct thermal_trip *trip) +{ + return -EOPNOTSUPP; +} #endif int thermal_zone_device_is_enabled(struct thermal_zone_device *tz); diff --git a/drivers/thermal/thermal_of.c b/drivers/thermal/thermal_of.c index b65d435cb92f..dcd6571a3871 100644 --- a/drivers/thermal/thermal_of.c +++ b/drivers/thermal/thermal_of.c @@ -817,8 +817,8 @@ static int thermal_of_get_trip_type(struct device_node *np, * * Return: 0 on success, proper error code otherwise */ -static int thermal_of_populate_trip(struct device_node *np, - struct thermal_trip *trip) +int thermal_of_populate_trip(struct device_node *np, + struct thermal_trip *trip) { int prop; int ret; @@ -849,6 +849,7 @@ static int thermal_of_populate_trip(struct device_node *np, return 0; } +EXPORT_SYMBOL_GPL(thermal_of_populate_trip); /** * thermal_of_build_thermal_zone - parse and fill one thermal zone data From patchwork Fri Jun 17 07:14:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885178 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 08F14C43334 for ; Fri, 17 Jun 2022 07:20:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bEsodBb0YptPFfYRPGWbGeIJnYrT1AbbnXMkrvcyzkI=; b=cDtAP/TlZwevQ5 26HaxxmiMFm2v2H54xyHetYAwvWASQAJj7UjGODDkHUsZ733MxngCoh+SLdVzpgd1BkoNjgGV3tAa T1DDVj4ngq51SjYVMa2t2cfJSqEtmMsXTdmp05U8+UYkK0KjYz4GqLSokwsQq4hXVPRYV5QtZSr4D zS31b9kQaOxIQFn0/4a3LOq4ziXmuuQAktfU2t2ULcdt3FoTRfZ0lwJ9TVGUUYLHI3MGTHXbOqOQH KkyzVJG3KODJm1gUOe+E7LWbTEb/cPAyaC8M3EXOUqsc7pNAFytOI2Ctg4IXyTagecTqF0GTz6pwQ lSJlO89hYEVcb50Y3vNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26Fs-005uRl-7B; Fri, 17 Jun 2022 07:18:56 +0000 Received: from de-smtp-delivery-113.mimecast.com ([194.104.111.113]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26BP-005saO-DF for linux-arm-kernel@lists.infradead.org; Fri, 17 Jun 2022 07:14:22 +0000 Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2112.outbound.protection.outlook.com [104.47.22.112]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-34-e44_sS4TPWOU68I9wyiL2g-2; Fri, 17 Jun 2022 09:14:16 +0200 X-MC-Unique: e44_sS4TPWOU68I9wyiL2g-2 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0438.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Fri, 17 Jun 2022 07:14:14 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.016; Fri, 17 Jun 2022 07:14:14 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [RESEND PATCH v2 3/9] dt-bindings: thermal: imx: Add trips point Date: Fri, 17 Jun 2022 09:14:05 +0200 Message-ID: <20220617071411.187542-4-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617071411.187542-1-francesco.dolcini@toradex.com> References: <20220617071411.187542-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR2P264CA0016.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:1::28) 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: 793f2309-754d-4018-de32-08da5030fb48 X-MS-TrafficTypeDiagnostic: GVAP278MB0438:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: jKYECH2k5onn0rCadqheGsmHZmMmP1ZKQEfQvXSHaRHu8S1b/SOQtddks93aAxWNc3h7BYiel0bmH341A9pFFKrZS4cPNgL40FOavP1Mghjfyd4iZXfLUwA4//FN5Jq8gRw9Qzk30rg8TpZ93ASo4LkYvCx0vpN/CBOA+ck4hlP4bnRqgnzHtLj/z/1UqwM++lrzLqkgqO0f1kLgPsN423MKQFNEHkXPQiBZ3neXQ3Hh72l+V7aS6IWRkm5L7XkJZTCTACBURxtV7QQHlA8GICE1PllgAlFewdz6teIGMnVSxBIeVtnfPrLV53Hi4wW+c/nI1KwNjqoA2QvT/VvcBVVEVgMfGJNnUbDKJ9jOyHu76EXy/TYMaGDMBxS789jqs5u7x7260k8p2WAcwdkLgpkBsVIGptANe+lvIWALH59e5nO8PTezNAqBGpqOIEtn8SQGL4et0Avzdv0obOJfM+66z3yz9IWidspAXKBm9ajHNXSPo9kOIXP1kVR6D0EChuocPnZckSLjpfFE/ih7G3otFHtRN3Tazc4MD+KiS9rqPhpq6fY8ln5qKThCctNSOHy62Wp+6azrlixEP3ic/50bIoSUU2xyWAmDXrOoOY7myqYOPAUm3s4DNjaYGQAnY4zMOY1/BpPou38lkSD/wdf1rWCMh9LTz2ns/c7W7kjuLMo1s+XruPqH0qltWFh9dmdnZoha8ifwe6//AYXfCw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(396003)(366004)(136003)(39850400004)(346002)(52116002)(38100700002)(38350700002)(6506007)(2906002)(8676002)(8936002)(6666004)(6486002)(316002)(66946007)(86362001)(7416002)(508600001)(5660300002)(44832011)(83380400001)(110136005)(41300700001)(2616005)(26005)(6512007)(36756003)(66556008)(54906003)(4326008)(66476007)(186003)(1076003);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: P+/l+88tQ0cvgcfZlS1Amql5F5LaxD+jdcuDGE6DVDdxTjsM5gTb7UH/sUMYt8apLSrv5DLsEzF8ZQRkssFmKNdrMBTg4XVbVWvnxhC0T8S3XRG0stERnfgWK7N24RKjHLvaFN/4Lec5zwuZwLRlnzCSGfkl+sMOvmR2P5VdbSkeKZKYBANOsc/+4f1IwXTiuD+gz2qTlmfFUEAnk9JhiYkZh5Am2Teyh2f6uAkGtytMER3R2cvUdwCvP5X+aVFZnPGMoVA6m5AeR/nA68WD+PXYtIrGHr5Gjt8pYbd3eZ4fBIhGUg2JGKmeHh5PWeSIdG9VFRGIH/qEglAJmWvJYFi26MgsBASBW/sXvhiUpp9RkP85ARGs9oWXC6BxFn8vvRc/QINpvk1stRhb8VF2Cd36fePkUP0hkAV2QAGX+O6AsHINqqzfiQsfdT2Hwn3NBA13+eJWdh20OG20dfCV4lToP19Pob8egnaVXQ3ZVmZN+fHQWiB26T3ElAkDh9XrpsiYD6KvLrnRVKx2JiBssHfhILpqFEaB8TpsMLKJo5yCk3J0huglISQevRVs5vJcin/EHx5aXHWz9aGIRv4lQNDVQ3o+woEfgX6OCcXS1jBmq28DYeLIQkCi+ka3Hwgw7JzbFH/QZKXO+wmm8Y7BWYlrC7vbjGJ3zonSXYtIgw8jxpwCXMacMjnOEkY9u0Ly42djzGA0wRQkX6hlw3Rj9Vb+qbNpl93kdY7BB70Coeq64K0B2XbIxBIxATUHdJeSnilQPsGhZCl6tcdfq6nRB/LVEu8RoZggP+vlaRS4GFaad8UTKaOFJa1trL67pbqqWGLf30+DZsxFboze3fGJd1FDvrwEfJDBQzBYgGrPvbuOZa0PpPh2ZCL3eNaBxZjEFmLFdrHgAGGnM0D62t8SilTpgB9c14j3r2KjNFCYrHuCQxJoS7yAV07nokT2ZGvFLR4bRlfbRDVQO5i9ikg4+RZAbftRuo4bp76bZuX/RCx6KTBf8w7f7I5dRaBp5ikcnHmsclMrGMdFvk7trXWej+oc60BW49qS8b51FLQAi+bHAQMbHqeFPKGEB7xtAksFwGveCt7vJRt7WvNrjuViRL6DAJUxjFB3LVwAuWIigESMIMv39BMuILSnjN8fW311jly3SAcvKwatORrcGH5hUgoPGDITUDcetaq37GtlbVIGSMyT1e6Ufe8JDsPomTioUy6w/suUmQ8vMMBgDkkNophiuDFOfYkOMDu2w3TcobyrBVKcFPZIcpkZNQe5nhPWZi5RX9ms784AIyDWE48CsPbVJa2NKoYfth2tFQdy2PcIC6aDv5XCsS/N5AJD/FWmfwRQaGDSHE1E0PjhLIb4j0bXe7Bi/SbhT2AFHvMpk72W4NqdQInU66IMdVxS/gw8QMlpylD+Yp4icRqn/4tVdmwxC+Qp7RNLYR0B74koXyRobO0XmX3inl2F781eNpgakwo6hI9hxwa8/AGf1h99HW5dsOkKaSTleolY6y1xxVhgrCl8OTNyqs+LzJvsK0iLcvTym/gGS0iYSDZwLcbNklLpaE1XAt39+vqcjyqgIfKj27KSRw62uXDy3XEkgdxpzd8oyv90iNUnNkDP41nxwsld21kIGVepieU/55oiiVJLWTEnurmiEUGOm/89BHLsySqaSwNhY0tky7b+Ast0+1J72WAqWbY8HQM9G5SZQkPwwEb8g/Zg0ilfDcknM+vfU+zg4XLNt/qaL1NuY5J+GGC2qSg3DHs37w3wKUPMlEk= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 793f2309-754d-4018-de32-08da5030fb48 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 07:14:13.2417 (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: cZuFOENv1yb/Iq0SoD/GaRxMPiG8/3yanZAhN0FWkjOMM0hAVulNhMTos7Au4d7f77PC8W2mPSPwYUwXvnEdDA4T+LlaKQhWhoOzWwNsPAc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0438 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220617_001419_826460_DE95B847 X-CRM114-Status: UNSURE ( 7.30 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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:14:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885185 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 88BFFC43334 for ; Fri, 17 Jun 2022 07:25:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iFyTqB86mtw1fELsyIE4UsWh6b6FE+LIPiunIB47OJA=; b=cpJbZNIGDcr4+I Ol6KRHbV8Xcin4YNHNOpGbff6fjxyWq4YWjDM6U8p9QmF6GFL0JjZ1ZG2zagrs8mCR145f8PFuC2G T66sUsOs1wwLN+7CFgUkePPhD4dHadE9tF1yrXm5TEY9wS7bZ4RAzw2abINnDb5Rnotydq0frJg9d RtRLY7tQRWo8m02LQa8+xRGjagG12gM/CWugTttTl9OfYFTmIc7uqw0WxwqHw98YzLu5xauyEWSld RruhDzqCl9GlN10vsREmxHydNXKlsr0pqa5vjkNQzecWVM7YqcXaefjlR9djtRSUsxUAC09IqdQm5 RSgogSMujT3ReS1hmteA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26KL-005vqx-SJ; Fri, 17 Jun 2022 07:23:34 +0000 Received: from de-smtp-delivery-113.mimecast.com ([194.104.111.113]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26BS-005scU-Mi for linux-arm-kernel@lists.infradead.org; Fri, 17 Jun 2022 07:14:24 +0000 Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2112.outbound.protection.outlook.com [104.47.22.112]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-34-Uz7mLjrSNSydKNOMOzBtkA-4; Fri, 17 Jun 2022 09:14:19 +0200 X-MC-Unique: Uz7mLjrSNSydKNOMOzBtkA-4 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0438.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Fri, 17 Jun 2022 07:14: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.016; Fri, 17 Jun 2022 07:14: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: [RESEND PATCH v2 4/9] imx: thermal: Configure trip point from DT Date: Fri, 17 Jun 2022 09:14:06 +0200 Message-ID: <20220617071411.187542-5-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617071411.187542-1-francesco.dolcini@toradex.com> References: <20220617071411.187542-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR2P264CA0188.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501::27) 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: 638b06b0-7000-4645-350e-08da5030fbc7 X-MS-TrafficTypeDiagnostic: GVAP278MB0438:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: q/tYp7sLaM+sP1+vT7QWFYqbVN7eNdzuF1G37PvyI0UvEIF3AGAgWIX+Tcm/nAyeW8H5ARtTmOfskdoK6Yk4nQ1eNOwDwczpgdZSWtkSBKinx9JLqyiwiRtcdNAAji+6tslEJuUiC++kbbyVq50RmlJh7gfiDVvm14j+/RrTKzeeZ4pmk8up663cz8WLCjHRmhst54joDFNoK+A65ABP01WmlRAxmXQxJZ4OrvE1Tz0DSGXDilGQk9k41917+TaJpeSHwxy459n1F8RhEj5wD3ZxyHc89DQNQfK+rdmH5QDFPgf4H5gqhc4LltnriVqW2FrCStf8ykaC7C+WxfcSMJMishG/WXf/jCC0/DZvgUmyzXM0T51rxynaIsgzJPVKHlYhHHMl0hlEJ5NzuHdQw7pw0AZC3cfYn8qAcT8xkRSkP0RbLdO1Ku222NHxopkfkIXjmxqx94Ff4xXtJuVusI2js5iiAJhUz0eSo3gg6NqxCThXhLbPgE3hiTdNEztTLdctJlF/YyCVY5r9kzmScJET4lXJcdW6EG4ITumjvsBDXctBL3qoysuQEknYKLl3DSxEZHgO5TFvTG/FZwIdfds2ZuevIU1yyr2xPq+owhR0/XkT2dyoTXKCyZev0t/OFNJtVKS8FhaiB2mfMIMBouUBIjUDhF3w1NvyqvgmlL6OhqZ5XYQqRmh0DI/K8PBhBRvYmtvgSDt4JVXL0chsGQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(396003)(366004)(136003)(39850400004)(346002)(52116002)(38100700002)(38350700002)(6506007)(2906002)(8676002)(8936002)(6666004)(6486002)(316002)(66946007)(86362001)(7416002)(508600001)(5660300002)(44832011)(83380400001)(110136005)(41300700001)(2616005)(26005)(6512007)(36756003)(66556008)(54906003)(4326008)(66476007)(186003)(1076003);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VYYuuc7AMDDmDsAe67J+xV+/6W2kQmitfSqKvm7yk2Lt/Oa4sb/ji4LSU9JnUyiAlKLjABaZt+vfPifpvY/iT7DSVuFulRBf/F6ooF/WEY5udTt/S1OcF4+t6iXg7HZ/FXW3zuOPYBMAktU0KkofWYWak7KrHNneFfyMyA4qc3J7N1FTlJoVvZrWspqXSOAzMQOJWzvI3U1Mf+CFQM4KhGuXbLmU5GBLv37FsXPctCJnHJA9Rf6uHnecpXrUbUUoueqZAbTRrMNFP/8daSSXHZr9BQKbHoafOtwyRiR3BpGGgUo6IgK52WNyD/jh2XUA56N1X1Ljt0byqUq0KvyoNBKtEVb2ABIRfD2oYC/QTdcrjkU7VOlQ5vf/sCIPPvLrfurF0JODqdGzui/epbGy+CxTD+kJjhw6YQ/TpmEk0vkWNbzIUooJGTGGyPRhuD7pSIjgTBiqQvVoBXQN+Du2ZwWVvA7+RKzly0iZudt+KvD01wXBmgP8XW0ZDEfLenGw5lla1tU8BMukTSvErh2ReAm/YJmes5mcT1eoTjBVBv722nwoEcf1ADTYSSyVYxNdNx1I5mRF8MQy+tCs5VlvTbc2/g1WCBELNaaBlFJ4T58fiPLcwrmk7hcFoKM5wfCe5S/Z5ZgV8c90abui0lQhIRrk/ywD754cbiP7X9pvIZ5NaVfvzu6wz9Qskb+/WKLXAt0llXBNxvgoFRB55HsKs6QhBdtBC9dPSUrKOmAdW9gowL58YQKfxPljl1/RAMGmHRHGk2yYomrEkmOvdZhX9XHgbIzAxtoALyiXrdckt/5E0+Drou7xOI1Lox8LHrdTEOdUci8xCZIl3IUjUfdYS8NQtKbiEwx+WjyE31GJJm3wAHfyb8041gxrjVIz2YtUcj4YHGW4aOgJM6fk++NwRAOBquXJ8AbvEvhsZJHn9dQCDNkahPG9DQmo/CAXjvEOtdzqk+4/IOi5VUNX2D/mIR2dqrxIDdCjj/pZStj+bTnfX8N/O/AeQa2kb2EEtVS5AzJmoCQoRllJhCw7wWHbYQ0uykz4Gxa0ohB/A8btOUPqBFs9xpCxXVAIVgryz7fwKll0c3NVQu5RO5utM0EegQmsxhQkaecjKGGSMefMhNQIHveZuuajI9RWCn6RAIQPblm8Bw9x00GEWz5TqL5cfGS07qGEM8jfIEd6cBmzBA7NK7T+m3RieLaqTzfqwv6E3F+J6ZO7xM65WAinn7K534ZqNmyhCGnbhmS8MzUAbbTsL8pERRDczjobMVbWi0tSqUOPWbuMPgx0ztWecpHmCQ/+u6d9Y411nowZu4YGzUpbW1qStFx7tInbgYHp5nlOHGq7DMy+q33oUXzzxKHpImg3pmryCe9RfZj4Ae3VU8x4DXFuw859k2oUAxXHTjCIwVppN2CmkayVFyWUSV6i/ZRWUUQ/kjsnJy2cmntFsQEIRR73AtLTQlebs33eohEGA0MDYRiYMj94GnYDcZ+hRoXZdG5T6DKRc/pYAz4EmyIDauJqLpPCaVZtbDMN0PpodqbxBCSrvx+hIP7IYzJ/oIuBcFyBA5WVXIEryXfHLQgRjXk3nhXRDf5JYGJtsHEpSHKsrnc+ghYp+Ix7G+9w+m1P4NlJoiQTFLDxOhhsfrDd46yZDor8j8/fQEpPe9e5EUWSoug68WJJYucd47w2GbZ1saZ2N28BvaZJ+wUk3bZ3K8mdBXAj9deElU5rIJwYwYlJ7tX3gWg/6fWDZANNCHTfjOM/GceNH7pTdoe+WsQ= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 638b06b0-7000-4645-350e-08da5030fbc7 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 07:14:14.0396 (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: yP/YPN6rHwvEZW6k41vlxl0SWujoN6iKgni3gtBLLU9KonPYPfl5vA/y4o4ORlSuSUKU1l0i/IRdQJKFSb+9ANEPLi/PFvXguTWQkSkfQYc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0438 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220617_001423_086716_B2ADB431 X-CRM114-Status: GOOD ( 14.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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:14:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885196 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D8392C43334 for ; Fri, 17 Jun 2022 07:28:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HvDyM4+cV2mTEzofJF9maSgKK0eP5hVVD5nagf3Bfi8=; b=DowFPSo7P4aDPQ Mln5pguntoriVp5KE0VVn5S94spdS43vgH6VnsRwXACFocZtiFf+lPXWRlXA/sf8YgTi3rsxQWlcx kLiXR5adywFQ9GXpr+Dc4B72vtifzGuy6iwHxE5A01MiE3m/KAPDB9vTzCAn/1fd5gIxbuxIWa54R AWs7aIVKqjgq97xfJXx6qx3bG/CkMGJwLU51jHbvBTYclhdsrDD8o47KItBRw++3nW/TXvi3lCjI9 3KtlvbCOVE5Yynfw3Bdd8OjRDar5+ZSydWkLAtXVs/Qu4AGHmLlSj0yqoINjVODp2GqKikuDvFP+P 9Xsxsde8o/ssst+bVtqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26NN-005wnZ-Gi; Fri, 17 Jun 2022 07:26:43 +0000 Received: from de-smtp-delivery-113.mimecast.com ([194.104.109.113]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26BV-005seB-1h for linux-arm-kernel@lists.infradead.org; Fri, 17 Jun 2022 07:14:27 +0000 Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2109.outbound.protection.outlook.com [104.47.22.109]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-19-qacQIvEIOVe0vOo7h3zn4Q-1; Fri, 17 Jun 2022 09:14:18 +0200 X-MC-Unique: qacQIvEIOVe0vOo7h3zn4Q-1 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by ZR0P278MB0347.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:33::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.14; Fri, 17 Jun 2022 07:14: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.016; Fri, 17 Jun 2022 07:14: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: [RESEND PATCH v2 5/9] ARM: dts: imx[67]: Add trips points Date: Fri, 17 Jun 2022 09:14:07 +0200 Message-ID: <20220617071411.187542-6-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617071411.187542-1-francesco.dolcini@toradex.com> References: <20220617071411.187542-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR1P264CA0164.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:55::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: c2e8494d-a88f-4636-1264-08da5030fbd8 X-MS-TrafficTypeDiagnostic: ZR0P278MB0347:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: JtenFEof1ai9LyMADGPuNWXLe3Bm/VBDk2oVtj+1Zp/JeOLeTjDoYdu7jzF9IdFM61jaM8geKtwr1LqdAqvzUhDUr3pCIHM/Sr09K56aAw70vVbNMa1qCZ09hfNMkWPthxgJvWS3YRljf8RpTX5Z3LQmF4vpJHC9eDGrsPDWN17AA1vx2KqDoGtiuYgS11zYfrgkfy4+QlP821JcGiZ3UYYmgUWevf78gKY3GztVjgj+ye5uPakBnNb1Zch3sDDZWit0/qPIQQkV+Rhey/IZwrKywPnk08yYLrDLjTaQ/LSFvNu0zdhYHibjcRHnZ1jU8YSMC53ht9US8HGPp9PmX+kykC4Ha3dbcsjenDjAo7COs1Hu1pHd8Y0eirreSFFuk07sZj85M1c1xqaiXye7/H4HxnIBQh3JJFdzDOnyEc3AL20M5VK+voLcp/4VcMBDZfCFEh2lrWCqEzTqEJvU80koVJVw82KugH0b+udoiAzHPY/vCLmNHG9Lj6bMKwnbskFHBMZg8egrOXaJAA77O3QPu8XFtxfFdEJ49YrQmA0YTrNehy9m34Repl8mGNjRM0u7Mfnmu2RUrQ6h6xS/iOfOyNfyNAEI9jxHgj+jEIR4ehxgWTa8PKJ/IJjZjt67U47OnZ8M0+RjGTnJKbtd8egs/yyBL2HptDmkUlD2Jhz8b8Xsq+kwnZfz3vX4kcjU01aeDHkxr5eNhfvzKHrGzw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(136003)(366004)(39840400004)(346002)(396003)(66556008)(2906002)(36756003)(66946007)(8936002)(4326008)(8676002)(5660300002)(86362001)(6512007)(52116002)(44832011)(38350700002)(6506007)(6486002)(38100700002)(41300700001)(2616005)(7416002)(186003)(66476007)(508600001)(6666004)(110136005)(1076003)(83380400001)(316002)(54906003)(26005);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IvA+lzDXXSvB5wpwhJm2xjRqQNlHUlNiC7DLtVeQpfkyPSIwNHJ4pfWrGfeq6kXveFp1/z9Ch15lR+ETyNZqaS0l0cIP4GhMhJAm6kVjdZ8pb/TEMqvPz150ZWcIGGyZUd0ck6s1lJUTR88vC99ioheCL2MH+vth9/xwELEtU+qa2ApCV/ukCGFsxK93rEMtoQ4rWWxZ93aQZ69G83liSdr9aEUzVnbt81Z+tgeHBHQuW8j1DeCRzY1KutN9bSr+T/f64J5qLBVdHcdAmtZqT+DcoJHQRNosDtH1TZNbiDWI3N09dauNR0fMUn3MjPG24qgMUhZFWa2FuVz723IGyuq3aZ+k/bnSVRl2iHQ1mmPpA8zc/XoMpRAWy8CBSdPk7zjb79YqjJU1ZOPtD0pEJPNc9rkMZcvns620TsXtwzPjB6RbWh+5SipCN/CUotCw4yQB0acMn/Yya+BC+EUcO4n5H57VlYOqzZ9Jv3hfBP3LubjLzSJBt8qHS8dO2PZrYNnfXpSBM//HTRIlq0uBPwj4RzYCwVojRQn4PGwQkrKgQGDpWP3MN5pMTy1fB4ykjtrbl11dFdQtcB+Y2gLWzP5nmlGTOalnUYvS1Ku76G6owOEFW5lEGsl8c5YVsrXuLNQaaH0Lni2wXJpvACv9gZjgTHwQoNtWFcWgZlX4KMzrudSaVzt/YxaJ23XOQ1UtrF4crNEtVFhmTKHqU1hCP1VO1GphFg652tKlxdtm5cGae5MlT/Og6uvVEUOgcOxPlAd1zD2jcQx2JBtpRU3kROA6Up/gOGzuqJM6l+G3HrVVMOnMXunJ1PvDfKF/RhDf/rspFh+LsffK6sFKZhI5DXsQm26mXt/pwl2tulsazGz0wkca/jrI5a1lXAbXDOr3ugQN50gIbUb/Fw/rcJMaclG0fvoZB50ixK4bR4oX7AJfy5Lg5uuDpSyEGeZB6JisqNZxfhO1d9UFZlZOvVKlBN/0ZxvIsf4z04RQKzAI96+z+VqKLuU6qeLxyLVjHn6S1A7nyF4QJI/6k7vitegnd4mB9UMyEO593+47Jq3VaE9mYQQoBrNfagshXUkobCm9WGLWhk49uaXTqlWslPWOlhyRBe1P9EdFntMq6MO7NFV2oaxDHM2EoxSZZeIGs3w4c83tXKTHEluMor437E215Y+YGMvENqvfKufsczoPzHyTUV/3RM//x+JStQozz3ta9VKStoyJQYW8oPmPdLoT5yZpncAgIN+SrmT3rM2kVv+fTwaD+LgY3Ivk+DmyTts7HL78LwwrCRVy1jIP9uBjOqXNCmNBeLHZ3dumL1rMtXNaH0NRFPR+opT7H5t/nLVZ9qA5bo+slTOp29/ygtKtgSQ+hXgRAnw7SfhZA0jtLljQIAIg1JNqifRV0LBTzOFV1CkOK9hLvCrN3SHBNBP06yllc6zKnenCSZ+V6Fv96yCl6MftM2xPc6GB+rflQ2J9u3j/qWcIFZRgclKVqZrnE5Dx4GFDrLK0O0eOZ/QAUo4uG5d/UBY24hucZEyH1i4qC/1VbFSfkAb+CwZ64ExntAm/MgNzgobSC6YK5fkLWPTE06k9Xv4ltvQ4+XObs+tHsoe/V1qLJ9K4Ng5oDF59yYbWZIAPtRfurO7ZNd4DLv1951N4kgUXOoOyiu3ZEIJuk6wBtgBiTQL9/MXyPWQpSO9I8nSD4I8OYtjhKMDFwG3XrrFkpj1x7v8vQZlnlBiWyypU1BkxG28wFkZ0ImOTeE7zhtnAxfQW+aspIOlAxXs= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: c2e8494d-a88f-4636-1264-08da5030fbd8 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 07:14:14.1490 (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: fohAwixt2sg4Pd2WxCTqDEC7D87ajleBwU4nIFYIrFlpVt7coeqgA8M7QZ9OEDrfEp9vtuWDHnOQsMLnIkJKcKvHLIrMrMv/rme4ixXrxUo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZR0P278MB0347 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220617_001425_449364_E0A9F8DA X-CRM114-Status: GOOD ( 10.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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:14:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885197 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 45015C43334 for ; Fri, 17 Jun 2022 07:30:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=y92ztWFe9Lot2+wLwReT9n07tg4f6y8YqkM8TSMT3Gg=; b=ufJvoTYdbamABq OTwF5Bw/gcI+s/Eg8gOK5cqGUPnEeknwUJSobDMHwTYGG0hI64cO/KrcNnfuUg6MpXFIWaUF2mzlD mVc5jUYXe9S34EiWPveE+2sCaxqi4Yazr6WqfEmF52XFYSt9KAjZtuIFHEPQTLUCpVsok2gh+EW0+ tAuG3oEVsMzqJs/Ieiw/5yjwJhvd0QDdabY/MXuLvA+XEHpzCC4soldc0jplh8l0PFDOWEarK341m c44PjvrfXYA/IBez854neivq9Rowa4A3XRYT23sTLXLNU4XxuMBtViET/BJU08UXtojd5X4n79zsN 5G/wRBg+jLt4gHQiHojA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26PN-005xWg-63; Fri, 17 Jun 2022 07:28:46 +0000 Received: from de-smtp-delivery-113.mimecast.com ([194.104.109.113]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26BT-005sdB-PD for linux-arm-kernel@lists.infradead.org; Fri, 17 Jun 2022 07:14:25 +0000 Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2104.outbound.protection.outlook.com [104.47.22.104]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-13-9WKeBhhoNa6RWYcw5-vY6g-3; Fri, 17 Jun 2022 09:14:18 +0200 X-MC-Unique: 9WKeBhhoNa6RWYcw5-vY6g-3 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by ZR0P278MB0347.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:33::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.14; Fri, 17 Jun 2022 07:14:16 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.016; Fri, 17 Jun 2022 07:14:16 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [RESEND PATCH v2 6/9] ARM: dts: imx6qdl-apalis: Set CPU critical trip point Date: Fri, 17 Jun 2022 09:14:08 +0200 Message-ID: <20220617071411.187542-7-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617071411.187542-1-francesco.dolcini@toradex.com> References: <20220617071411.187542-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR2P264CA0122.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:30::14) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 483fa76f-11e1-49dd-e324-08da5030fc2d X-MS-TrafficTypeDiagnostic: ZR0P278MB0347:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: pgLxwHgFF4UdaWnWezfdryIZv+YnveZ+cfoV7dQ7UR3PYy3HupDizn5AxA+YUhPbL5AXNlnWtvi4+ILYCU49tNICtpxXRZk6PYnjT/gXQhL4FV2HlFsrtkaJjqaRtEvBX1QS+wLXCbZDEmMTNkMeJj1EwDhNbuSDGoFKHr5WPXX1mw53DlitgeEo+Iakh17/vfLM7049TnW6ev1dZuSfUTftLsDkwq4kFZktl/wCFr3HheXAwbzq17g2inndtdrqQQ3fuCM+aCMNRZ6FwlkES9JTWlFJ4bwevJq5Xc4Q6gBObGHrLIXcyFJWG1copVydiRera2UeqVAWVFIhOWZvUSxvRZIuLFiwg8uDJ5kVhQkuJ+1F3h73AO5K0WHJqfW/2RQi5dQmvuFvu4lw2+4G0p7OzGoBVmWMylrQCy73Q6LCfwJoVMOR27We6UgwhaiQd5nFKXByzGs7jrnpS2oErHrrxfkpZPJM6k8FGGWRz+gzsiunAIfCWZUt6QYmhGqCWjCC3xHAQPP6HtatVsnOiv7kEWWPkQ1YYYri9b4e+xhgj18ROqQfXOt9veOzm4z8Ybac+tRRZ/Uw2wWTbSQultxI4pJJIz18f5xVfExm0jaZP+9hMTkdOPJ4DNHc3tyvKauGavWEaMbi+2oeN2L1T5XYNPPPw4eIFDTqDrPreZjOap8ZntXG1EhdzXWiRhCZqul3Run+UE8C7dvS8V+PQ55pvIh/RWzOOFiqE0JlD9I= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(136003)(366004)(39840400004)(346002)(396003)(66556008)(2906002)(36756003)(66946007)(8936002)(4326008)(8676002)(5660300002)(86362001)(6512007)(52116002)(44832011)(38350700002)(4744005)(6506007)(6486002)(38100700002)(41300700001)(2616005)(7416002)(186003)(66476007)(508600001)(6666004)(110136005)(1076003)(316002)(54906003)(26005)(32563001);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PFIryXpO5Up8hWt32p0+n3wqae+cW9aU4r53b+fyJEBP5ss8hVK34H6KXKEDi4c4wD2V0Oo30Ge3cbucMoQSFIck49kDTsRXIgtqe7oLSt9qztVs9w7ofZbEAOQw1eUuR49rjNB1AqTgMPgidXJkzci/MdTW6kamncCuRjzsdPHFLwXPtOmwWCCcovnMWZRGx/Jkt6uxQhEFdutAf7UEYQpnab1sKrm4zFMhAsBVixFNd3hspiG+ybBgG0DuWGd2E0D7uaie0BcNQS0SJ3MSgIB9C/6shPYTsUSOFsw+7F+a4Xa45WErxfcX/yK45R2HIbqZZG24Y1DHZvTNd6kJIvEDFqLM/6l5pOTc4Z0K+MjITtCXzORkLjMjIAmiQyByBfwfVn7o1zu8rzlUhKCWdT3DwmvuLTg2auQRT4fXdFKdo+BGaB+R/U/Yd7gAy3iWGpbMMz1CkM9uCphvurssbbdSdEGlIc5qNO8f/PAtyIhWfpSp3vW5m1WbRUkKO9c0uflCvi90aYURck6bWWlTwFXCB0epkKjVdyWKQEIakhJlmZFrfkgZErxbAVbWjlaSGLRbXcc5Wfmx6oum6ckv89AVNUItoBfog6MR/+SYUJYyDDaNC0G2ZQEz2XFldEqvVSbYKiM3KCFA26ewLeBsMvhBAz+caByh/9DbEZLeWwHs1k7uUnyzJyHMo7ZhAt37X8zt8jN/Gy5pzelDysBpPpTi/QNTXmpaQ3LXiRt7V+KpgFqdkrLBCGXniBAB/zFmpd2DP3l1NDY1F0wh9VO/4ys4f4wzKsz6nIT2IzZhkc1E9cnWNMtFG+PauKghAFb9CLnlm4v+w+551Vzw8alLoWoKGgk9t/zpylLXQ8tK696uxukK7sxn19FqbV3U776J+w53ym8nIG2cXTZ7KZUXiXT7YJTuNxBuLbvmLPGZ5QOZwbOHRf4MUV5Z/W9siSHJ0Y+QAkQHptP3mwYk/wypycytb9ct+aNHpzqGizp0GrFsFyH4S08g+lqXxzO7c599megnQoxg38AccnUSCBKlg8w47BgBBvlfr5NSmpiz3+TriEz4n0eEBC5rKfcKBj1V4IHa9M0iB9G2N9uKmqS47ajruIZLy+sh+zM0lH4RBWYns9NgUWwJadBAKqOaweZeK2WTuFU706XKBNxCacMtttHzL2LEVbiEKgRWI9SZlVabPnUAKCxtwPGolAAa33HO7jvWNgeQBa1/yStgLCFhoYUZj/NxcZKE7gHTC2cTYpyZ7nAvGtZwFgQdZysRigulxP8wM4o3VTxcJHlC8H604Moh4O9ksXr028FhUWyKgabu+iYO07+H+uTM22tDufp8bknAa6mlMU2qrca3hIpEjtDIWCiPhR9fEOA2Xh25x9RR75KVYkOIhoFNbgYx+YkunA/KXIyVJjzEIcx7ELOtuqH0tSsT+q5HEgqeR/JAwFV1V6sTt1o/llacGA4bTtiHPkw6Fe5C0Xyd6r5uQHtCluqiOZBL2AhwQZur6SMbB7NXi+kJqchO0c9IlR9pnb9wlQV6ayPPOn7ifJx+AdrLQ1lA8IldAXtST5X6Lap9zOQyeTxMw7etVsuTYAbVKaStwNmcnU1C1IeLI2y3V1WS+dafnyKZRGtu5kgh623mz+UVaevtCrgGsaU4YjLWFRwOgSGas/x1toDQmakzDDUYzR3SdPWyqAAcK1ntW9OnNTs/jJAzHAzgU9T6ZiNdEGaClrv6dpRn0s8lvHEUbXRVfIHK+/hO/br8VsHANwbtwf8= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 483fa76f-11e1-49dd-e324-08da5030fc2d X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 07:14:14.6645 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: joqhYq7DjMAh7+0sq8XhsI0nesv8z2b+10Ln0kho8AAAgb6GcWXdkLaCSzSvTnNc8DGCNzmvVqUkEf7MDMnmKpC2ZwJ5QlMgunseN5SEyLA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZR0P278MB0347 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220617_001424_164773_227ACA7B X-CRM114-Status: UNSURE ( 6.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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:14:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885180 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E313BC433EF for ; Fri, 17 Jun 2022 07:22:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0mw2fAPdS+NtnFrFaFJASXV5tMogidneO7+0G1kxuew=; b=beIBwNnR/DPL1t ZklzdCM0hq1wY/B7JIg98HXbRC1BS8jziDc5ccL/Kr/OcWcoyFJNjwXp3edgdbF6qW0MPP0xh7cR2 gytmafCWz8R2NN2DBD9opOt+FDqbM7/jqp71uDsYaCjWPP0oomep6iyfoIWUebBVySWYTwS649BbS iEOSXOe0BKuYvSreqZPWarzuwltNDjnXhdCsPWQlB18dh6mAqAiu3rITsEPx9Pr4xYIkuhFJv4ypI XLs5e1IuzX6jeYZlxKz4NuA8N+MnSC47uYYzTXwRSSnvvSUaXoDqPrO8mIFko3nihYwVDw8egZa2N MzElO2avW2dl1HdWGQeg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26I9-005vBv-7U; Fri, 17 Jun 2022 07:21:18 +0000 Received: from de-smtp-delivery-113.mimecast.com ([194.104.111.113]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26BR-005sbL-3U for linux-arm-kernel@lists.infradead.org; Fri, 17 Jun 2022 07:14:23 +0000 Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2112.outbound.protection.outlook.com [104.47.22.112]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-34-xDFvHCdgPGmF3hygdP8L-g-3; Fri, 17 Jun 2022 09:14:18 +0200 X-MC-Unique: xDFvHCdgPGmF3hygdP8L-g-3 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0438.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Fri, 17 Jun 2022 07:14: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.016; Fri, 17 Jun 2022 07:14: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: [RESEND PATCH v2 7/9] ARM: dts: imx7-colibri: Set CPU critical trip point Date: Fri, 17 Jun 2022 09:14:09 +0200 Message-ID: <20220617071411.187542-8-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617071411.187542-1-francesco.dolcini@toradex.com> References: <20220617071411.187542-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR2P264CA0125.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:30::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: 328ffabe-5b14-41e3-0e50-08da5030fbc0 X-MS-TrafficTypeDiagnostic: GVAP278MB0438:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: CcRPJB/N17m8iMhN29EGL9KPTvkSZLcyiSL7B0LlOSZ57JfPJb/0ihZojT+iNejYL0vVWwuFjnhN3ugGXxX0IAXOIilig1Bwz4CO735i7QLaP0f6iab7zAOHgePTWBhP3nfzk6KgO1lQ3b1e/yJgeiogZjMdIyZD+s/QJhIMFj2gXtgiW6NOMXaaOwpU91PUtVVhezPnNpT4Zl/65rcfXLb0YdJPBQSPZEslHvnrusV6HQ4RfsBtDsLxo5guJ+x9XJRWHeqeAsYQsWJgiViiYEMyQVJAagqDpxquP2VIGbRLA2pveQ6aMQHmG7ng96mShnwtxNd4efDOozDY5PuPqBGPEJrwDbCaTsRSZRGf+WS1c9fPUnTzFr7YFaWl1+d4xcrmXVgJnxFONtuTq58Zx6dGMM+3ESxzcQqsLUw5tiE+xmnxLP5+zyNzXPdxKaV48cl1Dr5vqKzP1Cv45qrW0AbSEOmvZ03aqQ4HyhJ+ByeJMXgPUyvEhI0TBqf8ju3ditsKUFkYgxdcRZHXpHakWoAkgDbUxLbh39J9ZmXbyxoH0Z0oIDTtqrHXg0pOO/Ep92g/7r9D4c4GQgy4QokPhv36CbbHcngL6ypVb6wJGe7uaptIthho/mWQubs7yhTZT/T/foiJxeRqM05JLaV+JdVkjrMUpWUQDoYx//hpeRiTWZ46sUdr8BjfA976SSWhwKfm7mhgVrR2uC9/eQUm2Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(396003)(366004)(136003)(39850400004)(346002)(52116002)(38100700002)(38350700002)(6506007)(2906002)(8676002)(8936002)(6666004)(6486002)(316002)(66946007)(86362001)(7416002)(508600001)(5660300002)(4744005)(44832011)(110136005)(41300700001)(2616005)(26005)(6512007)(36756003)(66556008)(54906003)(4326008)(66476007)(186003)(1076003);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 56Z7SPS8MjoHmm2SPtm3kDA+aCWAVeNFuwpDv1X5kyJsKwcTQfnj7aSWSL1gE94pZKrb0o7Rg/GUguImF4RRU0565tP19SSaOwgAqz9fazi02InFdtcM9JJVK4Do2kmZvhfkki2powaEVmW2c5zVLpswqPJcUcNLMR+I7RFHbZ5pc7SqWTzGlFvqx6SsQ1sg9//5TWUqcCTXCmTx1z37vWZndJ1ELwLp3rRqUgia2qu9VRg47q1qSfuD4Dgpbs+w4Nt0Ro41Dur9hHzNTEuFTdYylu2AexMapZuqu6mgBnpeK+Mh4QpFjq8QYvrUoplkeW0mssliJWkGu3O1evqh6RAKdoGFY3zQL0nErSGaDUXBrbVeHe8VovwTlQVjlCc7rPkaMZq4iYjsX3uepbe9norbkGNEt2yN7G4/fRlJNprwmwAzoMyqP7uV4z9IsBDg/RIu2dVCslgAiM4gzhFlgKRxzoKE7BYxFj3/L7d0nRmniaSuMNMDfXYHJubhyF/GsayB9oAk/wXZ9ztovkzWWIX3AuIsqrynJfKGwvLhXAnHgxPyk7wfhNMfYwNwU30fl5bayxRgGZh1UQgg5Kixf4vv+5wX9xQvRBlt0hH8eMBxj84UKgFY60L59yQhBJwWRWcr/MpL87FaLbRVxZ+Q/oU9Q5bJst38dQYWWiR7UjCw5XRNOLOIVaZIQg5HxE6Uet5HeYGulca6pSAYVshouYZ0qyCcCwxgG2Qmgl+qPHogj/R2+HZAJFH1d2ckJ+RfBfrVkuD54pB+pQ2wiKqhv88Ca3nFa5J95SF/KjtXk8j5zN3msWAmCPgexlf9MSue7bhv+6qvYhgCNrd3PYKX7NTOiiLRA6LOkyYez6GhCGvjp4xiL210nsO0UW9C22mmYBCot1ZV+om7YSdrg/TCIQt72wiSdbyiMCqlNwla08YJLzcPa4Qr5PmZl1CwEAIAIyJ6ZYN1X9NS3O0fZVbhyryHwY1IJtlGv8H8Jsq30Q3YyCnymuHc7g2yeZPoaVslfrOrNB5GDIiVKSq0egknM9G0r04gPCBo3NCx15aTMUHPKuwIsAmos1m4WUl6LOiTVGfmKB0fjdbMsstvrPv4IDmlOwRbZkr0P5b7+JrKABd1TVVC9fxsgtxKTu3a8NpOQqzcuytCwgVheESsit98QZxWe29sL8cwZqsfYUJGMLpgX5tnHxgZxVUAdHUpA5ppN01UfTK5dKsvfiZKYZctTQEWo8eAmirEq4Wc674w3rJtSzH2a5217BhtTgFITdPAUOPh926i11ZcxC7oywJbBYTFLWW4s4wSSiAOshWuGP4Cek6Grz7/D8226wsBDJsy5SnWeGkFeIoJaRM78lM6dqtL8jbBlsoEwQe/Gz+4m7fmIhX2if75UWpII4MSM+vlWcbi+wEtWDW0Eb04rRYuM+Wo5xR1CalaV1sJfdWVMD2+7N9zJ4Du6jJfleblfLFXNJ8qrtO8oAe9T91IVOVo14Ensw3JV2qAP/9WcVEPh0kUQDoZV7PvlNzq3JP0fXZiZm+3DXny4A0qxpobVBuuhsdGJrtdDm5BPiqk8WegXhntbPN0mmyOWUxhcLrxxCvdVO7OL5uijU7b/aEKLFHNmMfPQhkbNNu/UXdTLFYL7Ng3r3lstiaUn2Kj9RWlhjYuJyESNKIGLa5kY3N5/H1cNduXpnJJo7p44Ob98bGKi41+8XI59gUKkEHtHqjWrgrIC1VM+9w/GS5tIobSNfRvOCiZtQzbeW8HP37dpaV5oZA= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 328ffabe-5b14-41e3-0e50-08da5030fbc0 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 07:14:13.9447 (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: V2AbWysX2wu0+k04HEnwfcc1lXbqDILbzRZ8CkyPtgHx4xI1UJr/CDmZvsb7l3nNnHCZ5kPaDuiXuFzOwIcpJnyXen0sjO1+VM7BY7feFW0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0438 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220617_001421_491885_5B8C8DF9 X-CRM114-Status: UNSURE ( 6.39 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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:14:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885186 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1C240C43334 for ; Fri, 17 Jun 2022 07:26:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oiBvwOh8OGLy3jkdJJt5IWwcavfZdF26AfBSF2+1tW8=; b=u7raK0pAvz+GEj TW5QKylxnrcEsa7UfJBxI+b1JznJwhNzpejvOjQzpDjWKbP7TPaCyvLE25Zt7a5oFQbagKWdPx4yA tqbxu4MEeihrHOm8/ZhbfLoSe49wPRm71GVi56PjBkEbWOtFg7LpCdBfxq+rts6wmPOFL0PKE9LIu +tC8tCUyKilX+ZYEeK8eiGcgaWyYntJldZjOYIiD/0NUnrHtbqwg8AqYqMsTngwDXOeaauUEFWGtT Ad7ShjwYSyzadnzsCoJd/2MVBOrLUZ7lDFE0SaUOFE9oPk6aHvPWakLOPJtmnwVJkwghBLfdLUCKd Vj/BcuRUYIXPS5oaFKmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26Lk-005wH8-Jc; Fri, 17 Jun 2022 07:25:02 +0000 Received: from de-smtp-delivery-113.mimecast.com ([194.104.109.113]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26BS-005sby-42 for linux-arm-kernel@lists.infradead.org; Fri, 17 Jun 2022 07:14:23 +0000 Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2112.outbound.protection.outlook.com [104.47.22.112]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-11-kr8K9Y_-OVy8Xr5IL6v1ZA-3; Fri, 17 Jun 2022 09:14:19 +0200 X-MC-Unique: kr8K9Y_-OVy8Xr5IL6v1ZA-3 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0438.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Fri, 17 Jun 2022 07:14: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.016; Fri, 17 Jun 2022 07:14: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: [RESEND PATCH v2 8/9] ARM: dts: imx6ull-colibri: Set CPU critical trip point Date: Fri, 17 Jun 2022 09:14:10 +0200 Message-ID: <20220617071411.187542-9-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617071411.187542-1-francesco.dolcini@toradex.com> References: <20220617071411.187542-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR2P264CA0136.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:30::28) 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: f642753b-293b-4bfa-0e50-08da5030fbc0 X-MS-TrafficTypeDiagnostic: GVAP278MB0438:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: 66j8AAIcqEpxJ0f7CdWdipkebCd8dD60CMTUg37/6K39xYhXLlIQYFloNrO5PV0/v/zoYhOKbWh1/MC75hRL9nYNsMNVbtpggvycKYartGZud63jR/HAo85njPIzERTUNSt/BBnrBd3lXciEF6jKWNdmppG0ieiTJTMJ0TVsjG6WCdpXXWdosG6UQNctrvDTDZDlEehkFv2a+y35p6XVR+02YfL1rf7yCZvMSjUNg2Tlwrxa4AgXanFb85m1cVPx5RWTKDzg63wkvijArqa+r+288BCVpzVBUjRti5bcKXpPVYmYcy5j4DXDDLxJVnbFvxB3uJKhScy0Z3qq94HB7r/Hq/8bCdPfnMiq2YytBUiHRDLfOc2pi+ZDvzlz0K6wkjB+WYPm9BTMjVnobZo2dB6+xN9qyiDz9AaEX0eiYig43viFinlYTk5pcQlYz+V/ItvCQM0K6F8UTGYfUSQIXhDVbJAIXNzeCGK+TKcmfn4Ht6i7quAvE2Wx7u4BntK7zXBBsuRXf59rhUsivzjOdySjjAzJqSUE/TWFiyTxX0fn4mdSgvC/1dWmedAhJxq47elzpNXZSLZiPf9JEJrelypMq9i5DCkZlZBmmK+JlqiNLAvp0e/JFO+x44IdFXH2IySbRB1ih9xhhWhoad4Myx5Sqav4JN/sP+8RKWr1f3mH/NOEmKZXtL9rKW93K7UqlpzWD++22ZxsEymBHayn7DBtNBDBHaezdHstpF0ga1w= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(396003)(366004)(136003)(39850400004)(346002)(52116002)(38100700002)(38350700002)(6506007)(2906002)(8676002)(8936002)(6666004)(6486002)(316002)(66946007)(86362001)(7416002)(508600001)(5660300002)(4744005)(44832011)(83380400001)(110136005)(41300700001)(2616005)(26005)(6512007)(36756003)(66556008)(54906003)(4326008)(66476007)(186003)(1076003)(32563001);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: scI5x1UqLnLE6NkVod/HCB52nKxfs3+4OH0jHsKpg8qbAby77mrAaZeRIQD16zHJZvaemUAxnFfwZqk6t+lSHsO/pmoVwyTu6tKP8bLVMJyWvKggQwZWGBjYwi7iez8L44ZlLMwh5Jl5Pn8JGpGXSL6x0SV0nwSaXGjm6YXXEbdpNk0vlnoOsGT4svQ0ChTqlUAH2F5NbH+/HZhGDvBEbw1xR4/2EkTxHeyJ1NrTitanaX3BMfE3u/en4jeRrQwBbKNNHeTUKk5ePawEew22MwRxf7qPWhqOzzZoBGpo8JLuukbNBgcHA0B6eergY5d6dval7TMWibuultEaqJsfSiBMdh5UFZ3Yc9NLbijUZSghYdVK5q/yXq9ocWoT/pjSn6DnKR07A0MTb1F66zi5SJAav5el8aRnlUbjM8N1cAXNzzK8fPxNW/AUYf+U8qAXCpjhGzrjAG9FtDo3EdcsKPY/nIWpKnHefiFZVkJWC1rsAmcM/WsvAbAv3WtAPqs2528Xi6Mr/rYawZn35CmgYuhW3coRZ6pXDU/ahsi3tNU4Hk56jOPr54YV2zSArs8SPfqSD72yP6SCKTonUNkL66q/GGrQPpWks00Lc5s/dtxaYNz8ocqvjVVx8IgZuN1LFQG0JFWep9o5avUNTPG63NtO9278Hr3ydnVuYFAmXsxSoORluQqDkihjY3s4bSAqPWaktSd7fbM0qNSqZN5Qzgwp66n2gPh3WsubYEFpLNwJbcSTjzXHf5mt5kUgRfZmcGjzKpB48yT60bdoAqUOhC1dGfsHjDKLEcB7TFjTnnakEyvDgHcpRECt2q9Rp+UIcRkZf7pGmuYjo6EB8jRSF3aoFezUbQoLi5/iHAdfUTNv8s7zhNiGLZMrz1RbWN+2uAurFpXMMv3SBE4+q8F/c5YOBXkRZ/mfJ5in/HXsGX7lmHdYts//kNrrt/dJKhL73i6TKMsu4CNXosKGPosV3DJz9BEaU0e6WuLeFtTJ5vTVtY8PY7sE3oDNkOTYEQFEgRYgwo9oB27y1Hal6K2o443LhVlsZRxXJH60Fiu/puNs92pHkxZz9fcgAxv1n59qbRwi9wR0IcmFpFcxcl/6B6Vav9ItYpB7SbIyDbuDTDbTAy/2U8pt8PGUPeCauGZGUEdHwyPDAVV6+t9MCDTHKUYgcMZwRF/+xedHMA82RJOJVowGRft29rck+z9SCyKQdC0+KvkrijT8QBZKa5cjg3eUq/YTMfNoj46uN9hqE3ykzqBwtlw2hKlb4dHAWJdplifCRAPXnisrl7VUsg4GdaQYv6qX0Kz/a+AcRW1RyknWZWzVxGlawoL1sO04bUzBVeCUF0lonhbsx4lcPOqVesLmYLfMCfWvmKjRzpxzSQQbrl48BpNhLUSd5d0G5uzU8mTN6X4zW60cZwj4Jh08A3NgOtSB+Pav49Tyf//Jr/wCzPxDE6XawCRjS308mwfR+Rh4VFF6vD3ZJDr5TT+TyGFCCebKJs5if3MKEOaUojZQppsrTqVLx7NUjc7rN7rckxeI6vTuqZRn0l1SiB27nBvVHiKOSvv7P9JCkWt3awRFIHdjjpcO6+ogrQKUCoth2NBkFbrmB8h+ISJ80H2O56KXSxFOySoeVPQpL+C1ne8xt478ZKRw+3/CywNjiCvG7uPw1bzgpOjUuNAfZH65IynW/OAcc7unZsVmd+b/t/pIVOKqzhxB/RobsRXKXvaCRxrKVqrY8u5WOUMopeD8cUZENtr1vSfbXe6+lzSmgJE= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: f642753b-293b-4bfa-0e50-08da5030fbc0 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 07:14:13.9605 (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: GS7W8aZpdEb2oCMYq0bQHkAXbWr2Eng6ysFnRKcj10E+8A+8KVa99uuLeffR0elwO6EL3R+ZLKPHF2bjUwOH0m8srKTs/YjFiFSJnrBe4Gk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0438 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220617_001422_523745_EBE2AD65 X-CRM114-Status: UNSURE ( 6.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Set CPU thermal critical trip point to the system designed value, 95 degrees for commercial grade modules, 105 for industrial and extended commercial grade. Signed-off-by: Francesco Dolcini --- v2: no changes --- arch/arm/boot/dts/imx6ull-colibri.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/imx6ull-colibri.dtsi b/arch/arm/boot/dts/imx6ull-colibri.dtsi index 15621e03fa4d..6d8e1ef0315b 100644 --- a/arch/arm/boot/dts/imx6ull-colibri.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri.dtsi @@ -250,6 +250,18 @@ &snvs_pwrkey { status = "disabled"; }; +&temp_trip_crit_commercial { + temperature = <95000>; +}; + +&temp_trip_crit_ecommercial { + temperature = <105000>; +}; + +&temp_trip_crit_industrial { + temperature = <105000>; +}; + /* Colibri UART_A */ &uart1 { pinctrl-names = "default"; From patchwork Fri Jun 17 07:14:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 12885184 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 04848CCA47C for ; Fri, 17 Jun 2022 07:23:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QTIgMoxoTyWkxKCU8PoBLYUDfOJYOuWJYk1MnGUpzeM=; b=ZQqSzc/8lAC33p zBktOluWWplIn9Jf6R8EZ2rkPanJG437Q2VgHPED0Cqe0GomB+yZlGxLMaGpL0+6atd7Ki3nprfrE XJEAJNqufwghMszzk5P/0aSjBgNrtl1b1LTTHzWmfoqmPU4NaGfvivheptvwZArPVqGW7ns/1sFbS fy6PbDj9czPn9JMg5sMmK6goEuza88QMIzyncQJO+q2e3jEWdAQC7KKwDhyWg2cpcVu9AupuBAPOu qXdH/r9bWRcdr6kCWdKXOzSdUjZkebstg/7zqrMFwvFFU7+RLa+OQRkfo7GmDkuYBqHV5Jzlnpi9R k45Xj3kRsn+A8/TG6pMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26JF-005vVg-LB; Fri, 17 Jun 2022 07:22:28 +0000 Received: from de-smtp-delivery-113.mimecast.com ([194.104.109.113]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o26BR-005sbc-Cw for linux-arm-kernel@lists.infradead.org; Fri, 17 Jun 2022 07:14:23 +0000 Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2104.outbound.protection.outlook.com [104.47.22.104]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-13-3GkfPEIeOEKpj6nYUFmeog-2; Fri, 17 Jun 2022 09:14:17 +0200 X-MC-Unique: 3GkfPEIeOEKpj6nYUFmeog-2 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by ZR0P278MB0347.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:33::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.14; Fri, 17 Jun 2022 07:14:16 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.016; Fri, 17 Jun 2022 07:14:16 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [RESEND PATCH v2 9/9] ARM: dts: imx6qdl-colibri: Set CPU critical trip point Date: Fri, 17 Jun 2022 09:14:11 +0200 Message-ID: <20220617071411.187542-10-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617071411.187542-1-francesco.dolcini@toradex.com> References: <20220617071411.187542-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR2P264CA0179.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501::18) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 249b8380-29b7-452d-5fd6-08da5030fbe6 X-MS-TrafficTypeDiagnostic: ZR0P278MB0347:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: Zq8t3IAnX//xpP1sdnezoxxzn7M1j5WnSdQ2PVkV3yUvawrseyLdXyeQC4VqsNQ9MpvXAxg9JdSI104XbdNRuHuhWFKU5MP2AaY4w3l3yt6cP2xmoc5Y2ngBr1vKk+AjAn2v6BbIqS0v5uNU/9ybA2cRJs2PVB+MhJcV3zEUruXSEnuXBSNqRvIO67+EmgV68Lni341hcx003H0PVrB9SxSFcasj3oZdFiQjsd7qzEBO+HBGzvPDGul1g6HgVFjP/e85renDYjMgkGLRXqHDMDkFbO1qqlgrp90oOx8qkaG4LCOG52riQa/j3Ys/mOVwSbK22TQqIpjBhevmEuHPE9d2uSR9i/K7iYZGddr5qMpig8uDWC2CL5LD4YNSKpjXoBrVF1J8ggmyW5wv1LulBrPoImDn4EWPPe4kJlyBR2Hcoy/z/BtfTbENQb9RQTusecof9fIJ615QgrQiFa3ne7OKbxOuA2Brw/WBHNXPQffZIM5doGJEKgGKtPh5wim6w5HPDhWSvxkeIxaCofN+QldST+FC7qH5dltBE/61v13SiTsKGh5Q6W4NuO6KVq4eqW20izHpddcHcDrKa/OWSiiIZQyUHPyTLeFCjGcQDwyHjdS2y55WRCkUfq1ZRe8J+oIzzwrlP2LzWuljgAiQzxYe+rhqW/Ctd4T4g+Bk7evam24mbB34+f8lxU8pggihQrAueEvqJHWalFCpuUoj2P9icFZunqrNOGT0wYLsF04= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(136003)(366004)(39840400004)(346002)(396003)(66556008)(2906002)(36756003)(66946007)(8936002)(4326008)(8676002)(5660300002)(86362001)(6512007)(52116002)(44832011)(38350700002)(4744005)(6506007)(6486002)(38100700002)(41300700001)(2616005)(7416002)(186003)(66476007)(508600001)(6666004)(110136005)(1076003)(316002)(54906003)(26005)(32563001);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ENE6wqM1pDkTRAEyWRcLmnFUVOMx+Xaw09I9fi7kTErAJ79yn5iilDUZhmiqDQjAA8KDq5X3Y4zFXHf6S005i8YdRC/FG7+UQhWB868byv0tQsyY9SLaq/8qNf3oHHS7KsJ20r3DhJ05i3hoOKvuzHFx0XtYWBT2BxUFumUhLRU8gW5O6WZhUBmOZpLLOpWcZtQOtRX+yNCfu+f/gMyL7qTp3cJT9azY27qzaslXf0g1ewb1mye/1czPoIzRH7+zZU85wOvCb0AiwbYRoSrLvog5fy/ECxEIzI9AQvmJsUnq7IgHmHwunMTXHuUhvNlHfaO7jGaWdV6nxfuz6bXBHp3RdSP3ljZ3kbsBbkxITU4vEsVkQ/B1vOZweGWoCuQhh3vBk+YDy6l/mCVpgfbwHXK8xHvWowMj3Z1Wo11IxEat7leO7nagDnqGlZ/qFc4keRgwtC9j2ZUvXGLOs71goE1fFb9hEYL+m1xhBukFrqZVC+sneDUZWibASFGUaZvky/4Ra89OYt5wi12H2lMZuIstIBamqkxUi7zqiJAO45kF9CZ9ylAOLvgu1eUEtNda1GShf8FLT7sYKZY20E/mvrMqxsE57UXErmJ8Njnl63disxBynyube41lBa6Yko4wXXGde0pwjhdy5xOk8oNjaTm7D4RPZlPOPs9uiELah7GAv1xm9CUd11Y8F9WqQexPmGLbHXm2XZ3sfG8xG00IBGiYrr30DKqzNOS+DgG9GiGE+Dj7rjonO4xR3az2VhRke4cmDhTNXt8g6UBDRa1rmCJdHXoEmStj+Kk5DjiBEcdZlESFK8/3d/ED+GDmPkopWX5LWoIP8iTzEFtsprdjz9sFDDKz/VIR8iuSyvAJEXM0QiEp8o6zMhkpUlAmSYV+kfF7lE4o69WrKVVgEK8lOtRZWs/d4Ud5AEq+NUc3+4yZI6vShpE8q1v+CAX1epd9p9Kr+OIhnZ5SS4BqPiH+hXAtEEKTNyQCEQXJNsgRMnniA+XAoLhhkH8j/CJOWztcruqQNEaSV/8RVyghYJEDvq5UDKlrCtp0HXQ5Tw0Tdp8+AGWRns9uI+rrh7O+RjCahrzXAkSLQoZSaCjwg51BoDjmfwbxVnLoX00yVF6GRCi7i8xGpQ6d2Q5vwcKfyMOftzVGjdCQiQcFlLJmmJvr5CQElGVMigrzWAoM34pm35iCp1UzEExJdRewZMyLeCsF/9L5bkEdJ4j4l3a05vXvrLFCi22vXRpPhWdCs0dLzSpVGm9EpqyJ/A467F7v9ca9De0TgLsAVQj89JVnlK4gNJtiROvvZ3DnqfyQ8q7yQ0tslsFzDjx7HlwSfgQO6jO/F95nhUczA08SOX1gPf5ktKTa4lXrzv8/1FsZAbzx5Y9fmlabxVuBwhlFVlGfNsv9F/1QHSuE8n3irIMcFBYZuxkIDjoB6rsVo52J+BDQFcXoB8QcPQxFjfiEMq6kNuiQ3hUiHB1q6tb1mSj53ySFw1qGvbMSvocqqwpWy7+MKYbOA4k41J48Lq5fIvf+CswoEolCdbiTRznjizFgYX13a9DsIvu24d/4RKKv+qr46Jv3mksUCl9iEeBEU8SyutPva4OSztuUUcPE4ipv9yir+e7DunsFhELw4fUEwNsDqWcOex8OzHkREPCcU11DCItb0GP8xotAb3Q3Au3LH2Tg7OJCDYPpcV1FJcyTHeJ1M5JVk91sr0jq5zc8bO0mbDxzahVSAydsk2uoe0lBRND4aXfgXgu5XriQRzmNfRIwz6Y= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 249b8380-29b7-452d-5fd6-08da5030fbe6 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 07:14:14.2115 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: EtVhXgbWM6+pxs8T8VVZTeL98pseiMwV6KqeCWSkweuRoGf0d4zrOxniKUEkkeSGQqt7Wy2RT88KB/mxssDqTdaizcaddfn1QpER3+NrqrE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZR0P278MB0347 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220617_001421_802078_873B7876 X-CRM114-Status: UNSURE ( 6.60 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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;