Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5614039ybp; Tue, 8 Oct 2019 05:52:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQ/rHQMdpE6P4+8swTfE4jm7PNppfHv7UtwczRC+3ZKyzt3aB+fYTcvXqMIx24icu2Xxxc X-Received: by 2002:a50:ce53:: with SMTP id k19mr33848988edj.2.1570539137500; Tue, 08 Oct 2019 05:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570539137; cv=none; d=google.com; s=arc-20160816; b=mFPvgW96FJkmldgkd8S47A2b5tO6hSS7lijXMpgdpbNbv9Juwt0J6hwzlTVniUwBUb vl0IiBi5Ez3Lpde/b8BPDqUEtII9E1+9qMPqdb36X2NtgxYYNr8FZbYAYAVwLnJw0qwi Q73yA6FjZ/DmWIVLRtXwQlBFaIEIAJ47ZMpw8a23jicwuUFG8yRtXwP9NGiJalnr2BgR YO21BZeq47xFjD5Bwk1cZo1Nr56Om6B5u0HF+2qBRY+UEVA44lPGvcLYlVKGxLZkPRZD /PFccQQWd4KAzq7zfW+eYvPM2rxLUZdznaZJITELe0J7wdCzSIMdugmXlDqNfR9EorhH 7LcA== 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=bFWMwkdfgSlqbJTIDocqKJvGwcD57UaC11+rFmnz6Kc=; b=wmwnf5Pra7k7wTNqdOPd6//R3RTDAmChStfYWLSjEmJ1TmBqokBmXyzYOgeAr3PcpV PUUyHaMr0W0Qwjc66iFsWFuO6ZXSDTd5bsyoEEDAbOoJecRYl58zhC2nqLel/vWNcMus pCQzAgskVDC+TpsLHOMjUd4y26q5LKTLRndHdT7M/4zfxpuxNc9Lfce3SEV2kmVR8Sjs N8k/oGqw5z4MQuyIOnrXsBvIbAisPoeHZDDptZnX/8YqtG12gktvaWguEsez+16vhftt 66MXlUTBpvUgPYBYDPywYphtyNgOX6llN1IkyZB4saHEw6N08S4ojo9ICAhtzpPO2PIh KxyA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 s6si10616397edi.154.2019.10.08.05.51.54; Tue, 08 Oct 2019 05:52:17 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731012AbfJHMuq (ORCPT + 99 others); Tue, 8 Oct 2019 08:50:46 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:36287 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730541AbfJHMup (ORCPT ); Tue, 8 Oct 2019 08:50:45 -0400 Received: by mail-wm1-f66.google.com with SMTP id m18so3013420wmc.1; Tue, 08 Oct 2019 05:50:44 -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=bFWMwkdfgSlqbJTIDocqKJvGwcD57UaC11+rFmnz6Kc=; b=GhkTuSjagptOd/MCxBGk0X8z723P3bWDQ3JDjvCeXGKMHyUmd6o0BroJSAhraSuAMl p99UIV07b+280mG3NlnwwarJxXiZV4neia70FwuNiZxSdXELDeN3h9eegzsyzsTneLYY kPj9Z4FnrZttUpB0vNsqxwWlsGtXYQ1P0NPNXg7jmQfDmYc+MyLSL/uPEdx0v5Ygpff8 cBFHKDSj+i8zqNJCQ4rU62ho8JbHYtMNhgokjW3EUf9PX1yXYMVLyxqs2NY6DGjheCRv x+fEtDQucKvKxrdHdnM+/XeYs/OLJQLWdALjh+5YKL8CLRnhA3XRk/xd+uEEe49spyZ1 87IA== X-Gm-Message-State: APjAAAW/lw6q+1vSZwV2SUyoKANwQBZP+r1DQf6A/cshdJYi9x/LhSKp RD68D+AnlXQ1jOCBk9rOgqU= X-Received: by 2002:a7b:cd13:: with SMTP id f19mr3469466wmj.4.1570539043033; Tue, 08 Oct 2019 05:50:43 -0700 (PDT) Received: from pi3 ([194.230.155.145]) by smtp.googlemail.com with ESMTPSA id 63sm24153438wri.25.2019.10.08.05.50.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2019 05:50:42 -0700 (PDT) Date: Tue, 8 Oct 2019 14:50:38 +0200 From: Krzysztof Kozlowski To: Rob Herring Cc: Kukjin Kim , Mark Rutland , David Airlie , Daniel Vetter , Lee Jones , Greg Kroah-Hartman , Maciej Falkowski , Marek Szyprowski , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-samsung-soc , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , dri-devel , "open list:SERIAL DRIVERS" Subject: Re: [PATCH 1/3] dt-bindings: arm: samsung: Force clkoutN names to be unique in PMU Message-ID: <20191008125038.GA2550@pi3> References: <20191004151414.8458-1-krzk@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 08, 2019 at 07:38:14AM -0500, Rob Herring wrote: > On Fri, Oct 4, 2019 at 10:14 AM Krzysztof Kozlowski wrote: > > > > The clkoutN names of clocks must be unique because they represent > > unique inputs of clock multiplexer. > > > > Signed-off-by: Krzysztof Kozlowski > > --- > > Documentation/devicetree/bindings/arm/samsung/pmu.yaml | 6 ++++-- > > 1 file changed, 4 insertions(+), 2 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/arm/samsung/pmu.yaml b/Documentation/devicetree/bindings/arm/samsung/pmu.yaml > > index 73b56fc5bf58..d8e03716f5d2 100644 > > --- a/Documentation/devicetree/bindings/arm/samsung/pmu.yaml > > +++ b/Documentation/devicetree/bindings/arm/samsung/pmu.yaml > > @@ -53,8 +53,10 @@ properties: > > List of clock names for particular CLKOUT mux inputs > > minItems: 1 > > maxItems: 32 > > - items: > > - pattern: '^clkout([0-9]|[12][0-9]|3[0-1])$' > > + allOf: > > + - items: > > + pattern: '^clkout([0-9]|[12][0-9]|3[0-1])$' > > + - uniqueItems: true > > You shouldn't need the 'allOf', just add uniqueItems at the same level as items. If you mean something like: 56 uniqueItems: true 57 items: 58 pattern: '^clkout([0-9]|[12][0-9]|3[0-1])$' Then the dt_binding_check fails: dev/linux/Documentation/devicetree/bindings/arm/samsung/pmu.yaml: properties:clock-names: 'uniqueItems' is not one of ['$ref', 'additionalItems', 'additionalProperties', 'allOf', 'anyOf', 'const', 'contains', 'default', 'dependencies', 'deprecated', 'description', 'else', 'enum', 'items', 'if', 'minItems', 'minimum', 'maxItems', 'maximum', 'not', 'oneOf', 'pattern', 'patternProperties', 'properties', 'required', 'then', 'type', 'typeSize', 'unevaluatedProperties'] Best regards, Krzysztof