Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6247194ybi; Wed, 31 Jul 2019 10:51:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwYNSeljnFyuczBggMoWSW1779gln2WTSDCFC6S773I9OmctQMhnWJcIJYgnsI1NJKMwzZR X-Received: by 2002:a17:902:112a:: with SMTP id d39mr123167711pla.254.1564595467002; Wed, 31 Jul 2019 10:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564595466; cv=none; d=google.com; s=arc-20160816; b=r5xQHoHYMgBhxhkRmTQdw/YKFG58IK7EMPnmJ+8dItsiwj5m+8+5AgyB4otTkO2tYM H0z4yuSsIfYl817pA98L14+j0ThWuSk9wlXLzhD8UvdE+3tW5W9F5OduDvkPTQzf8aQL oG6S8eP385As2VsaHNdpPIdK1ojY9CJbDBYCYn+2/dg9RGCLRjby1Ap0XhQhoMXND0vK MvK698G7yI7tTAzof31xfTlZBbhiSdWY4UKT2Q83/GNUq4dWozFib7KaPfjPzwz5FNQs 5Gdz+Jy5SirA2Q9/xOgU9W0MjTe+oXVv4m0dpN+eyZYvBrbXoAFEajDABq17/1yN/FPP I+qA== 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=6Ru3RETYpl+BbAR8nJhMveRKLU+FO7BV/2naJQQ9J3g=; b=nuC19M0BgAVYLMA1e3wPBm51rdDMGicTrqMysrWNC8yyac+TGR9ln50XqXOz9m0c2Q 4ge/I7ppP026rHqrLbgrXDI2H2AalzUJtxF134MDdapQAVqSKZgmEdUxtPW1HOULwkbC wMOomZHOWQgfNtf8mBxh8dBtBaEeEmBn0Tnap14Mrhbeb0bp+kD6KoVz1SS0LMCNMlSK hMXaQIZYIh48oCymF4w+lRcq+r/r7nP8G6dHfGDLNzoLPAdFTKNAsmgbZlDd0FCheUak UQIDw31yfVMJtbrgRU2+VshxFVUOjUh6Sm/33fdmzEwIfbI4mNqFVfYWrUIISJYN5tPc SE9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="HbwUPQ/T"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si30042096plc.356.2019.07.31.10.50.51; Wed, 31 Jul 2019 10:51:06 -0700 (PDT) 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=@kernel.org header.s=default header.b="HbwUPQ/T"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730471AbfGaRBF (ORCPT + 99 others); Wed, 31 Jul 2019 13:01:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:46118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbfGaRBE (ORCPT ); Wed, 31 Jul 2019 13:01:04 -0400 Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 36D1421855; Wed, 31 Jul 2019 17:01:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564592463; bh=y/z8SK50ZpO4nCmvVJnpvHDo1YUj59MbZ52y+l8J5m0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=HbwUPQ/TqNvkzRJEcfZ45zRKq9UrnGWvUXJ0/cdlWu/BJVBs2LG/ZZYYUrk4dGsAo AjbOYmZU11vX9u5eeQwPrz6tRO6FbPeES2AcQ8GI18tGedmrKCP7LT72FixIM3jwNu Aak7Z3x3bzlKlc3NTPWHGAeUTjEWh4pIQALXNY0k= Received: by mail-qt1-f175.google.com with SMTP id h18so67318021qtm.9; Wed, 31 Jul 2019 10:01:03 -0700 (PDT) X-Gm-Message-State: APjAAAXqChy7pPlRu0B5aU6wkXLxK9WpOTkzfuqNg0N6vHtBX+REdSMn 36P/e+93kCh1KZ0rjt3J8TdeIMkKpdi66sFzbQ== X-Received: by 2002:a0c:b786:: with SMTP id l6mr89053606qve.148.1564592462233; Wed, 31 Jul 2019 10:01:02 -0700 (PDT) MIME-Version: 1.0 References: <20190731121409.17285-1-glaroque@baylibre.com> <20190731121409.17285-2-glaroque@baylibre.com> In-Reply-To: From: Rob Herring Date: Wed, 31 Jul 2019 11:00:50 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/6] dt-bindings: thermal: Add DT bindings documentation for Amlogic Thermal To: Neil Armstrong , Guillaume La Roque Cc: Daniel Lezcano , Kevin Hilman , devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, "linux-kernel@vger.kernel.org" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "open list:THERMAL" 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 On Wed, Jul 31, 2019 at 6:44 AM Neil Armstrong wrote: > > On 31/07/2019 14:14, Guillaume La Roque wrote: > > Adding the devicetree binding documentation for the Amlogic temperature > > sensor found in the Amlogic Meson G12 SoCs. > > the G12A and G12B SoCs are supported. > > > > Signed-off-by: Guillaume La Roque > > --- > > .../bindings/thermal/amlogic,thermal.yaml | 58 +++++++++++++++++++ > > 1 file changed, 58 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml > > > > diff --git a/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml b/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml > > new file mode 100644 > > index 000000000000..1e2fe84da13d > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml > > @@ -0,0 +1,58 @@ > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/thermal/amlogic,thermal.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Amlogic Thermal Driver > > + > > +maintainers: > > + - Guillaume La Roque > > + > > +description: Amlogic Thermal driver > > + > > +properties: > > + compatible: > > + oneOf: > > + - items: > > + - enum: > > + - amlogic,g12-cpu-thermal > > + - amlogic,g12-ddr-thermal > > + - enum: > > + - amlogic,g12-thermal > > Shouldn't be : > compatible: > items: > - enum: > - amlogic,g12-cpu-thermal > - amlogic,g12-ddr-thermal > - const: > - amlogic,g12-thermal > > instead ? Yes, except 'const' is a string, not list value. > > > + > > + reg: > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 1 > > + > > + clocks: > > + maxItems: 1 > > + > > + amlogic,ao-secure: > > + description: phandle to the ao-secure syscon > > + allOf: > > + - $ref: /schemas/types.yaml#/definitions/uint32 phandle, not uint32 > > + > > + > > +required: > > + - compatible > > + - reg > > + - interrupts > > + - clocks > > + - amlogic,ao-secure > > + > > +examples: > > + - | > > + cpu_temp: temperature-sensor@ff634800 { > > + compatible = "amlogic,g12-cpu-thermal", > > + "amlogic,g12-thermal"; > > + reg = <0x0 0xff634800 0x0 0x50>; > > + interrupts = <0x0 0x24 0x0>; > > + clocks = <&clk 164>; > > + status = "okay"; > > + #thermal-sensor-cells = <1>; > > + amlogic,ao-secure = <&sec_AO>; > > + }; > > +... > > \ No newline at end of file Fix this. > > >