| 1 |
// SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 |
/* |
| 3 |
* DT-overlay to enable the onboard PCIe x1 slot, which shares pins and the PHY |
| 4 |
* with the USB3 host port. |
| 5 |
* To use the PCIe slot, apply this overlay and flip the Dial_Switch_1 right |
| 6 |
* next to the PCIe slot to low state (labeled "ON - PCIe1"). USB3 host port |
| 7 |
* will be unusable (not even in 2.0 mode) |
| 8 |
*/ |
| 9 |
|
| 10 |
/dts-v1/; |
| 11 |
/plugin/; |
| 12 |
|
| 13 |
#include <dt-bindings/pinctrl/rockchip.h> |
| 14 |
|
| 15 |
&pcie1 { |
| 16 |
pinctrl-0 = <&pcie1m0_pins &pcie1_rst>; |
| 17 |
pinctrl-names = "default"; |
| 18 |
status = "okay"; |
| 19 |
}; |
| 20 |
|
| 21 |
&pinctrl { |
| 22 |
pcie1 { |
| 23 |
pcie1_rst: pcie1-rst { |
| 24 |
rockchip,pins = <4 RK_PC4 RK_FUNC_GPIO &pcfg_pull_none>; |
| 25 |
}; |
| 26 |
}; |
| 27 |
}; |
| 28 |
|
| 29 |
&usb_drd1_dwc3 { |
| 30 |
status = "disabled"; |
| 31 |
}; |