From patchwork Sat Nov 25 19:05:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 13468638 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 512BBC07D59 for ; Sat, 25 Nov 2023 19:06:50 +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=6ZtB5E/QkzxL4/AWE4db0LHAT+2Got/3Pl4t5bmTkkM=; b=aqi5Yqa4p/Hhyq O7wXpVhnBWjkfGVFxJXwP1GnWsFGWu77SIG9liC4tSbcNXPEwBGI/EVACHyKyFq0RxmKKfVLmS1pK ig0eXNLvbVsOQm8g8axUtYHlMeuMnM4TJiB0JxmRhOriKuz5i4f/klX6ydntY3wIcPw2j2qxE/C+8 jcaAsB86tUy0fi1/wNLjnxhaV361ESIsR+bJlwoZrLqPZZZI00NWEbGD3Uv8yRAAmy2FFFaTQEddh tKjsg70uT6/2pmvL0NPzR6iGRgQy1SkhcQFYvalSyxLm/1caxtWih/slQqg2I07/wJhA4RjJ9wzxY 0FXz77fZvMv2UQVoeIiw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r6xz1-009fzq-06; Sat, 25 Nov 2023 19:06:27 +0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r6xya-009fhI-2k for linux-arm-kernel@lists.infradead.org; Sat, 25 Nov 2023 19:06:02 +0000 Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-6c4eb5fda3cso2843839b3a.2 for ; Sat, 25 Nov 2023 11:05:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=edgeble-ai.20230601.gappssmtp.com; s=20230601; t=1700939159; x=1701543959; 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=DcjLpxBgTLpZy7bjkIUQIc+N1SeHj/wmMY9+mRqYfUg=; b=J3A8S+ThdD0aZ08XPK78QMKXKQTK3pNzxY1ez/+ofdlDHtFij4LmOHgFz7GyTs8wRa g9BKRGiMQ+MvmbhfEYMR7bivKgewp1uEDyT6jttnq2/AO/s3ZQh0EpCPqJzQrBQzzwon j91TZ5JZS3z6xBsiIFuFfPM0nmonTwSc3vyAT174WKdRflS70izUYhZ8/vDBi7ucakn+ JbPaAeXaQgr+OdjdslDNOd3k5S2ZXXPZRSDOiqgBrKCQQJ4UCQGR6sqUYGLfHfiXcKR2 A++b+DvAqr4RMG8WO9TgonU0VL8/Ueg4opxBDDjrFmZu8enfYNgOAID9UJFNSfAGT3Rv dFGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700939159; x=1701543959; 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=DcjLpxBgTLpZy7bjkIUQIc+N1SeHj/wmMY9+mRqYfUg=; b=WoZaLWtZELfxM3nZNTmHAhPxEkSUrgxwjwq1upCwWImO0WqTNtgTbblGrU5jzXQtsC egqWaJW6B796OVxu7Hn7Y4VdK7JQ0fy0weHERNvpP538swS0lyUoO4qv4pBkjDunTGw9 KXsUnUedV8BbAZJZir6SrBfQJNJHtJEfPwxfQf/hNbEqOJVLeQnjjW2MRUXpFSGfpWfM ZbfMcYGoD02TmdDDmRdNklxwomzoI2p5MSNjNlDAaCXbt/CSLmmXPL3xOaM/Xo/ybQHh 72KAzx05OTqcIcHnkRl3jrlmbXtzKpmSUgp9pWw8cgQL2zzyYMCTjMjOZOn8f8KSt8Y2 WgFA== X-Gm-Message-State: AOJu0YyoLvZVM+fYIGrrL9NzY3GvWhDkL+oAW8skDafhaTeCzAEHedKX a7bR2HC+HgRGaxElRuzVQ+RLrg== X-Google-Smtp-Source: AGHT+IFm8P0G/zZxdYDbQKNcjuNb8oNZsCNX36D6fENZW7p0r4jCQKNYuLwmZGNAgPbY1dZfrhkFvw== X-Received: by 2002:a05:6a00:e0f:b0:6cb:d2cb:5234 with SMTP id bq15-20020a056a000e0f00b006cbd2cb5234mr7997241pfb.32.1700939159304; Sat, 25 Nov 2023 11:05:59 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a208:d471:6d33:4b36:d85]) by smtp.gmail.com with ESMTPSA id j26-20020a62b61a000000b006cbb7e27091sm4810529pff.175.2023.11.25.11.05.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 11:05:59 -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 v2 10/10] arm64: dts: rockchip: Add LED_GREEN for edgeble-neu6a Date: Sun, 26 Nov 2023 00:35:22 +0530 Message-Id: <20231125190522.87607-11-jagan@edgeble.ai> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231125190522.87607-1-jagan@edgeble.ai> References: <20231125190522.87607-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_110600_937396_00FB85B9 X-CRM114-Status: GOOD ( 12.01 ) 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 --- Changes for v2: - none .../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;