Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8738773ybn; Tue, 1 Oct 2019 12:11:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMVqEdeZyWZLQ6j1XEMTquDmV6FtowNe7beWPwLkCtr3C7t4toElkBXSlmBALw0le3SYD5 X-Received: by 2002:a50:ac0d:: with SMTP id v13mr27026575edc.189.1569957074450; Tue, 01 Oct 2019 12:11:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569957074; cv=none; d=google.com; s=arc-20160816; b=hU4+wO6tz0pZCPggE14c9xEL0Arr2jDpQZjVkHapHLKXM5w2hi5cnbSp4Ixr3KCwMq URvTNKlHa2LWJYR9CwrJ1dyOLmx5YsIENN/TyANicN+Fu2WowADou7TYnWpYDrmLsLQj q3bS5tdJXxd0VpMLcuPzq2UsOHA62Y+ux1Ril/E94B5fXUcgTLfJSjFq42XksQ7RJ7pz W0epxmHu5C46YdE0GpPRpOVBcyYXEYkliF/0uZEsVcdTmQMX+YwaauSl0fvIOWmrp7LK R+u37mOQcfy0T5atnpctOXGBGnMYNF5AKZk+pT6iT9eOGkwxtRzmjHqo5Ef5TsWtAOpZ EAmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=60OHukiHnNspCw6OiVucbGC3zH8iOy4aw+kE5lf5Fcs=; b=OGxIOzwmw4I6rQfFYHyI3oR/ZG0uEq/Tx4QTUXjcIR8oSKzjNDt/ns/TiAZn5gJ7rB oN+bE5rHkhgqgcatlUeOAnf6Z+IKT+pcBfhZRYdynJQAZ3WJranu8L7QE6T/EYj4btXR 2F15VfwLvVO7aB3mX+eK8D13ft6iZPCHUtx38i9TqXWCdfan7OKZLnNu1qXsglmukeao b4F6R/x4vjoOs3UaMEI9kN185WHTPx+9dY+AwUGIIOT0kXejeHJ+ujB2uCgi1KO/xj/F UaFS9DgI4LXGmzAAyWppj89HaQmDAb/jAuoaGFJQfD3F0hr5PBFBAEtVJuVSWaEJLmxI 8Z1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deutnet.info header.s=default header.b=O8Epn1G2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=deutnet.info Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i17si9163767ejy.374.2019.10.01.12.10.49; Tue, 01 Oct 2019 12:11:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@deutnet.info header.s=default header.b=O8Epn1G2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=deutnet.info Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726865AbfJATJg (ORCPT + 99 others); Tue, 1 Oct 2019 15:09:36 -0400 Received: from srv1.deutnet.info ([116.203.153.70]:55196 "EHLO srv1.deutnet.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725991AbfJATJg (ORCPT ); Tue, 1 Oct 2019 15:09:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deutnet.info; s=default; h=In-Reply-To:Message-ID:Subject:Cc:To:From:Date; bh=60OHukiHnNspCw6OiVucbGC3zH8iOy4aw+kE5lf5Fcs=; b=O8Epn1G2GmOKPzCkDZdwm7mtj Y1JjTe9emyw2vl5DHHGZqcI2OlgrepZmqigNNi6aaFvICFBPuby0YWWaPlF2UBu8003SppFXACwDj j7rjqTgQAV0vkkYMi3QU55xJhEdWmCN4IpWsXPEJeJ8Wl+FzjECTtNa8q3S2ZdI340cviAo9RjiGQ fW5zdJKRIGM3jH0Bz7YVs/tc/wxyXG7qEmjr6qakQMNiWE9EEC3MxpWhbPtTNkmgWypvG3ECbIgAU Fhe5n4i88Aclox8oPdxdhUYiPHrbs9Fq7hMK0PzrRPGPZ/KYGtrVHjX//bd9Y+9jAQdpsQbIQ4Ghg fYjQxI7gw==; Received: from [2001:bc8:3dc9::1] (helo=localhost) by srv1.deutnet.info with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iFNWc-0000qH-T0; Tue, 01 Oct 2019 21:09:30 +0200 Received: from agriveaux by localhost with local (Exim 4.92) (envelope-from ) id 1iFNWc-00BgNX-Ht; Tue, 01 Oct 2019 21:09:30 +0200 Date: Tue, 1 Oct 2019 21:09:30 +0200 From: Alexandre GRIVEAUX To: robh+dt@kernel.org, mark.rutland@arm.com, ralf@linux-mips.org, paul.burton@mips.com, jhogan@kernel.org, agriveaux@deutnet.info Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 4/5] MIPS: CI20: DTS: Add Leds Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding leds and related triggers. Signed-off-by: Alexandre GRIVEAUX --- arch/mips/boot/dts/ingenic/ci20.dts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts index c62c36ae94c2..37b93166bf22 100644 --- a/arch/mips/boot/dts/ingenic/ci20.dts +++ b/arch/mips/boot/dts/ingenic/ci20.dts @@ -25,6 +25,34 @@ 0x30000000 0x30000000>; }; + leds { + compatible = "gpio-leds"; + + led0 { + label = "ci20:red:led0"; + gpios = <&gpc 3 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "none"; + }; + + led1 { + label = "ci20:red:led1"; + gpios = <&gpc 2 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "nand-disk"; + }; + + led2 { + label = "ci20:red:led2"; + gpios = <&gpc 1 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "cpu1"; + }; + + led3 { + label = "ci20:red:led3"; + gpios = <&gpc 0 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "cpu0"; + }; + }; + eth0_power: fixedregulator@0 { compatible = "regulator-fixed"; regulator-name = "eth0_power"; -- 2.20.1