Received: from sender4-op-o14.zoho.com (sender4-op-o14.zoho.com [136.143.188.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D7AD5A2F for ; Thu, 10 Mar 2022 20:06:47 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1646942795; cv=none; d=zohomail.com; s=zohoarc; b=F2OKlq2NtBfxrV6jSDe75u7NXTOZmLhubkrVCpUOY5VHzkfORxZLmiKw3nmFWw+6ExJooTSnloTNOQ6WpLZlvHxgUhTH7mXExkZD3en3HlvuDmgX/ON+HIckRuzmPbPeXxthxtRWgScWzV36as3aXIPPlUmvMXXdI5r4iN0dan8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1646942795; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=n+qQtvRsVJOCKVplH2+l9+bMC+9449YAwdFQIB9QfwQ=; b=cCSvBHyja37iB6IDWAht/Id7ecVuh7MwJA5laOPYjEYQiWiBYqObZHE+W8J5WV+FlbETAOCm4N0W5GV44z3fUUPUJZsebK2CGuyyT+hZ62HC/6tuP19O1B4fTcA3WgtJnjDwK0FsYhbSV2nwGVCtjJf1ols5gE4KQD9j9B5Oy6A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1646942795; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=n+qQtvRsVJOCKVplH2+l9+bMC+9449YAwdFQIB9QfwQ=; b=DoeJJy6hbXsdezjwtV5TJTku7/FaQGcotdms87vJmSVTjkJ7plZ4QkKietkWEon6 gkilTf+4Q55wNEcdy8zu4f9JREuBDnGw1ZLxwpm+m2SIg0eHxOZiJES8oIQZmovHjvn 9LqdfMV/Qi8S1H8p1RlEtPi2RU9rZCKoisGbRwaU= Received: from arinc9-PC.localdomain (85.117.236.245 [85.117.236.245]) by mx.zohomail.com with SMTPS id 1646942794661946.7857855778054; Thu, 10 Mar 2022 12:06:34 -0800 (PST) From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= To: Greg KH , Sergio Paracuellos , NeilBrown , erkin.bozoglu@xeront.com Cc: linux-staging@lists.linux.dev, =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= Subject: [PATCH v2 1/2] staging: mt7621-dts: fix LEDs and pinctrl on GB-PC1 devicetree Date: Thu, 10 Mar 2022 23:06:14 +0300 Message-Id: <20220310200615.14484-1-arinc.unal@arinc9.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External Fix LED and pinctrl definitions on the GB-PC1 devicetree. Refer to the schematics of the device for more information. LED fixes: - Change GPIO6 LED label from system to power as GPIO6 is connected to PLED. - Add default-on default-trigger to power LED. - Change GPIO8 LED label from status to system as GPIO8 is connected to SYS_LED. - Add disk-activity default-trigger to system LED. - Switch to the color:function naming scheme. - Remove lan1 and lan2 LEDs as they don't exist. Pinctrl fixes: - Claim state_default node under pinctrl node. - Change pinctrl0 node name to state-default. - Change gpio node name to gpio-pinmux to respect Documentation/devicetree/bindings/pinctrl/ralink,rt2880-pinmux.yaml. - Sort pin groups alphabetically. Misc fixes: - Fix formatting. - Use the status value "okay". Link: https://github.com/ngiger/GnuBee_Docs/blob/master/GB-PCx/Documents/GB-PC1_V1.0_Schematic.pdf Signed-off-by: Arınç ÜNAL Tested-by: Sergio Paracuellos --- v2: Use the status value "okay" as it's the official proper spelling. --- drivers/staging/mt7621-dts/gbpc1.dts | 35 ++++++++++++---------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/drivers/staging/mt7621-dts/gbpc1.dts b/drivers/staging/mt7621-dts/gbpc1.dts index 1b5175e6ccf3..ce70dae1fc91 100644 --- a/drivers/staging/mt7621-dts/gbpc1.dts +++ b/drivers/staging/mt7621-dts/gbpc1.dts @@ -38,24 +38,16 @@ reset { gpio-leds { compatible = "gpio-leds"; - system { - label = "gb-pc1:green:system"; + power { + label = "green:power"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; + linux,default-trigger = "default-on"; }; - status { - label = "gb-pc1:green:status"; + system { + label = "green:system"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; - }; - - lan1 { - label = "gb-pc1:green:lan1"; - gpios = <&gpio 24 GPIO_ACTIVE_LOW>; - }; - - lan2 { - label = "gb-pc1:green:lan2"; - gpios = <&gpio 25 GPIO_ACTIVE_LOW>; + linux,default-trigger = "disk-activity"; }; }; }; @@ -97,7 +89,6 @@ partition@50000 { label = "firmware"; reg = <0x50000 0x1FB0000>; }; - }; }; @@ -106,9 +97,12 @@ &pcie { }; &pinctrl { - state_default: pinctrl0 { - default_gpio: gpio { - groups = "wdt", "rgmii2", "uart3"; + pinctrl-names = "default"; + pinctrl-0 = <&state_default>; + + state_default: state-default { + gpio-pinmux { + groups = "rgmii2", "uart3", "wdt"; function = "gpio"; }; }; @@ -121,12 +115,13 @@ ðernet { &switch0 { ports { port@0 { + status = "okay"; label = "ethblack"; - status = "ok"; }; + port@4 { + status = "okay"; label = "ethblue"; - status = "ok"; }; }; }; -- 2.25.1