From patchwork Thu Jun 15 14:53:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sridharan S N X-Patchwork-Id: 693054 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 578C5EB64DA for ; Thu, 15 Jun 2023 14:54:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344808AbjFOOyE (ORCPT ); Thu, 15 Jun 2023 10:54:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345126AbjFOOxv (ORCPT ); Thu, 15 Jun 2023 10:53:51 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23387273C; Thu, 15 Jun 2023 07:53:50 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35FAvqqM030971; Thu, 15 Jun 2023 14:53:47 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=kCtA+c++7tfU0UUlQUbV6gFvPeFsi/KIdKzcQid6f1o=; b=PdmjqSF8lvl3SG/FFybte5Afwrt+LABmHiz/qWUkLIjrEnWZhHhUNzmU1rlaLeCmgVPJ t1Jo7L3lDFreeiiwCI/HD3mnsDYTe53xANLiVHvYYpiHQ1p4LY8zQhwQzqMqXY1Zvvnw rJt/uGghsdQwNUci3qWzGdjx2J6pShNlAZBL+ZVaN+bLWVeoyLjKYDNJuxl78Nsww6p4 qn9F+Qw6p4ClEbciIOhVN9yA3VUc7pNkfaYdb6FY1EgYdx47lhO7NBsa8r9uCr0b94G5 3pVYK59yG9uilMYtdnIwfik9Oa8XKT1KPz30Cp+OJhbfKkiLsE05A4jXClOPdEoP5zUK 2g== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r7va2hc5x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Jun 2023 14:53:47 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 35FErilB011485 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 15 Jun 2023 14:53:45 GMT Received: from sridsn-linux.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Thu, 15 Jun 2023 07:53:40 -0700 From: Sridharan S N To: , , , , , , , , CC: Sridharan S N Subject: [PATCH V2 2/2] arm64: dts: qcom: ipq9574: enable GPIO based LEDs Date: Thu, 15 Jun 2023 20:23:11 +0530 Message-ID: <20230615145311.2776-3-quic_sridsn@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230615145311.2776-1-quic_sridsn@quicinc.com> References: <20230615145311.2776-1-quic_sridsn@quicinc.com> MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: b4K8jHSn5QvyP9Wv2_d6QcrTH34lNB4A X-Proofpoint-ORIG-GUID: b4K8jHSn5QvyP9Wv2_d6QcrTH34lNB4A X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-15_11,2023-06-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=923 priorityscore=1501 mlxscore=0 impostorscore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 clxscore=1015 phishscore=0 malwarescore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306150129 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add support for wlan-2g LED on GPIO 64. Signed-off-by: Sridharan S N --- Changes in V2: - Updated commit message .../boot/dts/qcom/ipq9574-rdp-common.dtsi | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi b/arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi index fd5326dc1773..25424cecd834 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq9574-rdp-common.dtsi @@ -34,6 +34,18 @@ debounce-interval = <60>; }; }; + + leds { + compatible = "gpio-leds"; + pinctrl-0 = <&gpio_leds_default>; + pinctrl-names = "default"; + + led-0 { + gpios = <&tlmm 64 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tx"; + default-state = "off"; + }; + }; }; &blsp1_spi0 { @@ -137,6 +149,14 @@ drive-strength = <8>; bias-pull-up; }; + + gpio_leds_default: gpio-leds-default-state { + pins = "gpio64"; + function = "gpio"; + drive-strength = <8>; + bias-pull-up; + }; + }; &xo_board_clk {