diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2021-03-23 20:12:22 +0100 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2021-03-23 20:12:22 +0100 |
commit | 7f04d675170d255580edf77d4ff7c0adebb57609 (patch) | |
tree | 4cc1d76bc8d8497ef63c1a7b6ce68bd0d32eac9e /target/linux/bmips/dts/bcm6328.dtsi | |
parent | 851dadc257b7223f879a3733507e83cfcaae1af1 (diff) | |
download | upstream-7f04d675170d255580edf77d4ff7c0adebb57609.tar.gz upstream-7f04d675170d255580edf77d4ff7c0adebb57609.tar.bz2 upstream-7f04d675170d255580edf77d4ff7c0adebb57609.zip |
bmips: add experimental PCI/PCIe support
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 <noltari@gmail.com>
Diffstat (limited to 'target/linux/bmips/dts/bcm6328.dtsi')
-rw-r--r-- | target/linux/bmips/dts/bcm6328.dtsi | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/target/linux/bmips/dts/bcm6328.dtsi b/target/linux/bmips/dts/bcm6328.dtsi index 64fd04142c..76d7a257d4 100644 --- a/target/linux/bmips/dts/bcm6328.dtsi +++ b/target/linux/bmips/dts/bcm6328.dtsi @@ -317,6 +317,12 @@ status = "disabled"; }; + serdes_cntl: syscon@10001800 { + compatible = "syscon"; + reg = <0x10001800 0x4>; + native-endian; + }; + periph_pwr: power-controller@10001848 { compatible = "brcm,bcm6328-power-controller"; reg = <0x10001848 0x4>; @@ -462,5 +468,38 @@ 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 = <BCM6328_IRQ_PCIE_RC>; + + clocks = <&periph_clk BCM6328_CLK_PCIE>; + clock-names = "pcie"; + + resets = <&periph_rst BCM6328_RST_PCIE>, + <&periph_rst BCM6328_RST_PCIE_EXT>, + <&periph_rst BCM6328_RST_PCIE_CORE>, + <&periph_rst BCM6328_RST_PCIE_HARD>; + reset-names = "pcie", + "pcie-ext", + "pcie-core", + "pcie-hard"; + + power-domains = <&periph_pwr BCM6328_POWER_DOMAIN_PCIE>; + + brcm,serdes = <&serdes_cntl>; + + status = "disabled"; + }; }; }; |