From patchwork Fri Jun 17 07:08:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 1644690 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 4LPVXP4kj0z9sGV for ; Fri, 17 Jun 2022 17:09:25 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380459AbiFQHJY convert rfc822-to-8bit (ORCPT ); Fri, 17 Jun 2022 03:09:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380515AbiFQHJI (ORCPT ); Fri, 17 Jun 2022 03:09:08 -0400 Received: from de-smtp-delivery-113.mimecast.com (de-smtp-delivery-113.mimecast.com [194.104.109.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 20E8064BDE for ; Fri, 17 Jun 2022 00:09:00 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2043.outbound.protection.outlook.com [104.47.22.43]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-31-6SI1p9w7M8KLL0ipN7mrjQ-2; Fri, 17 Jun 2022 09:08:57 +0200 X-MC-Unique: 6SI1p9w7M8KLL0ipN7mrjQ-2 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0263.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Fri, 17 Jun 2022 07:08:51 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.016; Fri, 17 Jun 2022 07:08:51 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/9] dt-bindings: thermal: Define trips node in $defs Date: Fri, 17 Jun 2022 09:08:39 +0200 Message-ID: <20220617070847.186876-2-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617070847.186876-1-francesco.dolcini@toradex.com> References: <20220617070847.186876-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR2P264CA0116.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:33::32) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a4f854aa-8c9c-4739-4e89-08da50303b31 X-MS-TrafficTypeDiagnostic: GVAP278MB0263:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: me1WG8aupkuS4f0WTnZYCMt5nnsDDuphqKiR8z2/wj8yXJuj+ggGLXg+m/wNDrWotSrOG09Q75Z3FZElH1BrhCugYKj06ShCOojhwqxl3dWWRaQY0cDSixLQSMPbJd5R4IbvqROV4rDf+qlrYg+TQPOq79V6x/Rt7XbDfy1lG0Jsy0ygu1pnpkwN/jOFTfxz++e81M/qzQ3S/FDcwEG9ccAYyx/Tsm++ehk42M7emw4LCzcRYYMoY+/jHT3E47DBdvGYl25ZZwRwN3BGYFwNiKp0BOZZ2fmLKevvXMg/uwZ7XIEQH4WbLCYI6cVKeefxSyju7wIqm9U2Qf6IRAwlu/vkoQtB2dhcUOJuUr8cUVD/dLg+W6lSTAuX1OSBTSKfgA/MmcgVw9+xWWN1EDYKNDgrAC9yt9jZuEgXT025iWo0exJjJBA8cBYe+CYX14AvijdJfDve3y4s0NhhBOU4xbSB4atd2U9CJ2P7xzhcHAlydAZtp4C1cG1eQyGPQiPsCT2oxQzd6l2zwLqjKcKEgP024uzunNuKIFop61/gZG5tdx7FQaQSja8ZKUqFN0Of+KlXfZUdZKbdyOJeVt6fro8wa00g6Pf3p7Su6+f1i0KICgHagD1xs8qZM13G207MU/mWMFP+wnA0PYnUF5BW5qJd3c/5LnIJ0WhNs/rKOAeVCrzZ8rFQPSsKO8HEdVoJieZYkGIgVSXEPox159jHDA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(39840400004)(346002)(136003)(396003)(366004)(38100700002)(6506007)(52116002)(8936002)(6666004)(6512007)(6486002)(26005)(83380400001)(2906002)(110136005)(5660300002)(54906003)(316002)(36756003)(86362001)(1076003)(2616005)(41300700001)(66556008)(4326008)(44832011)(8676002)(186003)(66476007)(38350700002)(508600001)(66946007)(7416002);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: aQsLJcqqGeE+NcY9eBMYg3MD5mta17lfoAFuwUE7Rea/GaZTJL8ObbUVeHF3s058/oYPZLW+t+JzQ0XMPk5OHDA+1t7/c+L6JGjmcVYtjYJod2bkwBAEpsm7sfidw8QsuSxfrT16dN3NoLCZj9p43rj6wSWuQSIe+6SOC+a5qjg4HLAFpnkx8fNRxkt3OegMtVkg3S/h4O9k6Jb8b4t1d3+kNrisGU2OzJbK+LeWLfQfqQkckEZYrUop3zA/eDLJaR7CEjT8f+uYlbBYJGqFl2dX+ULImr/VookOrk0GUl5GEMyCtDDfmw+h6iAfFHAszGU7sS0bafsdbhczq8UZm/gc/EsgROvmbGOhqTply2SN9Ek0KBz/psc7WJga324K7kPSdRzfawEM9dV2PX3N0IMvfQM59kqMZ/kDnZvecnk/I8dMePfodqeG2YBND+5MX4KFmn/7s47LPpQcdWum08aqipXf0LCa8TU3qZ0pkjhOqK4FJLGWLoVs9WBAIW2f/Dwc9AGPEAB8NQpvTCZiLW+Eto0os00G0umm/y7pKmBdN7ZATAdD12/uL0kZ69nBMDEVJjuahLwCsnMXYTmNUr8ZbKKRc/4cHSE2xWjGhUAbdaAfAkAfqHO0XJiwPrAUPBur51gaUs0BqM9txAEXsgyQe3OuCJ1NS2nkJiR6eVhRuHienb1TIBdR2NTqBc6Ipysz5QjLFQN0eT/O42C10dybgNcYwcKXBm75CgxnxgAUXfvjSdIoKlI9F5bTuNGoOs01sxpQW1UbCPUCawpZNWsJ0SKKNxAUf6P2hOjaiePyVcaB+dAJvkM5xBByOgtH9zLNJj6WCLJ61Bp4rLwQqi13etAH8MOTcl4o1E/Ol1SavA+GNIPkW1u0CQHNeZ9gnFFNv8kkBy38PW/15mL4dNjp2Z4DhfAILD7v5yiVaE9XDgxhMEM4gNqsGHFfFi6h6p2UWaDEGlJ2da2+coP5LoaEtFArop83RUmpqq8fE7kCDEMVEHBtqM2fnNScQr3vQu50tONB3knlb+isMmxWGhXl1ylyUAkrdkB30Ix4S6UwBzhyfT3Ho6P7GVmlTxJg7MEM7cc5kPYZZYk9qgA9Xx2s8qmxi7L8jPgsas8RIOA6ALKMh0iq0bLYmWU0EdaL6268RJq+s+C0QxM32EouJ4F0Ky1jFOToQ9gSK7jE6NOEG8Vcu2yBKtOBtxpL/JQGHLnp9yMhkaIGk2uaeFGHFNheCPEH9MoLunMboJkib8kQT4e+2/fLxhw4yxE6n4phYE1E8sM+vqf+uFweFhZq+Lg2P2tMZseD4DCKyiJG2wzFYu3atEm7bg3kMVItKNSokAY5OfXA++Yrdo9f3lUgqJCg4qOA64vffJF3sGnGGmWO186u0UQmglHa3m5O17jtIg5myZ9DVDUY3eeG21bZcvNYHyThaZg/Haf1QeASjzthXs0R44n3iSKWMz4QXUTpP3qJnwBkbyLdVZfk7o7IuAkUrCOFhvdMTG+7RQ3Zq+88wr+r03xaKCEaXSyDa/CoqCMOIubOyHpZ4OrMI40BNnv3U0aKNcV+HxweIJDK5z8TVXNt4RlNxs1cthLdviUk2ulIap1BvURpVYKWDeZA6tlNNlAkNOwUjvn6HU1dJ+LkR+gZHQX5QRZVSY+wTK7DMzFqru32eTIY+s2fhaHea3xS/stR/2shRXvhlu5mhIklMqgvzZgi/mYHJ9iU6OYPxgncDvGMRsAuUM5iv/7Y8WG+umMcoY8LVJ/0AIMGuHQ= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: a4f854aa-8c9c-4739-4e89-08da50303b31 X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 07:08:50.9491 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yx6oFfSHoC0w4azkdFDZJ+Ib7UG2qZmNzT3b5Z9NGIiMC9SlvcfA99CvRFqoBljXRI/cm5oYiCbzxlUAPbEhYu/2jdyDVuP521PxKm/XScE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0263 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com 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=unavailable 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:08:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francesco Dolcini X-Patchwork-Id: 1644688 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 4LPVXL652Nz9sGH for ; Fri, 17 Jun 2022 17:09:22 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380487AbiFQHJU convert rfc822-to-8bit (ORCPT ); Fri, 17 Jun 2022 03:09:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380445AbiFQHJF (ORCPT ); Fri, 17 Jun 2022 03:09:05 -0400 Received: from de-smtp-delivery-113.mimecast.com (de-smtp-delivery-113.mimecast.com [194.104.109.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 574D763BCC for ; Fri, 17 Jun 2022 00:08:57 -0700 (PDT) Received: from CHE01-GV0-obe.outbound.protection.outlook.com (mail-gv0che01lp2048.outbound.protection.outlook.com [104.47.22.48]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id de-mta-15-Dh4YVhQxMS26iIzfskeUJw-3; Fri, 17 Jun 2022 09:08:54 +0200 X-MC-Unique: Dh4YVhQxMS26iIzfskeUJw-3 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) by GVAP278MB0263.CHEP278.PROD.OUTLOOK.COM (2603:10a6:710:3d::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5353.15; Fri, 17 Jun 2022 07:08:50 +0000 Received: from ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987]) by ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM ([fe80::2879:acb:62c8:4987%8]) with mapi id 15.20.5353.016; Fri, 17 Jun 2022 07:08:50 +0000 From: Francesco Dolcini To: Daniel Lezcano , Rob Herring , "Rafael J. Wysocki" , Krzysztof Kozlowski , Shawn Guo , Marco Felsch , Anson Huang CC: Francesco Dolcini , Amit Kucheria , Zhang Rui , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Pengutronix Kernel Team , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 3/9] dt-bindings: thermal: imx: Add trips point Date: Fri, 17 Jun 2022 09:08:41 +0200 Message-ID: <20220617070847.186876-4-francesco.dolcini@toradex.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220617070847.186876-1-francesco.dolcini@toradex.com> References: <20220617070847.186876-1-francesco.dolcini@toradex.com> X-ClientProxiedBy: MR2P264CA0138.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:30::30) To ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:2e::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ae209dc8-7505-4b4c-e4c7-08da50303abe X-MS-TrafficTypeDiagnostic: GVAP278MB0263:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0 X-Microsoft-Antispam-Message-Info: gvXmXcCAk6Mx+DOKY12wFMntoxzEsAzzWmhFvM/nhdPpf5bqg2QJJqicqQbjEWbUi58iDG0LshOd1wRDZqacj/T7xISr4GcXA+TcHeVXMFNxNRmRqDhGdWRGRikfZg4mgM5a5u6mQWgNHorKnFHGvF4RM6bK9q1lhZS7/fcziPTxboVWa0Xp9O0LtSX+K6gTYiZiMP38tU8SpyvtKRZZ73OXxQyLYeNZ2MTxtVWD0zwDjLT7lCFD5Ry9OFQioD+srMH/jJR4fKA78ZuGYVxRT/3rh+5agMskPOJmKL7qTOAenIgkpGhXcuAtWTQMdi8fBv5sRleN9HSR4J8g+yEFzDqwwRAu09JKWONLGrlPvqPdGYwLYrw9w4RgY0SbCeJ/0JtkOtVFuJhlyF0KNjVvG5o+mxFQFsq9CUSfSjwlG+RyUkZrR2Y/upxVrQ079z5vCj2PwF76+G7dZtGJvR0qGOFAArAc7H4T2jRdlunG+XDF2GmhUUyg7AEUq80zeSr/xigmrBQ9NH3N6iTFmlVj0POr9irfdw1lRI5nlWdrNwFH14Wdv9A8P1of3boxF2DJZLrEkUWMOSJ1vMRFM6cOTFrRUOFXrCqTiWJvLroOYruMZQ8gApEvYJ+vHKxrCUCF044QM+V+wi+GgNqQbIeCgSSBLUpQemvEJN+e3GZuRRM1/Dp2xu8I2NQ1aiG3qkzlnIOr1I3F/HuJPQDIz0I4+Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(39840400004)(346002)(136003)(396003)(366004)(38100700002)(6506007)(52116002)(8936002)(6666004)(6512007)(6486002)(26005)(83380400001)(2906002)(110136005)(5660300002)(54906003)(316002)(36756003)(86362001)(1076003)(2616005)(41300700001)(66556008)(4326008)(44832011)(8676002)(186003)(66476007)(38350700002)(508600001)(66946007)(7416002);DIR:OUT;SFP:1102 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 85AKQR5F6UOE8I9EUdfBS4uM3o5GkUh26xpk5ojbwg7vWwiFHC4FNNEstpAimlEwX87jtpQ8eV5zA/8oPO7xMOP3VT5AJBEduOIchLWF/TtOX0l4U6P6kU9Z8X9ZHcWrOjfw1WjhFokY+8upXT/VaLoaYZsJwWnQLnC3yGuQP6adIjjs7HOoOTiZezvTk/suWS7QwIL17mdo8CM8+9nzyH3CkyCTxkJXpBI5OtJUNipoS0MKTt2fyjreVs92BGayJEeI+6BVCZPRc1FhLM/r6v+5INi79tNF9343vQskVDSR+hHIsYbXT3kuDkIGrrvrcjw80Gr2QtPhC5pUFjtoAlAz0JXVAxvhPMHf2lFVepZkGNj1/NJRD476ipz+f8q/h08MJJZ60J07EILhAbzURvg0jozv7f3BRINfZ4du3B41O0QnOdNb3JkH3K1jYDMhYhNudpl+u8F0idsZQ+pGlgSRKCJys20hstwLLV8SIdH4LHEbebDBtc9S+WnYnw+Iwee8fpj/IDExJ6bdgCNL0Da3BbG68y1LKTwTWwox63vGe+BB/raowLPheel9lvcjXq/RtqZbXCCeyQ+fAGiySphWX2FKV0nulx6GbL9HWmN7EYUNhlFPg1ku8UbYK/go8MiQw75wimYx+B7GzmCTlAieaulKN2uTgVOzqotWN10HemZC+uO4Eu21IAtzSstkytnfkMytnYgz85nuaeuxiUNmmim/+0mp4B7cgHWSJv0xSDPqallXXoidonMoCfYmjjNZAXFW98Sl1C3B/lLpQSMFwtrXbD1nVI2m+dgfheczIJEecZi9Byq/bGnet796ItpUKkIVi2qTWuzyy366P2Xmzoh9r1yVm+vTDrVaeAv4eQ5/+XnTE+tR3YbLk8DVwJaV7KcH0UI94FHQaIs9EAn/7zNPAmqZQtlJfvoX2Hv0IJddkkw3GWsWXs8glASyZ8Tc/2QdEEh/ggZiQtAtRLlvtsm8eRrYsuOETVZFvM8yy05lvdy8KoST3gmBTvVyRRywS0BBUGS6ha2am6nOV7sZzL2VwzH2fRjpuJ3zmYubsElRaOpK496R6UVDaVwlRNqIvlJqw3GpDoXQBC5RfdUTzlO8jZ1l8ftY/iRLeccoVZEG6HJw9Ks2onFobdEJiMZlHTNSJiHhDu4d4UWMlswqbnbnOOFtmbrJ55Wet/UH9bax1TtZ1fjSj3z0EMK/G37WAWla399EE/aFTu1nOY9I+FBKYpRtMD0nK7kAka69cC8RMV5yDFOg/hwP1B5JSMRNTp58o5LtoIm0Pcbk7aS8R/iM/yS2PRoRYFYcFWFLgQW36wVygdc0t0uWlcesjzrH42xam5DJ+QXWku2fZN4UZn7tmMKTGRhUm35RJ0YqFy9Y3yeGg2XMCnrrDe9gt6eLBTUzyGhOskqnTavz7FH7n5MgWgnn/Z2FPd+utmGVeKvXHksNWP7138lAtLvF6Php7WMA4r/iGSj143RHfE+B+ZZBA3CjigUv73gkiJkXkui3pDekCaTfSiC4F3Tku3VJ68vDW/HhJdieMUHorp2uu5bOKSgs+K3iDkiXV11FnaQeojVo05CCZ5lh28GAXV2uMik3PgYqEqMqyx14IhfAZ85qJZIk2Bvh3Nl9xRlxqxw3YHiGMt1luDsHQl3sm19PNWKL6rKPigzOLNKX/D78QuzAP6UEN6zU3imIEcW3NeuYoKDtW/MUI0SR8zR3c2aW23AASrtLZWPa9BtTzaBOPOY9s0bVLCJqsQCdZB8= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: ae209dc8-7505-4b4c-e4c7-08da50303abe X-MS-Exchange-CrossTenant-AuthSource: ZRAP278MB0495.CHEP278.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2022 07:08:50.2305 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZRr3GiisuQ6ts4TGfnmGo5eHgfL3gdv0gJSarMKouHq+qi+ikpC7R4cGEAWpqQE3HDQ/7NcLCyFO9lSIlcPO4lGZlu1m6BH230WMKCN7XoU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVAP278MB0263 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CDE13A77 smtp.mailfrom=francesco.dolcini@toradex.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: toradex.com 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"; + }; + }; + }; }; };