Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp332211rdb; Thu, 5 Oct 2023 07:18:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFj2UXpkpuOIkUcHvCNFlipfMzDjZzcX6QvniENDEIVU80HrZbNSChuF+lCzmqCcLRc53WR X-Received: by 2002:a05:6a00:1794:b0:690:c79c:cca6 with SMTP id s20-20020a056a00179400b00690c79ccca6mr6438758pfg.25.1696515513740; Thu, 05 Oct 2023 07:18:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696515513; cv=none; d=google.com; s=arc-20160816; b=GhgpMq/qQDXANKJLabTT/tVoJRlakRTHPwqb2TC5KlyNlxBg5hwIntPr5ONP1i+tuP JoPGivSJMY+jwVxq2phcGKfBn8gGSb3pbKMfryY81c++GBjsuDySKVQLWsPbVowu2Yfq 58d+Zdyri5xpNNGMbA1M9E7Sfhrd2MyeeqKjEyQXoOC4P8ZWTH9eUaolELrL2SQhwGEg TyN6IgTZdaYul5cyKsoS83NkXaow8zhfChM49Z6Hrxju5TyfByDIWczSWMYkhtpbvTLa sVy4twC+JH+uo2A6X7id1UhW5SFmtcOEa9VFNQhhbC5RQhlxQI1fdHMgHOuWQ3D3hErI xbQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Hy+TNjLZxY+khwGmxeyvpbQ6IFcWU+tCkKm0/lF5DgY=; fh=GTJIzdjfRddsbECYS2NPf2cTBoGzj7EWzl+KjtEu2+s=; b=TUixkiN1P/xb4XsquXVOVp8kcoA/xRB1O7LauQcSk5Wqv2JPnSK6qN3sjAKk60nNdW v66WeVT9SWM4EbC3LTkVR37SbLHfy1fimHM4NkNAmRT1mSEoi8tdCwtLEsJcZnJjjgNY GBwQT/w7ShVn4hHu92ho9ywEDXmpx2wV/UrOfZqaVVqqoIkAIjCna9Spsro24nSkTATH 9PogSOmk9HEFS6PAInL1C/6RrBX5/YcUO0KhJx79qR4F/Kka3fmUGaZHk0ClTgfMwfUa 4ImNmM+lrp/P/nnAKiRtIyV0MX1OKqLtCqhsZ6j/6uetKXkcnPVKas//cjfOrfB+P8OQ GOgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=S3XCJIww; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id j16-20020a056a00131000b00690c951d2cesi1499611pfu.191.2023.10.05.07.18.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:18:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=S3XCJIww; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 90240801C238; Thu, 5 Oct 2023 07:18:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233448AbjJEOQz (ORCPT + 99 others); Thu, 5 Oct 2023 10:16:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232736AbjJEOOu (ORCPT ); Thu, 5 Oct 2023 10:14:50 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B035727B20; Thu, 5 Oct 2023 06:40:48 -0700 (PDT) Received: from jupiter.universe (dyndsl-091-248-132-024.ewe-ip-backbone.de [91.248.132.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 2DBB86607095; Thu, 5 Oct 2023 14:40:47 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1696513247; bh=fy7VVRBs6A2jxo/gpDryg++0jHo03JHrW/ne6C5QiYc=; h=From:To:Cc:Subject:Date:From; b=S3XCJIwwPsuNoewiFnufSQAGElj4CMtY2XClZ1GZV1ufg9KwRksfX/l9WoOfHC1Pq Z6XIK7hQvwgc3cJ9odXEluDxUaK4TfkVRMNIHayJ+WfuPFyifW6yPa97/jafb8wazU DqXdjzlyyPJlgjlOv30dYtxS/UZT4OhGRWj0bYF7OJcI4/Ow/RbJW8z6Jt4GG06PHc ml/fdQ5L7AEFUTfhc0doAtMHtkYRZdK+FbVlopTyWQcHNgNNVTI+hzdEDl2lCWCFxs fwGncbyLPEo96ooNFf/ktgORQU4gCKGEssiodhYeCFIqY2k7q1SRN8tvMX78DcnAFJ UXX3ZJgcuCNRw== Received: by jupiter.universe (Postfix, from userid 1000) id DEF134800C3; Thu, 5 Oct 2023 15:40:44 +0200 (CEST) From: Sebastian Reichel To: Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v1 1/1] arm64: dts: rockchip: add status LED to rock-5b Date: Thu, 5 Oct 2023 15:40:37 +0200 Message-Id: <20231005134037.33231-1-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:18:13 -0700 (PDT) Describe the Rock 5B status LED in its device tree. Signed-off-by: Sebastian Reichel --- .../boot/dts/rockchip/rk3588-rock-5b.dts | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts index 8618887899d9..3f0bea1f5053 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts @@ -3,6 +3,7 @@ /dts-v1/; #include +#include #include "rk3588.dtsi" / { @@ -37,6 +38,19 @@ analog-sound { pinctrl-0 = <&hp_detect>; }; + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&led_rgb_b>; + + led_rgb_b { + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + }; + fan: pwm-fan { compatible = "pwm-fan"; cooling-levels = <0 95 145 195 255>; @@ -300,6 +314,12 @@ hym8563_int: hym8563-int { }; }; + leds { + led_rgb_b: led-rgb-b { + rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + sound { hp_detect: hp-detect { rockchip,pins = <1 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; -- 2.40.1