| 1 |
// SPDX-License-Identifier: (GPL-2.0 OR MIT) |
| 2 |
/* |
| 3 |
* As a loose attempt to separate RP1 customizations from SoC peripherals |
| 4 |
* definitioni, this file is intended to host the override nodes for the RP1 |
| 5 |
* peripherals, e.g. to declare the phy of the ethernet interface or custom |
| 6 |
* pin setup. |
| 7 |
* All other nodes that do not have anything to do with RP1 should be added |
| 8 |
* to the included bcm2712-rpi-5-b-base.dtsi instead. |
| 9 |
*/ |
| 10 |
|
| 11 |
/dts-v1/; |
| 12 |
|
| 13 |
#include "bcm2712-rpi-5-b-base.dtsi" |
| 14 |
|
| 15 |
/ { |
| 16 |
aliases { |
| 17 |
ethernet0 = &rp1_eth; |
| 18 |
}; |
| 19 |
}; |
| 20 |
|
| 21 |
&pcie2 { |
| 22 |
pci@0,0 { |
| 23 |
reg = <0x0 0x0 0x0 0x0 0x0>; |
| 24 |
ranges; |
| 25 |
bus-range = <0 1>; |
| 26 |
device_type = "pci"; |
| 27 |
#address-cells = <3>; |
| 28 |
#size-cells = <2>; |
| 29 |
|
| 30 |
dev@0,0 { |
| 31 |
compatible = "pci1de4,1"; |
| 32 |
reg = <0x10000 0x0 0x0 0x0 0x0>; |
| 33 |
ranges = <0x1 0x0 0x0 0x82010000 0x0 0x0 0x0 0x400000>; |
| 34 |
interrupt-controller; |
| 35 |
#interrupt-cells = <2>; |
| 36 |
#address-cells = <3>; |
| 37 |
#size-cells = <2>; |
| 38 |
|
| 39 |
#include "rp1-common.dtsi" |
| 40 |
}; |
| 41 |
}; |
| 42 |
}; |
| 43 |
|
| 44 |
&rp1_eth { |
| 45 |
assigned-clocks = <&rp1_clocks RP1_CLK_ETH_TSU>, |
| 46 |
<&rp1_clocks RP1_CLK_ETH>; |
| 47 |
assigned-clock-rates = <50000000>, |
| 48 |
<125000000>; |
| 49 |
status = "okay"; |
| 50 |
phy-mode = "rgmii-id"; |
| 51 |
phy-handle = <&phy1>; |
| 52 |
|
| 53 |
mdio { |
| 54 |
reg = <0x1>; |
| 55 |
reset-gpios = <&rp1_gpio 32 GPIO_ACTIVE_LOW>; |
| 56 |
reset-delay-us = <5000>; |
| 57 |
#address-cells = <1>; |
| 58 |
#size-cells = <0>; |
| 59 |
|
| 60 |
phy1: ethernet-phy@1 { |
| 61 |
reg = <0x1>; |
| 62 |
}; |
| 63 |
}; |
| 64 |
}; |
| 65 |
|
| 66 |
&rp1_gpio { |
| 67 |
usb_vbus_default_state: usb-vbus-default-state { |
| 68 |
function = "vbus1"; |
| 69 |
groups = "vbus1"; |
| 70 |
}; |
| 71 |
}; |
| 72 |
|
| 73 |
&rp1_usb0 { |
| 74 |
pinctrl-0 = <&usb_vbus_default_state>; |
| 75 |
pinctrl-names = "default"; |
| 76 |
status = "okay"; |
| 77 |
}; |
| 78 |
|
| 79 |
&rp1_usb1 { |
| 80 |
status = "okay"; |
| 81 |
}; |