Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2038783pxk; Tue, 1 Sep 2020 14:11:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwv//1BCrfbRmATLv6XL4JsjfDoelWXweQr6GHTI2egSd8sgD5ExAcfalpDwX8JsmkbqHJN X-Received: by 2002:a05:6402:2:: with SMTP id d2mr3601301edu.221.1598994684800; Tue, 01 Sep 2020 14:11:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598994684; cv=none; d=google.com; s=arc-20160816; b=okiHU67HOIMzQ52hxAlIkHV5YSXbbdBIT8+5ywlS81mg6ScjO1ziaFYZjPyK1ZpSsg +bLzz+vqPFoDAumrPjf9ZpdUJJ93e8pLCS4CtN7/TQypvYPHAWZi3aGTx2npqzvAVJaz E5+FYKUWVtqGNs9etvbqZQbOmGYvvCQFfyCi+eOwMjs8X43OlKZKZ8L0RErmehUiuB5p VG0ZND8DkapoTCFMaJnzfCdT9QSMBgybixccOhKcCre0HgwFd+fHF4BA4GIgk62XleP8 j2yI/+I+kCiKRwTuQD47YQibanwhBPecvKuTj6IIW1JdeDhyDtHb5H1ODcBu8P94wsWm z+vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=+CKclAjRFtFzzHuH4Z+cc0RleEsFQT6/9G8VarpeaFQ=; b=WNyeFl4e01ueQWhwTnPABVBDJ9ozvZejQBgSONSXaTaVxGHehXGN5U24GFl7tfgOZV JJtxXNbq5WgHzmw82lrxDYTMH+HnNQKfxi7dxDg3c4tDaMM5jbL44i8p9M0Q66B7IAat isYT4kWTwary4O5cfwcH7s2v+COdh9dK8r43JGONDtndRgePxN9XF87DxppV1pgVEMux 2/Q8h1/S8QDA3TqpTc5o5h1mKF974jPx3xVgKyJO6UKQvlYhtlUXKyfYLiqCWD/uijWI J4jKrmD5tOC50aPtMyJFnVnOKc/q9SxuMsgB4QBfzSvbAlFFgvX8wwN3er7B6iIn5Xqn 9oEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="iJ9INBN/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rs10si1384817ejb.625.2020.09.01.14.11.00; Tue, 01 Sep 2020 14:11:24 -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=@gmail.com header.s=20161025 header.b="iJ9INBN/"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728237AbgIAVIP (ORCPT + 99 others); Tue, 1 Sep 2020 17:08:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726355AbgIAVIO (ORCPT ); Tue, 1 Sep 2020 17:08:14 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3D47C061244; Tue, 1 Sep 2020 14:08:13 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id c18so3010526wrm.9; Tue, 01 Sep 2020 14:08:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=+CKclAjRFtFzzHuH4Z+cc0RleEsFQT6/9G8VarpeaFQ=; b=iJ9INBN/zOJ9tXPac/L7ys8thnkeloE8N27/kaWQj56mYdS+iVScqRJoY9x+0l+w7w nB+0SkQRMzFybROIgHKwNNcZzDclvoWi+ahM2izct3hxG/kacC4D41FpkC8PooTrVEkM Q/0Ix4PkDgDJR/EhGKSFwZ9lkwcRW3X04wdBWx9nx6KeOBU+e9lk7Xw6iU77ZDjVv4Dd AtO5iZoav85K1E4+x5Qluz6mPKNRYCaCxPq5S53E3PsyXk5ZuQcW59G29KmqGX7SjmtV yu6pn5fcm2Vb1WDLLtIP8bAXF9oVHveJz8jaDpvCEK2FmvAcFCE0eBJFxJXaVpfJWQIv rFsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=+CKclAjRFtFzzHuH4Z+cc0RleEsFQT6/9G8VarpeaFQ=; b=pi2od7yiD3/JEpG9tMv8lyHFcctX1dwRRoWy16jAWFnzMFLsUSYG9uKyhNBrpaxXRC hzZgkluEa8R86IWQD/FnAXv6IOX6FvfB89SJzy55mBuIUBJxpDIcijy3cFZLkOqPw6fU MiRKz7BJPezeufQ5UQaqHw0fgiWn7Vrz0qTLxJFxgX1R+TJPDzC8Ijp6WVzX2FIMgNCQ zi7vcB3FzACbwIX8CTJej9r9tzOnLcz7D+8viPLYh887jfjG6VDjFOZrhG/rpvOMixMj GvqlSRk60OumR+OkwQYdoaj6Huey2GJZCfdPnYjpWvpkTaovxnU8Yz20BA6F2Q4g5uUD qQ/g== X-Gm-Message-State: AOAM531e/x4qdMwkYBw4rw3nyuOYaOaLPlxlQha8TR3eyJGovYHVi2WC MUzc0b+p0a3Tq1fhefNrBLw= X-Received: by 2002:adf:c182:: with SMTP id x2mr3772220wre.400.1598994491962; Tue, 01 Sep 2020 14:08:11 -0700 (PDT) Received: from ?IPv6:2a01:110f:b59:fd00:a062:770b:28ce:a41e? ([2a01:110f:b59:fd00:a062:770b:28ce:a41e]) by smtp.gmail.com with ESMTPSA id o4sm3718405wrv.86.2020.09.01.14.08.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Sep 2020 14:08:11 -0700 (PDT) Subject: Re: [PATCH v2 0/2] leds: pwm: Make automatic labels work To: Alexander Dahl , linux-leds@vger.kernel.org, devicetree@vger.kernel.org Cc: Pavel Machek , Dan Murphy , Rob Herring , linux-kernel@vger.kernel.org, Alexander Dahl References: <20200831210232.28052-1-post@lespocky.de> From: Jacek Anaszewski Message-ID: Date: Tue, 1 Sep 2020 23:08:09 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200831210232.28052-1-post@lespocky.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexander, Thanks for the v2. On 8/31/20 11:02 PM, Alexander Dahl wrote: > Hei hei, > > for leds-gpio you can use the properties 'function' and 'color' in the > devicetree node and omit 'label', the label is constructed > automatically. This is a common feature supposed to be working for all > LED drivers. However it did not yet work for the 'leds-pwm' driver. > This series fixes the driver and takes the opportunity to update the > dt-bindings accordingly. > > v1: based on v5.9-rc2, backport on v5.4.59 tested and working > > v2: based on v5.9-rc3, added the dt-bindings update patch > > Greets > Alex > > Alexander Dahl (2): > leds: pwm: Allow automatic labels for DT based devices > dt-bindings: leds: Convert pwm to yaml > > .../devicetree/bindings/leds/leds-pwm.txt | 50 ----------- > .../devicetree/bindings/leds/leds-pwm.yaml | 85 +++++++++++++++++++ > drivers/leds/leds-pwm.c | 9 +- > 3 files changed, 93 insertions(+), 51 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/leds/leds-pwm.txt > create mode 100644 Documentation/devicetree/bindings/leds/leds-pwm.yaml > For both patches: Acked-by: Jacek Anaszewski -- Best regards, Jacek Anaszewski