From patchwork Fri Mar 1 22:58:13 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: 10836205 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 CD8E21390 for ; Fri, 1 Mar 2019 22:58:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B7C992C794 for ; Fri, 1 Mar 2019 22:58:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5DD82FDB3; Fri, 1 Mar 2019 22:58:36 +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 582D72C794 for ; Fri, 1 Mar 2019 22:58:36 +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:Date:Subject:To :From: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=DWn111ezQpCd/z9H/BVSwBmYQV1gAbVouOwvHyjLLZU=; b=bcAqfcgdhgKqLr ukZJLmQdKJ0J6CsTAdPSkQpSrA9Xli72YYhlWNl3au2dhjU0RCWkqXw9S3z7NTc1VRcd+8GGpXZel LrCEILdMBJUBBaq+AoQMYKmVEJGFGktIw/VPOmWRAzdX7azN370f9YFANel4hPHTG+kPzwADIAOhA DktsClCTl2aKC17asKnEFcAt9Sh+ShTtg4EnQyzm6ZwcM9nfL9war9iasEostu3OBOJTA5qClfjUM G/QetpyoyPhM3h7o62yck3nyYJmGw8+qh58gkHoC75J7vnHZe7Pue+JR/dKrRzz/OtJ08wyF3jlcp JH+cIQZZ+pui4XpqYZ4g==; 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 1gzr6r-0006Hq-Oy; Fri, 01 Mar 2019 22:58:29 +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 1gzr6o-0006HS-CV for linux-rockchip@lists.infradead.org; Fri, 01 Mar 2019 22:58:28 +0000 Received: by mail-wr1-x442.google.com with SMTP id l5so27535264wrw.6 for ; Fri, 01 Mar 2019 14:58:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sDBq87klEkEX1vckCJHOJO3hLZKBitAfB3O6Sv035Qw=; b=BsgCqmMVqiUZBy/gwQf3AwY81SscWXX2g0aOuH8yKHmqtVigZDoNK01WigAGRhVAiT d/WJKhy3oM6xM9V10FEOH983y858W1FbOMcJR0BTEPDBkf0FO5r4UZrCTBHkyfCu8Bfr 1rY8vIGk/tivLAA4lImhPwZkrDYh18Xox8rz5ETkX1wP9ImbPAWcESHnhbZ7fcUjaNzP npfgXk5UH3f2tfsPXtPtXJnDxQmv+fcFon5eRP9DaX13Vv11fYD1ehzbFf0PdG+cl8o/ 1UnsXpvqUJQgZxWVT9K7bmGIqmzvYg2wk/5PxA/qsJPLVzxoEXNHm1Rbay/4iXwArzUR AUuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sDBq87klEkEX1vckCJHOJO3hLZKBitAfB3O6Sv035Qw=; b=PHUMlOcY0HcVU5eYHN1AcrJwK8UFiWGliJXnK6nHHy6uS/BR2gbLX/eGJO5P4PKC6V tpWT55WavgUUmiIwWdlOtkRvHsiYlY4d2apGeIHEmuZj9VrCXOK4cWdkfvyDVyHOwWRX 7TpcIHpbRPROb+4TrNjmqOoE1dPFv8g0Lq4OFjonV65/ptEQgXMLaxfXnwOAAaegLnSJ ZEOS5p52IEJ9Lt/4KkdKsLKsFXBUwp3fGP5BU6yXlSkgsPicr9Ca3j0ptvxujhyCwcfr zhHIn9EwiZH4gvmWWgodiATzcQrbiOsowRs9otOTRWmSvWQKrsb/25ixDNc6AQryFUfl J58w== X-Gm-Message-State: APjAAAWZDzjUPcgM1I+nr3sADW2IOoudYSvUcJ1d359Q7im0RFwx4OUf COjd8edCxAvJbgx1o4BL360= X-Google-Smtp-Source: APXvYqwpnJ/oKlIMpsrmlhySt05MYtAIscWQCTvHiI/n4Cq/tB7TjS3ipZoQKKN683v0lxoUjapgjA== X-Received: by 2002:adf:f688:: with SMTP id v8mr4775620wrp.159.1551481104417; Fri, 01 Mar 2019 14:58:24 -0800 (PST) Received: from localhost.localdomain ([2a02:85f:151f:4500:d172:d04f:e02b:d4b9]) by smtp.gmail.com with ESMTPSA id a22sm6691107wmj.35.2019.03.01.14.58.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Mar 2019 14:58:23 -0800 (PST) From: "Leonidas P. Papadakos" To: Rob Herring Subject: [PATCH] arm64: dts: rockchip: give some life to the rk3328-roc-cc leds Date: Sat, 2 Mar 2019 00:58:13 +0200 Message-Id: <20190301225813.19834-1-papadakospan@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190301_145826_452574_B80D045A X-CRM114-Status: UNSURE ( 9.76 ) 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 LED's to heartbeat and sdcard io, as in other RK boards. https://github.com/armbian/build/commit/f1affad5c7be62d6e93832af3556c7609edd0858 Signed-off-by: Leonidas P. Papadakos --- .../arm64/boot/dts/rockchip/rk3328-roc-cc.dts | 27 +++++++++++++++++++ 1 file changed, 27 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..a881d4c8d 100644 --- a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts +++ b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts @@ -81,6 +81,33 @@ 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>; + }; + + ir { + status = "disabled"; + /* gpios = <&gpio2 GPIO_C2 GPIO_ACTIVE_HIGH>; */ + linux,default-trigger = "ir"; + default-state = "off"; + mode = <0x00>; + }; + }; }; &cpu0 {