From patchwork Fri Sep 4 06:36:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 249054 Delivered-To: patch@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp1124062ilg; Thu, 3 Sep 2020 23:37:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWuUcqY2doPHIKJVpaHVfPObCFNapklvazUo4lxFfABJ/a3K/srkv+Nb1qftkfIz78kFs1 X-Received: by 2002:a05:6402:b72:: with SMTP id cb18mr6691467edb.299.1599201438038; Thu, 03 Sep 2020 23:37:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599201438; cv=none; d=google.com; s=arc-20160816; b=M8dovACv11DlRwdTKWXoSaC/I8zSdj0EsBN3daEH1Z/3VDfNtkUNEukc4Ayq9P3KB1 CSRlqXOGAmjtmDqHL2izf2QZxRN/owNOyFqBih9NnhJCoMu4TrfeMbSQiJ46k1bCvV71 MB1WqdkpgBuE1lHuWZcRjzQOeWrKUNgMG/8437OBZyloJlzVaKB/oMNiNKqSVSSue+Tf Zm0H8Hy78EUAOAJMTmcqwysW+ngacx+Y5YhgQDR0V+5pdBPdG7/b/IeyD1oSGpwWgfPy j328Dg7i+E7OJE3xXMHJRXM7cppmhUQe7n6lU6X8/UOzeSMbw/wm1lTq2bbbpSvDcZTx kCXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=WyTTIBrYfLhw1AE2OmxNbGkbFO4+PPEQia9DHNRklGE=; b=xk1wxmTzANkt69117OeathzkZICo/agJhm7g8xp5KXZof5jMKrgo30errnkOtLOKWZ KC6WOuUgUzEnvLqA2k+nhCUfPyx1FBoCKsWY6pS7MCZqKlYhZg7R4oZlIlIUlBEQWyFX dukRNqzR9RZijG0SFmvJ8w6KKG19Qi6J0NOXJF1pPBE8HeLg+JuIuXQd2ab6PyyOFUcn sSYxFSARsRp4cwrUGVbYxK0EgtCNPhsfa3kvCyFAyy7i6ov9DGxGVi9R0CS07DMERpX9 7oS+UuuPBFcz54e7axXNkMfRp759+W9DaXAX/nLomiIK1haC0OifgyqX6orRRCINGesD z28w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I3TDcLBf; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w16si3489732eje.414.2020.09.03.23.37.17; Thu, 03 Sep 2020 23:37:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@linaro.org header.s=google header.b=I3TDcLBf; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728537AbgIDGhL (ORCPT + 15 others); Fri, 4 Sep 2020 02:37:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728443AbgIDGhB (ORCPT ); Fri, 4 Sep 2020 02:37:01 -0400 Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E6DBC061249 for ; Thu, 3 Sep 2020 23:37:01 -0700 (PDT) Received: by mail-pf1-x443.google.com with SMTP id v196so4080347pfc.1 for ; Thu, 03 Sep 2020 23:37:01 -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; bh=WyTTIBrYfLhw1AE2OmxNbGkbFO4+PPEQia9DHNRklGE=; b=I3TDcLBfqvBB36KQuNi8T/eLNAHfsM44T0RM5Ps8hN+KwYWP2rU+S4nHkAPYdOuZfR ibV7+QBaEV/UQMYgzQCZQx7mdmC5AaSnY6486ZnKsr2MIh+UyeIpI1IAIcRu7AZC94uD WKRo89ykg3IOqPlpMSsk6ijFeGPKD1B8H8choJUUfmOt5Fd5ACBB0G8/i8VFlBDBTL3J 93UysHDs7pDcgPMdXWRSGnWQUsSzd4YZD7rxYvYY6V4oltd12aUmJH/zBw937wBOfM4l 7uNmNPBIpVinLOL5KEk+I3Uv2m2UCtV0yDj4ITXagzZEJPQR0pwzei8nx00q8cCBWh5O b5Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WyTTIBrYfLhw1AE2OmxNbGkbFO4+PPEQia9DHNRklGE=; b=dY+EMnDT6+dRmYWgOO4xUm8ybigZNLOycmEEj1MBoN3fiJcxWx1fLi6z8439H0juAR JQVcoll+kK/Tnhy4KmVc40NNsPb6rsYL9jTyUB/O78i82/cgaeYT/nexRVr7ITMNuQpB DV1cyr/NkaPbYEcCHjyVfqyticscIUIxIcxlCNUflPAyR4lpTxZ9Hqxyhc2wzuvawFOG MTaVqMS4ZV7fp6vNBgolc6wUY6LAsPMg6kJDW8ytflQuL4L8WVV62s2+pR5iTM5x2iwn xwRRwKB3lLVoChEcd5k2cLeRNanA/xfbnJZwVmJSbzgS3q0D/REsPaTCXG7VaU7nReM5 xmTA== X-Gm-Message-State: AOAM533bWyQp7xPTKde5yOyokvPZbk69AA364BpqNbhEa3GezE9KG3Rw IFflFh2IGFjAUm66nlDe31jm X-Received: by 2002:a63:da15:: with SMTP id c21mr6188721pgh.207.1599201420889; Thu, 03 Sep 2020 23:37:00 -0700 (PDT) Received: from localhost.localdomain ([103.59.133.81]) by smtp.googlemail.com with ESMTPSA id 143sm5315040pfc.66.2020.09.03.23.36.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 23:37:00 -0700 (PDT) From: Manivannan Sadhasivam To: agross@kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmitry.baryshkov@linaro.org, Manivannan Sadhasivam Subject: [PATCH 4/6] arm64: dts: qcom: qrb5165-rb5: Add onboard LED support Date: Fri, 4 Sep 2020 12:06:35 +0530 Message-Id: <20200904063637.28632-5-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200904063637.28632-1-manivannan.sadhasivam@linaro.org> References: <20200904063637.28632-1-manivannan.sadhasivam@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Only User4, WLAN and BT LEDs are added for now. These GPIOs are coming from PM8150. Rest are coming from LPG block which is not supported yet! Signed-off-by: Manivannan Sadhasivam --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts index f201e064b3e7..312316e23298 100644 --- a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts +++ b/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts @@ -32,6 +32,32 @@ regulator-always-on; }; + leds { + compatible = "gpio-leds"; + + user4 { + label = "green:user4"; + gpios = <&pm8150_gpios 10 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "panic-indicator"; + default-state = "off"; + }; + + wlan { + label = "yellow:wlan"; + gpios = <&pm8150_gpios 9 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "phy0tx"; + default-state = "off"; + }; + + bt { + label = "blue:bt"; + gpios = <&pm8150_gpios 7 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "bluetooth-power"; + default-state = "off"; + }; + + }; + vbat: vbat-regulator { compatible = "regulator-fixed"; regulator-name = "VBAT";