From nobody Sun Apr 26 10:52:01 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 3E5E1C43334 for ; Wed, 29 Jun 2022 07:59:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232643AbiF2H7y (ORCPT ); Wed, 29 Jun 2022 03:59:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229811AbiF2H7v (ORCPT ); Wed, 29 Jun 2022 03:59:51 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9095C39810; Wed, 29 Jun 2022 00:59:49 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 25T7xDbN048237; Wed, 29 Jun 2022 02:59:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1656489553; bh=UFFq1KovGjvjekKq08QHl5e958WTDQd6GMWm+70TOOA=; h=From:To:CC:Subject:Date; b=O6CEs/pDejdirwLHA8lc1p5M8bpdKcg8Y+f41j7A1wJPdlCnrWHZMiID+zn9suujg Jdb+o7YTpDwAZXVjcdqHSxHVp/3FHVapntFRPIDSNMmSoIv0gdWF7SsfJ70o7FyAPh GV/Up5FD44kHH5JQu0kcjg8p65tgNbl50tQcoNgA= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 25T7xDH6040483 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 29 Jun 2022 02:59:13 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 29 Jun 2022 02:59:12 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Wed, 29 Jun 2022 02:59:12 -0500 Received: from swubn03.india.englab.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 25T7x8Ip129499; Wed, 29 Jun 2022 02:59:09 -0500 From: Aparna M To: , , , , CC: , , , , , , , Subject: [PATCH v2] arm64: dts: ti: k3-am642-sk: Add DT entry for onboard LEDs Date: Wed, 29 Jun 2022 13:28:59 +0530 Message-ID: <20220629075859.6939-1-a-m1@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" AM642 SK has 8 leds connected to tpic2810 onboard. Add support for these gpio leds. Signed-off-by: Aparna M --- This patch is dependent on: https://lore.kernel.org/all/20220223174215.17838-1-a-m1@ti.com/=20 v1 -> v2: Fixed led-controller name and changed led-7 funtion to show heartbeat functionality. Rebased on top for 5.19-rc4. arch/arm64/boot/dts/ti/k3-am642-sk.dts | 69 ++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/t= i/k3-am642-sk.dts index 59f506cbd275..47476fd068a8 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts @@ -150,6 +150,67 @@ vin-supply =3D <&com8_ls_en>; gpio =3D <&main_gpio0 48 GPIO_ACTIVE_HIGH>; }; + + led-controller { + compatible =3D "gpio-leds"; + + led-0 { + color =3D ; + function =3D LED_FUNCTION_INDICATOR; + function-enumerator =3D <1>; + gpios =3D <&exp2 0 GPIO_ACTIVE_HIGH>; + default-state =3D "off"; + }; + led-1 { + color =3D ; + function =3D LED_FUNCTION_INDICATOR; + function-enumerator =3D <2>; + gpios =3D <&exp2 1 GPIO_ACTIVE_HIGH>; + default-state =3D "off"; + }; + led-2 { + color =3D ; + function =3D LED_FUNCTION_INDICATOR; + function-enumerator =3D <3>; + gpios =3D <&exp2 2 GPIO_ACTIVE_HIGH>; + default-state =3D "off"; + }; + led-3 { + color =3D ; + function =3D LED_FUNCTION_INDICATOR; + function-enumerator =3D <4>; + gpios =3D <&exp2 3 GPIO_ACTIVE_HIGH>; + default-state =3D "off"; + }; + led-4 { + color =3D ; + function =3D LED_FUNCTION_INDICATOR; + function-enumerator =3D <5>; + gpios =3D <&exp2 4 GPIO_ACTIVE_HIGH>; + default-state =3D "off"; + }; + led-5 { + color =3D ; + function =3D LED_FUNCTION_INDICATOR; + function-enumerator =3D <6>; + gpios =3D <&exp2 5 GPIO_ACTIVE_HIGH>; + default-state =3D "off"; + }; + led-6 { + color =3D ; + function =3D LED_FUNCTION_INDICATOR; + function-enumerator =3D <7>; + gpios =3D <&exp2 6 GPIO_ACTIVE_HIGH>; + default-state =3D "off"; + }; + led-7 { + color =3D ; + function =3D LED_FUNCTION_HEARTBEAT; + function-enumerator =3D <8>; + linux,default-trigger =3D "heartbeat"; + gpios =3D <&exp2 7 GPIO_ACTIVE_HIGH>; + }; + }; }; =20 &main_pmx0 { @@ -316,6 +377,14 @@ "VPP_LDO_EN", "RPI_PS_3V3_En", "RPI_PS_5V0_En", "RPI_HAT_DETECT"; }; + + exp2: gpio@60 { + compatible =3D "ti,tpic2810"; + reg =3D <0x60>; + gpio-controller; + #gpio-cells =3D <2>; + gpio-line-names =3D "LED1","LED2","LED3","LED4","LED5","LE= D6","LED7","LED8"; + }; }; =20 &main_i2c3 { --=20 2.17.1