Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5742077ybp; Tue, 8 Oct 2019 07:39:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0hJcHiXJR5mzWXQJ6tBi6eJKwQT4F1E6PAM6ddOyAVDO0uwxNUtza8ij6dfiPh7Q/TF3e X-Received: by 2002:a17:906:8258:: with SMTP id f24mr28529012ejx.234.1570545546846; Tue, 08 Oct 2019 07:39:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570545546; cv=none; d=google.com; s=arc-20160816; b=TB0zRRlXJXLloohnmov/md87kOlzcE46mNjf/egmjRSF8GdKkxtS9fvF+XxB7idBzv 74PpLQO2PZCLJoulGnCn2cXV59AT9W1gLJkztVRfQlsGJlwmYXLwwrcqIlIOEV+UdLn4 iwQNzAH7H6RbvJFSWh9LhWrPxj2kVgbFzFJNBOVLBUnJTDYXmHpND3ZEZiCungZkG4Fc nrJzZLGLiVKTzteYqaQZNAbHEaWSCLR8mwNZKEN/5jk+tirWS/uGUPP4bOgoZZqoqt1U C3SoghGdx5Z3tbE0J5usJYgNjo7agwl3aIModZ6/1dUt3+uER8JLH4oCQe/+hT0VvDRf mAlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=JR42hoYxmqTADNJd0PVuV0ZeiDYQm+4qW3yDvD+2YOw=; b=03WVPmhHWKzrXnlDU4vMaTE4nkpPQ/JL7gjC84K7PbLasThZvY7xxUxmhln9KWTsWd YYwW+gvZoYnrM9zVcqxzfjDwn9c3sgiKVSjaWokVNtm5BHbQjbxGdRAGTI7460mGYNsN +Me97d99SgLdckf9MZW1D62d3/LGxZTvEHMX1ynKwHrQsifuNDIjs+y5feB9gcee9YTA Ej6SmKbtJNUR/xNqbki5mnKW6TlRxwvs+111LdCM1nxrbu8yt4fFaiJsybADqCm4ZIKN i0cBFiLFX7IYZca1SgW+/4ClVhtqV3qE9aOUnhdOCWTOgDE0gqyDpHiAcZA7N0kzYnq4 /uyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=uHp1KfTN; 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 91si11900568edy.188.2019.10.08.07.38.43; Tue, 08 Oct 2019 07:39: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=uHp1KfTN; 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 S1726257AbfJHOi3 (ORCPT + 99 others); Tue, 8 Oct 2019 10:38:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:56052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725795AbfJHOi2 (ORCPT ); Tue, 8 Oct 2019 10:38:28 -0400 Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (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 7CAC121871; Tue, 8 Oct 2019 14:38:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570545507; bh=1Q4mMsOb96kylNfFxUq+jNGhofo0vA75cx96BsraELc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=uHp1KfTNQWDdfSngQbG2a61L+AfiFcIuxX05zWvcMEkTqqrjwkoMahdNpPRCZmhIE tVQ3fNX1NmBrY9KHHIFaQ4zNPuZjGbiRB5ZesilRKdAOxL+BPAI1T/DOb0BmSvVELs 1jc6/vhHbdHTBxIGs2mMmAIIDgK/7nDthGD7t1KQ= Received: by mail-qt1-f178.google.com with SMTP id u40so25602172qth.11; Tue, 08 Oct 2019 07:38:27 -0700 (PDT) X-Gm-Message-State: APjAAAV41OQzXMAcbq7Gh2qacZEcT1HaztH+KfVEjGw5v9p24adHGmu2 //MmURqu+tSaA7L9xAATbsEcij8qJ9mECBZUNA== X-Received: by 2002:a05:6214:1590:: with SMTP id m16mr32958286qvw.20.1570545506528; Tue, 08 Oct 2019 07:38:26 -0700 (PDT) MIME-Version: 1.0 References: <20191004151414.8458-1-krzk@kernel.org> <20191008125038.GA2550@pi3> <20191008142900.GA2635@pi3> In-Reply-To: <20191008142900.GA2635@pi3> From: Rob Herring Date: Tue, 8 Oct 2019 09:38:15 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] dt-bindings: arm: samsung: Force clkoutN names to be unique in PMU To: Krzysztof Kozlowski 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" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 8, 2019 at 9:29 AM Krzysztof Kozlowski wrote: > > On Tue, Oct 08, 2019 at 09:17:16AM -0500, Rob Herring wrote: > > On Tue, Oct 8, 2019 at 9:05 AM Rob Herring wrote: > > > > > > On Tue, Oct 8, 2019 at 7:50 AM Krzysztof Kozlowski = wrote: > > > > > > > > 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 represe= nt > > > > > > 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: p= roperties:clock-names: > > > > 'uniqueItems' is not one of ['$ref', 'additionalItems', 'additional= Properties', 'allOf', 'anyOf', 'const', 'contains', 'default', 'dependencie= s', 'deprecated', 'description', 'else', 'enum', 'items', 'if', 'minItems',= 'minimum', 'maxItems', 'maximum', 'not', 'oneOf', 'pattern', 'patternPrope= rties', 'properties', 'required', 'then', 'type', 'typeSize', 'unevaluatedP= roperties'] > > > > > > I can add it. > > > > > > The other option is to fix this in the clock schema. I'm not sure if > > > there's a need for duplicate clock-names. Seems unlikely. I'll test > > > that. > > > > Actually, clock-names is already set to be unique. Did you see otherwis= e? > > Yeah, I duplicated on purpose "clkout1" and it was not reported as an > error. That's why I added "uniqueItems". Are you running using DT_SCHEMA_FILES? If so, you won't get the core schema= . Rob