From patchwork Sat Nov 25 14:40:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 13468579 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A1432C4167B for ; Sat, 25 Nov 2023 14:41:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=d6UTxsN57tNCc5A8+O3Gxz+ca51d8FnCBvv1WwT9l1Y=; b=YMzvcVmnA54wvD 8zjZ/QCeVZo0zzhcF3YqQPiebvEyLnL4jwwm25ZOU0LR+t8Pthvf171I+2Jy5G8HfzJJxEh1IvR6Y GyvDsl4PY6pwXrIOz2X2mPOzKQiglg+XUcEcFtxjxzjhQPU62WxTwjyrkULQD5e6oBDODSwFq5vik pW/5/o8xdhYPoDJyamjbFChRzKnHZ58X8sAdSHh4xRvYExTyMDQYC7i+Df38M79a4/KHDWnitzINI kqG+oCDDzK/vou1d24NiEwYj7YJZlrjlwZCMJGtiJhsrg/ZQCZugOqvnoeXLG7cUkkWmlRqkBBGWy EyEL9vlJ1bXxyN6cGRXg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r6tqX-009Mz2-1l; Sat, 25 Nov 2023 14:41:25 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r6tq4-009Mdy-37 for linux-arm-kernel@lists.infradead.org; Sat, 25 Nov 2023 14:40:58 +0000 Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-28555b0c7afso2389681a91.1 for ; Sat, 25 Nov 2023 06:40:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=edgeble-ai.20230601.gappssmtp.com; s=20230601; t=1700923256; x=1701528056; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WiWiAkdokMCbWDAO7LHRzcKx4s1zIRVN4htgSNI19S0=; b=0yywkWeBYmeElRhb82A0phK5E9pGBVu2rOsFXa8XEI2yMEMuVC7U1Rh5+uvNvQHKK0 FlNtyzxjrAGEV0skfBP8CeEhbdy9uVelVLOjiMTFqg5ZvIYuBb0/pr4y9qE81zryaFKs ugfnE1peYx+TRsh7OqTca9Clqd7JIdazMYyrc5ZEwYTtfxeoxbYXOv55DBDwQbzMQKIu yfgjWeklQ9PRRSM1CANYL+x/Wm43c+JLpqkwGhGidWmWB6EQHy6dPBlVW/pzYiHsdrGs 8kHcjA0+vssN4dHQIhO7wPU/4rahtkily8IDGlc0fY5MVKebHgwmYN0AVVl036BJNJxK 4IQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700923256; x=1701528056; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WiWiAkdokMCbWDAO7LHRzcKx4s1zIRVN4htgSNI19S0=; b=tUStghoQbg2TC5AJkzaeM/OObIgZG/oTd65JaoNTTwbmbFkp2ceDyrQq1fqmKQ2Kjo sRpeXUe0WZPoiLjguUgwo9J4/29F9evyq4NTScPv00u5y2rAQttPAKOgfXTxRJ1d/E+W hRYLtoEptsOK6ThAPBZrGhJd+g/P7SInxXHBqtzMFZbky5ZD91ZEMnqicQfsPu0Ywpzq fMrOhrcRN7vD+A8IRCFgoVeGfrT6Rda/9qpBVL+yLRy8i256kkwW/Fp4KpJA9krRekqD /GJHs5rN13WUGNJRMODwh96JrgOhUNeddImLuB/1X1wVoLFyuroFrBbFhsGuNTHSWitM L57A== X-Gm-Message-State: AOJu0Yztk/hR9inE6OkvGPu8v6/9IZEfO5JiEGdE5VjaYSUQCNyOGIso Gnt9ClF7Sgh8b7tWARVTk48XAg== X-Google-Smtp-Source: AGHT+IHWEex2FGS7az9RQq5AKcMfJhSJIdyZsreQ9X02NhZ1wTViWvta8bDzuzp8qJ0IRahGYHoiZA== X-Received: by 2002:a17:90b:1a8d:b0:280:c9a1:861e with SMTP id ng13-20020a17090b1a8d00b00280c9a1861emr7085666pjb.13.1700923256390; Sat, 25 Nov 2023 06:40:56 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a208:d471:6d33:4b36:d85]) by smtp.gmail.com with ESMTPSA id h15-20020a17090aea8f00b002802d264240sm4817998pjz.29.2023.11.25.06.40.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 06:40:56 -0800 (PST) From: Jagan Teki To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Jagan Teki Subject: [PATCH 10/10] arm64: dts: rockchip: Add LED_GREEN for edgeble-neu6a Date: Sat, 25 Nov 2023 20:10:12 +0530 Message-Id: <20231125144012.58668-11-jagan@edgeble.ai> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231125144012.58668-1-jagan@edgeble.ai> References: <20231125144012.58668-1-jagan@edgeble.ai> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231125_064057_038242_93257519 X-CRM114-Status: GOOD ( 11.94 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Edgeble NCM6A, NCM6B SoM has Green LED on the module. Enable them with heartbeat function. Signed-off-by: Jagan Teki --- .../rockchip/rk3588-edgeble-neu6a-common.dtsi | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-common.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-common.dtsi index 961a80014686..003887fbf996 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-common.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588-edgeble-neu6a-common.dtsi @@ -3,11 +3,27 @@ * Copyright (c) 2023 Edgeble AI Technologies Pvt. Ltd. */ +#include +#include + / { aliases { mmc0 = &sdhci; }; + gpio-leds { + compatible = "gpio-leds"; + + led_user: led-0 { + gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>; + function = LED_FUNCTION_HEARTBEAT; + color = ; + linux,default-trigger = "heartbeat"; + pinctrl-names = "default"; + pinctrl-0 = <&led_user_en>; + }; + }; + vcc12v_dcin: vcc12v-dcin-regulator { compatible = "regulator-fixed"; regulator-name = "vcc12v_dcin"; @@ -110,6 +126,14 @@ regulator-state-mem { }; }; +&pinctrl { + leds { + led_user_en: led_user_en { + rockchip,pins = <0 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + &sdhci { bus-width = <8>; no-sdio;