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+ka3Hwg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/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"; + }; + }; + }; }; };