Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4714898pxf; Tue, 23 Mar 2021 18:59:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxF2agcvYL9b51wX6rEhjYckb/+X/DfBopvUoNhmrb/+6gtXIgnt0Hsb2KS4xDvdvgjSmqs X-Received: by 2002:a17:906:f953:: with SMTP id ld19mr1098646ejb.164.1616551152747; Tue, 23 Mar 2021 18:59:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616551152; cv=none; d=google.com; s=arc-20160816; b=biZzPej3W3VznrQCB/bMp+bNsyUy/9nqAPjGDUJhwScCeP0OJCT6iz2dJrK59lW8cp X8QkHR5652RFhI0mU2eKxXkKisGrFhPjST8kr0T9qQnudSccnvtpAylInnefpibTPat1 KqwMDTQmfCMfrBNQtC6uJOi0prGzAQLskomRe3yvtxLf6W/9/QhILwvHQWayqaUusxZP 3Q6lzGIAeybSPe9KynmqXVkrvQKMDhUmkXP3+fGFOHFGAr1cBZvPL60zJ9ByciqHEjri TrV96FQS9lY24cpA1ujHyzPIEGeEvmHwlk9AoCog5ceeTmN/fSgkIT74saOcTG7Cg9OQ Kgcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=xwrETZhNZu8Kbt/j9z2ubvFL7F3q1AkulqQG3f4r8H4=; b=hCmA/Ygh937bleXH7L3jpVlDbYON4ae+roGp1fyzHNXhTiIPmCRw18k8Lwd/QTeUxj PE842ECAfpor7o5IPYuxEWVRI9h4q6j9yyA6p51hoAaoRCA2F9jGLMDy61CDBFUqFNWu gTmLFeKdT41flcB2F3h7AgAWPI4bYuoCGtuKUIKO+rKS3f0CCUDj9lZxQI39S6NlKTsQ 6fdbscG495vSHMBArS5Ph4dpMLSJZz2VLZ2AV6HuBKnGns3uSgVi/bAxeuq2iggx7MJw 8lF8ZiYBbDDYXu88BV4VctvS0pNDDGIc1SN2uu5tyMmqiuJFqCDOdmflw4EJ4043P31N 8mZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FaYnbj1q; 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 dg23si598003edb.519.2021.03.23.18.58.50; Tue, 23 Mar 2021 18:59:12 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FaYnbj1q; 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 S232003AbhCWOBB (ORCPT + 99 others); Tue, 23 Mar 2021 10:01:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:56544 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231897AbhCWOAf (ORCPT ); Tue, 23 Mar 2021 10:00:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 99F676199F; Tue, 23 Mar 2021 14:00:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616508034; bh=LDqJyr+BNEHK6b/R2MnFuHdxgjjufjcfn/gh4KM8v7E=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=FaYnbj1qjsn0MJJ7DERAzrDRxqXerZ63xnjkeUvmsuubQkzuKfjfmk+lZCnElVAQR Cu+kevoq0eLOC17Ew0h44V7b1r51Oa1nYOWpSSST1Y0Dsk+QWUUL1yfXH6PpuW9PTp Dq+4zFM30jk76hspFv0kWDySzlJLzkBbjUcGA0cr1bDZ0zQkiPFt4C4AjZDPupf96d FnJMdTrPVvc3qWwYcs2U77TEX1dDOh7jEK2T0B9FwfUqAvT4wV8xCzcxbzUWpn8WWc U3e9SF+FAjtpjFiTNBGQ5hyZBaq67JPVFDbUUcGhda2ueuOd6Oab0VfVzQCPHPjldM 1dROv0AafWTow== Received: by mail-ed1-f50.google.com with SMTP id l18so15378651edc.9; Tue, 23 Mar 2021 07:00:34 -0700 (PDT) X-Gm-Message-State: AOAM533x7AxN82o13b6Ug0UzW36QVe1E9j2IpAHYJvo5lEYdbcn4dk1B ZcJZa2E62mE+us1uTpNwwC+qh6EkxnbSXjPN/Q== X-Received: by 2002:a05:6402:5252:: with SMTP id t18mr4877706edd.258.1616508033081; Tue, 23 Mar 2021 07:00:33 -0700 (PDT) MIME-Version: 1.0 References: <20210322091819.29119-1-chenhui.zhang@axis.com> <1616434698.344402.2887754.nullmailer@robh.at.kernel.org> <424d3de97a154c6a9580f27347882413@XBOX01.axis.com> In-Reply-To: <424d3de97a154c6a9580f27347882413@XBOX01.axis.com> From: Rob Herring Date: Tue, 23 Mar 2021 08:00:21 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] dt-binding: leds: Document leds-multi-gpio bindings To: Hermes Zhang Cc: Pavel Machek , "devicetree@vger.kernel.org" , kernel , "linux-kernel@vger.kernel.org" , Dan Murphy , "linux-leds@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 22, 2021 at 10:28 PM Hermes Zhang wrote= : > > > -----Original Message----- > > From: Rob Herring > > Sent: 2021=E5=B9=B43=E6=9C=8823=E6=97=A5 1:38 > > My bot found errors running 'make dt_binding_check' on your patch: > > > > yamllint warnings/errors: > > > > dtschema/dtc warnings/errors: > > /builds/robherring/linux-dt- > > review/Documentation/devicetree/bindings/leds/leds-multi- > > gpio.example.dt.yaml: gpios-led: led-states: 'oneOf' conditional failed= , one > > must be fixed: > > [[0, 1, 2, 3]] is too short > > [0, 1, 2, 3] is too long > > From schema: /builds/robherring/linux-dt- > > review/Documentation/devicetree/bindings/leds/leds-multi-gpio.yaml > > > > Hi Rob, > > Thanks. Yes, now I can see the warning, but I could not understand what w= as wrong? Could you give some hint? I think you need 'maxItems' in addition to minItems. Rob