From patchwork Tue Jun 7 10:29:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 579586 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 6FBA4CCA47C for ; Tue, 7 Jun 2022 10:33:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241021AbiFGKdz (ORCPT ); Tue, 7 Jun 2022 06:33:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238083AbiFGKdx (ORCPT ); Tue, 7 Jun 2022 06:33:53 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F9765D1B9 for ; Tue, 7 Jun 2022 03:33:52 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id x62so22375813ede.10 for ; Tue, 07 Jun 2022 03:33:52 -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:mime-version :content-transfer-encoding; bh=8P/Utz+qwtMmeLsHCu4UtqnQA7wOV2udDxlc3dKNwHo=; b=WRTgwXgoM9JsYjQJPCGDKOw4FBmvu4IqF0X/VQ7v8g2wdYagSNMDyFt95YfQvEQyKh 0dhxUwmXNAoTe6wivVReuWoiZUC5Z0zohOl+4slD2nbPbkVRZewOeRJss+rXSAy54AlE VqgHseOwbdZkonnVSUeivvAFSLNpAuD3trePQAydFvxsueHBugXMUDpI5JEbwcG/rqte LDtcDJkpcH8xxQny+HnlfiQuNUrwhx4IShB/9xrFz0hv8h2P7dR2OVJlG3wMDCQEf/Xu U7GPsM4x++k4IeqI+aOANRTqkWMVy9UvbWk2mGigUlKvBxiSdcD6wyaxbtv+WrFWVOdO dHjQ== 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:mime-version :content-transfer-encoding; bh=8P/Utz+qwtMmeLsHCu4UtqnQA7wOV2udDxlc3dKNwHo=; b=dhBIiyBeKhYMpxztxsyebcYyV2VWE+5rirXgfMAXACyLtILQVoUhbvSGKt6Gj2AJxC a3QVEbg27+HGSDrdqheVO3+nhQlI59wzy4sZfi4b/N6Rw7yWlt0EzLLhkSGhDvbFe+l+ 3ev/T9E2YDeXNg7sEJSC5+wB2xOZALWzdXxXp8rSXVkX/QMToSYsfYQBXZ34FcBmrJCH xksJlf8pTMOH/ey9TF5c61R+AKm41EWQQE/bcKILzFYHsM/KsEYEl0awag70kggO5Abk g4rSVNbp2EpmTspJsL+4qsQFr2cGEfFYElxu51chp4ZhdmkhlV3NWo/eT6YPbnkf09DD kfCg== X-Gm-Message-State: AOAM533mQd4T5mThXPRfM7UMigCQegAZrFyfMqOqGh8lZ02Uh5vnCajx jIum6DYIubnkLROW8dIbqDUE+Q== X-Google-Smtp-Source: ABdhPJx97W7wrNNfp8Y0I80YoSqVgA37FCnFdVSHeklX5Q45ucTEloIiuYUoKifQuLENj5pGN9jVMA== X-Received: by 2002:a05:6402:4241:b0:431:574a:d74b with SMTP id g1-20020a056402424100b00431574ad74bmr12413182edb.374.1654598030866; Tue, 07 Jun 2022 03:33:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 03:33:50 -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 01/10] ARM: dts: qcom: apq8060-dragonboard: add function and color to LED nodes Date: Tue, 7 Jun 2022 12:29:22 +0200 Message-Id: <20220607102931.102805-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 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-apq8060-dragonboard.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts b/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts index 138d6478ac84..9a4aedc5f3ea 100644 --- a/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts +++ b/arch/arm/boot/dts/qcom-apq8060-dragonboard.dts @@ -1,6 +1,7 @@ // SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) #include #include +#include #include #include #include "qcom-msm8660.dtsi" @@ -416,6 +417,7 @@ led@131 { compatible = "qcom,pm8058-led"; reg = <0x131>; label = "pm8058:red"; + color = ; default-state = "off"; }; led@132 { @@ -426,6 +428,7 @@ led@132 { compatible = "qcom,pm8058-led"; reg = <0x132>; label = "pm8058:yellow"; + color = ; default-state = "off"; linux,default-trigger = "mmc0"; }; @@ -433,6 +436,8 @@ led@133 { compatible = "qcom,pm8058-led"; reg = <0x133>; label = "pm8058:green"; + function = LED_FUNCTION_HEARTBEAT; + color = ; default-state = "on"; linux,default-trigger = "heartbeat"; }; 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"; }; From patchwork Tue Jun 7 10:29:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 579584 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 8E69FCCA47C for ; Tue, 7 Jun 2022 10:34:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241066AbiFGKeA (ORCPT ); Tue, 7 Jun 2022 06:34:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241056AbiFGKd5 (ORCPT ); Tue, 7 Jun 2022 06:33:57 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 409A7606DE for ; Tue, 7 Jun 2022 03:33:56 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id w27so22346899edl.7 for ; Tue, 07 Jun 2022 03:33:56 -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=5684ZCuFKjUZf1A0V/l4v3S11bpO074EtOPdjGOIeIQ=; b=dqGPKn8pGEPvS5tOITYYmKsDfhlYWPf4Q+JzZxWkTVwa5a4XbcSgAz97lWJA0VKfDY gMsjn6pqWR+bcidwu3mbXMMo9CKClceT952dLUpVRWkrGaBKDJ1J52cOVDrI6Oh+0rPr cnpqpND4O7SwKeBH8HW5sneHsnEjodUsHAKWAZnOzyJ9AAUEsdAubRjRDOTTTQYzvRB1 rK+TW7+k4Nl4E0oAGV90yz/rV2zEWmXO+7OvgXFu44TPLSjMT4naW/2FTDD1zf/ZquC9 c7oECNbwKIYeS/0uiXt/FeYjBhUGhYb8PY+Mef6C1x/81IwGiM/Tek3P+HSATTU1tlfG bdKQ== 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=5684ZCuFKjUZf1A0V/l4v3S11bpO074EtOPdjGOIeIQ=; b=v0XzXAL639MCKv17oPB2x29X6sg3F1bZ5Eq7tQA6GRobxk/OLKUX5HLkOicufRPfg8 dEbJ3cu2HjkK6rG0obpPbhMPr7dpqPc0E6WITuW33SUolbTqrgacTFY27YH6wYNxah3H Ea8qXWtF6/xpAMUCnOMzt1oixyCUhr4PMLnovDJ7j3sJQJlpsTQ9IudaP3V8qcjQeRrS FT3Tndq9nLsOsv0CiZ2G4Kd2zGD8UjJncnqNhc6rlMWeEROBT4y7XNj9agOVYAEjkPu9 czCqclojYGQ/td1YqDub2sWgu6e3jO75kWfxTt3SQI+Stz6kCNazJqm2aTVNdfcTM9Gm Biig== X-Gm-Message-State: AOAM531o6bKfnPFGkzKLlwKIQsDeCkEKyXN++JwcQv4W9jKVbPNy2HUN U3+iC6Di+TSkBr+JWAAFl6gBT9qPJKuj4Q== X-Google-Smtp-Source: ABdhPJwSCDkpVwfygk6b6aG2ZX5Sr+tvZ+h7UtxCxDpPZ4x8PsNV2K7qP41tKSLqSb3NBhgg52tkDA== X-Received: by 2002:a05:6402:1e93:b0:42d:d71d:cb60 with SMTP id f19-20020a0564021e9300b0042dd71dcb60mr33160867edf.399.1654598034841; Tue, 07 Jun 2022 03:33:54 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 03:33:54 -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 05/10] ARM: dts: qcom: ipq8064: add function to LED nodes Date: Tue, 7 Jun 2022 12:29:26 +0200 Message-Id: <20220607102931.102805-5-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 property - the function - to LED nodes. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi b/arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi index 5c802b99e15f..7a28a0bfc4ee 100644 --- a/arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include "qcom-ipq8064.dtsi" #include +#include / { model = "Qualcomm Technologies, Inc. IPQ8064-v1.0"; @@ -107,6 +108,7 @@ led@8 { led@9 { label = "status_led_fail"; + function = LED_FUNCTION_STATUS; gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>; default-state = "off"; }; @@ -119,6 +121,7 @@ led@26 { led@53 { label = "status_led_pass"; + function = LED_FUNCTION_STATUS; gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>; default-state = "off"; }; From patchwork Tue Jun 7 10:29:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 579583 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 23302C433EF for ; Tue, 7 Jun 2022 10:34:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241083AbiFGKeG (ORCPT ); Tue, 7 Jun 2022 06:34:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241075AbiFGKeC (ORCPT ); Tue, 7 Jun 2022 06:34:02 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27E5362CD4 for ; Tue, 7 Jun 2022 03:33:58 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id n10so34308477ejk.5 for ; Tue, 07 Jun 2022 03:33:58 -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=WdAxh+O0uIjFe4UvozVO34klV0ZIe/hi3OtAodjcZGE=; b=Mb0K0i/8GyglpnlM9LcfaGHP6z5FNt+4CH6xvL7yruCiCSjz9yV8dDlC/rrkNEfPkP OwCgk8SfaQc9DTDXA78F/nql/eOsSFR/gZcI7A1PnFQAt0mJUSrLh/fM1k1kpG3mHN2O 2/Ic/F7zJxl1KA0NGD8BnnR8j4kGWRDSBKZpPkYbsfaDXgLCRNetWMxdE+t6gWF+S9+i 240S7z8aSqm19wXigQDlaLCKbHOtzx97sMy2ns1mLpdTdC5ljmcvt2Xo2/ycby9QfsEf U1ih6H+BHoXc2VljsDuf6jGLcaVJFE586ohHZFoMEJ0gBZer2c5bvLvqshRITognF00L STnQ== 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=WdAxh+O0uIjFe4UvozVO34klV0ZIe/hi3OtAodjcZGE=; b=yVTJYGwMI5cVEtgp/Q6lGZ8SOzzROjksoucTjOoezbxwmHarLRGpOByZNngDEBAJzA WW2YDr/ZAeW/S6Fu0H5T7oDNku2CQEbGzHFJP/lNnUA2VIHdQUA+Q/QRo5XBijlp4GO3 EfWOqeslI7RrOLJMWEuFsLYskzOqMvjS5Mi1iOFE52oTwaOUZkYiRYtqK8N0Zlw8tlcN HB1Q8/ZI2+KmZn0kjCvUJ7XYgbny2P8/5OBHpX/2TyXQZlOA/J0UV8gzZc4FbMPu1xMZ xQnIIrS9D4R9XwZk+CkRVc/BVeIduBNsOmGPbTpMKbm2u8VeEmOwO/v8SWY1Ks7MSdp6 Dmcw== X-Gm-Message-State: AOAM530keFgWZLOEq02uk6L41gz+f7lrYhu+f6tXf6NA7FlDXqtx55+e VwEFBAs9k0OKRYEv78havHqemQ== X-Google-Smtp-Source: ABdhPJzvRlBXV1eQi92TT0ErMTBYtwbQKRdn24Vp05ftWF8pyeD1zchH+8Mlvqdt1bbOp7ohlNEIGw== X-Received: by 2002:a17:906:14d5:b0:711:c55a:998 with SMTP id y21-20020a17090614d500b00711c55a0998mr11917498ejc.708.1654598035746; Tue, 07 Jun 2022 03:33:55 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 03:33:55 -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 06/10] arm64: dts: qcom: apq8016-sbc: add function and color to LED nodes Date: Tue, 7 Jun 2022 12:29:27 +0200 Message-Id: <20220607102931.102805-6-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/arm64/boot/dts/qcom/apq8016-sbc.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts index 7c1eab605c15..3385cdf14a28 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dts +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dts @@ -8,6 +8,7 @@ #include "msm8916-pm8916.dtsi" #include #include +#include #include #include #include @@ -116,6 +117,8 @@ leds { led@1 { label = "apq8016-sbc:green:user1"; + function = LED_FUNCTION_HEARTBEAT; + color = ; gpios = <&msmgpio 21 GPIO_ACTIVE_HIGH>; linux,default-trigger = "heartbeat"; default-state = "off"; @@ -123,6 +126,8 @@ led@1 { led@2 { label = "apq8016-sbc:green:user2"; + function = LED_FUNCTION_DISK_ACTIVITY; + color = ; gpios = <&msmgpio 120 GPIO_ACTIVE_HIGH>; linux,default-trigger = "mmc0"; default-state = "off"; @@ -130,6 +135,8 @@ led@2 { led@3 { label = "apq8016-sbc:green:user3"; + function = LED_FUNCTION_DISK_ACTIVITY; + color = ; gpios = <&pm8916_gpios 1 GPIO_ACTIVE_HIGH>; linux,default-trigger = "mmc1"; default-state = "off"; @@ -137,6 +144,7 @@ led@3 { led@4 { label = "apq8016-sbc:green:user4"; + color = ; gpios = <&pm8916_gpios 2 GPIO_ACTIVE_HIGH>; linux,default-trigger = "none"; panic-indicator; @@ -145,6 +153,8 @@ led@4 { led@5 { label = "apq8016-sbc:yellow:wlan"; + function = LED_FUNCTION_WLAN; + color = ; gpios = <&pm8916_mpps 2 GPIO_ACTIVE_HIGH>; linux,default-trigger = "phy0tx"; default-state = "off"; @@ -152,6 +162,8 @@ led@5 { led@6 { label = "apq8016-sbc:blue:bt"; + function = LED_FUNCTION_BLUETOOTH; + color = ; gpios = <&pm8916_mpps 3 GPIO_ACTIVE_HIGH>; linux,default-trigger = "bluetooth-power"; default-state = "off"; From patchwork Tue Jun 7 10:29:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 579582 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 33282CCA482 for ; Tue, 7 Jun 2022 10:34:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236617AbiFGKeI (ORCPT ); Tue, 7 Jun 2022 06:34:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241085AbiFGKeD (ORCPT ); Tue, 7 Jun 2022 06:34:03 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5963666683 for ; Tue, 7 Jun 2022 03:33:59 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id w27so22346899edl.7 for ; Tue, 07 Jun 2022 03:33:59 -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=u0O6Mf/UrJOEwrZeCEjj2knBSzB2PFx6iqji2ENZg2g=; b=IwaL9rxfFfdPgnr716/ClY4yXQUUDH+uGY2IGB7VYY4T6TmoZ9e3dj41Pf3yv+UH30 6GxlHtJohRz8MIjhHcA96j8p6DHYgRQamw2QqKo9R3otjgIF+F4TbIyQUWtobrbhk82I TWFHf8z20fnuPgDEyb7UnQU8J3horlfb8lt/l4ajrLq/6Ra42wfSNfrDqe1bE4BAKKNQ emqvW4/GRdXQQZDW9hCKQEGifgsONTnUxg2rE1jQQWYOgj+mZtsabKoYJPdYlxLDNC+7 OqiOjNsCQX7ioLA89ptRvowvloU3F1siqN+wQdOlIMvucfQddlmx7CHKhmJLbFdB2VU5 MyrQ== 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=u0O6Mf/UrJOEwrZeCEjj2knBSzB2PFx6iqji2ENZg2g=; b=rIS34C4WvYl6UGlX+68GAS5cZ6vmrV/aSi7HN0dQ8yD+P9cbBrqcbnvyYhr2y2gulr grxEfnVkC4VQC0JeoHtIhtsHfWEd1ASa1ogxb8xAsmpTfR4azBT6pgkTO9ugbX5iu+QT 3ZcWF+bjE0D0HLqth/JwPikuKA5nou1X59D7DybyDRJvyIcY9u/gIaq4bXfgfPEbT8FI Q6H5iQw9gUc2h3y3DKwo9p2yADA7byHy0S+VE/1IBpJaFrHtn9MieLU5Uo5yb5KZZxEU Pfnx2K3glb1Sun5W/9Tvf36d6bcrpQ9bvUO+J/I6EbMErkA5ED+dn9BmfRSM7bfRMEdT u97g== X-Gm-Message-State: AOAM532SO/TYRFobKfco8HBk33eTmIQhv18kQOZ6Xm4O5hphMG6kmMMd bDjE7vacu3V9yovnBXAEw3Te5g== X-Google-Smtp-Source: ABdhPJwKvkIDwyyhRdK6kIRYwjZd0OU/0w4Gl5DsX+c1Rallj5Buyt2b3KcIY8pvxUpT9+V6ZnSKKw== X-Received: by 2002:a05:6402:34d6:b0:42e:2a6a:5dc4 with SMTP id w22-20020a05640234d600b0042e2a6a5dc4mr25257043edc.361.1654598038899; Tue, 07 Jun 2022 03:33:58 -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.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 03:33:58 -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 09/10] arm64: dts: qcom: sc7280-herobrine: add function to LED node Date: Tue, 7 Jun 2022 12:29:30 +0200 Message-Id: <20220607102931.102805-9-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 property - the function - to LED node. Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi index 9cb1bc8ed6b5..b5e31d908938 100644 --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi @@ -15,6 +15,7 @@ #include #include +#include #include "sc7280-qcard.dtsi" #include "sc7280-chrome-common.dtsi" @@ -301,6 +302,7 @@ pwmleds { keyboard_backlight: keyboard-backlight { status = "disabled"; label = "cros_ec::kbd_backlight"; + function = LED_FUNCTION_KBD_BACKLIGHT; pwms = <&cros_ec_pwm 0>; max-brightness = <1023>; };