From patchwork Tue Oct 1 19:09:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre GRIVEAUX X-Patchwork-Id: 11169489 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CCD13912 for ; Tue, 1 Oct 2019 19:09:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9D40C215EA for ; Tue, 1 Oct 2019 19:09:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=deutnet.info header.i=@deutnet.info header.b="O8Epn1G2" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726010AbfJATJg (ORCPT ); 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-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@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";