Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1067361ybz; Fri, 1 May 2020 13:51:23 -0700 (PDT) X-Google-Smtp-Source: APiQypJRPs94LkxyjBe/WNxTL1KNhEYc+N69VIP53QN9D7+73thCb/KrfVs/gr0y77+SCNcyZ1Ht X-Received: by 2002:a17:907:435d:: with SMTP id oc21mr5134779ejb.100.1588366283786; Fri, 01 May 2020 13:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588366283; cv=none; d=google.com; s=arc-20160816; b=NNm7esWfOE3zXf7FqISTo8QB54IzxCET6Xx2byegw8pJPObDfdTvfmgjP3qaO+8KRP pcIcMjQsRgq3MPaStKYj9JOkUVkfy1Lph1Y+Hr50WW4vajJ3fmjH6bXxjkXvUcJ/XQXI PnGm9+PW0ICnm0Z+ZZS9kmLklFZ2jR0+u9UL95Z4jX8TkeqZukwWhAYrRVGfyStu+Ox7 Dkbwjs/+YgNNWAYu8q/oehKpa8SIdWxmTDOt2CoTF6thmDMcmzBBzITrckJE4zBUJw4c 7C2IIiBE70eN5xrxr4az2RIm6Ze8KN5Ye/g22OF3fTwcmiEfXJ9cM3vX6adNR2B3mrKd UQww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=+fY2wcMRDvaDdEsMuW+EbzLJIuWO2/jSW7iWLuYHZGY=; b=d7PkBwDXs+7aH7XZvLAwnuMAj570S8m5HGKLEkIjfzK9ekRgyKx7CwovxqtXGTuHPR BPKpYJdF/HR68URF6w1eMVwC6x6e8yFcarr0m2qlRuIck2yFbWHzgxc6cdWilRcPXHKb 06QKp1l7ZaCDWW1py6iue6LfzqwZrtQSxHremkEEpc+j/RHIFicqUGnZxPFxOQeYf6zN RZdeLd2z/qBhRbcfveyygKjAj3hHBhkPbY0xR4XlVh73KULfKE8P0P0aJ2bJ6BwZgx8p VUOQn9Nl66W3q6xN/YpEaZnGMSwB9uF+SQN4xk1wMvCpCAucFwRHVZu9OTrSbof/1c9n q9Cg== 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 dp18si3035414ejc.498.2020.05.01.13.51.00; Fri, 01 May 2020 13:51:23 -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 S1726551AbgEAUrZ (ORCPT + 99 others); Fri, 1 May 2020 16:47:25 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:33983 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbgEAUrZ (ORCPT ); Fri, 1 May 2020 16:47:25 -0400 Received: by mail-oi1-f196.google.com with SMTP id x10so859270oie.1; Fri, 01 May 2020 13:47:24 -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:user-agent; bh=+fY2wcMRDvaDdEsMuW+EbzLJIuWO2/jSW7iWLuYHZGY=; b=GhbLjvR1ppXSKpolyiRflb6/slQ3SrKabvI4Y8TVRQyVSk8VYpMv7XoZIKTeg0sOFR qtuMKiiNO1Vj4wDDz+Gr0YWFrzOrCt6o4kjSM/v6y9E4WVzTdjqwu+wW1ihL89uWCu53 6lK7fxbrurQ00blqkzAlfc59061BivZVxHPOz64o4Pw1PJE4uiOeM74S01kXIbm9IAjt sIxqYvYzBFdrX/U/6Uog+b16sxME5zupIwu1A48q+FB5ob1uBBRY8eG8LpsIUtilGt1w lcHNx9Hd41gufRJQS6gM3LcXllJYCgaHTBr8MmoqA5C4eYyuM8paspfTGHd8hUna0m/E aWQw== X-Gm-Message-State: AGi0Pubv9UOaGr+Y22p86MrVgmeHK3eFolbEaGrpTlGv6wQYM/OYYWLY gcHhsqvUZIRSeQQVx3gY3g== X-Received: by 2002:aca:1007:: with SMTP id 7mr1115114oiq.139.1588366044000; Fri, 01 May 2020 13:47:24 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id f16sm229631oib.25.2020.05.01.13.47.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 May 2020 13:47:22 -0700 (PDT) Received: (nullmailer pid 26260 invoked by uid 1000); Fri, 01 May 2020 20:47:21 -0000 Date: Fri, 1 May 2020 15:47:21 -0500 From: Rob Herring To: Charles Keepax Cc: lee.jones@linaro.org, broonie@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, jdelvare@suse.com, linux@roeck-us.net, linus.walleij@linaro.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, patches@opensource.cirrus.com Subject: Re: [PATCH 6/6] mfd: lochnagar: Move binding over to dtschema Message-ID: <20200501204721.GA24163@bogus> References: <20200427102812.23251-1-ckeepax@opensource.cirrus.com> <20200427102812.23251-6-ckeepax@opensource.cirrus.com> <20200427103614.GM44490@ediswmail.ad.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200427103614.GM44490@ediswmail.ad.cirrus.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 27, 2020 at 10:36:14AM +0000, Charles Keepax wrote: > On Mon, Apr 27, 2020 at 11:28:12AM +0100, Charles Keepax wrote: > > Signed-off-by: Charles Keepax > > --- > > + lochnagar-pinctrl { > > + compatible = "cirrus,lochnagar-pinctrl"; > > + > > + gpio-controller; > > + #gpio-cells = <2>; > > + gpio-ranges = <&lochnagar 0 0 LOCHNAGAR2_PIN_NUM_GPIOS>; > > + > > + pinctrl-names = "default"; > > + pinctrl-0 = <&pinsettings>; > > This seems to cause the following error: > > Documentation/devicetree/bindings/mfd/cirrus,lochnagar.example.dt.yaml: > lochnagar@22: lochnagar-pinctrl:pin-settings:phandle: [[4]] is not of type 'object' > > I think the schema is correct and the problem is one of tooling, > I have been poking at it for a while but can't seem to find a way > to silence this one. Any advice would be greatly appreciated. The problem is the "^.*$" patterns to match child node names also match properties like 'phandle'. Ideally, you'd have some pattern to match on for the node names. There is work-around doing: "^.*$": if: type: object then: properties: ... But I much prefer to see node names updated. '-pins$' is a common pattern. Rob