1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2018 Collabora Ltd. 3 * Copyright (c) 2018 Collabora Ltd. 4 * Copyright (c) 2018 Fuzhou Rockchip Electron 4 * Copyright (c) 2018 Fuzhou Rockchip Electronics Co., Ltd. 5 * 5 * 6 * Schematics available at https://dl.vamrs.co 6 * Schematics available at https://dl.vamrs.com/products/ficus/docs/hw 7 */ 7 */ 8 8 9 /dts-v1/; 9 /dts-v1/; 10 #include "rk3399-rock960.dtsi" 10 #include "rk3399-rock960.dtsi" 11 11 12 / { 12 / { 13 model = "96boards RK3399 Ficus"; 13 model = "96boards RK3399 Ficus"; 14 compatible = "vamrs,ficus", "rockchip, 14 compatible = "vamrs,ficus", "rockchip,rk3399"; 15 15 16 aliases { << 17 ethernet0 = &gmac; << 18 }; << 19 << 20 chosen { 16 chosen { 21 stdout-path = "serial2:1500000 17 stdout-path = "serial2:1500000n8"; 22 }; 18 }; 23 19 24 clkin_gmac: external-gmac-clock { 20 clkin_gmac: external-gmac-clock { 25 compatible = "fixed-clock"; 21 compatible = "fixed-clock"; 26 clock-frequency = <125000000>; 22 clock-frequency = <125000000>; 27 clock-output-names = "clkin_gm 23 clock-output-names = "clkin_gmac"; 28 #clock-cells = <0>; 24 #clock-cells = <0>; 29 }; 25 }; 30 26 31 leds { 27 leds { 32 compatible = "gpio-leds"; 28 compatible = "gpio-leds"; 33 pinctrl-names = "default"; 29 pinctrl-names = "default"; 34 pinctrl-0 = <&user_led1_pin>, !! 30 pinctrl-0 = <&user_led1>, <&user_led2>, <&user_led3>, 35 <&user_led3_pin>, !! 31 <&user_led4>, <&wlan_led>, <&bt_led>; 36 <&wlan_led_pin>, < << 37 32 38 user_led1: led-1 { !! 33 user_led1 { 39 label = "red:user1"; 34 label = "red:user1"; 40 gpios = <&gpio4 25 0>; 35 gpios = <&gpio4 25 0>; 41 linux,default-trigger 36 linux,default-trigger = "heartbeat"; 42 }; 37 }; 43 38 44 user_led2: led-2 { !! 39 user_led2 { 45 label = "red:user2"; 40 label = "red:user2"; 46 gpios = <&gpio4 26 0>; 41 gpios = <&gpio4 26 0>; 47 linux,default-trigger 42 linux,default-trigger = "mmc0"; 48 }; 43 }; 49 44 50 user_led3: led-3 { !! 45 user_led3 { 51 label = "red:user3"; 46 label = "red:user3"; 52 gpios = <&gpio4 30 0>; 47 gpios = <&gpio4 30 0>; 53 linux,default-trigger 48 linux,default-trigger = "mmc1"; 54 }; 49 }; 55 50 56 user_led4: led-4 { !! 51 user_led4 { 57 label = "red:user4"; 52 label = "red:user4"; 58 gpios = <&gpio1 0 0>; 53 gpios = <&gpio1 0 0>; 59 panic-indicator; 54 panic-indicator; 60 linux,default-trigger 55 linux,default-trigger = "none"; 61 }; 56 }; 62 57 63 wlan_active_led: led-5 { !! 58 wlan_active_led { 64 label = "red:wlan"; 59 label = "red:wlan"; 65 gpios = <&gpio1 1 0>; 60 gpios = <&gpio1 1 0>; 66 linux,default-trigger 61 linux,default-trigger = "phy0tx"; 67 default-state = "off"; 62 default-state = "off"; 68 }; 63 }; 69 64 70 bt_active_led: led-6 { !! 65 bt_active_led { 71 label = "red:bt"; 66 label = "red:bt"; 72 gpios = <&gpio1 4 0>; 67 gpios = <&gpio1 4 0>; 73 linux,default-trigger 68 linux,default-trigger = "hci0-power"; 74 default-state = "off"; 69 default-state = "off"; 75 }; 70 }; 76 }; 71 }; 77 }; 72 }; 78 73 79 &gmac { 74 &gmac { 80 assigned-clocks = <&cru SCLK_RMII_SRC> 75 assigned-clocks = <&cru SCLK_RMII_SRC>; 81 assigned-clock-parents = <&clkin_gmac> 76 assigned-clock-parents = <&clkin_gmac>; 82 clock_in_out = "input"; 77 clock_in_out = "input"; 83 phy-supply = <&vcc3v3_sys>; 78 phy-supply = <&vcc3v3_sys>; 84 phy-mode = "rgmii"; 79 phy-mode = "rgmii"; 85 pinctrl-names = "default"; 80 pinctrl-names = "default"; 86 pinctrl-0 = <&rgmii_pins>; 81 pinctrl-0 = <&rgmii_pins>; 87 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ 82 snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; 88 snps,reset-active-low; 83 snps,reset-active-low; 89 snps,reset-delays-us = <0 10000 50000> 84 snps,reset-delays-us = <0 10000 50000>; 90 tx_delay = <0x28>; 85 tx_delay = <0x28>; 91 rx_delay = <0x11>; 86 rx_delay = <0x11>; 92 status = "okay"; 87 status = "okay"; 93 }; 88 }; 94 89 95 &pcie0 { 90 &pcie0 { 96 ep-gpios = <&gpio4 RK_PD4 GPIO_ACTIVE_ 91 ep-gpios = <&gpio4 RK_PD4 GPIO_ACTIVE_HIGH>; 97 }; 92 }; 98 93 99 &pinctrl { 94 &pinctrl { 100 gmac { 95 gmac { 101 rgmii_sleep_pins: rgmii-sleep- 96 rgmii_sleep_pins: rgmii-sleep-pins { 102 rockchip,pins = 97 rockchip,pins = 103 <3 RK_PB7 RK_F 98 <3 RK_PB7 RK_FUNC_GPIO &pcfg_output_low>; 104 }; 99 }; 105 }; 100 }; 106 101 107 pcie { 102 pcie { 108 pcie_drv: pcie-drv { 103 pcie_drv: pcie-drv { 109 rockchip,pins = 104 rockchip,pins = 110 <1 RK_PD0 RK_F 105 <1 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; 111 }; 106 }; 112 }; 107 }; 113 108 114 usb2 { 109 usb2 { 115 host_vbus_drv: host-vbus-drv { 110 host_vbus_drv: host-vbus-drv { 116 rockchip,pins = 111 rockchip,pins = 117 <4 RK_PD3 RK_F 112 <4 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>; 118 }; 113 }; 119 }; 114 }; 120 115 121 leds { 116 leds { 122 user_led1_pin: user-led1-pin { !! 117 user_led1: user_led1 { 123 rockchip,pins = 118 rockchip,pins = 124 <4 RK_PD1 RK_F 119 <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; 125 }; 120 }; 126 121 127 user_led2_pin: user-led2-pin { !! 122 user_led2: user_led2 { 128 rockchip,pins = 123 rockchip,pins = 129 <4 RK_PD2 RK_F 124 <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; 130 }; 125 }; 131 126 132 user_led3_pin: user-led3-pin { !! 127 user_led3: user_led3 { 133 rockchip,pins = 128 rockchip,pins = 134 <4 RK_PD6 RK_F 129 <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; 135 }; 130 }; 136 131 137 user_led4_pin: user-led4-pin { !! 132 user_led4: user_led4 { 138 rockchip,pins = 133 rockchip,pins = 139 <1 RK_PA0 RK_F 134 <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>; 140 }; 135 }; 141 136 142 wlan_led_pin: wlan-led-pin { !! 137 wlan_led: wlan_led { 143 rockchip,pins = 138 rockchip,pins = 144 <1 RK_PA1 RK_F 139 <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>; 145 }; 140 }; 146 141 147 bt_led_pin: bt-led-pin { !! 142 bt_led: bt_led { 148 rockchip,pins = 143 rockchip,pins = 149 <1 RK_PA4 RK_F 144 <1 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; 150 }; 145 }; 151 }; 146 }; 152 }; << 153 << 154 &spi1 { << 155 /* On both Low speed and High speed ex << 156 cs-gpios = <0>, <&gpio4 RK_PA6 0>, <&g << 157 status = "okay"; << 158 }; 147 }; 159 148 160 &usbdrd_dwc3_0 { 149 &usbdrd_dwc3_0 { 161 dr_mode = "host"; 150 dr_mode = "host"; 162 }; 151 }; 163 152 164 &usbdrd_dwc3_1 { 153 &usbdrd_dwc3_1 { 165 dr_mode = "host"; 154 dr_mode = "host"; 166 }; 155 }; 167 156 168 &vcc3v3_pcie { 157 &vcc3v3_pcie { 169 gpio = <&gpio1 24 GPIO_ACTIVE_HIGH>; 158 gpio = <&gpio1 24 GPIO_ACTIVE_HIGH>; 170 }; 159 }; 171 160 172 &vcc5v0_host { 161 &vcc5v0_host { 173 gpio = <&gpio4 27 GPIO_ACTIVE_HIGH>; 162 gpio = <&gpio4 27 GPIO_ACTIVE_HIGH>; 174 }; 163 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.