Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2731406pxu; Sun, 29 Nov 2020 03:14:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyB1Z5/ZGF4Leg6RxMomC4AbH17fpCCtwPaX2CMrjI1wWvJdIKuATrKK74UxJOhYtJk7zkL X-Received: by 2002:a50:da84:: with SMTP id q4mr16251407edj.377.1606648478055; Sun, 29 Nov 2020 03:14:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606648478; cv=none; d=google.com; s=arc-20160816; b=qKzoMUkK1+/yMixYCGeg5fgqjF8wQ2g3KlLXayCGR+ThOzpp64Hbv9U02jjeSxxKdb 58r0V9jL/brecpylemxn/roOjhSR6JUu83XJm7uLd7eazqeT4zBk326lsDIYW0kJZSL5 NnjM7LPmP6sTXlYye09HJU84sQGV9kG/AqIijfLAhEXmBhBZ3okNNg/R1ywG62NKpGx6 CkYxgfkCiIF1uJZp+oIG4wzD0rSWJad1vFmG0E7Sg4nldLVHDAV1jzkr4i0xVYBCTDq1 dUp74E63sk7XmNzacz96f5qX8DwyGaFBqpvpL3HvnryXIJtVPXtZEcHL407RVgO2keXd /kDA== 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 :message-id:date:references:in-reply-to:subject:cc:to:from; bh=5IkbBwgWIhpsJQ/E8uIw5W8oWgZgfMBvpEt0IzcJslE=; b=0asoM1+wL3Yc0VfnQjH+W+NWABsHOf12UdLzPvjYaGmYK58IaGVxk0K6PvSwhU42LN yki3QLLps8Fm5iQo8SAi4ZAD9pGVAXxSjsZ2R2KEYaJqUPkmv5EWpJziWYoebjHrCcZD 78G1aL9ppu7+kMEni0afpAzHeMLnuexr+elU39qi4LJ1Z8blCGnnZY4NZg1cyN2HdRdN vlXI9QO5oiLyt02vOPfqocUoIJ/oSJTB7QUT7WjgI+s+nbi0XW+12mkUXvaRJAI9zi7g 338pQnOFko7eIbH5H+mSg/mXkdNxn7bOXDiPvK6pEL+uLqJk2Ny1DP9NZYYIrKMY7IXe RF4Q== ARC-Authentication-Results: i=1; mx.google.com; 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 p3si9368142edp.84.2020.11.29.03.14.15; Sun, 29 Nov 2020 03:14:38 -0800 (PST) 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; 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 S1726869AbgK2LMH convert rfc822-to-8bit (ORCPT + 99 others); Sun, 29 Nov 2020 06:12:07 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:34165 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726428AbgK2LMH (ORCPT ); Sun, 29 Nov 2020 06:12:07 -0500 Received: from localhost (91-175-115-186.subs.proxad.net [91.175.115.186]) (Authenticated sender: gregory.clement@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 9535D240006; Sun, 29 Nov 2020 11:11:24 +0000 (UTC) From: Gregory CLEMENT To: Pali =?utf-8?Q?Roh=C3=A1r?= , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Rob Herring , Andre Heider , =?utf-8?Q?G=C3=A9rald?= Kerma Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] arm64: dts: marvell: espressobin: Add support for LED2 In-Reply-To: <20201006124455.16617-1-pali@kernel.org> References: <20201006124455.16617-1-pali@kernel.org> Date: Sun, 29 Nov 2020 12:11:24 +0100 Message-ID: <87v9doju3n.fsf@BL-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pali, > LED2 is connected to MPP1_2 pin. It is working only on V7 boards. > V5 boards have hw bug which cause that LED2 is non-working. > > So enable LED2 only for Espressobin V7 boards. > > Note that LED1 is connected to LED_WLAN# pin on miniPCIe card and LED3 to > power supply. Therefore on Espressobin board only LED2 can be controlled > directly from the host. LED1 is possible to control via WiFi card inserted > in miniPCIe slot if driver for particular card supports it. > > Signed-off-by: Pali Rohár > Tested-by: Gérald Kerma Applied on mvebu/dt64 Thanks, Gregory > > --- > > Previous version of this patch was sent by Uwe in March 2018, but it did > not work on any tested V5 board. Now we know it was due to V5 HW bug. > > https://lore.kernel.org/linux-arm-kernel/20180321105005.18426-3-u.kleine-koenig@pengutronix.de/ > --- > .../dts/marvell/armada-3720-espressobin-v7-emmc.dts | 4 ++++ > .../boot/dts/marvell/armada-3720-espressobin-v7.dts | 4 ++++ > .../boot/dts/marvell/armada-3720-espressobin.dtsi | 13 +++++++++++++ > 3 files changed, 21 insertions(+) > > diff --git a/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7-emmc.dts b/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7-emmc.dts > index 4775a7eda481..75401eab4d42 100644 > --- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7-emmc.dts > +++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7-emmc.dts > @@ -39,3 +39,7 @@ > &sdhci0 { > status = "okay"; > }; > + > +&led2 { > + status = "okay"; > +}; > diff --git a/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7.dts b/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7.dts > index c47a93978386..48a7f50fb427 100644 > --- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7.dts > +++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7.dts > @@ -34,3 +34,7 @@ > &switch0port3 { > label = "wan"; > }; > + > +&led2 { > + status = "okay"; > +}; > diff --git a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dtsi b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dtsi > index 8a1c678bea5f..daffe136c523 100644 > --- a/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dtsi > +++ b/arch/arm64/boot/dts/marvell/armada-3720-espressobin.dtsi > @@ -41,6 +41,19 @@ > 3300000 0x0>; > enable-active-high; > }; > + > + led2: gpio-led2 { > + /* led2 is working only on v7 board */ > + status = "disabled"; > + > + compatible = "gpio-leds"; > + > + led2 { > + label = "led2"; > + gpios = <&gpionb 2 GPIO_ACTIVE_LOW>; > + default-state = "off"; > + }; > + }; > }; > > /* J9 */ > -- > 2.20.1 > -- Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com