From patchwork Thu Sep 23 06:54:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 12512045 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=-18.2 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,URIBL_BLOCKED, 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 8444AC433EF for ; Thu, 23 Sep 2021 07:00:31 +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 4ECBC61107 for ; Thu, 23 Sep 2021 07:00:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4ECBC61107 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=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=EG26+u9ZyVFsIlCWQ1VDgJb/1GvuR0GBSprPGFy8cjc=; b=xfh1RfggHl+NJ5 pytQvHEdoU5Vi5xuHgbC3Hjk5yiSB9wMu0Cm2U+PoWOzc2O5U6xk6ujp1LQAI/u16mME/C9ktFExY wMhHrWNRhBf8eP2pS+yFgQnxtnwX3u7ERzAjN8QP4ZGJYJP/HjdQ//kmS9TPmXv3lmD6SvXjYAIsS 8sdgAS/bze1wQGgYXTISrJQ5tb0jigPH1mQ5a+xzifPBIvosS0jxh74iqvMhBbKXw+XVfwoP4xqna SaXkYYk1//+u+8OpfBvNRXVNmck/sd+lJsGK7iysM9PKozY2ewBn+2C79UYUFqWup0YHJLuNdtfwa 8yH0FHVNKhw6vPibETpw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTIgA-00AQnO-S1; Thu, 23 Sep 2021 06:57:59 +0000 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTIeE-00AQ6l-QK for linux-arm-kernel@lists.infradead.org; Thu, 23 Sep 2021 06:56:00 +0000 Received: by mail-pf1-x436.google.com with SMTP id c1so4814364pfp.10 for ; Wed, 22 Sep 2021 23:55:58 -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=b5um0KbUElUK2wie3g8IJWfKY61kEEr/d9t4jOM2pdo=; b=Yl+g9sgjL87WjxEchbxLIx4mctvhOvd2EOr+XETwlyUq/v/IjHMcLsKWuAEkhQ1sA4 /VTGZRb6/GPqjujTVUIVXBTte8W4nlH3mP/pTEHm969g+5QM/ZhaldDShiLnRGIdAH9r LneMJ4i0TW5BuEvpWlt/jf2AIRE5Y43RJDr5U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=b5um0KbUElUK2wie3g8IJWfKY61kEEr/d9t4jOM2pdo=; b=Ab8hUhUKqqmaLWFN28DFZ3Vb4zIPPJ1I+aeDmvoSjRdfmFjQU7HRZflHNLCYde9WR5 wyvIBKvEACBLBdWJeHGdqYerEZh0iGdV3qPIlgHmCfWDMyr0+50FssfKy7sJN72dODCm yF3xNJ822gjHzTxNfZplTqLCAvvudNwopnnyE0UOsW0GazcfQz6nNmFpV2lV5etQvYlY i15FzC0aLsp/n7Iq+qz/WsdC/v6kwtiRa2GNuKa8aXlcqvaZrf/VzGHZWeCg1RLnZJK6 pDArUd0pB1VXj8lqoCoRvX9r3q2Uwa3pt4PyBHIHsKEeKPGsLlfRWDfxKsEelreDSl4b joPg== X-Gm-Message-State: AOAM531CJnkHuh8Tmj0cmpoQNbLZ1NBFKPdxgN8yNDllVfjZj5vq9kMA /HOdMx++ZDny0aMW0+rTcC3Kcw== X-Google-Smtp-Source: ABdhPJyAYw4vY+PeNDnKquee0BRHunZM0V1nMhmMGrfEU4yxbmb3vew+RZHPJ7QrsR7mUOiOF35pqw== X-Received: by 2002:a62:5a86:0:b0:445:4b23:9fe5 with SMTP id o128-20020a625a86000000b004454b239fe5mr2667508pfb.65.1632380158092; Wed, 22 Sep 2021 23:55:58 -0700 (PDT) Received: from shiro.work ([2400:4162:2428:2f01:7285:c2ff:fe8e:66d7]) by smtp.googlemail.com with ESMTPSA id e12sm1581888pgv.82.2021.09.22.23.55.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Sep 2021 23:55:57 -0700 (PDT) From: Daniel Palmer To: devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-leds@vger.kernel.org Cc: linus.walleij@linaro.org, bgolaszewski@baylibre.com, robh+dt@kernel.org, pavel@ucw.cz, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH v2 07/11] ARM: dts: mstar: unitv2: Wire up LEDs Date: Thu, 23 Sep 2021 15:54:56 +0900 Message-Id: <20210923065500.2284347-8-daniel@0x0f.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210923065500.2284347-1-daniel@0x0f.com> References: <20210923065500.2284347-1-daniel@0x0f.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210922_235558_934230_8A01BC27 X-CRM114-Status: GOOD ( 10.68 ) 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..a51490defabc 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"; + led-white { + gpios = <&gpio SSD20XD_GPIO_GPIO0 GPIO_ACTIVE_LOW>; + linux,default-trigger = "activity"; + }; + led-red { + gpios = <&gpio SSD20XD_GPIO_GPIO1 GPIO_ACTIVE_LOW>; + linux,default-trigger = "heartbeat"; + }; + }; }; &pm_uart {