Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8860808rwb; Tue, 13 Dec 2022 11:20:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf7zDVrISxvBhfx3oqIQZihcfUu2bEvtVH1Bk/gkSpZgcTK0AJ3o5AzOSM/Yh1k70io0qQDu X-Received: by 2002:a17:90a:51a6:b0:21a:db1:d87e with SMTP id u35-20020a17090a51a600b0021a0db1d87emr21158627pjh.8.1670959250002; Tue, 13 Dec 2022 11:20:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670959249; cv=none; d=google.com; s=arc-20160816; b=PMIk9O4+A7SwtDFzvBPhKkz+JWXPJ6327K4RhA4AqQbHqfnMg4S7fBOk7euQ1tJ1xF kAXmaGjhdLLgHYSKbHU9xnDIz2ul0XeDGP6A2PcehezPZfcX1tMMZfz1HkYS6E5jUPHQ XdZRBC0p1fXIc+J9TyIlvJPL6mfG+wlF1b/E0z+SBXc42uoq27MmTantOtsOMMMfeWGv Z/jMNRAFPKQzmlUP3ZEkDaqsDNwqu4Q8Er1HMyhfZo637LAniz4uCXRrsD2m0NgnrH1z X6FoCVzwa9oZ6Ob9zS3eR3FUgLh7ZBwFJP6OHS9XqrbYOchJ11Lsm7wKUikrvzvysEz+ 54bA== 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=3i41IrgXQW1S6iU+2m3xA/OqmXK1LICZ0Uy6hCM9JWs=; b=WDd2U1BXdw5Hu24Fom6MCsa1DtmHCFTy60KVtVuYxYJajm+qowmyC2z+DLxdcJZ/8Q VfE3Z/R8aoLUwxo8Jl9tzmji6tRfEXR5s69TnrGjVMGZjwvvG3tQ82Y+c7myZVWfC6kT 0jgyemOd5Y2G3mZWTgBQawWhERtPZzeRMPYYm2GDkWegB5yXVlW9VQlIN4lr0zu7a7Pz nUhh8E3VsSJ77+6GPC+QvgzMfo8wLBBvJ9CKf7DFwv+QiIRWJ1VXtEqcNJPpY5tGGMhi vqtdyQFTsIO9AgWW95YIKhL0xtO+DCaG74ateBL1CNZbJN9I+0bzWjgnm+7VlNhwFQrA 9Qlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=l7EIGIrd; 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 s23-20020a63f057000000b00476837b4138si12916638pgj.800.2022.12.13.11.20.40; Tue, 13 Dec 2022 11:20:49 -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=l7EIGIrd; 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 S235875AbiLMSuY (ORCPT + 73 others); Tue, 13 Dec 2022 13:50:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235488AbiLMSuX (ORCPT ); Tue, 13 Dec 2022 13:50:23 -0500 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB0CDF5F; Tue, 13 Dec 2022 10:50:21 -0800 (PST) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id AEFD21C09F4; Tue, 13 Dec 2022 19:50:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1670957419; 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=3i41IrgXQW1S6iU+2m3xA/OqmXK1LICZ0Uy6hCM9JWs=; b=l7EIGIrdYfcGP7SzrT6VL2hG2CedmYOUeCMcKTWN2LK1XUMJy8Dz/JRyZXWzts9iUbfW/j 9+rHUM8qAHJMCPFtcs2jqXVTgR7qIMbYf41le0I0ZSw5HPrJpq/vmsHli0J69e4+fpWwxK 1lkf+UudxYeG/oLyDDQ+K7ksBQLWRVk= Date: Tue, 13 Dec 2022 19:50:21 +0100 From: Pavel Machek To: Chuanhong Guo Cc: linux-leds@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Stanislav Jakubek , Linus Walleij , Shawn Guo , Johan Hovold , Bjorn Andersson , Marijn Suijten , Sven Schwermer , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list Subject: Re: [PATCH v3 0/3] leds: add driver for SPI driven WorldSemi WS2812B RGB LEDs Message-ID: References: <20221207040904.582585-1-gch981213@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jFBQcuIEZxZsLN2I" 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 --jFBQcuIEZxZsLN2I Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > This patch adds support for driving a chain of WS2812B LED chips > > > using SPI bus. > > > > > > WorldSemi WS2812B is a individually addressable LED chip that > > > can be chained together and controlled individually using a > > > single wire. The chip recognize a long pulse as a bit of 1 and > > > a short pulse as a bit of 0. Host sends a continuous stream > > > of 24-bits color values, each LED chip takes the first 3 byte > > > it receives as its color value and passes the leftover bytes to > > > the next LED on the chain. > > > > > > This driver simulates this protocol using SPI bus by sending > > > a long pulse as 3'b110 and a short pulse as 3'b100. The SPI > > > frequency needs to be 2.105MHz~2.85MHz for the timing to be > > > correct and the controller needs to transfer all the bytes > > > continuously. > > > > Is this the same thing as NeoPixel? If so, that may be better-known > > name. >=20 > NeoPixel is the name used by Adafruit for WS2812B based LED > strips. Even though that name may be better-known, this driver > is for the WS2812B LED chips, not for the specific Adafruit > products made using those chips. So I think it's more appropriate > to go with worldsemi,ws2812b instead of NeoPixel for the driver > name. Still, it would be suitable to mention the "NeoPixel" name in the comment at begining of driver, and in Kconfig text. Best regards, Pavel --=20 People of Russia, stop Putin before his war on Ukraine escalates. --jFBQcuIEZxZsLN2I Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCY5jJbQAKCRAw5/Bqldv6 8hVlAJwMcGl9MGvTjaV55V1EavnmdPtuwwCfdciSmOxidUdQRvEJkYbtQO5302A= =5mf7 -----END PGP SIGNATURE----- --jFBQcuIEZxZsLN2I--