Peter Robinson | 9403f80 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
Manivannan Sadhasivam | 07f7687 | 2018-09-28 00:33:00 +0530 | [diff] [blame] | 2 | /* |
Peter Robinson | 9403f80 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 3 | * Copyright (c) 2018 Linaro Ltd. |
Manivannan Sadhasivam | 07f7687 | 2018-09-28 00:33:00 +0530 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | #include "rk3399-rock960.dtsi" |
Manivannan Sadhasivam | 07f7687 | 2018-09-28 00:33:00 +0530 | [diff] [blame] | 8 | |
| 9 | / { |
| 10 | model = "96boards Rock960"; |
| 11 | compatible = "vamrs,rock960", "rockchip,rk3399"; |
| 12 | |
| 13 | chosen { |
| 14 | stdout-path = "serial2:1500000n8"; |
| 15 | }; |
Peter Robinson | 9403f80 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 16 | |
| 17 | leds { |
| 18 | compatible = "gpio-leds"; |
| 19 | pinctrl-names = "default"; |
| 20 | pinctrl-0 = <&user_led1>, <&user_led2>, <&user_led3>, |
| 21 | <&user_led4>, <&wlan_led>, <&bt_led>; |
| 22 | |
| 23 | user_led1 { |
| 24 | label = "green:user1"; |
| 25 | gpios = <&gpio4 RK_PC2 0>; |
| 26 | linux,default-trigger = "heartbeat"; |
| 27 | }; |
| 28 | |
| 29 | user_led2 { |
| 30 | label = "green:user2"; |
| 31 | gpios = <&gpio4 RK_PC6 0>; |
| 32 | linux,default-trigger = "mmc0"; |
| 33 | }; |
| 34 | |
| 35 | user_led3 { |
| 36 | label = "green:user3"; |
| 37 | gpios = <&gpio4 RK_PD0 0>; |
| 38 | linux,default-trigger = "mmc1"; |
| 39 | }; |
| 40 | |
| 41 | user_led4 { |
| 42 | label = "green:user4"; |
| 43 | gpios = <&gpio4 RK_PD4 0>; |
| 44 | panic-indicator; |
| 45 | linux,default-trigger = "none"; |
| 46 | }; |
| 47 | |
| 48 | wlan_active_led { |
| 49 | label = "yellow:wlan"; |
| 50 | gpios = <&gpio4 RK_PD5 0>; |
| 51 | linux,default-trigger = "phy0tx"; |
| 52 | default-state = "off"; |
| 53 | }; |
| 54 | |
| 55 | bt_active_led { |
| 56 | label = "blue:bt"; |
| 57 | gpios = <&gpio4 RK_PD6 0>; |
| 58 | linux,default-trigger = "hci0-power"; |
| 59 | default-state = "off"; |
| 60 | }; |
| 61 | }; |
| 62 | |
Manivannan Sadhasivam | 07f7687 | 2018-09-28 00:33:00 +0530 | [diff] [blame] | 63 | }; |
| 64 | |
| 65 | &pcie0 { |
| 66 | ep-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>; |
| 67 | }; |
| 68 | |
| 69 | &pinctrl { |
Peter Robinson | 9403f80 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 70 | leds { |
| 71 | user_led1: user_led1 { |
| 72 | rockchip,pins = |
| 73 | <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 74 | }; |
| 75 | |
| 76 | user_led2: user_led2 { |
| 77 | rockchip,pins = |
| 78 | <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; |
| 79 | }; |
| 80 | |
| 81 | user_led3: user_led3 { |
| 82 | rockchip,pins = |
| 83 | <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 84 | }; |
| 85 | |
| 86 | user_led4: user_led4 { |
| 87 | rockchip,pins = |
| 88 | <4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; |
| 89 | }; |
| 90 | |
| 91 | wlan_led: wlan_led { |
| 92 | rockchip,pins = |
| 93 | <4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 94 | }; |
| 95 | |
| 96 | bt_led: bt_led { |
| 97 | rockchip,pins = |
| 98 | <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; |
| 99 | }; |
| 100 | }; |
| 101 | |
Manivannan Sadhasivam | 07f7687 | 2018-09-28 00:33:00 +0530 | [diff] [blame] | 102 | pcie { |
| 103 | pcie_drv: pcie-drv { |
| 104 | rockchip,pins = |
| 105 | <2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 106 | }; |
| 107 | }; |
| 108 | |
| 109 | usb2 { |
| 110 | host_vbus_drv: host-vbus-drv { |
| 111 | rockchip,pins = |
| 112 | <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; |
| 113 | }; |
| 114 | }; |
| 115 | }; |
| 116 | |
Jagan Teki | 167efc2 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 117 | &spi0 { |
| 118 | /* On Low speed expansion (LS-SPI0) */ |
| 119 | status = "okay"; |
| 120 | }; |
| 121 | |
| 122 | &spi4 { |
| 123 | /* On High speed expansion (HS-SPI1) */ |
| 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 | }; |
| 164 | }; |
| 165 | |
Peter Robinson | 9403f80 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 166 | &usbdrd_dwc3_0 { |
| 167 | dr_mode = "otg"; |
| 168 | }; |
| 169 | |
| 170 | &usbdrd_dwc3_1 { |
| 171 | dr_mode = "host"; |
| 172 | }; |
| 173 | |
Manivannan Sadhasivam | 07f7687 | 2018-09-28 00:33:00 +0530 | [diff] [blame] | 174 | &vcc3v3_pcie { |
| 175 | gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>; |
| 176 | }; |
| 177 | |
| 178 | &vcc5v0_host { |
| 179 | gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>; |
| 180 | }; |