From patchwork Sun Sep 22 20:12:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre GRIVEAUX X-Patchwork-Id: 11155961 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 076E914DB for ; Sun, 22 Sep 2019 20:13:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D939020869 for ; Sun, 22 Sep 2019 20:12:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=deutnet.info header.i=@deutnet.info header.b="Y598Tbxa" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387655AbfIVUM4 (ORCPT ); Sun, 22 Sep 2019 16:12:56 -0400 Received: from srv1.deutnet.info ([116.203.153.70]:44682 "EHLO srv1.deutnet.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729892AbfIVUM4 (ORCPT ); Sun, 22 Sep 2019 16:12:56 -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=Y598TbxalyCEDnB33hTvaNier +ggf33Jo+FjbodgdNV/m2JuOTrp0WNvOSp5GyOd8EKmQAaQUa9UfEWxKMUMuXaWw2JnbaqQPsdC+m rZkU8bAXkHrl6A2ceWc0llkvh8w5SdEiC0/pGtnfoJ61q4ETek413wFUHsUfXskvSqxEEZ/zt0nig tyV6LlYVgUFkN7ovwIwcRkD6djLW5n1uKMWDq8Qh/AkoTi1tfTqOk/fI3Tgna3K6AlOLPg93X/8FJ Qi1w3FWwyI4WVl1GjHEkxcxapDY0kQlxUUof/ldbuN8EP8Y9q5zW1IZnCNyw5OBP8Xfv2k2FjE5py cDmwxJkPA==; 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 1iC8E0-0007tk-IR; Sun, 22 Sep 2019 22:12:52 +0200 Received: from agriveaux by localhost with local (Exim 4.92) (envelope-from ) id 1iC8E0-007vfB-6q; Sun, 22 Sep 2019 22:12:52 +0200 Date: Sun, 22 Sep 2019 22:12:52 +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 3/4] MIPS: CI20: DTS: Add Leds Message-ID: <400e1552629dcf84d11cddab60b0177057e2c852.1569181001.git.agriveaux@deutnet.info> 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";