1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 2 /* 3 * Copyright (c) 2018 Linaro Ltd. 3 * Copyright (c) 2018 Linaro Ltd. 4 */ 4 */ 5 5 6 /dts-v1/; 6 /dts-v1/; 7 #include "rk3399-rock960.dtsi" 7 #include "rk3399-rock960.dtsi" 8 8 9 / { 9 / { 10 model = "96boards Rock960"; 10 model = "96boards Rock960"; 11 compatible = "vamrs,rock960", "rockchi 11 compatible = "vamrs,rock960", "rockchip,rk3399"; 12 12 13 chosen { 13 chosen { 14 stdout-path = "serial2:1500000 14 stdout-path = "serial2:1500000n8"; 15 }; 15 }; 16 16 17 leds { 17 leds { 18 compatible = "gpio-leds"; 18 compatible = "gpio-leds"; 19 pinctrl-names = "default"; 19 pinctrl-names = "default"; 20 pinctrl-0 = <&user_led1_pin>, !! 20 pinctrl-0 = <&user_led1>, <&user_led2>, <&user_led3>, 21 <&user_led3_pin>, !! 21 <&user_led4>, <&wlan_led>, <&bt_led>; 22 <&wlan_led_pin>, < << 23 22 24 user_led1: led-1 { !! 23 user_led1 { 25 label = "green:user1"; 24 label = "green:user1"; 26 gpios = <&gpio4 RK_PC2 25 gpios = <&gpio4 RK_PC2 0>; 27 linux,default-trigger 26 linux,default-trigger = "heartbeat"; 28 }; 27 }; 29 28 30 user_led2: led-2 { !! 29 user_led2 { 31 label = "green:user2"; 30 label = "green:user2"; 32 gpios = <&gpio4 RK_PC6 31 gpios = <&gpio4 RK_PC6 0>; 33 linux,default-trigger 32 linux,default-trigger = "mmc0"; 34 }; 33 }; 35 34 36 user_led3: led-3 { !! 35 user_led3 { 37 label = "green:user3"; 36 label = "green:user3"; 38 gpios = <&gpio4 RK_PD0 37 gpios = <&gpio4 RK_PD0 0>; 39 linux,default-trigger 38 linux,default-trigger = "mmc1"; 40 }; 39 }; 41 40 42 user_led4: led-4 { !! 41 user_led4 { 43 label = "green:user4"; 42 label = "green:user4"; 44 gpios = <&gpio4 RK_PD4 43 gpios = <&gpio4 RK_PD4 0>; 45 panic-indicator; 44 panic-indicator; 46 linux,default-trigger 45 linux,default-trigger = "none"; 47 }; 46 }; 48 47 49 wlan_active_led: led-5 { !! 48 wlan_active_led { 50 label = "yellow:wlan"; 49 label = "yellow:wlan"; 51 gpios = <&gpio4 RK_PD5 50 gpios = <&gpio4 RK_PD5 0>; 52 linux,default-trigger 51 linux,default-trigger = "phy0tx"; 53 default-state = "off"; 52 default-state = "off"; 54 }; 53 }; 55 54 56 bt_active_led: led-6 { !! 55 bt_active_led { 57 label = "blue:bt"; 56 label = "blue:bt"; 58 gpios = <&gpio4 RK_PD6 57 gpios = <&gpio4 RK_PD6 0>; 59 linux,default-trigger 58 linux,default-trigger = "hci0-power"; 60 default-state = "off"; 59 default-state = "off"; 61 }; 60 }; 62 }; 61 }; 63 62 64 }; 63 }; 65 64 66 &cpu_alert0 { << 67 temperature = <65000>; << 68 }; << 69 << 70 &cpu_thermal { << 71 sustainable-power = <1550>; << 72 << 73 cooling-maps { << 74 map0 { << 75 trip = <&cpu_alert1>; << 76 }; << 77 }; << 78 }; << 79 << 80 &pcie0 { 65 &pcie0 { 81 ep-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_ 66 ep-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>; 82 }; 67 }; 83 68 84 &pinctrl { 69 &pinctrl { 85 leds { 70 leds { 86 user_led1_pin: user-led1-pin { !! 71 user_led1: user_led1 { 87 rockchip,pins = 72 rockchip,pins = 88 <4 RK_PC2 RK_F 73 <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; 89 }; 74 }; 90 75 91 user_led2_pin: user-led2-pin { !! 76 user_led2: user_led2 { 92 rockchip,pins = 77 rockchip,pins = 93 <4 RK_PC6 RK_F 78 <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; 94 }; 79 }; 95 80 96 user_led3_pin: user-led3-pin { !! 81 user_led3: user_led3 { 97 rockchip,pins = 82 rockchip,pins = 98 <4 RK_PD0 RK_F 83 <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; 99 }; 84 }; 100 85 101 user_led4_pin: user-led4-pin { !! 86 user_led4: user_led4 { 102 rockchip,pins = 87 rockchip,pins = 103 <4 RK_PD4 RK_F 88 <4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; 104 }; 89 }; 105 90 106 wlan_led_pin: wlan-led-pin { !! 91 wlan_led: wlan_led { 107 rockchip,pins = 92 rockchip,pins = 108 <4 RK_PD5 RK_F 93 <4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; 109 }; 94 }; 110 95 111 bt_led_pin: bt-led-pin { !! 96 bt_led: bt_led { 112 rockchip,pins = 97 rockchip,pins = 113 <4 RK_PD6 RK_F 98 <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; 114 }; 99 }; 115 }; 100 }; 116 101 117 pcie { 102 pcie { 118 pcie_drv: pcie-drv { 103 pcie_drv: pcie-drv { 119 rockchip,pins = 104 rockchip,pins = 120 <2 RK_PA5 RK_F 105 <2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; 121 }; 106 }; 122 }; 107 }; 123 108 124 usb2 { 109 usb2 { 125 host_vbus_drv: host-vbus-drv { 110 host_vbus_drv: host-vbus-drv { 126 rockchip,pins = 111 rockchip,pins = 127 <4 RK_PD1 RK_F 112 <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; 128 }; 113 }; 129 }; 114 }; 130 }; 115 }; 131 116 132 &spi0 { 117 &spi0 { 133 /* On Low speed expansion (LS-SPI0) */ 118 /* On Low speed expansion (LS-SPI0) */ 134 status = "okay"; 119 status = "okay"; 135 }; 120 }; 136 121 137 &spi4 { 122 &spi4 { 138 /* On High speed expansion (HS-SPI1) * 123 /* On High speed expansion (HS-SPI1) */ 139 status = "okay"; 124 status = "okay"; >> 125 }; >> 126 >> 127 &thermal_zones { >> 128 cpu_thermal: cpu { >> 129 polling-delay-passive = <100>; >> 130 polling-delay = <1000>; >> 131 thermal-sensors = <&tsadc 0>; >> 132 sustainable-power = <1550>; >> 133 >> 134 trips { >> 135 cpu_alert0: cpu_alert0 { >> 136 temperature = <65000>; >> 137 hysteresis = <2000>; >> 138 type = "passive"; >> 139 }; >> 140 >> 141 cpu_alert1: cpu_alert1 { >> 142 temperature = <75000>; >> 143 hysteresis = <2000>; >> 144 type = "passive"; >> 145 }; >> 146 >> 147 cpu_crit: cpu_crit { >> 148 temperature = <95000>; >> 149 hysteresis = <2000>; >> 150 type = "critical"; >> 151 }; >> 152 }; >> 153 >> 154 cooling-maps { >> 155 map0 { >> 156 >> 157 trip = <&cpu_alert1>; >> 158 cooling-device = >> 159 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, >> 160 <&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; >> 161 }; >> 162 }; >> 163 }; 140 }; 164 }; 141 165 142 &usbdrd_dwc3_0 { 166 &usbdrd_dwc3_0 { 143 dr_mode = "otg"; 167 dr_mode = "otg"; 144 }; 168 }; 145 169 146 &usbdrd_dwc3_1 { 170 &usbdrd_dwc3_1 { 147 dr_mode = "host"; 171 dr_mode = "host"; 148 }; 172 }; 149 173 150 &vcc3v3_pcie { 174 &vcc3v3_pcie { 151 gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>; 175 gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>; 152 }; 176 }; 153 177 154 &vcc5v0_host { 178 &vcc5v0_host { 155 gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>; 179 gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>; 156 }; 180 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.