From patchwork Sat Jul 17 04:56:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 12383181 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5785EC636C9 for ; Sat, 17 Jul 2021 04:59:59 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 29033611C1 for ; Sat, 17 Jul 2021 04:59:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 29033611C1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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=4dmTFBZBbFV3PX4B0gaGTEfPlcEPxdjI9WEBYC9n054=; b=qiH5sOn6ay6iPH M23TMR0bHY1ytPEu03YXjigS9MUAornnmyU1vi+hJJJCIcm5JvfD0zDSIDzK4ujIOnfgZ+F9YydQs f5Wb7qgJh6sLQSZ5pReyxC+bWoHn/CS5/OZknoDMPFr2hL/hrFTnlt6adxINcfxn+K2BUt0aPrk6P a+1KAJ14YbRDv8nhDXqAqlgXcf+9GJceoKswVa6Tv+SrL3L1Vta9K6rO9zm3LvocAcZdRUI/5jYMW GqnCa6exQGuG51K9vdMLOCFrf2MCtHU+yExyAnkMxvQfFnt0spV5FbDGm2PkekqrYat4HXZw79BjP YCZbkPO8EGlSYbrgionw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m4cOr-005wm0-As; Sat, 17 Jul 2021 04:58:05 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m4cNk-005wRd-Th for linux-arm-kernel@lists.infradead.org; Sat, 17 Jul 2021 04:56:58 +0000 Received: by mail-pg1-x52a.google.com with SMTP id w15so12005956pgk.13 for ; Fri, 16 Jul 2021 21:56:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CW8+X4ven8LE6a628SvByr7Eb90cm9U9YeyKIDh8Q0I=; b=vxfNy/AVZ2+QtClGwq8aphvCDom0KQ6+D54xbcCEyp10nVFZuz4ofBkxLr2Xx+GH9T QterhwEbaVV7GJtHyyLELiZuvkXDkmmrLVCUTZ+vPddBKWzz5C7DDT0FLkNmJJLxpLnM EhS1rQ/fqr6rmqWzb/71ghhzoe1U9S1ZyVCls= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=CW8+X4ven8LE6a628SvByr7Eb90cm9U9YeyKIDh8Q0I=; b=jpdxucoh5ElP1NyNkLQZLtZ7V7z39N58nPA11/d2XaZGokzn+Eh+LZXU1ljnF5W9bB sjRDj2e1NcWmDURX+uacbLqBLefUT0Wo+4oYfIQ5rDabj+OK1OUI87wAO4oWLkQOvEax easnuZ52sfg3yhAkRUPCCZ+2ZQrsDfi+VZlK4XV0EU6XnXnCgws8hbCBTdiy37HmaJ8W mPGhP2S5vVzbD4T8hRbGyCYgLXYUcQfqkI3hs0Vi28bkhS9DXcupwb1WkNUdORIniUfS Z+cRyaXN1QrBVGDvOcJk8FR66HJ3xHcNwiEt96XeJcKupZs1T3Vkua+bFnfrIi/xZyOY ZiWQ== X-Gm-Message-State: AOAM531IuwPep6Kiec8TfPPETwtCC3t1tX0kjulHFhvecmxxW+ozKtoj xJqr9L1RjacCQ2ZZn0VR3lrCFw== X-Google-Smtp-Source: ABdhPJzgkcSKDtEoe0QjGr6QO+9bk6MMOGNJF814v3oQIO5dHPK0v+De5Ul7P+A78cES5+y0x51sIA== X-Received: by 2002:a63:471b:: with SMTP id u27mr13626075pga.301.1626497816200; Fri, 16 Jul 2021 21:56:56 -0700 (PDT) Received: from shiro.work (p866038-ipngn200510sizuokaden.shizuoka.ocn.ne.jp. [180.9.60.38]) by smtp.googlemail.com with ESMTPSA id w2sm12522885pjf.2.2021.07.16.21.56.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jul 2021 21:56:55 -0700 (PDT) From: Daniel Palmer To: devicetree@vger.kernel.org, linux-gpio@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linus.walleij@linaro.org, robh@kernel.org, romain.perier@gmail.com, Daniel Palmer Subject: [PATCH 06/10] ARM: dts: mstar: unitv2: Wire up LEDs Date: Sat, 17 Jul 2021 13:56:23 +0900 Message-Id: <20210717045627.1739959-7-daniel@0x0f.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210717045627.1739959-1-daniel@0x0f.com> References: <20210717045627.1739959-1-daniel@0x0f.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210716_215657_000131_8DBE4F80 X-CRM114-Status: GOOD ( 10.10 ) 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 Add the red and white leds present on the unitv2. Signed-off-by: Daniel Palmer --- .../boot/dts/mstar-infinity2m-ssd202d-unitv2.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/mstar-infinity2m-ssd202d-unitv2.dts b/arch/arm/boot/dts/mstar-infinity2m-ssd202d-unitv2.dts index a81684002e45..eb35ce00ae50 100644 --- a/arch/arm/boot/dts/mstar-infinity2m-ssd202d-unitv2.dts +++ b/arch/arm/boot/dts/mstar-infinity2m-ssd202d-unitv2.dts @@ -7,6 +7,8 @@ /dts-v1/; #include "mstar-infinity2m-ssd202d.dtsi" +#include + / { model = "UnitV2"; compatible = "m5stack,unitv2", "mstar,infinity2m"; @@ -18,6 +20,18 @@ aliases { chosen { stdout-path = "serial0:115200n8"; }; + + leds { + compatible = "gpio-leds"; + white { + gpios = <&gpio SSD20XD_GPIO_GPIO0 GPIO_ACTIVE_LOW>; + linux,default-trigger = "activity"; + }; + red { + gpios = <&gpio SSD20XD_GPIO_GPIO1 GPIO_ACTIVE_LOW>; + linux,default-trigger = "heartbeat"; + }; + }; }; &pm_uart {