Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2128818ybv; Sun, 23 Feb 2020 23:22:53 -0800 (PST) X-Google-Smtp-Source: APXvYqzhTgan+HOAqlzyQpmBAgx3nN99U9MPXFRFIf2tmM+dN1/yPPVfHbooHi4s5dzN3tK/3ziy X-Received: by 2002:a54:4791:: with SMTP id o17mr11001166oic.70.1582528973089; Sun, 23 Feb 2020 23:22:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582528973; cv=none; d=google.com; s=arc-20160816; b=oNiF/++cQ/yvKHPfmyYGCTdI3YqoBf+WDlo4txYMbTbFGeA5ARlt9u7foGG7CYjNuL /K/XY600Ocel15873G2WWR5E9PkycTcO9TiukwulPm4T/e/PFbNIwTOdgz+Y6JXsYpAj 8pfZrTljtkRyWDwRbp8Wr2JWhSfzX7c/9CER+czQ0l8dHzV0Xc9lk81nQ99Nf4oLvtpG loNyJQ/Un1fAtpSrL03r7kMjrsYebSWXIf2kbwWLLI4y6UpYLiH6MT0wR9DE2rW/Nd8J kJtOTlKkOr8OtS6RcoGNx3RDLu0C9U1ICPbTSAg6Ba4wkoAzws2EVGTjdchLN83xdJnX UYsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=51VpaiWfXJd1ONeSEUuEOWBMV41ZnSSRJG+n3jg+2Ko=; b=pY2DvHjfJrvao7mYmeF+IdX7KOcxtjES1jaDY2Th4sHUdeb3Rfgdh/2dyqjR89v351 rOUSCC1ddMscJo1Wgw4ZoyTjfXhqlkJs2jO0VecwKAsbIyy4lYiFQux5eI29ZHsSYvMV H9Z0hUdoaMcJjyoBNmVGzrftDRkNQAWTZxgJI/RH0ppAusV3osNpb+UuAcd99SBDFLC1 OZlR54iGA8xCko6IJzq9/8ylJNQ08oacpCwh1DIvgMytg5FHRf7jf/NDCS0q5y4l32Do FOtJyDxaycU0xhjVULNOWofjTikUkvOdCYHRSeTU/oIsopEQKklO2OcqKe9wURZFjecD catQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=uXt0JYDx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q126si4907581oia.8.2020.02.23.23.22.40; Sun, 23 Feb 2020 23:22:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@verdurent-com.20150623.gappssmtp.com header.s=20150623 header.b=uXt0JYDx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727185AbgBXHWV (ORCPT + 99 others); Mon, 24 Feb 2020 02:22:21 -0500 Received: from mail-ua1-f67.google.com ([209.85.222.67]:37858 "EHLO mail-ua1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbgBXHWU (ORCPT ); Mon, 24 Feb 2020 02:22:20 -0500 Received: by mail-ua1-f67.google.com with SMTP id h32so2876961uah.4 for ; Sun, 23 Feb 2020 23:22:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verdurent-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=51VpaiWfXJd1ONeSEUuEOWBMV41ZnSSRJG+n3jg+2Ko=; b=uXt0JYDxbDwwvUxezeC7a0GwQS/QoUKiPOOvCcnibKZADVlU20s696uVOrhCwyJ9uD ebeOhCAu+glMcm8JwQJc7NynJr6maQvt/Q3W1Z5FHboIMkw8LjWT34FT6FQBmtYQBkBD tiilg+lE6Q4YmUCeFq2D3+IM2habtm/yvHnQgOp93Fa+jZYMQ3P/iQX4xncguVgs+htm 84nedT0uT3cWK+EDwKjY1/aEEGrdU+W3RZNLcFTmBI130iA3UiUI4gSNQYqtSwzaM5rZ NpQieeMXPKgyy0DFkcErj60rJbMjRQ+02CXK8W06u7EMIwEidMCys6BU9Ss+clceXT8u 5AGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=51VpaiWfXJd1ONeSEUuEOWBMV41ZnSSRJG+n3jg+2Ko=; b=Kgo8j4HBKB/BIJKNBW4VzG95+W4UCSqOcyKe7rG+/EBxJyB2Zt3BkwBgtF0/ja4MF2 4eFp5Vr21NfKydNMzOneSi/2Wd1o0Lavsj+1TMtDNXAdsgDFKG3/NkbWhAVnYdOaGxB6 MuPOv2ngaZ4Es+w4O4jLSPki4kr0qUT9O1TND9d0JFnsvyyvcuOcCTbc0go9fhY6xHR1 QCvov1h1P0CsGRWSBTwD1DvfyRq56/7tZLJQWHTScunUdTK6UN3wvMD3YKm00yK/hxVf 2MKGkw2bDi8eGzdwetU7CHvxcZCdKZn40vW/fQd4tCuMWbLyEWvXPJMEVt44y9Odj7KX nZTg== X-Gm-Message-State: APjAAAXqLB0OH5fKX1gHKnVBBRuH4tGE3BOMZiht8+rTsc5f7ej/mYex NwFkQkJqfkx5SqJumMrwGrxRZLDi0hI1j+T/i9TY4Is3 X-Received: by 2002:ab0:634c:: with SMTP id f12mr24202339uap.48.1582528938687; Sun, 23 Feb 2020 23:22:18 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kucheria Date: Mon, 24 Feb 2020 12:52:07 +0530 Message-ID: Subject: Re: [RFC PATCH v5 0/3] Convert thermal bindings to yaml To: LKML , linux-arm-msm , Stephen Boyd , Matthias Kaehlcke , Daniel Lezcano , Amit Kucheria , Zhang Rui Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux PM list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sigh, typo on my part with the version of the series. Will resend with corrections. On Mon, Feb 24, 2020 at 12:50 PM Amit Kucheria wrote: > > Hi all, > > Here is a series splitting up the thermal bindings into 3 separate bindings > in YAML, one each of the sensor, cooling-device and the thermal zones. > Since I was learning about YAML parsers while creating these bindings, > there are bound to be some issues. > > I have to add that the bindings as they exist today, don't really follow > the "describe the hardware" model of devicetree. e.g. the entire > thermal-zone binding is a software abstraction to tie arbitrary, > board-specific trip points to cooling strategies. This doesn't fit well > into the model where the same SoC in two different form-factor devices e.g. > mobile and laptop, will have fairly different thermal profiles and might > benefit from different trip points and mitigation heuristics. I've started > some experiments with moving the thermal zone data to a board-specific > platform data that is used to initialise a "thermal zone driver". > > In any case, if we ever move down that path, it'll probably end up being v2 > of the binding, so this series is still relevant. > > Please help review. > > Regards, > Amit > > > Amit Kucheria (3): > dt-bindings: thermal: Add yaml bindings for thermal sensors > dt-bindings: thermal: Add yaml bindings for thermal cooling-devices > dt-bindings: thermal: Add yaml bindings for thermal zones > > .../thermal/thermal-cooling-devices.yaml | 114 +++++++ > .../bindings/thermal/thermal-sensor.yaml | 70 ++++ > .../bindings/thermal/thermal-zones.yaml | 302 ++++++++++++++++++ > 3 files changed, 486 insertions(+) > create mode 100644 Documentation/devicetree/bindings/thermal/thermal-cooling-devices.yaml > create mode 100644 Documentation/devicetree/bindings/thermal/thermal-sensor.yaml > create mode 100644 Documentation/devicetree/bindings/thermal/thermal-zones.yaml > > -- > 2.20.1 >