From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A6C0C4360C for ; Tue, 8 Oct 2019 12:50:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 30F9D20815 for ; Tue, 8 Oct 2019 12:50:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="UVRAW4q1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 30F9D20815 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=RA9AlH4e+1PUZFFeKeoMQQ3ydJYggRs1pvcBmGutHkg=; b=UVRAW4q1Ucms7i +DeLLBQkxZklKbKp20BB9u7kFkzqlnQJqYhw5WbbyXnMtfT+s2s2yx+otath76AXD3B81+HdxBVy3 +0utTwTgH3o3AgYMYDh/GntYqa2fhvDw8/905z2QMjuXX6oHsmzeCEnhAW4F9P6AMy0aOA3EQyKyp QXTETJVcoL33ikdVPhbXS2jGZOm2+cgWT4C2xV59P/JvnBIQ2PqBUyqdiswx3mWfTMwDw7W8GD6cZ SeqFbBzt48j/RnNsITknLOQK6KsxX7dsulX4BDECwDZRtgO8n7GvZ1bDYNM/r2GxULLzhpluHW8p5 iIGgGttuRBHsyCyw1mcg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iHowx-0002FD-PJ; Tue, 08 Oct 2019 12:50:47 +0000 Received: from mail-wm1-f66.google.com ([209.85.128.66]) by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux)) id 1iHowv-0002EO-GI for linux-arm-kernel@lists.infradead.org; Tue, 08 Oct 2019 12:50:46 +0000 Received: by mail-wm1-f66.google.com with SMTP id i16so3016673wmd.3 for ; 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=KMfV7oksswXQRot5E7H5lPzJemN0vWtiQ2e7kHskL2B8qH25vbQVFqKaNQOltPhQX2 Ece1LT2R2w4Rfa7IdkQMSS35FpLXwvanWukscgQrsW7g4Tg7rbNb735DNQGM8Moq4UWp RPbZebVLwb9dfUVP4mPYpp26YwpjAv0Tb60n6g0gKXD5gOLO10m2UaMdafCX1sWZvOcW KYr4Cip+JHMhwqsGkPsbV5YR7bgspZY7DmKJHJyMsgMOxMkjNnTzcD0/eQeEvv/vh0v9 z0WNHNkZrPBZSWbTa+4mK1Rsp3QXcjby9E4DGAmNBNYj1l7Chc47jpeCEPGs7Eml23EV sFjQ== X-Gm-Message-State: APjAAAUffTb5pKO0BYTxkSwfzOyRR2brVSBN6XgwwQWD6tAoGdnW2Gpp gTpnXG4y11tZsfCCDtoasok= X-Google-Smtp-Source: APXvYqynsGw67zM/kLC2+YxQ7cWPgz0Fnub1csInHDDTqUjZRtD9OaXw2dWRP/82MQmeVhcp3vQOIg== 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 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-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191008_055045_542015_2CB509A9 X-CRM114-Status: GOOD ( 16.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-samsung-soc , Maciej Falkowski , "open list:SERIAL DRIVERS" , David Airlie , Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" , dri-devel , Kukjin Kim , Daniel Vetter , Lee Jones , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Marek Szyprowski Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel