Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1381522rwb; Wed, 7 Dec 2022 12:16:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf5/M7ICnKooVVNgDQAQB3p00kZ78euDSez3ijNWFggDb4+S4WgD0oxPKvHAsKqzXEZ+pifD X-Received: by 2002:a17:902:c283:b0:189:89e2:540d with SMTP id i3-20020a170902c28300b0018989e2540dmr49877537pld.73.1670444205959; Wed, 07 Dec 2022 12:16:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670444205; cv=none; d=google.com; s=arc-20160816; b=Pn0kp9eMtEF1Y719MAUtyyfV9d0aU+QaixrAu7H+ZtU6XAe5Oue3E0yrYMqZojZuF3 RrTh9w9Q5+xSRBXw9t6NkV6+07kuXXkVGjQaAmHGaHR7URpDib2FawcKiIKEY2D8O+iK uOWO2HuXoT5NEntjhy4ODk38+Oj5q/U0tadccmcUHXwM3qLjJygkKP4wkuZbc2RyB0gq fKL4v8YkzzbgbpnT4htAVw0zggzhVjkPzuU3dyDmpMseGKvuDoJsW7amgFdoo3je/D9X qYVem894H4ffSpZ8D2PtyNypuShCC1h7h6fttMgesbU6nhZ9KxIwCUbXXK4mnXhgerjY S+FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pV76Hk4p0gjF+gJbarX3/LanlORlaqG71wu1jjPudTQ=; b=vJdInbnnJR5/415KDqYFIqATPSeWBwVI/GWGC90QMrKgNVTEPUiUXEIOF1beGjgA45 hNS9RGbLb4C2FtoqWWktuYZbI1/UmwZpiSkZP02JCCWQiB0wcGopBHErZI9jzdxfluSg P1Ijyn9WC6LyiSJGe3i1KG05sVrS0kc6khc6P/z8lv6YPUrz+Db6itH65ZkbeR4fG8qy aRLfTuaHRTzNTezJIzqjVbJeezMhY0nEDfVEQ/ft66gFewuJls+EjI+oaOBBMPugVJJg sSgKf1JgfuHGvmmQGIglkt3nm/+GZh85PLQRyfqTnjwg6KW2fnpj8EXVzUU2bv5VI99d xALg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b="sLR9/oMo"; 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=ucw.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r76-20020a632b4f000000b0046ff400d209si22396669pgr.724.2022.12.07.12.16.35; Wed, 07 Dec 2022 12:16:45 -0800 (PST) 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=@ucw.cz header.s=gen1 header.b="sLR9/oMo"; 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=ucw.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229658AbiLGTsW (ORCPT + 74 others); Wed, 7 Dec 2022 14:48:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbiLGTsU (ORCPT ); Wed, 7 Dec 2022 14:48:20 -0500 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6003F6A771; Wed, 7 Dec 2022 11:48:19 -0800 (PST) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 340371C09FA; Wed, 7 Dec 2022 20:48:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1670442498; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pV76Hk4p0gjF+gJbarX3/LanlORlaqG71wu1jjPudTQ=; b=sLR9/oMouvcL32NbZJimF6TpSzQPqeuQ/6VAEev31ORxE/dWz+YsalktZgFCOXEu00HPSv Op4JMLeOAvXa4ii9suInQPjrxbOW9xjNctlygmR9wC/DRY3lT8Rjp/pO5yRtYZulNW8m3X s8ZmQ7ZXYNTdBYfKs+AXWXjVUHdz5wE= Date: Wed, 7 Dec 2022 20:48:17 +0100 From: Pavel Machek To: Martin Kurbanov Cc: Krzysztof Kozlowski , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , Andy Shevchenko , "linux-leds@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , kernel Subject: Re: [PATCH v1 2/2] leds: add aw20xx driver Message-ID: References: <20221124204807.1593241-1-mmkurbanov@sberdevices.ru> <20221124204807.1593241-3-mmkurbanov@sberdevices.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YPyNi6T0Sa/IOl4J" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 --YPyNi6T0Sa/IOl4J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 2022-11-28 17:45:22, Martin Kurbanov wrote: > On 25.11.2022 11:19, Krzysztof Kozlowski wrote: > >> + $ ls -l /sys/bus/i2c/devices/xxxx/pattern0/ > >> + -rw-r--r-- 1 root root 4096 Jan 1 00:00 clear_le= ds > >> + -rw-r--r-- 1 root root 4096 Jan 1 00:00 fall_time > >> + -rw-r--r-- 1 root root 4096 Jan 1 00:00 loop_beg= in > >> + -rw-r--r-- 1 root root 4096 Jan 1 00:00 loop_end= _on > >> + -rw-r--r-- 1 root root 4096 Jan 1 00:00 max_brea= thing_level > >> + -rw-r--r-- 1 root root 4096 Jan 1 00:00 min_brea= thing_level > >> + -rw-r--r-- 1 root root 4096 Jan 1 00:00 mode > >> + -rw-r--r-- 1 root root 4096 Jan 1 00:00 off_time > >> + -rw-r--r-- 1 root root 4096 Jan 1 00:00 on_time > >> + -rw-r--r-- 1 root root 4096 Jan 1 00:00 ramp > >> + -rw-r--r-- 1 root root 4096 Jan 1 00:00 repeat > >> + -rw-r--r-- 1 root root 4096 Jan 1 00:00 rise_time > >> + -r--r--r-- 1 root root 4096 Jan 1 00:00 running > >> + -rw-r--r-- 1 root root 4096 Jan 1 00:00 select_l= eds > >> + -rw-r--r-- 1 root root 4096 Jan 1 00:00 start > >> + -rw-r--r-- 1 root root 4096 Jan 1 00:00 toggle > >=20 > > sysfs documentation goes to Documentation/ABI/ >=20 > Should I add it to Documentation/ABI/testing/sysfs-class-led-driver-aw200= xx? > Is my understanding correct? > Is KernelVersion parameter required? You really should take a look at pattern trigger. You should probably use same API as it does, perhaps documenting which patterns this particular driver can do in hardware. Best regards, Pavel --=20 People of Russia, stop Putin before his war on Ukraine escalates. --YPyNi6T0Sa/IOl4J Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCY5DuAQAKCRAw5/Bqldv6 8mObAJ9Ttr9cl0QqYrY6QtBoeasPg7J9GQCgoMy2SRCGRLopishZ74EE2vYnnhM= =E94U -----END PGP SIGNATURE----- --YPyNi6T0Sa/IOl4J--