From patchwork Sat Mar 2 23:18:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leonidas P. Papadakos" X-Patchwork-Id: 10836791 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BD2E114DE for ; Sat, 2 Mar 2019 23:18:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 558662A9C3 for ; Sat, 2 Mar 2019 23:18:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2ABF92AA01; Sat, 2 Mar 2019 23:18:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AB9AC2A9FE for ; Sat, 2 Mar 2019 23:18:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=XnrdIly+i3NH1JwmWOpnn8fkuVJrQmyfkETFy9xxlPE=; b=FUW9iFJPtVn/S5 28DMEzJztRfDDMqbL+SjFBjC6gNoYRo6ofCGUxdrS9StuCLzO8flM4x/P8CZz9x1ZVcHRKUh2S8wG OhtKCcm6fl4TkVMwXfIaHTpwdqgU7epRx1wAoLgFplN+mF0TfwKwbpQkYHFiMnYshJVpAJON9da/v Yg2gq5zkIu5nv0CUjBOcYJYus/ksDx6AJYUBSOkRNugYLDDSgWfZtAVqBQz/omtsUbz5tO+nvyqxR F23n4JKnZVKoVgBV+g+Vn6+Cl/r22KC3Fffeh9Wri3Vu5gyEY59gpYMe6DTZN5vsWWHVBQ9B6r1s5 5O36M62J8u7/mH3vOPeQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0Dty-0007CC-Bz; Sat, 02 Mar 2019 23:18:42 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0Dtv-0007Bt-53 for linux-rockchip@lists.infradead.org; Sat, 02 Mar 2019 23:18:40 +0000 Received: by mail-wr1-x442.google.com with SMTP id i16so1554679wrs.13 for ; Sat, 02 Mar 2019 15:18:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=SGpx/HP8C3awnld66Xy3qktzFH9pvS9+olzr2WNCLZA=; b=hIR5BV2DU4YjpRg+bpyrBvxk5YdaCOLwO5arISclsr3ALwJJQC5JfN2zIcE9Tf6Xtw NIqPWikDI307PWCg4b3Xm/S92sVZLlWTFpEdBRI1rL+2a7AG3Faz0oq87YTKZ6nfM5jV iC4iLv+F+dYamvoeQT2NMVNuCrBJ7Wgr5MLhKVLY2RfFBK5FveyliGA24kZ9QZHLpSsz YFI6DRLOktQig1vZuEslyJqQ8z0Rr/S4uNLgQcvcjF+z2D6WNrO6VEOqypBVyGud8CDM F8wyfuXMMhNIQaUemeCvorrZWebZ91SqioojDF4FDqusF27S+o6jJpj8uJ8RIZOp7twd lWbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=SGpx/HP8C3awnld66Xy3qktzFH9pvS9+olzr2WNCLZA=; b=MCQQm3W5X9Y6OUMj5fwkzWj9qICp3zDOIPwVA5EsP+58G29OMEbAquQuD9rSdx+cPu Kk62axSlj8LAshIBaxkllFDdC2KvkoY0ftgM9yiCtw6HzzP3iEue9jS9CkGkcNd+Lzw7 6c9eDFSWLMPmB9MLo5snmLpsZep3rJptu0uQs8p5wfnM8Ytplk9RbKR99dJ6wnksd7Tq i1rbt8LT3OS0sIChFU67G1rk5aDVZMiDWXfc+QdqfnMGE+ZmI3dxJZSFdbZTJG/pt/UF 6s8TQ+aSr2B3BlJ9qo1BMSAvnGtromnYCsgTDfkK8gh37/QwVIvZxaZRVlRqqzolLbjY 02HA== X-Gm-Message-State: APjAAAVGsp7R1yhpJw+OPCEGH9F8a378H6DaxwLG72xQD0ZllbeHSyiD ZTY97wxvImMXKkw/Tsj4pOI= X-Google-Smtp-Source: APXvYqw4+oIWWEBNTejBQn7MHR8PuCIFbMVoGFOnIow3a6vxl9oy6+2j3T7jJcnfDxR9pumkHKnlBw== X-Received: by 2002:adf:f40d:: with SMTP id g13mr7887810wro.18.1551568716248; Sat, 02 Mar 2019 15:18:36 -0800 (PST) Received: from X555LD ([2a02:85f:151f:4500:1cc6:eb47:b3fe:ddc6]) by smtp.gmail.com with ESMTPSA id 132sm7569903wmd.27.2019.03.02.15.18.34 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 02 Mar 2019 15:18:35 -0800 (PST) Date: Sun, 3 Mar 2019 01:18:33 +0200 From: "Leonidas P. Papadakos" To: Rob Herring Subject: [PATCH v3] arm64: dts: rockchip: give some life to the rk3328-roc-cc leds Message-ID: <20190302231832.GA2471@X555LD> MIME-Version: 1.0 Content-Disposition: inline X-Mailer: git-send-email 2.21.0 User-Agent: Mutt/1.11.3 (2019-02-01) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190302_151839_197785_04916AB4 X-CRM114-Status: UNSURE ( 7.99 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, Heiko Stuebner , "Leonidas P. Papadakos" Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Assign the LEDs to heartbeat and sdcard io, as in other RK boards. https://github.com/armbian/build/commit/f1affad5c7be62d6e93832af3556c7609edd0858 Suggested-by: Juan Cano Signed-off-by: Leonidas P. Papadakos --- v2: Don't specify disabled IR led for now v3: Add Suggested-by tag --- .../arm64/boot/dts/rockchip/rk3328-roc-cc.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts index 33c44e857..171c377f8 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts @@ -81,6 +81,25 @@ regulator-always-on; regulator-boot-on; }; + + leds { + compatible = "gpio-leds"; + power { + label = "firefly:blue:power"; + linux,default-trigger = "heartbeat"; + gpios = <&rk805 1 GPIO_ACTIVE_LOW>; + default-state = "on"; + mode = <0x23>; + }; + + user { + label = "firefly:yellow:user"; + linux,default-trigger = "mmc1"; + gpios = <&rk805 0 GPIO_ACTIVE_LOW>; + default-state = "off"; + mode = <0x05>; + }; + }; }; &cpu0 {