Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp927306pxb; Wed, 6 Apr 2022 04:31:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYYtBkbJ4tcr1WwCeApvPuqmquYClN9JDLlCeLBT/gFZ00lAz9Xgtb85qIAD2pZ5pkisxv X-Received: by 2002:a63:338e:0:b0:398:4302:c503 with SMTP id z136-20020a63338e000000b003984302c503mr6804624pgz.217.1649244699564; Wed, 06 Apr 2022 04:31:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649244699; cv=none; d=google.com; s=arc-20160816; b=bIhfQXjdsq5IfRH8o5tPwErDVC496IHd7jBkD0uE6V7RICrusyCi/o0opozhY5qvsq wJw2IuvRWVshWON66bTq8Cj9GfBVTa+MA9k+wBsWhHjNJv8Hsro2oLlxOQd4Tru3C2W/ rN0vvj3SNxt0NeSzvH6JGI1090VI0DDkMtqTYAPAPEmXffapOSHjQ0S3cC4paucCo6wh qLu41Y52JmMy8Z4OTpbLoFBJi/KHhLkgSxJthpJ1CBHG4f9Iw28MVRGZ3TXyT4Zlh6Vd Yifk2CWbckJKuQmhMaevZB+CwyY/Or5gK2gdB1MB9CZHU2cRTinEA+rtdjt9h176DgpN 5Suw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IdvY51cUvwW36ZFdccgoPvLzd7EMluq+6lbDSAthfEc=; b=hdWgwAWvixCTpsObV+NMJtWB+u5ccq9VcaaKCDgc/5rshcoX5Cxh5MYP/cugq4KSN0 WgmBJA/AdtazgSQK0sWTMNavURQmWbnksWhj2UFkfnEI/M2TDddangHaWqawhTQ9Ye2A vT+uQRrzNXmFNlKFuXaDuy3sl85Zq4rpO4InNe026bphmKbQGE4HTr5pklq16c2zHdLu HQiS7Pz1MPVko98crQ+pP8B1FwbGPMEkFBRSRRvJGy4dKw4ijewwvkJrD+Zz+5nov2BL PdN0Ht3awLYquANCMN+BpadL/ZrwSeIx8J52hXotXn1EbAhDVupuT5FrwSsmycb4XCae CRlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rcuRiSlc; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t19-20020a170902b21300b00153b2d165b6si14216264plr.446.2022.04.06.04.31.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:31:39 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rcuRiSlc; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 40003609483; Wed, 6 Apr 2022 02:53:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1836254AbiDFAfW (ORCPT + 99 others); Tue, 5 Apr 2022 20:35:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349475AbiDEJtz (ORCPT ); Tue, 5 Apr 2022 05:49:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC12627CF7; Tue, 5 Apr 2022 02:47:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 58EC661675; Tue, 5 Apr 2022 09:47:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C77FC385A2; Tue, 5 Apr 2022 09:47:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152021; bh=2ubE9Ce4a7J3eUgNEDW5nX19KX86dvczr+cjGGfcfDw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rcuRiSlcjqVivlueDis+khfYOIeZs2FaEH2sIPAyBeUYmBP0ycyTcRcb96ZfXCMD5 +EoAkVg6r0uNLFpCUqQtOO5FtcSe4AuJ4wXyXoeAb+U+6yd2Jg/8zSBiqBJmBi1GZz YE9cuHe/IMO6nnTmMrUp4ZiIuVvlwPZBegPxDw4E= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sergio Paracuellos , =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= , Sasha Levin Subject: [PATCH 5.15 627/913] staging: mt7621-dts: fix LEDs and pinctrl on GB-PC1 devicetree Date: Tue, 5 Apr 2022 09:28:09 +0200 Message-Id: <20220405070358.632996907@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arınç ÜNAL [ Upstream commit 6256e18686158fa49e019297f990f1c1817aabf1 ] 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". - Define hexadecimal addresses in lower case. - Make hexadecimal addresses for memory easier to read. Link: https://github.com/ngiger/GnuBee_Docs/blob/master/GB-PCx/Documents/GB-PC1_V1.0_Schematic.pdf Tested-by: Sergio Paracuellos Signed-off-by: Arınç ÜNAL Link: https://lore.kernel.org/r/20220311090320.3068-1-arinc.unal@arinc9.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/staging/mt7621-dts/gbpc1.dts | 40 +++++++++++++--------------- 1 file changed, 18 insertions(+), 22 deletions(-) diff --git a/drivers/staging/mt7621-dts/gbpc1.dts b/drivers/staging/mt7621-dts/gbpc1.dts index b65d71686814..02fd9be5e173 100644 --- a/drivers/staging/mt7621-dts/gbpc1.dts +++ b/drivers/staging/mt7621-dts/gbpc1.dts @@ -11,7 +11,8 @@ memory@0 { device_type = "memory"; - reg = <0x0 0x1c000000>, <0x20000000 0x4000000>; + reg = <0x00000000 0x1c000000>, + <0x20000000 0x04000000>; }; chosen { @@ -37,24 +38,16 @@ 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"; }; }; }; @@ -94,9 +87,8 @@ partition@50000 { label = "firmware"; - reg = <0x50000 0x1FB0000>; + reg = <0x50000 0x1fb0000>; }; - }; }; @@ -105,9 +97,12 @@ }; &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"; }; }; @@ -116,12 +111,13 @@ &switch0 { ports { port@0 { + status = "okay"; label = "ethblack"; - status = "ok"; }; + port@4 { + status = "okay"; label = "ethblue"; - status = "ok"; }; }; }; -- 2.34.1