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: 1644691 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4LPVfH54qbz9sGD for ; Fri, 17 Jun 2022 17:14:31 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380535AbiFQHO1 convert rfc822-to-8bit (ORCPT ); Fri, 17 Jun 2022 03:14:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380411AbiFQHOV (ORCPT ); Fri, 17 Jun 2022 03:14:21 -0400 Received: from de-smtp-delivery-113.mimecast.com (de-smtp-delivery-113.mimecast.com [194.104.109.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3CFED66204 for ; Fri, 17 Jun 2022 00:14:20 -0700 (PDT) Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2112.outbound.protection.outlook.com [104.47.22.112]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-11-vtkNLl0MNjWlE6NYCSBtCw-2; Fri, 17 Jun 2022 09:14:17 +0200 X-MC-Unique: vtkNLl0MNjWlE6NYCSBtCw-2 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0438.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Fri, 17 Jun 2022 07:14:14 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.016; Fri, 17 Jun 2022 07:14:14 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [RESEND PATCH v2 1/9] dt-bindings: thermal: Define trips node in $defs Date: Fri, 17 Jun 2022 09:14:03 +0200 Message-ID: <20220617071411.187542-2-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617071411.187542-1-francesco.dolcini@toradex.com> References: <20220617071411.187542-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR1P264CA0168.FRAP264.PROD.OUTLOOK.COM (2603:10a6:501:55::16) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a6310d4b-ea5b-484d-2608-08da5030fb95 X-MS-TrafficTypeDiagnostic: GVAP278MB0438:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: GEh68tqCZjv/A5tLd9S2V345v+Qu+jQmHP90H12m38Qwv3FUkEuBq4GM0+/8ycRbAqCPLTd54w4tIABs9NkktEvLky7T8tQg5EmNJ0VmTTaK3e+QDlUan1rXRvnyQk2+hrvarS72h0GqMF5thw8RJlGu7/EqemHFdcRdAFSgHyskGA8s0LKpuHXVVjGeRLVrNVrdia5to7E8KUyEK8yORZbB5EOjQRlJdIRleWp07A1QWcAhOCybnfgWVJlDH4Hrg4/Qt6KaXTLlWsRWoG9bDvpG181jogx6C5YvYIwAJziPJdzcC8QobFkjIE3pnhTwvnfBy0dbIgBGJmpNglR/tGQJPJQjZZxVCO0v3etSNI9ztWE68c11gkyEafGm/KIQcb32MpNGx76/FQvibKWMBRnoDAaOVLpcacMUQ2pqRKBQrUUluuYv2RjAQCSdVslFCUGSt1+/zZpsAYFv5GddgwxssavEcDXbQVDYhh+S4Ppuc2c41GxXngPokQqPY9N2a/HVZxv5cTgad2GKSls0JdLtjBwZx7tjFKkcaAIWU69UwYUxDjIpsoenH19uI7yPUzpiKLU3ZltEocRKS60YP+buQezfviIvDHw40CA1jYkqcsIpFGfe7NuWhBQCEfYRlimXUv8SsVoqkCVcGcebmwSntFyBYvsFQdwyUdfaNzKmd7b0DWYmVOeY3npNSoXW0FHVjtQjZgAT+f3j2i42Bw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(396003)(366004)(136003)(39850400004)(346002)(52116002)(38100700002)(38350700002)(6506007)(2906002)(8676002)(8936002)(6666004)(6486002)(316002)(66946007)(86362001)(7416002)(508600001)(5660300002)(44832011)(83380400001)(110136005)(41300700001)(2616005)(26005)(6512007)(36756003)(66556008)(54906003)(4326008)(66476007)(186003)(1076003);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: u2i6Et2EgTj1S8/WtUZoDD3lyR+eLgORnjJ+j+dY4E9Q1GXFv2AGt5QjqCqoKZEVHh4qUCe9p6K3zfw0nzWr3xmD+hSP8bxo1NbWU4BrqYOckwoRfjN04tJu/mqPfwhToMGnNSHy4cz121xAryJ9+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-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Move `trips` definition to `#/$defs/trips-base` and just reference it from the trips node. This allows to easily re-use this binding from another binding file. No functional changes expected. Signed-off-by: Francesco Dolcini --- v2: no changes --- .../bindings/thermal/thermal-zones.yaml | 130 +++++++++--------- 1 file changed, 67 insertions(+), 63 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml index 2d34f3ccb257..ba84233d20b7 100644 --- a/Documentation/devicetree/bindings/thermal/thermal-zones.yaml +++ b/Documentation/devicetree/bindings/thermal/thermal-zones.yaml @@ -10,6 +10,72 @@ title: Thermal zone binding maintainers: - Amit Kucheria +$defs: + trips-base: + type: object + description: + This node describes a set of points in the temperature domain at + which the thermal framework needs to take action. The actions to + be taken are defined in another node called cooling-maps. + + patternProperties: + "^[a-zA-Z][a-zA-Z0-9\\-_]{0,63}$": + type: object + + properties: + temperature: + $ref: /schemas/types.yaml#/definitions/int32 + minimum: -273000 + maximum: 200000 + description: + An integer expressing the trip temperature in millicelsius. + + hysteresis: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + An unsigned integer expressing the hysteresis delta with + respect to the trip temperature property above, also in + millicelsius. Any cooling action initiated by the framework is + maintained until the temperature falls below + (trip temperature - hysteresis). This potentially prevents a + situation where the trip gets constantly triggered soon after + cooling action is removed. + + type: + $ref: /schemas/types.yaml#/definitions/string + enum: + - active # enable active cooling e.g. fans + - passive # enable passive cooling e.g. throttling cpu + - hot # send notification to driver + - critical # send notification to driver, trigger shutdown + description: | + There are four valid trip types: active, passive, hot, + critical. + + The critical trip type is used to set the maximum + temperature threshold above which the HW becomes + unstable and underlying firmware might even trigger a + reboot. Hitting the critical threshold triggers a system + shutdown. + + The hot trip type can be used to send a notification to + the thermal driver (if a .notify callback is registered). + The action to be taken is left to the driver. + + The passive trip type can be used to slow down HW e.g. run + the CPU, GPU, bus at a lower frequency. + + The active trip type can be used to control other HW to + help in cooling e.g. fans can be sped up or slowed down + + required: + - temperature + - hysteresis + - type + additionalProperties: false + + additionalProperties: false + description: | Thermal management is achieved in devicetree by describing the sensor hardware and the software abstraction of cooling devices and thermal zones required to @@ -105,69 +171,7 @@ patternProperties: 10-inch tablet is around 4500mW. trips: - type: object - description: - This node describes a set of points in the temperature domain at - which the thermal framework needs to take action. The actions to - be taken are defined in another node called cooling-maps. - - patternProperties: - "^[a-zA-Z][a-zA-Z0-9\\-_]{0,63}$": - type: object - - properties: - temperature: - $ref: /schemas/types.yaml#/definitions/int32 - minimum: -273000 - maximum: 200000 - description: - An integer expressing the trip temperature in millicelsius. - - hysteresis: - $ref: /schemas/types.yaml#/definitions/uint32 - description: - An unsigned integer expressing the hysteresis delta with - respect to the trip temperature property above, also in - millicelsius. Any cooling action initiated by the framework is - maintained until the temperature falls below - (trip temperature - hysteresis). This potentially prevents a - situation where the trip gets constantly triggered soon after - cooling action is removed. - - type: - $ref: /schemas/types.yaml#/definitions/string - enum: - - active # enable active cooling e.g. fans - - passive # enable passive cooling e.g. throttling cpu - - hot # send notification to driver - - critical # send notification to driver, trigger shutdown - description: | - There are four valid trip types: active, passive, hot, - critical. - - The critical trip type is used to set the maximum - temperature threshold above which the HW becomes - unstable and underlying firmware might even trigger a - reboot. Hitting the critical threshold triggers a system - shutdown. - - The hot trip type can be used to send a notification to - the thermal driver (if a .notify callback is registered). - The action to be taken is left to the driver. - - The passive trip type can be used to slow down HW e.g. run - the CPU, GPU, bus at a lower frequency. - - The active trip type can be used to control other HW to - help in cooling e.g. fans can be sped up or slowed down - - required: - - temperature - - hysteresis - - type - additionalProperties: false - - additionalProperties: false + $ref: "#/$defs/trips-base" cooling-maps: type: object From patchwork Fri Jun 17 07:14: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: 1644692 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4LPVfJ0vm6z9sGH for ; Fri, 17 Jun 2022 17:14:32 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380518AbiFQHO3 convert rfc822-to-8bit (ORCPT ); Fri, 17 Jun 2022 03:14:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231313AbiFQHOV (ORCPT ); Fri, 17 Jun 2022 03:14:21 -0400 Received: from de-smtp-delivery-113.mimecast.com (de-smtp-delivery-113.mimecast.com [194.104.111.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A64EF65D39 for ; Fri, 17 Jun 2022 00:14:19 -0700 (PDT) Received: from CHE01-ZR0-obe.outbound.protection.outlook.com (mail-zr0che01lp2112.outbound.protection.outlook.com [104.47.22.112]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-34-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-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add trips point to i.MX Thermal bindings for each temperature grade (automotive, commercial, extended-commercial and industrial) to enable specifying a different trip point than the hard-coded value. Signed-off-by: Francesco Dolcini --- v2: no changes --- .../bindings/thermal/imx-thermal.yaml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Documentation/devicetree/bindings/thermal/imx-thermal.yaml b/Documentation/devicetree/bindings/thermal/imx-thermal.yaml index 16b57f57d103..e6349e40d6c6 100644 --- a/Documentation/devicetree/bindings/thermal/imx-thermal.yaml +++ b/Documentation/devicetree/bindings/thermal/imx-thermal.yaml @@ -54,6 +54,18 @@ properties: clocks: maxItems: 1 +patternProperties: + "^(automotive|commercial|extended-commercial|industrial)-thermal$": + type: object + description: + Thermal characteristics for each available temperature grade, this allows + to override the passive and critical trip points. + properties: + trips: + $ref: "thermal-zones.yaml#/$defs/trips-base" + + additionalProperties: false + required: - compatible - interrupts @@ -98,5 +110,20 @@ examples: nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; nvmem-cell-names = "calib", "temp_grade"; clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>; + + industrial-thermal { + trips { + temp_trip_passive_industrial: trip-point0 { + temperature = <95000>; + hysteresis = <0>; + type = "passive"; + }; + temp_trip_crit_industrial: trip-point1 { + temperature = <100000>; + hysteresis = <0>; + type = "critical"; + }; + }; + }; }; };