Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1109174rwi; Wed, 26 Oct 2022 10:52:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ddN5Wm531YDhM1mtrV1yKrRyxztO0l5YkjV4ptFzwcN+qkptm6/zcOz8ou1vKeqkiP9G0 X-Received: by 2002:a05:6402:1045:b0:461:a28b:17ab with SMTP id e5-20020a056402104500b00461a28b17abmr18842700edu.90.1666806752123; Wed, 26 Oct 2022 10:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666806752; cv=none; d=google.com; s=arc-20160816; b=d+n2RrR+vPQWyfrNg8HHkffE7lgzMaPvkBnyaYPkT9hRh/RWRoHogtnks6nMOXnP77 TBv+T1R7Xl1Ls/oWGNUAdce5tWGxnWPHSv7XnNBy/ywg2QG8p0tpg/jQnsGzCykJ4hrA vA/9QJrXYT/kon/5xxU8IxwcaEA6WPhe/6gwJWuneyh+pabk1Y7ucncz82lPKGUFZ8TC o7EGcyKLpICKZzb7CoomKMOOf0VVFTcfMMsU/v5aJnah1nl+NCleSuDEefqanJs1ohbL Fl552niD4+PbxZ9kan4EXn3P1AZPnXsB80u2O96avx/xFUPktM/l3ohxSr96SPC3dFYD 864A== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id js19-20020a17090797d300b0078dfd7054absi350804ejc.544.2022.10.26.10.52.06; Wed, 26 Oct 2022 10:52:32 -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 + 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 ); 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 To: , CC: , , , , , Horatiu Vultur 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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"; }; -- 2.38.0