From patchwork Tue Jun 7 10:29:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 579585 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 142E6CCA482 for ; Tue, 7 Jun 2022 10:34:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241057AbiFGKd6 (ORCPT ); Tue, 7 Jun 2022 06:33:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241041AbiFGKd4 (ORCPT ); Tue, 7 Jun 2022 06:33:56 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E1B85E774 for ; Tue, 7 Jun 2022 03:33:54 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id x62so22375927ede.10 for ; Tue, 07 Jun 2022 03:33:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LvnR6cnpgmDRvwfNHKxOBJt+HY/LO1fEYGyHnVTDA/Q=; b=X2//BewNVt+G3WqsLf1YFSVktvR/LTRIrmfH4RQB/wuu5hCb7IlNMCAYSKC6TNEOlp oTTtXqWvbcwJ+CszIfJdV4yEzBxbeO+8C4rGHyfyFIqo1Mn2CuqhoRcOdTSpt9XJK16N DgJu97jppHT4szre1mXlTsGntPzri/j2h7KfaqnaDd08E+gQvHShRcvkzyhPjsf+R5qh fEmPTXWmA1kEvlsJulXg3resxygcUVsh2xL3jU+9aCgfgUeESxJtvRXvMcmhcMCvrZ/p PU0VQzrTIJKvD2Io32Fayvb0z5u0XXEQorvXgyXebCI4co+9ppzHiaxLnQHc2w2HHbXU bJ2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LvnR6cnpgmDRvwfNHKxOBJt+HY/LO1fEYGyHnVTDA/Q=; b=WbyWXVGe6nt1RbU2kK8CZTtoDh14bauZ/7iRK4TLExZP3dW/VF3aXZOb8OkSTJNkfv nrrR0ahqQQfwQ5OOtQgK0MktWSSOlnlwpmkWjmoYbcoYemZTGRrN3wuaLdIkuqvA5jKu LxFUovGRSCreAiVAR0VTRD0GqnEgkMCTc72jB/j95IQE7ndUjjoW81qHENjb+ppu/upx ug5ijHyqXVxYmmkSpGhwkCV/rqheUFlcFHuZJ3YO6ca3mB8KF5u5QuLy1ccohKXNnbYt XVTBuZVISMq5GHh4sGy3bbvW1f9KmuCDwaOGyA8mXQ8UJhOFLIcjvB83yDsQRybw3JUh yY3w== X-Gm-Message-State: AOAM533ace5lEVL5UVIHmDKwZngxxmZWWgU7o20VXNdnjAceiLXJyBJ1 PpC4WAnoMcq3hFzU/OgQo7gE/g== X-Google-Smtp-Source: ABdhPJwKe00IxJnJOFOGrxesMijt5vWvWpdZ2XxfqK9y0YGoiRWJUXlnmcEWnyBZ9lko2VvfalbHIg== X-Received: by 2002:a05:6402:3819:b0:42b:ddcc:2109 with SMTP id es25-20020a056402381900b0042bddcc2109mr32716394edb.246.1654598032694; Tue, 07 Jun 2022 03:33:52 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id x4-20020a1709065ac400b00704fa2748ffsm7505359ejs.99.2022.06.07.03.33.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 03:33:52 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 03/10] ARM: dts: qcom: ipq4018-ap120c-ac: add function and color to LED nodes Date: Tue, 7 Jun 2022 12:29:24 +0200 Message-Id: <20220607102931.102805-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220607102931.102805-1-krzysztof.kozlowski@linaro.org> References: <20220607102931.102805-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add common LED properties - the function and color - to LED nodes. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/qcom-ipq4018-ap120c-ac-bit.dts | 6 ++++++ arch/arm/boot/dts/qcom-ipq4018-ap120c-ac.dts | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac-bit.dts b/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac-bit.dts index 028ac8e24797..cf7da1ab177c 100644 --- a/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac-bit.dts +++ b/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac-bit.dts @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT +#include #include "qcom-ipq4018-ap120c-ac.dtsi" / { @@ -10,17 +11,22 @@ leds { power { label = "ap120c-ac:green:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&tlmm 5 GPIO_ACTIVE_LOW>; default-state = "on"; }; wlan { label = "ap120c-ac:green:wlan"; + function = LED_FUNCTION_WLAN; + color = ; gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>; }; support { label = "ap120c-ac:green:support"; + color = ; gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>; panic-indicator; }; diff --git a/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac.dts b/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac.dts index b7916fc26d68..c4f89b712fd9 100644 --- a/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac.dts +++ b/arch/arm/boot/dts/qcom-ipq4018-ap120c-ac.dts @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT +#include #include "qcom-ipq4018-ap120c-ac.dtsi" / { @@ -8,18 +9,24 @@ leds { status: status { label = "ap120c-ac:blue:status"; + function = LED_FUNCTION_STATUS; + color = ; gpios = <&tlmm 5 GPIO_ACTIVE_LOW>; default-state = "keep"; }; wlan2g { label = "ap120c-ac:green:wlan2g"; + function = LED_FUNCTION_WLAN; + color = ; gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy0tpt"; }; wlan5g { label = "ap120c-ac:red:wlan5g"; + function = LED_FUNCTION_WLAN; + color = ; gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy1tpt"; };