From: "Jari Hämäläinen" <nuumiofi@gmail.com>
To: Shawn Lin <shawn.lin@rock-chips.com>, Heiko Stuebner <heiko@sntech.de>
Cc: "Jari Hämäläinen" <nuumiofi@gmail.com>,
linux-pci@vger.kernel.org, linux-rockchip@lists.infradead.org,
"Lorenzo Pieralisi" <lorenzo.pieralisi@arm.com>,
"Rob Herring" <robh@kernel.org>,
"Bjorn Helgaas" <bhelgaas@google.com>
Subject: [RFC PATCH 2/3] dt-bindings: PCI: rockchip: document bus-scan-delay-ms workaround property
Date: Thu, 31 Dec 2020 14:52:13 +0200 [thread overview]
Message-ID: <20201231125214.25733-3-nuumiofi@gmail.com> (raw)
In-Reply-To: <20201231125214.25733-1-nuumiofi@gmail.com>
New "rockchip,bus-scan-delay-ms" property can be used to set a delay
before PCIe bus scan as a workaround for some problematic devices causing
a crash in bus scan.
Signed-off-by: Jari Hämäläinen <nuumiofi@gmail.com>
---
Documentation/devicetree/bindings/pci/rockchip-pcie-host.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/devicetree/bindings/pci/rockchip-pcie-host.txt b/Documentation/devicetree/bindings/pci/rockchip-pcie-host.txt
index af34c65773fd..394bdf562d58 100644
--- a/Documentation/devicetree/bindings/pci/rockchip-pcie-host.txt
+++ b/Documentation/devicetree/bindings/pci/rockchip-pcie-host.txt
@@ -57,6 +57,8 @@ Optional Property:
using 24MHz OSC for RC's PHY.
- ep-gpios: contain the entry for pre-reset GPIO
- num-lanes: number of lanes to use
+- rockchip,bus-scan-delay-ms: delay before PCIe bus scan in milliseconds.
+ Provides a workaround for some devices causing a crash in bus scan.
- vpcie12v-supply: The phandle to the 12v regulator to use for PCIe.
- vpcie3v3-supply: The phandle to the 3.3v regulator to use for PCIe.
- vpcie1v8-supply: The phandle to the 1.8v regulator to use for PCIe.
@@ -106,6 +108,7 @@ pcie0: pcie@f8000000 {
<&cru SRST_PCIE_PM>, <&cru SRST_P_PCIE>, <&cru SRST_A_PCIE>;
reset-names = "core", "mgmt", "mgmt-sticky", "pipe",
"pm", "pclk", "aclk";
+ rockchip,bus-scan-delay-ms = <1100>;
/* deprecated legacy PHY model */
phys = <&pcie_phy>;
phy-names = "pcie-phy";
--
2.29.2
next prev parent reply other threads:[~2020-12-31 12:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-31 12:52 [RFC PATCH 0/3] provide workaround for Rockchip PCIe bus scan crash with optional delay Jari Hämäläinen
2020-12-31 12:52 ` [RFC PATCH 1/3] PCI: rockchip: provide workaround for " Jari Hämäläinen
2021-01-01 17:37 ` Bjorn Helgaas
2021-01-02 13:43 ` Jari Hämäläinen
2021-01-24 6:39 ` Jari Hämäläinen
2021-01-25 18:08 ` Robin Murphy
2020-12-31 12:52 ` Jari Hämäläinen [this message]
2020-12-31 12:52 ` [RFC PATCH 3/3] arm64: dts: rockchip: use bus-scan-delay-ms workaround with RockPro64 PCIe Jari Hämäläinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201231125214.25733-3-nuumiofi@gmail.com \
--to=nuumiofi@gmail.com \
--cc=bhelgaas@google.com \
--cc=heiko@sntech.de \
--cc=linux-pci@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=lorenzo.pieralisi@arm.com \
--cc=robh@kernel.org \
--cc=shawn.lin@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).