From nobody Mon Feb 9 01:50:25 2026 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 D7097EB64D7 for ; Fri, 16 Jun 2023 08:33:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241948AbjFPIdr (ORCPT ); Fri, 16 Jun 2023 04:33:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244471AbjFPIde (ORCPT ); Fri, 16 Jun 2023 04:33:34 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A0C52D71; Fri, 16 Jun 2023 01:33:33 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35G4G7He032571; Fri, 16 Jun 2023 08:33:29 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=s/lYTq+hJ8wNXg+fwaA8N4RWE3CAcIKR3WOgYP98Y+4=; b=Ps4euilWU/gN/a4v1uaLRusI0qp0A/f4OYJT7QXDBerdSFXsmtcechb0ApUlj5AELWC8 rqsMjKb9FLuyC5N0PjJbDr/zKLCywKV/ZdxDlxWPJ5Eqtq/Cwh6Bsi19ijazY01oznLv Ds/N/LORIUBEM4gT6WyuPmuFReV/mhiVSPzVKvtdCgoFa2Qr8xuFShPpyzHQmf5EnlN/ mFcXxRcTI9lkXxQeOZuFZvhqNNS/G43NKJ/TLhfh69J0qnrQngG8/2Gs+VcVEsi4CsgA Labg3MFtV0tu0GrrQhhLgZZoOxAID/r7vniuLB8AAXCq46qlDWoi4J+WPzWi1DrOcxfI Xg== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r7u8cb7k6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Jun 2023 08:33:29 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 35G8XS40018455 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Jun 2023 08:33:28 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; Fri, 16 Jun 2023 01:33:06 -0700 From: Sridharan S N To: , , , , , , , , CC: Sridharan S N Subject: [PATCH V4 1/2] arm64: dts: qcom: ipq5332: enable GPIO based LEDs and Buttons Date: Fri, 16 Jun 2023 14:02:37 +0530 Message-ID: <20230616083238.20690-2-quic_sridsn@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230616083238.20690-1-quic_sridsn@quicinc.com> References: <20230616083238.20690-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-ORIG-GUID: 4gtcoRO034_JxHk-6ebuPv_-Xhv12m__ X-Proofpoint-GUID: 4gtcoRO034_JxHk-6ebuPv_-Xhv12m__ 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-16_05,2023-06-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=0 suspectscore=0 mlxlogscore=634 malwarescore=0 phishscore=0 bulkscore=0 impostorscore=0 priorityscore=1501 spamscore=0 mlxscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306160075 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add support for wlan-2g LED on GPIO 36 and wps buttons on GPIO 35. Signed-off-by: Sridharan S N Reviewed-by: Konrad Dybcio --- Changes in V4: - Added patch dependency. This change depends on below patch set https://lore.kernel.org/linux-arm-msm/20230615090001.10970-1-quic_sridsn= @quicinc.com/ Changes in V3: - Updated patch series title. Mentioned platform in series title Changes in V2: - Used the hypen in node name instead of underscore - Dropped the status property .../boot/dts/qcom/ipq5332-rdp-common.dtsi | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq5332-rdp-common.dtsi b/arch/arm64/= boot/dts/qcom/ipq5332-rdp-common.dtsi index 97dc0e5c15f0..a8671a4ac2e4 100644 --- a/arch/arm64/boot/dts/qcom/ipq5332-rdp-common.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq5332-rdp-common.dtsi @@ -19,6 +19,31 @@ chosen { stdout-path =3D "serial0"; }; + + gpio-keys { + compatible =3D "gpio-keys"; + pinctrl-0 =3D <&gpio_keys_default>; + pinctrl-names =3D "default"; + + button-wps { + label =3D "wps"; + linux,code =3D ; + gpios =3D <&tlmm 35 GPIO_ACTIVE_LOW>; + debounce-interval =3D <60>; + }; + }; + + leds { + compatible =3D "gpio-leds"; + pinctrl-0 =3D <&gpio_leds_default>; + pinctrl-names =3D "default"; + + led-0 { + gpios =3D <&tlmm 36 GPIO_ACTIVE_HIGH>; + linux,default-trigger =3D "phy0tx"; + default-state =3D "off"; + }; + }; }; =20 &blsp1_i2c1 { @@ -52,6 +77,20 @@ /* PINCTRL */ =20 &tlmm { + gpio_keys_default: gpio-keys-default-state { + pins =3D "gpio35"; + function =3D "gpio"; + drive-strength =3D <8>; + bias-pull-up; + }; + + gpio_leds_default: gpio-leds-default-state { + pins =3D "gpio36"; + function =3D "gpio"; + drive-strength =3D <8>; + bias-pull-down; + }; + i2c_1_pins: i2c-1-state { pins =3D "gpio29", "gpio30"; function =3D "blsp1_i2c0"; --=20 2.17.1 From nobody Mon Feb 9 01:50:25 2026 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 D4A20EB64D8 for ; Fri, 16 Jun 2023 08:33:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242175AbjFPIdu (ORCPT ); Fri, 16 Jun 2023 04:33:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244713AbjFPIde (ORCPT ); Fri, 16 Jun 2023 04:33:34 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7271C2D69; Fri, 16 Jun 2023 01:33:32 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35G5RemG026625; Fri, 16 Jun 2023 08:33:29 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=2liPH99Ls/As98o7lRcIXie2Id+ERegiUOKxr6q24No=; b=VNbbvFhl4EecwxaCg1sSKc7HXHII0pOLOqBNKOIVcOyh0Nc6GzqCr2kTbVH7fWpbsB9b sYtZ5PLNk5sggNW81SyoSFF7i1JChKIv1VHNC05ANtg3hWOeLdVBHJV+CtNv0mDT7VUB bR6Ba8s9lrhxHOxAaqYcbWYPQplwBxXG8Ct2dhthEFZeSq0HeGX2wrkBHwqhQsYJyRqx LItxjA/xi4LVTmzC4Mc2RP5UOhEK/upTRUzH1vp+HQyCWlifjKs/9iB/sSS45F0WhzIF eC9eT8joWAf9pWzp7b64Y39qk59+BsipinfXgtGz7u7qSVcAdPTrS3f86ZSy20nNVSZs NQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r81t3j7ur-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Jun 2023 08:33:29 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 35G8XS41018455 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Jun 2023 08:33:28 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; Fri, 16 Jun 2023 01:33:09 -0700 From: Sridharan S N To: , , , , , , , , CC: Sridharan S N Subject: [PATCH V4 2/2] arm64: dts: qcom: ipq9574: enable GPIO based LEDs Date: Fri, 16 Jun 2023 14:02:38 +0530 Message-ID: <20230616083238.20690-3-quic_sridsn@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230616083238.20690-1-quic_sridsn@quicinc.com> References: <20230616083238.20690-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: Wf3J2Je5ualLo98HYlLKVifg3HolZfDR X-Proofpoint-ORIG-GUID: Wf3J2Je5ualLo98HYlLKVifg3HolZfDR 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-16_05,2023-06-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 mlxscore=0 suspectscore=0 adultscore=0 mlxlogscore=576 phishscore=0 priorityscore=1501 spamscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306160075 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add support for wlan-2g LED on GPIO 64. Signed-off-by: Sridharan S N Reviewed-by: Konrad Dybcio --- Changes in V4: - Added patch dependency. This change depends on below patch set https://lore.kernel.org/linux-arm-msm/20230614085040.22071-2-quic_anusha= @quicinc.com/ Changes in V3: - Updated patch series title. Mentioned platform in series title Changes in V2: - No changes =20 .../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 =3D <60>; }; }; + + leds { + compatible =3D "gpio-leds"; + pinctrl-0 =3D <&gpio_leds_default>; + pinctrl-names =3D "default"; + + led-0 { + gpios =3D <&tlmm 64 GPIO_ACTIVE_LOW>; + linux,default-trigger =3D "phy0tx"; + default-state =3D "off"; + }; + }; }; =20 &blsp1_spi0 { @@ -137,6 +149,14 @@ drive-strength =3D <8>; bias-pull-up; }; + + gpio_leds_default: gpio-leds-default-state { + pins =3D "gpio64"; + function =3D "gpio"; + drive-strength =3D <8>; + bias-pull-up; + }; + }; =20 &xo_board_clk { --=20 2.17.1