Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp5717826ybp; Tue, 8 Oct 2019 07:18:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRPpy+XCDtBTw89Oq/qNT65imvOlivkdGxLaoqstKeIBuGCvxV8cS1Xi58O3aNOjo0EmlY X-Received: by 2002:a50:e791:: with SMTP id b17mr33479048edn.11.1570544335017; Tue, 08 Oct 2019 07:18:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570544335; cv=none; d=google.com; s=arc-20160816; b=usUmJ5W9wz7bWdx7XZqT8qWLBve0KSe3ROVrTltzkhTmz4wDp1x6JKvcbxSfhALC7u 040wQTcnOzRA4Nl7aHOqJDxUj7p1shtGw5bA6JsZ5FEn/Nl+4QebedTkF/EF3HFd+ACv wCyQxAU9foXyHyqtuupb3LlPwiWF9OpElzqaH5ZpEp3kcrAxVx2k5LWFCufocVOXDp4U JDixv4ESn4ZBDTYTfnW0zpSA3GIJUVvhDPhyOT5cDPSWoMqTzWpdVYbkFHG9UPCZgsMu J+d0QOiCPcoP3tDn/V9f0SQ28t7MLVwQnCPW+bvcnxAoCp5Gd7a+phTegBEk036rMixA hhuQ== 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=LsEcX4QoBx5asfwd85d42SrSBzkNLi9kHD3jfa3d3eE=; b=nztQUQdDy5LpgwpQnsFOSC+ahnZI7U2Kt1ACR8CD/djbNqqMr5GHXryglEwfViCluH Lp4S5w5wH59cyzSfY7p6BFFgf9umBH4AMs9j43OxIU04rRQB/jZ9IWEH0hJG9olxBGLt um4DWVUmu9nxB6ICkwUdas67oEm8ySF86Lou0QgvMYqtBMJGCMmpS6pAPGjadLCUNGx4 YKbjl+XMD+hFDDtL50m/CAhgT82I3+TNOjrsHym/w1QArqYuDnIuBazqGNYQMqtGvMjE G8R0KtKDNYW5ipRK4q9EzDDNPjRNh4XygMTsOiCHqvfeZO1ToSMXkIcRCWndyheczjqe HwUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=UTZUXZWm; 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 ni5si9262034ejb.184.2019.10.08.07.18.31; Tue, 08 Oct 2019 07:18:55 -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=UTZUXZWm; 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 S1726948AbfJHORa (ORCPT + 99 others); Tue, 8 Oct 2019 10:17:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:47200 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725795AbfJHOR3 (ORCPT ); Tue, 8 Oct 2019 10:17:29 -0400 Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) (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 E7B0121835; Tue, 8 Oct 2019 14:17:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570544249; bh=k4z9UTPnrwAqsKFn+N7lEY6KbuTPenqCQZ8tcmJoBhg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=UTZUXZWmKAZ+ukH2V5cR5yyrA+9EdRZtK3FpVZAV4WniOq8YQvCkqeVoAdDyf69Qc o9g71ju8By4N/y/+jdb/34FLQN3VUYdRqi5Nl06xPEZK+r667vLIJj/NALBGqpqFwC gMpYCctOvHKsCCJqxdhpxMOA2H6//QkiJwPLHgZk= Received: by mail-qk1-f171.google.com with SMTP id f16so16879541qkl.9; Tue, 08 Oct 2019 07:17:28 -0700 (PDT) X-Gm-Message-State: APjAAAUsY3hcLhsxMJNs3s20aDl1GcLv7xgAaTEdaE5CgbarzKOS0AEQ ki6efhefY+pYjZ3fyrQP9iIZvO1oO/ZjtFU3Vg== X-Received: by 2002:a05:620a:7da:: with SMTP id 26mr27191277qkb.119.1570544248015; Tue, 08 Oct 2019 07:17:28 -0700 (PDT) MIME-Version: 1.0 References: <20191004151414.8458-1-krzk@kernel.org> <20191008125038.GA2550@pi3> In-Reply-To: From: Rob Herring Date: Tue, 8 Oct 2019 09:17:16 -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:05 AM Rob Herring wrote: > > On Tue, Oct 8, 2019 at 7:50 AM Krzysztof Kozlowski wrot= e: > > > > 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 leve= l 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: prope= rties:clock-names: > > 'uniqueItems' is not one of ['$ref', 'additionalItems', 'additionalProp= erties', 'allOf', 'anyOf', 'const', 'contains', 'default', 'dependencies', = 'deprecated', 'description', 'else', 'enum', 'items', 'if', 'minItems', 'mi= nimum', 'maxItems', 'maximum', 'not', 'oneOf', 'pattern', 'patternPropertie= s', 'properties', 'required', 'then', 'type', 'typeSize', 'unevaluatedPrope= rties'] > > 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 otherwise? Rob