From patchwork Mon Oct 5 20:34:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Dahl X-Patchwork-Id: 11817605 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6F5B21752 for ; Mon, 5 Oct 2020 20:36:42 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 38981212CC for ; Mon, 5 Oct 2020 20:36:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BbnqTPR1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 38981212CC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lespocky.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=gFhSkBbD5ZcvtR5Ek6eKck/gyCROlmzS58EEIgeR1J8=; b=BbnqTPR1TLGPfjC+xAexzAnFVp YXKC/f82NRMjrNWaI2CoynZL31vvmQuaLAVNVqiRI/Mp3wUvOPDYLo4VZUDH5ew9RMAchRigbaGM3 dV3dWYAZ0wyJn0ve6a5vMMljBC7HiY3+rK7ZbJedzqAhFBEpIqmbZ2yZYxu5hvEDjHpNw+ZvqeRpG GoPO8SLPuLYTV7QkFZ5g0MLq32WLPgCkuNwRd15/q5QUMKF9B4IwuJSDXVSUwRkpBnhrRPey4UU56 wVYo0hulJjYTWPDAFegMtAiukEk0KmPMRcfbvTv27PfoDYnUj+BJ4XuWoKOYZfmEQvaiQmLO7Qurm WUCRkznw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kPXDf-0006bc-CR; Mon, 05 Oct 2020 20:36:27 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kPXDM-0006T5-Pk; Mon, 05 Oct 2020 20:36:10 +0000 Received: from methusalix.internal.home.lespocky.de ([92.117.55.152]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MuDPf-1kfhXm22Jx-00uZ5G; Mon, 05 Oct 2020 22:35:43 +0200 Received: from lemmy.internal.home.lespocky.de ([192.168.243.176] helo=lemmy.home.lespocky.de) by methusalix.internal.home.lespocky.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1kPXCp-0004VD-EM; Mon, 05 Oct 2020 22:35:39 +0200 Received: (nullmailer pid 10292 invoked by uid 2001); Mon, 05 Oct 2020 20:35:35 -0000 From: Alexander Dahl To: Pavel Machek , Dan Murphy , Rob Herring Subject: [PATCH v7 00/12] leds: pwm: Make automatic labels work Date: Mon, 5 Oct 2020 22:34:39 +0200 Message-Id: <20201005203451.9985-1-post@lespocky.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Scan-Signature: 6f2c0cc924172ae0d63df639c2daa6ee X-Spam-Score: -2.9 (--) X-Provags-ID: V03:K1:a5ux3XXYZajhGPOMpe5UlfXuFD6MtM8x1SXx7hRmMI2VaktPYLL bpOXntyS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SHv/z8OM4ZaQzPPwm9V1YnPqDKzOTj X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201005_163609_061381_C8865840 X-CRM114-Status: GOOD ( 19.14 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.17.24 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [212.227.17.24 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Alexander Dahl , linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Alexander Dahl , Jacek Anaszewski , linux-amlogic@lists.infradead.org, linux-omap@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-leds@vger.kernel.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org 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 work until recently for the 'leds-pwm' driver. This series removes the no more needed platform_data support from the leds-pwm driver, which was a precondition for the already applied patch actually making automatic naming work. The leds-pwm dt-bindings are converted and updated to reflect the possibility to use led function and color for naming now. v7 of this series is basically collecting reviewed-by tags, split old patch 5/7 into per arm sub-arch changes for easier maintainer review, and rewording commit messages. See each patch for a detailed changelog. For the bindings conversion it's now required to explicitly set a license. Peter, Russel, could you please acknowledge that patch? Series changelog below … Greets Alex v7: - rebased series on recent pavel/for-next - split up arm dts patch by arm sub arch (suggested by Krzysztof Kozlowski) - added multiple Reviewed-by tags - slightly reworded commit messages (suggested by Krzysztof Kozlowski) - added actual dtbs_check warnings to commit messages - added Russell King to Cc for binding conversion patch (because license) v6: - rebased series on recent pavel/for-next - added Reviewed-by from Marek to patch 1 - patch 2 from v5 was picked by Pavel and is already in his for-next branch - previous patch 3/3 (now 2/7) was reworked based on feedback by Rob - added more dt patches fixing warnings after binding conversion to yaml v5: - replaced patch 1/3 by a new patch removing platform_data support for the leds-pwm driver - little rewording of commit message in patch 2/3 - updated patch 3/3 based on feedback by Rob Herring - added Marek Behún to Cc, because he also works on removing platform_data support - rebased series on pavel/for-next v4: - added led-class patch handling fwnode passing differently (patch 1/3) - adapted leds-pwm patch to new led-class (patch 2/3) - contacted original author of leds-pwm dt binding on license issue (patch 3/3) v3: - series rebased on v5.9-rc4 - changed license of .yaml file to recommended one (patch 2/2) - added Acked-by to both patches v2: - series rebased on v5.9-rc3 - added the dt-bindings update patch (2/2) v1: - based on v5.9-rc2 - backport on v5.4.59 tested and working Cc: linux-leds@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org Cc: linux-omap@vger.kernel.org Cc: linux-stm32@st-md-mailman.stormreply.com Cc: linux-amlogic@lists.infradead.org Cc: linux-mips@vger.kernel.org Alexander Dahl (12): leds: pwm: Remove platform_data support dt-bindings: leds: Convert pwm to yaml dt-bindings: mfd: Fix schema warnings for pwm-leds ARM: dts: at91: smartkiz: Reference led node directly ARM: dts: at91: Fix schema warnings for pwm-leds ARM: dts: berlin: Fix schema warnings for pwm-leds ARM: dts: exynos: Fix schema warnings for pwm-leds ARM: dts: imx: Fix schema warnings for pwm-leds ARM: dts: omap: Fix schema warnings for pwm-leds ARM: dts: stm32: Fix schema warnings for pwm-leds arm64: dts: meson: Fix schema warnings for pwm-leds MIPS: DTS: img: Fix schema warnings for pwm-leds .../devicetree/bindings/leds/leds-pwm.txt | 50 ------------- .../devicetree/bindings/leds/leds-pwm.yaml | 70 +++++++++++++++++++ .../devicetree/bindings/mfd/iqs62x.yaml | 5 +- arch/arm/boot/dts/at91-kizbox.dts | 10 +-- arch/arm/boot/dts/at91-kizbox2-common.dtsi | 8 +-- arch/arm/boot/dts/at91-kizbox3-hs.dts | 16 ++--- arch/arm/boot/dts/at91-kizbox3_common.dtsi | 10 +-- arch/arm/boot/dts/at91-kizboxmini-common.dtsi | 8 +-- arch/arm/boot/dts/at91-smartkiz.dts | 6 +- arch/arm/boot/dts/at91sam9m10g45ek.dts | 10 +-- arch/arm/boot/dts/at91sam9rlek.dts | 10 +-- .../boot/dts/berlin2cd-google-chromecast.dts | 6 +- arch/arm/boot/dts/exynos5422-odroidhc1.dts | 4 +- arch/arm/boot/dts/exynos5422-odroidxu4.dts | 4 +- .../boot/dts/exynos54xx-odroidxu-leds.dtsi | 11 +-- arch/arm/boot/dts/imx53-ppd.dts | 15 ++-- arch/arm/boot/dts/imx6qdl-cubox-i.dtsi | 4 +- .../boot/dts/imx6sx-softing-vining-2000.dts | 8 +-- arch/arm/boot/dts/omap3-beagle-xm.dts | 10 +-- arch/arm/boot/dts/omap3-overo-base.dtsi | 4 +- arch/arm/boot/dts/omap4-kc1.dts | 6 +- arch/arm/boot/dts/omap4-sdp.dts | 26 +++---- arch/arm/boot/dts/stm32mp157c-lxa-mc1.dts | 12 ++-- .../amlogic/meson-gxl-s905x-khadas-vim.dts | 4 +- .../dts/amlogic/meson-gxm-khadas-vim2.dts | 4 +- .../boot/dts/amlogic/meson-sm1-sei610.dts | 8 +-- arch/mips/boot/dts/img/pistachio_marduk.dts | 5 +- drivers/leds/leds-pwm.c | 30 ++------ 28 files changed, 184 insertions(+), 180 deletions(-) delete mode 100644 Documentation/devicetree/bindings/leds/leds-pwm.txt create mode 100644 Documentation/devicetree/bindings/leds/leds-pwm.yaml base-commit: 4f69e17c87e90f9508f498fa4771a9b77db1174b