From 7f04d675170d255580edf77d4ff7c0adebb57609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Tue, 23 Mar 2021 20:12:22 +0100 Subject: bmips: add experimental PCI/PCIe support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These PCI drivers are a bit hacky and definitely not suitable for upstreaming, but hopefully we can use them as a base for developing proper upstream PCI drivers. Signed-off-by: Álvaro Fernández Rojas --- target/linux/bmips/dts/bcm6362.dtsi | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'target/linux/bmips/dts/bcm6362.dtsi') diff --git a/target/linux/bmips/dts/bcm6362.dtsi b/target/linux/bmips/dts/bcm6362.dtsi index 9a3d9c1f66..1ae1522287 100644 --- a/target/linux/bmips/dts/bcm6362.dtsi +++ b/target/linux/bmips/dts/bcm6362.dtsi @@ -406,6 +406,12 @@ status = "disabled"; }; + serdes_cntl: syscon@10001804 { + compatible = "syscon"; + reg = <0x10001804 0x4>; + native-endian; + }; + periph_pwr: power-controller@10001848 { compatible = "brcm,bcm6362-power-controller"; reg = <0x10001848 0x4>; @@ -559,5 +565,36 @@ reg = <1>; }; }; + + pcie: pcie@10e40000 { + compatible = "brcm,bcm6328-pcie"; + reg = <0x10e40000 0x10000>; + #address-cells = <3>; + #size-cells = <2>; + + device_type = "pci"; + bus-range = <0x00 0x01>; + ranges = <0x2000000 0 0x10f00000 0x10f00000 0 0x100000>; + linux,pci-probe-only = <1>; + + interrupt-parent = <&periph_intc>; + interrupts = ; + + clocks = <&periph_clk BCM6362_CLK_PCIE>; + clock-names = "pcie"; + + resets = <&periph_rst BCM6362_RST_PCIE>, + <&periph_rst BCM6362_RST_PCIE_EXT>, + <&periph_rst BCM6362_RST_PCIE_CORE>; + reset-names = "pcie", + "pcie-ext", + "pcie-core"; + + power-domains = <&periph_pwr BCM6362_POWER_DOMAIN_PCIE>; + + brcm,serdes = <&serdes_cntl>; + + status = "disabled"; + }; }; }; -- cgit v1.2.3