Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp8306pxm; Tue, 22 Feb 2022 05:21:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxqQxsC4zl4DSyZCqUYoTV+sdohroeZlS7TNrpdS1boR+zba2iYxBSpx6dX0Q8ZcP//+CLD X-Received: by 2002:a17:906:37cf:b0:6ce:6321:5ecb with SMTP id o15-20020a17090637cf00b006ce63215ecbmr19519656ejc.385.1645536097698; Tue, 22 Feb 2022 05:21:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645536097; cv=none; d=google.com; s=arc-20160816; b=MlJnoBOI6SF8Sxu/My0ia+cmg0lOxBwzENqInoL1zFs6LnFnYMmALNyDuHo5byNDmH QUQHnkx7HAP8KBrMSGWdcGyTbfuY6nAMpdXlwioFaDmDazmhCqQ5+0nB2chIyhwoEUJq U07NOrbBrmCm0LonLfQSGBJzMO8RDawa252SfcJj2zTi8jQ5UgiOmPWQV5lKoIAhJgHZ gpCfMKurtdsISy/xArQuObPDRDcftUd9xxyA8g5+UMo314Cr71Yv0g2ELhd4DT5n2beb ayd+120NJhIvJgVDV1wIRBtNq2IJj6IRSPFaIj9mbomq8jX4Zyz14epioWhjvjB6+e3X n5bA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aPOn7j/q1U+i7Po2pWlmrtUazgW3/V7f+i702Jvkp1Q=; b=BnhixcCcLmnBZvpaNfKTK+5bzdtvPsSoGfdpxwMufzBdYNeS05RZgGuzwbIAssQlco Nj5m7LxkiZ7c6koP6uAtXEoTXs8aQh7ucMoBFtpwJJQ758J5mS8bKkZyXJoBgaQ/y0Bu p05SRB9gqgblFAIdB5+eH3qCwpTheMubDWyMsyheMCKZP1ACOweSWHMqwBHZlhFv+V6R DK9X0l30WTRbmio10Rg4KCyEAO7RPPT6fxRDvHehDPwK/0iEwi8FeEY7NS7VSucYtcIn zy3mmpSyfVP7XpWVlqfim/Z2wPuKozs+saVtbXczr4inmXuuHp1WxQGYvlWqL+tcAFyT KbxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lGZtLO+v; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y13si7241273edc.543.2022.02.22.05.21.14; Tue, 22 Feb 2022 05:21:37 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=lGZtLO+v; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231439AbiBVKrY (ORCPT + 99 others); Tue, 22 Feb 2022 05:47:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231402AbiBVKrO (ORCPT ); Tue, 22 Feb 2022 05:47:14 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26516A888C; Tue, 22 Feb 2022 02:46:48 -0800 (PST) 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 3CB3C61614; Tue, 22 Feb 2022 10:46:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46388C340F1; Tue, 22 Feb 2022 10:46:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645526807; bh=+jMY7Fmff/vHRcGElzdiiNPW97CbApnkgNqfokKetjw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lGZtLO+vaEPs6lYscOh8OvKz7dDK2dmGl2BX3Iu0X2H+rZHfUlR7oZKQjmOdlDsj7 hTZeTIlbnoNoQh0msem+HEdOgos9tSzjNezhdRN0gNmatRhitSJCwjPD3Vh8hIy/wy qlkaNYmzj8TpOMEpS8tH3BuOYJu0CAlmFnZ3SRzIMz7Lnq6ZUxJ0pKBPVpTilIo0Yd GvQbCh6fHu+1MbrFRYNDiL+Ey4GGT5wZqIAJVJZi74hodjC0e20+WCAXDwqdn3y4Rg ScymljgK8oSa+OyNXEa0+g/Wco7EEW3F+O8tScD8WSMMh0tiZd3+SQ4P/uyK67RnYf /fBvRh+D3S2Mg== Received: by pali.im (Postfix) id F3FDBFDB; Tue, 22 Feb 2022 11:46:46 +0100 (CET) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Lorenzo Pieralisi , Bjorn Helgaas , Rob Herring , Thomas Petazzoni , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Russell King Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 04/12] dt-bindings: PCI: mvebu: Add num-lanes property Date: Tue, 22 Feb 2022 11:46:17 +0100 Message-Id: <20220222104625.28461-5-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220222104625.28461-1-pali@kernel.org> References: <20220222104625.28461-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Controller driver needs to correctly configure PCIe link if it contains 1 or 4 SerDes PCIe lanes. Therefore add a new 'num-lanes' DT property for mvebu PCIe controller. Property 'num-lanes' seems to be de-facto standard way how number of lanes is specified in other PCIe controllers. Signed-off-by: Pali Rohár Acked-by: Rob Herring --- Documentation/devicetree/bindings/pci/mvebu-pci.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/pci/mvebu-pci.txt b/Documentation/devicetree/bindings/pci/mvebu-pci.txt index 6173af6885f8..24225852bce0 100644 --- a/Documentation/devicetree/bindings/pci/mvebu-pci.txt +++ b/Documentation/devicetree/bindings/pci/mvebu-pci.txt @@ -77,6 +77,7 @@ and the following optional properties: - marvell,pcie-lane: the physical PCIe lane number, for ports having multiple lanes. If this property is not found, we assume that the value is 0. +- num-lanes: number of SerDes PCIe lanes for this link (1 or 4) - reset-gpios: optional GPIO to PERST# - reset-delay-us: delay in us to wait after reset de-assertion, if not specified will default to 100ms, as required by the PCIe specification. @@ -141,6 +142,7 @@ pcie-controller { interrupt-map = <0 0 0 0 &mpic 58>; marvell,pcie-port = <0>; marvell,pcie-lane = <0>; + num-lanes = <1>; /* low-active PERST# reset on GPIO 25 */ reset-gpios = <&gpio0 25 1>; /* wait 20ms for device settle after reset deassertion */ @@ -161,6 +163,7 @@ pcie-controller { interrupt-map = <0 0 0 0 &mpic 59>; marvell,pcie-port = <0>; marvell,pcie-lane = <1>; + num-lanes = <1>; clocks = <&gateclk 6>; }; @@ -177,6 +180,7 @@ pcie-controller { interrupt-map = <0 0 0 0 &mpic 60>; marvell,pcie-port = <0>; marvell,pcie-lane = <2>; + num-lanes = <1>; clocks = <&gateclk 7>; }; @@ -193,6 +197,7 @@ pcie-controller { interrupt-map = <0 0 0 0 &mpic 61>; marvell,pcie-port = <0>; marvell,pcie-lane = <3>; + num-lanes = <1>; clocks = <&gateclk 8>; }; @@ -209,6 +214,7 @@ pcie-controller { interrupt-map = <0 0 0 0 &mpic 62>; marvell,pcie-port = <1>; marvell,pcie-lane = <0>; + num-lanes = <1>; clocks = <&gateclk 9>; }; @@ -225,6 +231,7 @@ pcie-controller { interrupt-map = <0 0 0 0 &mpic 63>; marvell,pcie-port = <1>; marvell,pcie-lane = <1>; + num-lanes = <1>; clocks = <&gateclk 10>; }; @@ -241,6 +248,7 @@ pcie-controller { interrupt-map = <0 0 0 0 &mpic 64>; marvell,pcie-port = <1>; marvell,pcie-lane = <2>; + num-lanes = <1>; clocks = <&gateclk 11>; }; @@ -257,6 +265,7 @@ pcie-controller { interrupt-map = <0 0 0 0 &mpic 65>; marvell,pcie-port = <1>; marvell,pcie-lane = <3>; + num-lanes = <1>; clocks = <&gateclk 12>; }; @@ -273,6 +282,7 @@ pcie-controller { interrupt-map = <0 0 0 0 &mpic 99>; marvell,pcie-port = <2>; marvell,pcie-lane = <0>; + num-lanes = <1>; clocks = <&gateclk 26>; }; @@ -289,6 +299,7 @@ pcie-controller { interrupt-map = <0 0 0 0 &mpic 103>; marvell,pcie-port = <3>; marvell,pcie-lane = <0>; + num-lanes = <1>; clocks = <&gateclk 27>; }; }; -- 2.20.1