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 << 17 leds { << 18 compatible = "gpio-leds"; << 19 pinctrl-names = "default"; << 20 pinctrl-0 = <&user_led1_pin>, << 21 <&user_led3_pin>, << 22 <&wlan_led_pin>, < << 23 << 24 user_led1: led-1 { << 25 label = "green:user1"; << 26 gpios = <&gpio4 RK_PC2 << 27 linux,default-trigger << 28 }; << 29 << 30 user_led2: led-2 { << 31 label = "green:user2"; << 32 gpios = <&gpio4 RK_PC6 << 33 linux,default-trigger << 34 }; << 35 << 36 user_led3: led-3 { << 37 label = "green:user3"; << 38 gpios = <&gpio4 RK_PD0 << 39 linux,default-trigger << 40 }; << 41 << 42 user_led4: led-4 { << 43 label = "green:user4"; << 44 gpios = <&gpio4 RK_PD4 << 45 panic-indicator; << 46 linux,default-trigger << 47 }; << 48 << 49 wlan_active_led: led-5 { << 50 label = "yellow:wlan"; << 51 gpios = <&gpio4 RK_PD5 << 52 linux,default-trigger << 53 default-state = "off"; << 54 }; << 55 << 56 bt_active_led: led-6 { << 57 label = "blue:bt"; << 58 gpios = <&gpio4 RK_PD6 << 59 linux,default-trigger << 60 default-state = "off"; << 61 }; << 62 }; << 63 << 64 }; << 65 << 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 }; 16 }; 79 17 80 &pcie0 { 18 &pcie0 { 81 ep-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_ 19 ep-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>; 82 }; 20 }; 83 21 84 &pinctrl { 22 &pinctrl { 85 leds { << 86 user_led1_pin: user-led1-pin { << 87 rockchip,pins = << 88 <4 RK_PC2 RK_F << 89 }; << 90 << 91 user_led2_pin: user-led2-pin { << 92 rockchip,pins = << 93 <4 RK_PC6 RK_F << 94 }; << 95 << 96 user_led3_pin: user-led3-pin { << 97 rockchip,pins = << 98 <4 RK_PD0 RK_F << 99 }; << 100 << 101 user_led4_pin: user-led4-pin { << 102 rockchip,pins = << 103 <4 RK_PD4 RK_F << 104 }; << 105 << 106 wlan_led_pin: wlan-led-pin { << 107 rockchip,pins = << 108 <4 RK_PD5 RK_F << 109 }; << 110 << 111 bt_led_pin: bt-led-pin { << 112 rockchip,pins = << 113 <4 RK_PD6 RK_F << 114 }; << 115 }; << 116 << 117 pcie { 23 pcie { 118 pcie_drv: pcie-drv { 24 pcie_drv: pcie-drv { 119 rockchip,pins = 25 rockchip,pins = 120 <2 RK_PA5 RK_F 26 <2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; 121 }; 27 }; 122 }; 28 }; 123 29 124 usb2 { 30 usb2 { 125 host_vbus_drv: host-vbus-drv { 31 host_vbus_drv: host-vbus-drv { 126 rockchip,pins = 32 rockchip,pins = 127 <4 RK_PD1 RK_F 33 <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; 128 }; 34 }; 129 }; 35 }; 130 }; << 131 << 132 &spi0 { << 133 /* On Low speed expansion (LS-SPI0) */ << 134 status = "okay"; << 135 }; << 136 << 137 &spi4 { << 138 /* On High speed expansion (HS-SPI1) * << 139 status = "okay"; << 140 }; 36 }; 141 37 142 &usbdrd_dwc3_0 { 38 &usbdrd_dwc3_0 { 143 dr_mode = "otg"; 39 dr_mode = "otg"; 144 }; 40 }; 145 41 146 &usbdrd_dwc3_1 { 42 &usbdrd_dwc3_1 { 147 dr_mode = "host"; 43 dr_mode = "host"; 148 }; 44 }; 149 45 150 &vcc3v3_pcie { 46 &vcc3v3_pcie { 151 gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>; 47 gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>; 152 }; 48 }; 153 49 154 &vcc5v0_host { 50 &vcc5v0_host { 155 gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>; 51 gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>; 156 }; 52 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.