Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp312643pxb; Wed, 22 Sep 2021 23:59:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBSFd1TZr0nqvQF9pX0DUPTwamAP7mVTykMTmpnDySTRjwEYOw4tCE0tHnc2vQwTZUSVlK X-Received: by 2002:a05:6402:2cd:: with SMTP id b13mr3708770edx.267.1632380365216; Wed, 22 Sep 2021 23:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632380365; cv=none; d=google.com; s=arc-20160816; b=sHsj6Hu6StS/bFxZK8l0s9oXO0wETMwQ4cipFWpAuBREDpKscNP3NKs/5lIqMFYX/y jMua0mwGW+SAnY0EiXXE0s9J2sU5nI/DZ/cDJJHfX0nkwpb3eVZWU+QMesV90DGsHyf7 nrhbLky1i5JZVl6Be+f2Niqzh+c3DWmvO9+u5ybQTVgd87X2iT9PIJICX8VG3sOgKZ6D qdvx/TeIw9GMqtmW36JNCdqNSFjZFegyZdOJuBz/7ZMDtEog+vcM/z8ylAj10uSnr+N9 9Z+/u7Y0EaEdXfd52GB38KqsAm59zNOhZSo5cytmAxhV0te3tIegj/wTcniPCM3yAbKZ YExw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=b5um0KbUElUK2wie3g8IJWfKY61kEEr/d9t4jOM2pdo=; b=LzkHKCHw4BjZrHh3TES1xmYdgLhKKGI/H1cw2Vp9qZwQmvMZyK5KbXkieQcrM5Lgm6 cxXXNB0Yb6g5+RYwoMPJ2wQBXaYLtF1uU4Ceia465lpeuAdqM29BhALw8Da4naTOBzXe sXj7YavbuTTUnwlcJIPXsv8sjEM/xz1OKkNMMM0tBfoigi7+SDaLT4Hn2HdMBAX0feqs td/3XvO8ONORKEieYCo6UCIWvOVWf4GuXqoJiUvKwkmSBD2F75ofnaz8VOcCyO2mDBUT YWlPgHdRLQjkaA2uA5FkBYBD8nKHz1N7WVRW3ywRcJbWVXd8oc+iT0xUEwqM2/zUvYnK Fpgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=Yl+g9sgj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yl16si5066310ejb.382.2021.09.22.23.59.00; Wed, 22 Sep 2021 23:59:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=Yl+g9sgj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239516AbhIWG6K (ORCPT + 99 others); Thu, 23 Sep 2021 02:58:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239466AbhIWG53 (ORCPT ); Thu, 23 Sep 2021 02:57:29 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88821C061762 for ; Wed, 22 Sep 2021 23:55:58 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id y8so4854027pfa.7 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=Q/hwEPR+pMVMzhy3d+1hN8oBeJymufvxNMmp19Ik0VuIM5XWFp+aUhJmmYkXGNh+Aa 0cAfla2uCIoo7ymSQb0UGJbNSOfn8jTi8cfXHBSuAcAou8jekB9e3024QmcIVUN4tPwn sWU39Lci1d86+irJFblHHjP9eODgMBf7yq48MeNvlVdJFrxcXZt/aNrT/sGFB2gO8wwU zwRzT4pPsdeqbnQn6Yvev0L5lzYfn9aAd1H0efm/9CbMx5idxCQ/+15ci1Y4UaxqqQ73 RNaRwgrypXA78mjdUG+dAS1F9MAQgmygeDxbV724bhdSoSpjGQ8BKy+Y8ekMdM5Qa6Jt E8ng== X-Gm-Message-State: AOAM532iCitow6E/UFQR39D3T5+bw4Ru3SNwsbt9gpnHlgAbdbNm9A/J 5vLHuSp/MQO1/vGKxUiCTqDZmw+ML5oZ6A== 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 { -- 2.33.0