| 1 |
// SPDX-License-Identifier: GPL-2.0 OR MIT |
| 2 |
/* |
| 3 |
* Copyright (C) 2022 StarFive Technology Co., Ltd. |
| 4 |
* Copyright (C) 2022 Emil Renner Berthing <[email protected]> |
| 5 |
*/ |
| 6 |
|
| 7 |
/dts-v1/; |
| 8 |
#include "jh7110-common.dtsi" |
| 9 |
|
| 10 |
/ { |
| 11 |
aliases { |
| 12 |
ethernet1 = &gmac1; |
| 13 |
}; |
| 14 |
}; |
| 15 |
|
| 16 |
&gmac0 { |
| 17 |
status = "okay"; |
| 18 |
}; |
| 19 |
|
| 20 |
&gmac1 { |
| 21 |
phy-handle = <&phy1>; |
| 22 |
phy-mode = "rgmii-id"; |
| 23 |
status = "okay"; |
| 24 |
|
| 25 |
mdio { |
| 26 |
#address-cells = <1>; |
| 27 |
#size-cells = <0>; |
| 28 |
compatible = "snps,dwmac-mdio"; |
| 29 |
|
| 30 |
phy1: ethernet-phy@1 { |
| 31 |
reg = <0>; |
| 32 |
}; |
| 33 |
}; |
| 34 |
}; |
| 35 |
|
| 36 |
&i2c0 { |
| 37 |
status = "okay"; |
| 38 |
}; |
| 39 |
|
| 40 |
&mmc0 { |
| 41 |
cap-mmc-highspeed; |
| 42 |
cap-mmc-hw-reset; |
| 43 |
mmc-ddr-1_8v; |
| 44 |
mmc-hs200-1_8v; |
| 45 |
vmmc-supply = <&vcc_3v3>; |
| 46 |
vqmmc-supply = <&emmc_vdd>; |
| 47 |
non-removable; |
| 48 |
}; |
| 49 |
|
| 50 |
&mmc0_pins { |
| 51 |
rst-pins { |
| 52 |
pinmux = <GPIOMUX(62, GPOUT_SYS_SDIO0_RST, |
| 53 |
GPOEN_ENABLE, |
| 54 |
GPI_NONE)>; |
| 55 |
bias-pull-up; |
| 56 |
drive-strength = <12>; |
| 57 |
input-disable; |
| 58 |
input-schmitt-disable; |
| 59 |
slew-rate = <0>; |
| 60 |
}; |
| 61 |
}; |
| 62 |
|
| 63 |
&mmc1 { |
| 64 |
cd-gpios = <&sysgpio 41 GPIO_ACTIVE_LOW>; |
| 65 |
disable-wp; |
| 66 |
}; |
| 67 |
|
| 68 |
&pcie0 { |
| 69 |
status = "okay"; |
| 70 |
}; |
| 71 |
|
| 72 |
&pcie1 { |
| 73 |
status = "okay"; |
| 74 |
}; |
| 75 |
|
| 76 |
&pwm { |
| 77 |
status = "okay"; |
| 78 |
}; |
| 79 |
|
| 80 |
&pwmdac { |
| 81 |
status = "okay"; |
| 82 |
}; |
| 83 |
|
| 84 |
&spi0 { |
| 85 |
status = "okay"; |
| 86 |
}; |
| 87 |
|
| 88 |
&usb0 { |
| 89 |
dr_mode = "peripheral"; |
| 90 |
status = "okay"; |
| 91 |
}; |