Message ID | 20221026174303.702919-1-horatiu.vultur@microchip.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp402163wru; Wed, 26 Oct 2022 10:40:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6l+0blNL9jVUiwSi0fLdQmWdAKOYEdatOyAG+vcThy+1eX/KKh9lcb1z65xdksS7lzd5ue X-Received: by 2002:a17:903:186:b0:182:ecf9:6227 with SMTP id z6-20020a170903018600b00182ecf96227mr45656926plg.70.1666806022694; Wed, 26 Oct 2022 10:40:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666806022; cv=none; d=google.com; s=arc-20160816; b=fovLgQCS1Z5VY16A46pz/ZMCOia/rYQpIaxzDgC1LbBsR1Oj+qFgeJmUX5WMV/rzZ2 kDWvXYKHHA0i2X4as5/4kHgcAEzDDMgG8jvmk+XyVqNwttIaPDwQlGcM7IYicqKmeDWA w7OlKa8/gjiPBILFKRBhNqvC0NfcoKBM80IhPqbdhXEEiNGCHTGTOZH1+djFTym541JV sn0R9Tsn2UsHo93sWD3Yun2853O1LCiHkS3i8L9j80rNUusHvERxFI6WEwx+YZTL+M7M OICJ4rRsjRExeqAATvFOQ5ZSjognZI4zdqGTXDMaAJJZwdAapEfi9P3K9NnEW9UpQwiB Lc6g== 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=66wAHEWt399U290Ls4mLvtL4nKzoPqSfsUDRE/W0wVo=; b=CArMAOYZAPrkT0af/k/ulYMMWuesCCq+ILMQ4LaYAMuARuWdPQT/urt+fL7th/C/Z4 1YCh3af2eWXKntbpCLIfpnMFLN6bOpT1qkH9Yolz3qHVGauATijycuiMeIBpiyxxbRIY npN6gMNLzVmGCtVxsXbZjY1WvyH8viKZQMhcPCHZ5UrWBA5BGqQ5Ud2a2feoB2hry1n8 RaeL88vu4xWGhKv/f6lu6g1OUN9jo4dnBeIzA0XlAIVFuX+iIy/ddhqrqe/5MM5sLKBK LOzUotQmE73g/qTpw+MmTMDZxxeMvaftjWC9zE49nAI8N2nb8vjnseUsjoLMVJOgE/oy R5vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=gIowBRvD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u21-20020a634555000000b00439cc644c03si7499008pgk.228.2022.10.26.10.40.09; Wed, 26 Oct 2022 10:40:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=gIowBRvD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234024AbiJZRit (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Wed, 26 Oct 2022 13:38:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233672AbiJZRis (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Oct 2022 13:38:48 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57CA7B1DC2; Wed, 26 Oct 2022 10:38:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1666805927; x=1698341927; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=D73vSYeGPyXAlI5Xim/Iszf2mfGpknfip7fOka+JNww=; b=gIowBRvDWiMUMyUesajhf1G0QC81I+D6xE7Z5ACX5t/rXLCjx6ea3/jU bk4/CLVXYU1UpXxK5zjGvaEZerFYKY4UyrDDb/ujIptKdlYWmyeaU9AUK QRA1npEclnrpsu9gedvsyvU6UcS0N7+DZlhPJqvVilPJKeQkkxfmj1sEc Z4YilzFuCyBUju7njIwNr8BDhhxDvu+l7gBIv+St8SCY50QQZXWoJ5LJ3 /9QaCfnE068uOSEgVz4daTTRUbNP/NU8ZMJWguEOViYalfhrhzN3gFGul 8a8WVpMXMnZO+T5hFSWDFwL0pL8tgQKqiKexHVaeM40tfDf8lYX4+Qb7X w==; X-IronPort-AV: E=Sophos;i="5.95,215,1661842800"; d="scan'208";a="120490281" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 26 Oct 2022 10:38:46 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Wed, 26 Oct 2022 10:38:45 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Wed, 26 Oct 2022 10:38:44 -0700 From: Horatiu Vultur <horatiu.vultur@microchip.com> To: <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org> CC: <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <claudiu.beznea@microchip.com>, <nicolas.ferre@microchip.com>, <UNGLinuxDriver@microchip.com>, Horatiu Vultur <horatiu.vultur@microchip.com> Subject: [PATCH v2] ARM: dts: lan966x: Enable sgpio on pcb8291 Date: Wed, 26 Oct 2022 19:43:03 +0200 Message-ID: <20221026174303.702919-1-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747102309598916537?= X-GMAIL-MSGID: =?utf-8?q?1747772792130974332?= |
Series |
[v2] ARM: dts: lan966x: Enable sgpio on pcb8291
|
|
Commit Message
Horatiu Vultur
Oct. 26, 2022, 5:43 p.m. UTC
Enable sgpio node on pcb8291 as this is needed to be able to control
the LEDs on this board. Otherwise the LEDs support on the board will
not be available.
On the other board pcb8309 the sgpio is already enabled because it
needed to access the SFP ports.
Fixes: 0b7baa1a307f ("ARM: dts: lan966x: add led configuration")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
---
v1->v2:
- add fixes tag
---
arch/arm/boot/dts/lan966x-pcb8291.dts | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
Comments
On 26.10.2022 20:43, Horatiu Vultur wrote: > Enable sgpio node on pcb8291 as this is needed to be able to control > the LEDs on this board. Otherwise the LEDs support on the board will > not be available. > On the other board pcb8309 the sgpio is already enabled because it > needed to access the SFP ports. > > Fixes: 0b7baa1a307f ("ARM: dts: lan966x: add led configuration") > Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com> Applied to at91-fixes, thanks! > > --- > v1->v2: > - add fixes tag > --- > arch/arm/boot/dts/lan966x-pcb8291.dts | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/arch/arm/boot/dts/lan966x-pcb8291.dts b/arch/arm/boot/dts/lan966x-pcb8291.dts > index f4f054cdf2a87..3a3d76af86122 100644 > --- a/arch/arm/boot/dts/lan966x-pcb8291.dts > +++ b/arch/arm/boot/dts/lan966x-pcb8291.dts > @@ -69,6 +69,12 @@ can0_b_pins: can0-b-pins { > pins = "GPIO_35", "GPIO_36"; > function = "can0_b"; > }; > + > + sgpio_a_pins: sgpio-a-pins { > + /* SCK, D0, D1, LD */ > + pins = "GPIO_32", "GPIO_33", "GPIO_34", "GPIO_35"; > + function = "sgpio_a"; > + }; > }; > > &can0 { > @@ -118,6 +124,20 @@ &serdes { > status = "okay"; > }; > > +&sgpio { > + pinctrl-0 = <&sgpio_a_pins>; > + pinctrl-names = "default"; > + microchip,sgpio-port-ranges = <0 3>, <8 11>; > + status = "okay"; > + > + gpio@0 { > + ngpios = <64>; > + }; > + gpio@1 { > + ngpios = <64>; > + }; > +}; > + > &switch { > status = "okay"; > };
diff --git a/arch/arm/boot/dts/lan966x-pcb8291.dts b/arch/arm/boot/dts/lan966x-pcb8291.dts index f4f054cdf2a87..3a3d76af86122 100644 --- a/arch/arm/boot/dts/lan966x-pcb8291.dts +++ b/arch/arm/boot/dts/lan966x-pcb8291.dts @@ -69,6 +69,12 @@ can0_b_pins: can0-b-pins { pins = "GPIO_35", "GPIO_36"; function = "can0_b"; }; + + sgpio_a_pins: sgpio-a-pins { + /* SCK, D0, D1, LD */ + pins = "GPIO_32", "GPIO_33", "GPIO_34", "GPIO_35"; + function = "sgpio_a"; + }; }; &can0 { @@ -118,6 +124,20 @@ &serdes { status = "okay"; }; +&sgpio { + pinctrl-0 = <&sgpio_a_pins>; + pinctrl-names = "default"; + microchip,sgpio-port-ranges = <0 3>, <8 11>; + status = "okay"; + + gpio@0 { + ngpios = <64>; + }; + gpio@1 { + ngpios = <64>; + }; +}; + &switch { status = "okay"; };