Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752345AbeAQJkV (ORCPT + 1 other); Wed, 17 Jan 2018 04:40:21 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:37564 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750816AbeAQJkS (ORCPT ); Wed, 17 Jan 2018 04:40:18 -0500 X-Google-Smtp-Source: ACJfBovUfpfUiJrw4kMXcJZhnOQYaArPrrRj4pnGjoHF/CNl0MmcyKdWnYvwdUdpp4Fu2+2xOfvBHg== From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Benjamin Gaignard Subject: [PATCH] ARM: dts: stm32: Add leds support to stm32f469 Discovery board Date: Wed, 17 Jan 2018 10:40:02 +0100 Message-Id: <20180117094005.20728-1-benjamin.gaignard@st.com> X-Mailer: git-send-email 2.15.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Add nodes for the four user leds. Signed-off-by: Benjamin Gaignard --- arch/arm/boot/dts/stm32f469-disco.dts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/stm32f469-disco.dts b/arch/arm/boot/dts/stm32f469-disco.dts index c18acbe4cf4e..5e9994840a24 100644 --- a/arch/arm/boot/dts/stm32f469-disco.dts +++ b/arch/arm/boot/dts/stm32f469-disco.dts @@ -70,6 +70,22 @@ dma-ranges = <0xc0000000 0x0 0x10000000>; }; + leds { + compatible = "gpio-leds"; + green { + gpios = <&gpiog 6 1>; + linux,default-trigger = "heartbeat"; + }; + orange { + gpios = <&gpiod 4 1>; + }; + red { + gpios = <&gpiod 5 1>; + }; + blue { + gpios = <&gpiok 3 1>; + }; + /* This turns on vbus for otg for host mode (dwc2) */ vcc5v_otg: vcc5v-otg-regulator { compatible = "regulator-fixed"; -- 2.15.0