Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp359510pxm; Wed, 23 Feb 2022 01:49:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuzm+g6IC1ASSoAExuGwpye5EBtPxwGmKAqxQIOAJ8S1itZsIgnDv2h25u9eUyai8YuQY2 X-Received: by 2002:a63:8bca:0:b0:370:2717:3756 with SMTP id j193-20020a638bca000000b0037027173756mr22438876pge.604.1645609783756; Wed, 23 Feb 2022 01:49:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645609783; cv=none; d=google.com; s=arc-20160816; b=jHVpDzVxs1tWvkIkitH3ESFLYYqqN0bKKl1pOuQtYCWM5Yw6Sk37oDXo5DS1kS93xW BAodEFgvmcvNhBwoNm60EGIP2vgEdVwiYBdcoRGRMmSaLRlEKG8qmZwBBuPpzn3+fCse kMEbSa5kkp0ke7+UinxQk3kY8UmoOZ6TfakJQX8c9N14FhIPSPMNS7vLClIsItkk/7SG EslV7FxvIcXlyn3a5EtS/Uqk5TYO5I20sNF2f+U2JVnfQqJOn3IPGlrheEpYF00FyKlW w63NCsfr8b1jUXkJMPrikFfBffUz+PDGp/iO7REooSzvy1Haji/Irizf8qtqldT3GlGc YXiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=lh46FYVT+Lo32fpHsIFNA5RUB0DaCkN5upygRdPfs/M=; b=l4uykDL6cEjtTWhfY8IZGTIkyGv/7L1skfyj4T/WeDjXixf1pab2DOEAtTuUCT8WMb aSC8uwRAo/SsmkjAUpfTc8c7Q5xOOkbR8fcRMjglxMFtIazKEklzV1rtv8z+08n7HZ9X 2WpXLlpcBGz1vpEdY2HolF47MP3izQ3/Uuau8KGBbnyxokwYe0ZdKR346l1vRyNN/Gwr pNB8aR9H7kO/PUFc8pHxpsLkL/FEDBAkJLSlmOZNtBZ+kudQtvqELUwSlHxyWHkO230G oUm8kQNCrhwIcPxUQlpU9725YfBjnDRfQv8JnM+9BTBFt8n+3lRh+badginDH4WVbtbN 44wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=grQPZcU2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b23si2885367plz.40.2022.02.23.01.49.30; Wed, 23 Feb 2022 01:49:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=grQPZcU2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238950AbiBWIdS (ORCPT + 99 others); Wed, 23 Feb 2022 03:33:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234121AbiBWIdR (ORCPT ); Wed, 23 Feb 2022 03:33:17 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F4D760063; Wed, 23 Feb 2022 00:32:50 -0800 (PST) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 21N8WhqK129024; Wed, 23 Feb 2022 02:32:43 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1645605163; bh=lh46FYVT+Lo32fpHsIFNA5RUB0DaCkN5upygRdPfs/M=; h=From:To:CC:Subject:Date; b=grQPZcU2pJ6EKKDSa78d5WnIwyDNWmrZmfT/P7cHT3x5USJWTfoap+bGz0IHcTQfF 6WMkTRii2reOLyI55l/w2FVFh5EvFK77OrnNzb7kFbC/AchjZUxcRYUnM1defJZ45A xQAGYEBkb5I3oovJ0GGj1Eu/iZIL1lMsyo3betDo= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 21N8WhRq122367 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 23 Feb 2022 02:32:43 -0600 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Wed, 23 Feb 2022 02:32:43 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE112.ent.ti.com (157.170.170.23) 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, 23 Feb 2022 02:32:43 -0600 Received: from swubn03.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 21N8WdFI098129; Wed, 23 Feb 2022 02:32:40 -0600 From: Aparna M To: , , , , , , CC: , , Subject: [PATCH] arm64: dts: ti: k3-am642-sk: Add DT entry for onboard LEDs Date: Wed, 23 Feb 2022 14:02:29 +0530 Message-ID: <20220223083229.8044-1-a-m1@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org AM642 SK has 8 leds connected to tpic2810 onboard. Add support for these gpio leds. Signed-off-by: Aparna M --- arch/arm64/boot/dts/ti/k3-am642-sk.dts | 70 ++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am642-sk.dts b/arch/arm64/boot/dts/ti/k3-am642-sk.dts index 6b04745147be..31e45bafa49e 100644 --- a/arch/arm64/boot/dts/ti/k3-am642-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am642-sk.dts @@ -8,6 +8,7 @@ #include #include #include +#include #include #include "k3-am642.dtsi" @@ -125,6 +126,67 @@ vin-supply = <&vcc_3v3_sys>; gpio = <&exp1 3 GPIO_ACTIVE_HIGH>; }; + + leds { + compatible = "gpio-leds"; + + led-0 { + color = ; + function = LED_FUNCTION_INDICATOR; + function-enumerator = <1>; + gpios = <&exp2 0 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + led-1 { + color = ; + function = LED_FUNCTION_INDICATOR; + function-enumerator = <2>; + gpios = <&exp2 1 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + led-2 { + color = ; + function = LED_FUNCTION_INDICATOR; + function-enumerator = <3>; + gpios = <&exp2 2 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + led-3 { + color = ; + function = LED_FUNCTION_INDICATOR; + function-enumerator = <4>; + gpios = <&exp2 3 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + led-4 { + color = ; + function = LED_FUNCTION_INDICATOR; + function-enumerator = <5>; + gpios = <&exp2 4 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + led-5 { + color = ; + function = LED_FUNCTION_INDICATOR; + function-enumerator = <6>; + gpios = <&exp2 5 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + led-6 { + color = ; + function = LED_FUNCTION_INDICATOR; + function-enumerator = <7>; + gpios = <&exp2 6 GPIO_ACTIVE_HIGH>; + default-state = "off"; + }; + led-7 { + color = ; + function = LED_FUNCTION_INDICATOR; + function-enumerator = <8>; + linux,default-trigger = "heartbeat"; + gpios = <&exp2 7 GPIO_ACTIVE_HIGH>; + }; + }; }; &main_pmx0 { @@ -274,6 +336,14 @@ "VPP_LDO_EN", "RPI_PS_3V3_En", "RPI_PS_5V0_En", "RPI_HAT_DETECT"; }; + + exp2: gpio@60 { + compatible = "ti,tpic2810"; + reg = <0x60>; + gpio-controller; + #gpio-cells = <2>; + gpio-line-names = "LED1","LED2","LED3","LED4","LED5","LED6","LED7","LED8"; + }; }; &main_i2c3 { -- 2.17.1