Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3355002pxb; Mon, 17 Jan 2022 18:25:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUKkJK1APsAvy9y12sczc5isU77TPgAXSaa6nT0iuvm2NpRPwNAGcngu3deGbrd6GXQl1p X-Received: by 2002:a17:90b:4a11:: with SMTP id kk17mr19082038pjb.114.1642472739959; Mon, 17 Jan 2022 18:25:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642472739; cv=none; d=google.com; s=arc-20160816; b=XRzteSTsrqg6JKZvcsk2cHsGzhRu1xmde7Bc/bZgslGMcFz94b1wZheChP4jTc9NTe DWO/I1hVwBCJXBrcSXg32MWiutgvkj7RJYpP+NBZU5d3CUNJB2eM5GCX55aHEUpGQzKT PJdbWQKbq7aPwh7Mn8FSXsFsYuij43PYj5slsAK0Za3dKu9T/5DutswPp5x8oStmq7Wp qOGDucpsTXwb+AZFRZd619JESueaPQQTxpsX2oC3/1v2inQSOn/pNpgWtqENO9GUeqG1 naqRseF6sQjSMs022Hwr8X45Pf/3er59yGvU0GgssfVVaCguBGdOLWVT7q4v3+f1FaB4 P2qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=PVDDdVWWepWVL959GxU5jw8QHKjCzDJ7Jrc+KYhDeOo=; b=DOotNXUHPEBD0SdHIVGCUUKnd6XIYHUlGJ33eiwFkusgMi8qFRJj9So/ArlAoU2jBq 9HXeLJ9/ufz6Pm9F/saagwjg/1W6ntAnpdRYnCpDVggEPjQ1QD7TpKwLoOwE2QmVJPqe ES0vOvgc7taRkDOc7ksHeGf63WvTrAEViJ/aJWdmimEG1R4QXt85A1eCazocUL7RcrYz inudBX5ycDF/m+kCf42cZ8uf9HpQXJpZd8TvkxpF168r03I8ZXyR3PTZK7hOWP6KG3KB rgHMcXDzQdUzetQqa0T6ZXFP27M/BxymD86KFp29Oi66wwH+iNJfEjcWWh5mbfT0YdE9 LeVQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lw16si1418020pjb.158.2022.01.17.18.25.28; Mon, 17 Jan 2022 18:25:39 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231310AbiAQMsJ (ORCPT + 99 others); Mon, 17 Jan 2022 07:48:09 -0500 Received: from mxout70.expurgate.net ([194.37.255.70]:54313 "EHLO mxout70.expurgate.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230169AbiAQMsC (ORCPT ); Mon, 17 Jan 2022 07:48:02 -0500 Received: from [127.0.0.1] (helo=localhost) by relay.expurgate.net with smtp (Exim 4.92) (envelope-from ) id 1n9RQM-0002RA-QZ; Mon, 17 Jan 2022 13:47:50 +0100 Received: from [195.243.126.94] (helo=securemail.tdt.de) by relay.expurgate.net with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n9RQM-0004Sq-0f; Mon, 17 Jan 2022 13:47:50 +0100 Received: from securemail.tdt.de (localhost [127.0.0.1]) by securemail.tdt.de (Postfix) with ESMTP id A708424004B; Mon, 17 Jan 2022 13:47:49 +0100 (CET) Received: from mail.dev.tdt.de (unknown [10.2.4.42]) by securemail.tdt.de (Postfix) with ESMTP id 295D0240049; Mon, 17 Jan 2022 13:47:49 +0100 (CET) Received: from localhost.localdomain (unknown [10.2.3.40]) by mail.dev.tdt.de (Postfix) with ESMTPSA id B822320BBE; Mon, 17 Jan 2022 13:47:48 +0100 (CET) From: Florian Eckert To: pavel@ucw.cz, robh+dt@kernel.org, andy.shevchenko@gmail.com Cc: Eckert.Florian@googlemail.com, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 0/2] leds: add ktd20xx LED driver support Date: Mon, 17 Jan 2022 13:47:39 +0100 Message-ID: <20220117124741.7165-1-fe@dev.tdt.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dev.tdt.de Content-Transfer-Encoding: quoted-printable X-purgate: clean X-purgate-ID: 151534::1642423670-00005ED7-CD8F2A4E/0/0 X-purgate-type: clean Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introducing the KTD2061/58/59/60 RGB LED drivers. The difference in these are the address numbers on the I2C bus that the device listens to. Due to the hardware limitation, we can only set 7 colors and the color black (LED off) for each LED independently and not the full RGB range. v1: Initial send v2: Remove variant 1 from source v3: Changes requested by Andy Shevchenko added. Thanks for reviewing - Removing OF dependency - Add missing includes - Use device_property_read_u32() instead of fwnode_property_read_u32() - Use one liner function pattern ? : - Remove switch case call for intensity color selection use BIT() instead - Remove not needed fwnode_handle_put() in ktd200xx_probe_dt() function - Use dev_get_drvdata() instead of i2c_get_clientdata() function call - Use sysfs_emit() function call - Use kstrtobool() function call - Remove not needed comma after last array element - Use dev_err_probe() instead of dev_error() in driver probe function - Do not use dev_group registration function set .dev_groups directly into ktd20xx_driver struct. Florian Eckert (2): leds: ktd20xx: Extension of the KTD20xx family of LED drivers from Kinetic dt: bindings: KTD20xx: Introduce the ktd20xx family of RGB drivers .../bindings/leds/leds-ktd20xx.yaml | 130 ++++ MAINTAINERS | 7 + drivers/leds/Kconfig | 12 + drivers/leds/Makefile | 1 + drivers/leds/leds-ktd20xx.c | 580 ++++++++++++++++++ 5 files changed, 730 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-ktd20xx.y= aml create mode 100644 drivers/leds/leds-ktd20xx.c --=20 2.20.1