Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp356160iog; Wed, 29 Jun 2022 01:23:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tNUuL0d0f3Qsha5wKiY02cWFN0bHD/L2LdjbccyfbpWMiqKBseamIiwkqQowK0V14MAUb8 X-Received: by 2002:a17:907:868c:b0:722:bc0b:500e with SMTP id qa12-20020a170907868c00b00722bc0b500emr2174031ejc.703.1656491007043; Wed, 29 Jun 2022 01:23:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656491007; cv=none; d=google.com; s=arc-20160816; b=ApBRrYkNZFXBysGukyw7VF7l9zjICc/Ttujr/y++SRMk0cT9LAs9oj7MO8aYsyCIAL 9w324ETq1vCKSnfv8AtDfQOjeH/kNqiL5rmBLYa64xpBVnZA6zrNim4p8NfX0VKeHUoW oczSXHMG/8pCh17GxeBlYnzkASW73qy/o522FxQulP28OuRYDrV3eBvof1OhN8xbhFAT j8S41o7LKVsZEFMR/k3YMoe/s6JworLTjt1fsnD4m21z0ls387QdF9L6Xww2fGBsCVHC rrHM3T0+ijcE2wDg6QtXWjFCtb2J2a5NzP8W0Fz5RAwu8A2qoI5zmW+GxRoH/o12F1CS X0qQ== 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=UFFq1KovGjvjekKq08QHl5e958WTDQd6GMWm+70TOOA=; b=JNriXZbJ0UXSQHaI65+D/4W86vVU+A77/G6557akcipZdUGEOmmRmM1Gpv22PaXI/2 R5UFO0ieYcM4qZKfc/uxQmS6J7qnBTbGoATcndWemDHoaxIfBl5WoHa910iHFn9w8z68 Cyq1oaqsdEGcJcZ/UQSTUq4SvOeZ6mAaVIkdL9YnjGQGziHOMhLKhUudG80m32YZyF/u xdxaWEgYT0fuyNs6B1NEgAFlESl30sbCCv92/9nSbIaSMfUUltwDFEke+OitSz24gqLf SOJGlpZy42X9JGnQ/FEhi6Z5+G0n1L+mFWzLPIjMCGik4NXhxLSO9afC7tBOdQr0HKwY a1nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="O6CEs/pD"; 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 du21-20020a17090772d500b0071097667454si15268282ejc.800.2022.06.29.01.22.53; Wed, 29 Jun 2022 01:23:27 -0700 (PDT) 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="O6CEs/pD"; 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 S232327AbiF2H7x (ORCPT + 99 others); Wed, 29 Jun 2022 03:59:53 -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 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.8 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 --- This patch is dependent on: https://lore.kernel.org/all/20220223174215.17838-1-a-m1@ti.com/ 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/ti/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 = <&com8_ls_en>; gpio = <&main_gpio0 48 GPIO_ACTIVE_HIGH>; }; + + led-controller { + 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_HEARTBEAT; + function-enumerator = <8>; + linux,default-trigger = "heartbeat"; + gpios = <&exp2 7 GPIO_ACTIVE_HIGH>; + }; + }; }; &main_pmx0 { @@ -316,6 +377,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