Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2328137pxf; Sat, 27 Mar 2021 08:23:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+2GruzKB1VHwp6z6w8AcqN2NCSluSxxpSZNtz27Q7Vt9u7Q9yciMSHZtAOMwEhRwSHNkt X-Received: by 2002:a17:907:d0b:: with SMTP id gn11mr20564982ejc.463.1616858630900; Sat, 27 Mar 2021 08:23:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616858630; cv=none; d=google.com; s=arc-20160816; b=elMvwmVRhWOygNvG1q/1qUu0uwhslO5fSlut+kGv6d5pE07QBybxWO6zr6J0FL83tb 1+pXnyG8jGUusoWmwa2la9ZAapH+JfE9o8b8Oy9yJsTR3FNtiFsQQz64yCIln9ySJ7N8 6EqQqQETnIqPHGTuTdOPunRX2U9OddO4YCIDzpTkP2JZojXfLZn3zhYT04V9txqRZbqa snJjLE3yGOh8faPAWYXqR5KoqCUzAlq7INlsoY1bMjhtFG0mXGsYDrrgUc2xG9I4tFlb idT8RzhJciKtuTj2jEy+WKbZAnb7z89z30MHXvSyxZgVVuq6KC9nAdjggygawhdwBXB9 12AQ== 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=HR93ICa3yWJ7V2cU1aVAOQYhP6ybWqoIXcHtKx1QIgQ=; b=exeKFszSbzhImkkinGhwJyY2GDPqhEGPw6gG1boarmUG/L/fmX+JMS5sghV7GAfbQ2 ajjMWzLPw/Cf7OjbM9OulCAtFrF51/qnQmSaHxs5rku65+jbkas9iHld2Y1d4sOvk5Gq To5rxW+LFdx1sU+6LloOfTS151phxJN6VlIfYxnduMYlV5pu68+Pbvl6YPCM709VX0w/ Jrn7bq26Xthlm5GoE475WkA3CQD4YzqAjygJtQfpgKbc4+Y5zr54b0pK5KyXoNHR6v0x EYipn9kvLOeEwaAu5r82KAAGm1PLp0hQZRd5IAcqZcUNr4SqUiP1pYa3XGFCtEuqD3Bo T4SA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id q17si9945886edb.68.2021.03.27.08.23.28; Sat, 27 Mar 2021 08:23:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230254AbhC0PSG (ORCPT + 99 others); Sat, 27 Mar 2021 11:18:06 -0400 Received: from mail-oi1-f180.google.com ([209.85.167.180]:39588 "EHLO mail-oi1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230127AbhC0PRu (ORCPT ); Sat, 27 Mar 2021 11:17:50 -0400 Received: by mail-oi1-f180.google.com with SMTP id i81so8819744oif.6; Sat, 27 Mar 2021 08:17:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=HR93ICa3yWJ7V2cU1aVAOQYhP6ybWqoIXcHtKx1QIgQ=; b=h9VKXn/mGFvqhdgza2zTIl5+culRmIrm1B87cHRrrXzn8iEAwktaqdGCx9BfAl1ZEA 3rfH4QOE6XqdApSKVPJLaw+R152DQMnM2VlQlv79lPGWZCPPmFLZokH8ds32kYynpAVY KMIR2+A4Ix93bnFyK/J3kAF4qMDUFjtIe7WFu1Pp/Dmscsvgc1kvbUBxM/RFIa+rJRWQ Hmd7mwE7nzTZTBCpcr2cY43DYfFPPbtk8ShmuQF0gky1gy7o2RmBPxCVOAp56SvIkdfH se7XbrysWpa43Pr+9RwQwWTNpPW3t7JKt3FtdswKitSJPm4LJUcxBet77/rjLqYVeS0z gHZw== X-Gm-Message-State: AOAM531PQnQcLc/nBdqCnSXbHO1TUkek9fFyuNX+/xP0ITxoNGBNWcuK zIdw/k24OmVWlykLQN3BLQ== X-Received: by 2002:aca:3788:: with SMTP id e130mr13252828oia.45.1616858270409; Sat, 27 Mar 2021 08:17:50 -0700 (PDT) Received: from robh.at.kernel.org ([172.58.102.185]) by smtp.gmail.com with ESMTPSA id l191sm2410902oih.16.2021.03.27.08.17.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Mar 2021 08:17:49 -0700 (PDT) Received: (nullmailer pid 131094 invoked by uid 1000); Sat, 27 Mar 2021 15:14:33 -0000 Date: Sat, 27 Mar 2021 09:14:33 -0600 From: Rob Herring To: Alistair Francis Cc: lee.jones@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alistair23@gmail.com Subject: Re: [PATCH v4 1/5] dt-bindings: mfd: Initial commit of silergy,sy7636a.yaml Message-ID: <20210327151433.GA121810@robh.at.kernel.org> References: <20210326015511.218-1-alistair@alistair23.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210326015511.218-1-alistair@alistair23.me> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 25, 2021 at 09:55:07PM -0400, Alistair Francis wrote: > Initial support for the Silergy SY7636A Power Management chip > and regulator. > > Signed-off-by: Alistair Francis > --- > v3: > - No change > v2: > - N/A > > .../bindings/mfd/silergy,sy7636a.yaml | 63 +++++++++++++++++++ > 1 file changed, 63 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml > > diff --git a/Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml b/Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml > new file mode 100644 > index 000000000000..f260a8eae226 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mfd/silergy,sy7636a.yaml > @@ -0,0 +1,63 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mfd/silergy,sy7636a.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: silergy sy7636a PMIC > + > +maintainers: > + - Alistair Francis > + > +properties: > + compatible: > + const: silergy,sy7636a > + > + reg: > + maxItems: 1 > + > + '#thermal-sensor-cells': > + const: 0 > + > + regulators: > + type: object > + $ref: /schemas/regulator/regulator.yaml# This isn't right as the actual regulators are child nodes of 'regulators'. So you need another level defined here. This node should also have 'additionalProperties: false' which will highlight the errors here. > + > + properties: > + compatible: > + const: silergy,sy7636a-regulator > + > + regulator-name: > + pattern: "vcom" Not a pattern. Use 'const'. > + > +required: > + - compatible > + - reg > + - '#thermal-sensor-cells' > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + sy7636a@62 { pmic@62 > + compatible = "silergy,sy7636a"; > + reg = <0x62>; > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_epdpmic>; > + #thermal-sensor-cells = <0>; > + > + regulators { > + compatible = "silergy,sy7636a-regulator"; > + reg_epdpmic: vcom { > + regulator-name = "vcom"; > + regulator-boot-on; > + }; > + }; > + }; > + }; > +... > -- > 2.31.0 >