Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp289159ioo; Thu, 26 May 2022 03:51:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzX/eATNImAjVUExqMCs/Cj+cA4Hisy4u6yJzZgbTK5HJDJNa2HlgUzAmYhr123Sq/+OR0P X-Received: by 2002:a17:907:7e97:b0:6fe:b6bb:edd0 with SMTP id qb23-20020a1709077e9700b006feb6bbedd0mr25439829ejc.524.1653562263386; Thu, 26 May 2022 03:51:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653562263; cv=none; d=google.com; s=arc-20160816; b=Tex2jN5aL+EkB4VaQ6T25iLIqGuOFTluGD4V2N+XzE3MBdQn0wNI14paha8nGKCjzC RsK67V5AdTfDTcr+0U3h4ctLIq3Nos19J8Sm9Nvohra+6f/HtifMrqQhQvcP79CmXax4 Tz31nMKy3iQWN7RUFQ4fzUfedF3JDiUsABXVrIqfrTIMa2Ta3gR36FW+DU45mDobF8nb YPH43aNPedb4ZQerXJimPlpetri6Ko51QTlijPlNaxOtzzwg6RVmq6QJ+c7nlfcyTGZ0 yTr9jrmidpY8bw4+N2SHt3naSS3igyCPzo724fgh3yvQMY+FfYTMFiYL/6GqPQeIqxph mrZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=ChisiLO0bsSW3mWXz6BoXIcubu0hhX1WwidCN2NJ5Xs=; b=Fac3qtNBwigMBzKfHLNZZdEZSm/yBTpvCwxVsO7tgKBl4wCarLd2WboCMgES8E4CZu xi9IZcEqUfe7erCb7aqL8a+V0SN233Waj8fRCasB2ML7Rd2uTxQzrzlB1NBROy6n0nQJ hVnXXkFhKLTXDZc4rxk7T5U2hS/+7r3kdVFE3YRXQHFcVICg+UNAHWGq6hK3zzOR6k7w NIiE9+aH/+Kl7vLkvkurSayiuqimhVp2sMkzWI7Bgn1m8WVavjgrqt0aFv1ypEMP22+X 5doeCMiZA79W93CIZfoQ4/SXA98ziCh2/xug8WO3BaDpKvi7Bf4ROlWPCwMLS1zRArbx ow/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nd23-20020a170907629700b006fed575b9a7si1513782ejc.207.2022.05.26.03.50.34; Thu, 26 May 2022 03:51:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345855AbiEZCFj (ORCPT + 99 others); Wed, 25 May 2022 22:05:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344428AbiEZCFd (ORCPT ); Wed, 25 May 2022 22:05:33 -0400 Received: from mail-oi1-f181.google.com (mail-oi1-f181.google.com [209.85.167.181]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14F53101C2; Wed, 25 May 2022 19:05:32 -0700 (PDT) Received: by mail-oi1-f181.google.com with SMTP id w130so738639oig.0; Wed, 25 May 2022 19:05:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ChisiLO0bsSW3mWXz6BoXIcubu0hhX1WwidCN2NJ5Xs=; b=dVwbnO22o2lJa7TnL95+9Q8djwItS7TXrq7umduc6XDDiPckVHPFJnW8L9jX+zcGAF KTAmkTtVbc4Y3KujsDNXp0eAlSpelGlqO8//BGd23PGYpG0mnX402n9EiGI+VaDFlQi2 oqGqV5929LblJYhKZZHmozP17nO0nGb5YXqpgpe80jVObuLuI023yjSNUrNRPWNNuNOo UVPl2rfcZKOIowyLbEBiZgTE4RPdHABFODTU+GtjK4IM3osXsJRQbcaEvzi1PIKfkvj3 ISZlYtQYbPMHGsojVKWNlemnnHraFU8oHUmUI2OISBOxX5A39HvXW50w5lzoVgmCxXIz 5Zyw== X-Gm-Message-State: AOAM5301KoPm765g6jjz3LiBCJ5hQw32xiYbazzNwj4STYXsay/t4b7c 2fJ04q7sZJYYkcTOVJlWiA== X-Received: by 2002:a05:6808:199b:b0:329:92c:4a1e with SMTP id bj27-20020a056808199b00b00329092c4a1emr33497oib.214.1653530731400; Wed, 25 May 2022 19:05:31 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id bj39-20020a05680819a700b0032b7b588f3asm195674oib.46.2022.05.25.19.05.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 19:05:30 -0700 (PDT) Received: (nullmailer pid 2907659 invoked by uid 1000); Thu, 26 May 2022 02:05:29 -0000 Date: Wed, 25 May 2022 21:05:29 -0500 From: Rob Herring To: Alexandre Bailon Cc: rafael@kernel.org, rui.zhang@intel.com, daniel.lezcano@linaro.org, amitk@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, khilman@baylibre.com, mka@chromium.org, krzk+dt@kernel.org, matthias.bgg@gmail.com, p.zabel@pengutronix.de, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, james.lo@mediatek.com, fan.chen@mediatek.com, louis.yu@mediatek.com, rex-bc.chen@mediatek.com Subject: Re: [PATCH v7 2/6] dt-bindings: thermal: Add binding document for LVTS thermal controllers Message-ID: <20220526020529.GA2901912-robh@kernel.org> References: <20220524152552.246193-1-abailon@baylibre.com> <20220524152552.246193-3-abailon@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220524152552.246193-3-abailon@baylibre.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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: linux-kernel@vger.kernel.org On Tue, May 24, 2022 at 05:25:49PM +0200, Alexandre Bailon wrote: > This patch adds binding document for mt8192 and mt8195 thermal > controllers. > > Signed-off-by: Alexandre Bailon > --- > .../thermal/mediatek,mt8192-lvts.yaml | 81 +++++++++++++++++++ > 1 file changed, 81 insertions(+) > create mode 100644 Documentation/devicetree/bindings/thermal/mediatek,mt8192-lvts.yaml > > diff --git a/Documentation/devicetree/bindings/thermal/mediatek,mt8192-lvts.yaml b/Documentation/devicetree/bindings/thermal/mediatek,mt8192-lvts.yaml > new file mode 100644 > index 000000000000..914c877d1f2f > --- /dev/null > +++ b/Documentation/devicetree/bindings/thermal/mediatek,mt8192-lvts.yaml > @@ -0,0 +1,81 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/thermal/mediatek,mt8192-lvts.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek SoC LVTS thermal controller > + > +maintainers: > + - Yu-Chia Chang > + - Ben Tseng > + > +allOf: > + - $ref: thermal-sensor.yaml# > + - $ref: /nvmem/nvmem-consumer.yaml# Besides having an error, there is no need to reference this. It is applied to all nodes and you still have to list the properties here to define how many entries and what they are. > + > +properties: > + compatible: > + enum: > + - mediatek,mt8192-lvts > + - mediatek,mt8195-lvts > + > + reg: > + minItems: 2 > + maxItems: 4 > + > + interrupts: > + maxItems: 2 > + > + clocks: > + maxItems: 1 > + > + "#thermal-sensor-cells": > + const: 1 > + > + nvmem-cells: > + maxItems: 2 > + description: Calibration data for thermal sensors Need to define what each entry is. > + > + nvmem-cell-names: > + items: > + - const: e_data1 > + - const: e_data2 Wow, those are useful names. > + > + resets: > + $ref: /schemas/types.yaml#/definitions/phandle-array Already has a type. Need to define how many entries and what each one is (if more than 1). > + > + > +required: > + - '#thermal-sensor-cells' > + - compatible > + - reg > + - interrupts > + - clocks > + - nvmem-cells > + - nvmem-cell-names > + - resets > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + #include > + > + lvts: lvts@1100b000 { Drop unused label. thermal-sensor@... > + compatible = "mediatek,mt8195-lvts"; > + #thermal-sensor-cells = <1>; > + reg = <0 0x1100b000 0 0x1000>, > + <0 0x11278000 0 0x1000>; > + interrupts = , > + ; > + clocks = <&infracfg_ao CLK_INFRA_AO_THERM>; > + resets = <&infracfg_ao MT8195_INFRA_RST0_THERM_CTRL_SWRST>, > + <&infracfg_ao MT8195_INFRA_RST4_THERM_CTRL_MCU_SWRST>; > + nvmem-cells = <&lvts_e_data1 &lvts_e_data2>; > + nvmem-cell-names = "e_data1","e_data2"; > + }; > +... > -- > 2.35.1 > >