Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1157421imw; Tue, 5 Jul 2022 04:55:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sSMjZDD8kLP9wvopfywxpoE4fyxST+hzwznZ+4VjUVG+0vkd9Qn9w8J7LAG/s3Kthtzahs X-Received: by 2002:a17:907:6e8a:b0:726:b8c9:547a with SMTP id sh10-20020a1709076e8a00b00726b8c9547amr34691326ejc.27.1657022122734; Tue, 05 Jul 2022 04:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657022122; cv=none; d=google.com; s=arc-20160816; b=Ao0ZvkW1N+oEQqFYSay1uAL2y8N2AN/uhD6RPb8K96aBPZCA4Y7aR2sF7//uMt8JHy e6ldoCHXWy/CL32x/y7UDb5aUW0vU8vzDdg2dyhGW2CTcB4TtIprIjY1bRWjoDlTNpyg 2pJfkssKCbjuwyCT4FQaa5oIHKCKxktigqIlCHWI8bo8bGudIp46Rov9RvJkBQSBi+db uLSQuc8mpT8awoDGfJD5XZKZo6oFh0oZ/puXxd1A5wu0RW2CILSw1aJi3Jq+/5s8zcWt 99HiXSVSk0Wo9+kKwUICW+M5newwYk6yRhq6NhcSikL20WTSLjdT98NgCiAUGp+i//rg wkZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=s4xBLX4D+2rGFZnRL3/xBMbxJWhnuurE0gET2pyWFpc=; b=p8CqruzSrAdkkNYdXFl6lkFz/q7EWuwQ2CTyOY3a9bLOpOSoIgfMJwsJAf6PyAD4Ol AcQgULApZQxHeQNbRJpMAeFFk67Uy91Uin/ywUM7uHAbqL9lDKMoc9D8E0mEHhVLsipn dTF/U2RCJkWTOXNgY/7We6/qFxEBy121NwMoP7PmgdVH/ypoCIsTPbnt0byslbWhgB4B LuZmCDX8mtBO4PUtbbMT4mF1zigxnJbgyPf8QUCxRQllIXV/GJ/nS4V74Okwm3Sv3y7b KAEETfarkHOrbYm+0kePxQ45bsPrgYU2DBfdbW/v/IIzzhU4o/n7HFhyjJ+JPoAkjKOM O3bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xwMgG0El; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y18-20020a056402441200b0043a694f7a25si6117186eda.611.2022.07.05.04.54.57; Tue, 05 Jul 2022 04:55:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xwMgG0El; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230381AbiGELhC (ORCPT + 99 others); Tue, 5 Jul 2022 07:37:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230422AbiGELhB (ORCPT ); Tue, 5 Jul 2022 07:37:01 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72C376444 for ; Tue, 5 Jul 2022 04:36:57 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id i18so20028495lfu.8 for ; Tue, 05 Jul 2022 04:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=s4xBLX4D+2rGFZnRL3/xBMbxJWhnuurE0gET2pyWFpc=; b=xwMgG0Elx+0z6hUMZOqJumHSGc8Z7bdt5YrT0kkfd8pWb1DpoCR1nJtFjOEBic+ewE IJMp7clkfdfGk2MMstolABV4vS7prcg+quhV85bHccxIdetaI4I4VOlkq5TliGIuZEOD eAUEmTy2sDkJ9en+xdMRp/FzlX/bQHTLldF8aUPbNiK2ci+1bq5+0Elol8wmAUo2xeSo RFPdmCatsz6OoVGSIuZ/fnas+EqYiYu7yGfCRAJoSbdWSopOSzRqdy2vlgEFmWI4e51o 0Y3eDqIS7Xcd1oK3VTofAtmJwHJDeY0o2/7oO2OIHLqDMeCDzRIccHkG51oaKQ32jETd 0Wcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=s4xBLX4D+2rGFZnRL3/xBMbxJWhnuurE0gET2pyWFpc=; b=Xo0T5RtGZE6ahKwD9kgbjwm7vItTI4BdiCIDDZ7i0W0wZ5SD7n7kliTZATOUlkf7NQ 8MpGPc2cjJh2Y1kJuK6KRrELQ7zzkhld07AkORDrKHCE+z3a+hqm7OtxCHSBPXZajeVN M0sDpNn3lJ74wr8xWaV3OvlXxutWuWJmctxE9FRqD8NjocGgqPnAlsCbRiNJ0K8oSjqM TJVXKy08KAg1TbrdNoiWKr8r0hISS4eGxmpkDV37pFVfz94lpSznkm4GDsDSTPVCL5Ui hVJ4VO3Thg2sQVgH9D9Dqr01XPyhccI+DcMWDE17IH3ZftMTXG2VEezmeWL77uWJCSVs WanQ== X-Gm-Message-State: AJIora/5DSi4eSYkTUq92trJrG4OHeRu9OlUR5E2SAfJByVtIUILdwIY 0jF+bym9eZB/0Zf+KW8YQrX07w== X-Received: by 2002:a05:6512:3e0e:b0:484:88a0:2b24 with SMTP id i14-20020a0565123e0e00b0048488a02b24mr527926lfv.268.1657021015833; Tue, 05 Jul 2022 04:36:55 -0700 (PDT) Received: from [192.168.1.52] ([84.20.121.239]) by smtp.gmail.com with ESMTPSA id g1-20020a0565123b8100b0047f8d7c08e4sm5656453lfv.166.2022.07.05.04.36.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Jul 2022 04:36:55 -0700 (PDT) Message-ID: <42d837dd-fbd1-6294-2fa0-8a07ae0f8d44@linaro.org> Date: Tue, 5 Jul 2022 13:36:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH 1/2] dt-bindings: leds: Add cznic,turris1x-leds.yaml binding Content-Language: en-US To: =?UTF-8?Q?Pali_Roh=c3=a1r?= , Pavel Machek , Rob Herring , Krzysztof Kozlowski , =?UTF-8?Q?Marek_Beh=c3=ban?= Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220705000448.14337-1-pali@kernel.org> From: Krzysztof Kozlowski In-Reply-To: <20220705000448.14337-1-pali@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/07/2022 02:04, Pali Rohár wrote: > Add device-tree bindings documentation for Turris 1.x RGB LEDs. > > Signed-off-by: Pali Rohár > --- > .../bindings/leds/cznic,turris1x-leds.yaml | 116 ++++++++++++++++++ > 1 file changed, 116 insertions(+) > create mode 100644 Documentation/devicetree/bindings/leds/cznic,turris1x-leds.yaml > > diff --git a/Documentation/devicetree/bindings/leds/cznic,turris1x-leds.yaml b/Documentation/devicetree/bindings/leds/cznic,turris1x-leds.yaml > new file mode 100644 > index 000000000000..fd09613c8d2d > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/cznic,turris1x-leds.yaml > @@ -0,0 +1,116 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/leds/cznic,turris1x-leds.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: CZ.NIC's Turris 1.x LEDs driver > + > +maintainers: > + - Pali Rohár > + > +description: > + This module adds support for the RGB LEDs found on the front panel of the > + Turris 1.x routers. There are 8 RGB LEDs that are controlled by CZ.NIC CPLD > + firmware running on Lattice FPGA. Firmware is open source and available at > + https://gitlab.nic.cz/turris/hw/turris_cpld/-/blob/master/CZ_NIC_Router_CPLD.v > + > +properties: > + compatible: > + const: cznic,turris1x-leds > + > + reg: > + maxItems: 2 You need to describe the items, if it is really two items. However your example has only one item, so this was not tested and won't work. You'll get warning from Rob's robot soon... but you should test the bindings instead. > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 0 > + > +patternProperties: > + "^multi-led@[0-7]$": > + type: object > + $ref: leds-class-multicolor.yaml# This looks incorrect, unless you rebased on my patchset? > + > + properties: > + reg: > + minimum: 0 > + maximum: 7 > + > + required: > + - reg > + > +additionalProperties: false > + > +examples: > + - | > + No blank line. > + #include > + > + cpld@3,0 { Generic node name. > + #address-cells = <1>; > + #size-cells = <1>; > + > + led-controller@13 { > + compatible = "cznic,turris1x-leds"; > + reg = <0x13 0x1d>; > + #address-cells = <1>; > + #size-cells = <0>; > + Best regards, Krzysztof