Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp255803pxu; Tue, 6 Oct 2020 05:48:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnR/oSto7w9KBOIru0kI6US5nndejSAyxzd9B1VHuzkrMs07GBuHQtts5H9SguNraahaY+ X-Received: by 2002:a05:6402:2292:: with SMTP id cw18mr885032edb.112.1601988519080; Tue, 06 Oct 2020 05:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601988519; cv=none; d=google.com; s=arc-20160816; b=hPbI/bAGzFzif2q1eHOPct3pRtRVvwXA41DmqPnv5kT/PzvCCDEM+jGn2nXPcK0Sxy iPTDHvQTpaqpeLkoOYMw6RuTQD1NpcFqM+bsrgrQ8+hDH0N7ILQGRMAhiZn8gQc4wxez ESlgs4dNfreD1/wUCi0RwsyDU32jNSUR2faxvXRg6OCLtHmAfDoOcRF3t3vrAYP95Aw3 L27WoGZkX9XrPunGDD3BAEA/Euw3wC10MyM2sq/AUtZpyWp1VdBUCvyFWHqzAqcea7C6 CbhG7wQFlmdexexNMDOYHMwZ1cTOyrCtuFCNX2IZufdPaS1M0QuUxcapNXKkuuAKyGoA qoYQ== 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:subject:cc:to:from:dkim-signature; bh=MJPw2DR18VM8g7ynnuYOBDig5f0OyVr85y6oajMJ+H0=; b=c13HXJHJJ7yPWKuMDEDxpywwvnQqTOvlOEsQvaSs+ZM0a1Kj9fcC4ZSmXJ/15k0BF/ hnng8J9wmyVK4rADyG6GTeKtyJJ4d1KMAjD7chdcxI4u7gklfX1aGeE2IsbkVwVhA1bB riLbEczVvLYbRdfRVjeP1szLjTm+NTaXgqHRXMP7PoMoY5DYHli1ClVi8pU50n5EOasj J26Ii54sOyymzQAei/2RNGq2U5nDvRch30zQivlzViPgGU80XRBNcXs+nso64+CrOp+U JhG5EG368MQ/9EinHgnHJbrPtBsCy9KCcK/CbvWhv5n1PplBu1ii1PqFKeIUBTGl7FWk jvqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cYraoB7A; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d17si2424685edr.273.2020.10.06.05.48.15; Tue, 06 Oct 2020 05:48:39 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=cYraoB7A; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726590AbgJFMpP (ORCPT + 99 others); Tue, 6 Oct 2020 08:45:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:44084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726362AbgJFMpP (ORCPT ); Tue, 6 Oct 2020 08:45:15 -0400 Received: from pali.im (pali.im [31.31.79.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5C5F0206F7; Tue, 6 Oct 2020 12:45:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601988314; bh=jQA9qf0zTXfGZnsRtTNqxf5HKnAXpEcc7RqoVbJW6bI=; h=From:To:Cc:Subject:Date:From; b=cYraoB7Ay9Spg6fd89ju1rqWG7xiW2NHArMm31qUx5EPDv0MmsMh5rXiDka3MokRA 95JmZ7W08zOUOlAvVd5Ge+/MQlJtHv02LHeYj+iB43IcrkG5DWUtqSTt78F8Rliq0f KOV/D2O0diPvyyKZUerUEwh+zezTfzSvGcxJZKqY= Received: by pali.im (Postfix) id E5C14891; Tue, 6 Oct 2020 14:45:11 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Gregory CLEMENT , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Rob Herring , Andre Heider , =?UTF-8?q?G=C3=A9rald=20Kerma?= Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: marvell: espressobin: Add support for LED2 Date: Tue, 6 Oct 2020 14:44:55 +0200 Message-Id: <20201006124455.16617-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 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 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 --- 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