Peter Robinson | c91fb87 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
Manivannan Sadhasivam | c967395 | 2018-09-28 00:33:00 +0530 | [diff] [blame] | 2 | /* |
Peter Robinson | c91fb87 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 3 | * Copyright (c) 2018 Linaro Ltd. |
Manivannan Sadhasivam | c967395 | 2018-09-28 00:33:00 +0530 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | #include "rk3399-rock960.dtsi" |
Manivannan Sadhasivam | c967395 | 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 | c91fb87 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 16 | |
| 17 | leds { |
| 18 | compatible = "gpio-leds"; |
| 19 | pinctrl-names = "default"; |
Peter Robinson | 7c79b87 | 2021-07-22 16:20:42 +0100 | [diff] [blame] | 20 | pinctrl-0 = <&user_led1_pin>, <&user_led2_pin>, |
| 21 | <&user_led3_pin>, <&user_led4_pin>, |
| 22 | <&wlan_led_pin>, <&bt_led_pin>; |
Peter Robinson | c91fb87 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 23 | |
Peter Robinson | 7c79b87 | 2021-07-22 16:20:42 +0100 | [diff] [blame] | 24 | user_led1: led-1 { |
Peter Robinson | c91fb87 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 25 | label = "green:user1"; |
| 26 | gpios = <&gpio4 RK_PC2 0>; |
| 27 | linux,default-trigger = "heartbeat"; |
| 28 | }; |
| 29 | |
Peter Robinson | 7c79b87 | 2021-07-22 16:20:42 +0100 | [diff] [blame] | 30 | user_led2: led-2 { |
Peter Robinson | c91fb87 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 31 | label = "green:user2"; |
| 32 | gpios = <&gpio4 RK_PC6 0>; |
| 33 | linux,default-trigger = "mmc0"; |
| 34 | }; |
| 35 | |
Peter Robinson | 7c79b87 | 2021-07-22 16:20:42 +0100 | [diff] [blame] | 36 | user_led3: led-3 { |
Peter Robinson | c91fb87 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 37 | label = "green:user3"; |
| 38 | gpios = <&gpio4 RK_PD0 0>; |
| 39 | linux,default-trigger = "mmc1"; |
| 40 | }; |
| 41 | |
Peter Robinson | 7c79b87 | 2021-07-22 16:20:42 +0100 | [diff] [blame] | 42 | user_led4: led-4 { |
Peter Robinson | c91fb87 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 43 | label = "green:user4"; |
| 44 | gpios = <&gpio4 RK_PD4 0>; |
| 45 | panic-indicator; |
| 46 | linux,default-trigger = "none"; |
| 47 | }; |
| 48 | |
Peter Robinson | 7c79b87 | 2021-07-22 16:20:42 +0100 | [diff] [blame] | 49 | wlan_active_led: led-5 { |
Peter Robinson | c91fb87 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 50 | label = "yellow:wlan"; |
| 51 | gpios = <&gpio4 RK_PD5 0>; |
| 52 | linux,default-trigger = "phy0tx"; |
| 53 | default-state = "off"; |
| 54 | }; |
| 55 | |
Peter Robinson | 7c79b87 | 2021-07-22 16:20:42 +0100 | [diff] [blame] | 56 | bt_active_led: led-6 { |
Peter Robinson | c91fb87 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 57 | label = "blue:bt"; |
| 58 | gpios = <&gpio4 RK_PD6 0>; |
| 59 | linux,default-trigger = "hci0-power"; |
| 60 | default-state = "off"; |
| 61 | }; |
| 62 | }; |
| 63 | |
Manivannan Sadhasivam | c967395 | 2018-09-28 00:33:00 +0530 | [diff] [blame] | 64 | }; |
| 65 | |
Peter Robinson | 7c79b87 | 2021-07-22 16:20:42 +0100 | [diff] [blame] | 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 | |
Manivannan Sadhasivam | c967395 | 2018-09-28 00:33:00 +0530 | [diff] [blame] | 80 | &pcie0 { |
| 81 | ep-gpios = <&gpio2 RK_PA2 GPIO_ACTIVE_HIGH>; |
| 82 | }; |
| 83 | |
| 84 | &pinctrl { |
Peter Robinson | c91fb87 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 85 | leds { |
Peter Robinson | 7c79b87 | 2021-07-22 16:20:42 +0100 | [diff] [blame] | 86 | user_led1_pin: user-led1-pin { |
Peter Robinson | c91fb87 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 87 | rockchip,pins = |
| 88 | <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; |
| 89 | }; |
| 90 | |
Peter Robinson | 7c79b87 | 2021-07-22 16:20:42 +0100 | [diff] [blame] | 91 | user_led2_pin: user-led2-pin { |
Peter Robinson | c91fb87 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 92 | rockchip,pins = |
| 93 | <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; |
| 94 | }; |
| 95 | |
Peter Robinson | 7c79b87 | 2021-07-22 16:20:42 +0100 | [diff] [blame] | 96 | user_led3_pin: user-led3-pin { |
Peter Robinson | c91fb87 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 97 | rockchip,pins = |
| 98 | <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>; |
| 99 | }; |
| 100 | |
Peter Robinson | 7c79b87 | 2021-07-22 16:20:42 +0100 | [diff] [blame] | 101 | user_led4_pin: user-led4-pin { |
Peter Robinson | c91fb87 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 102 | rockchip,pins = |
| 103 | <4 RK_PD4 RK_FUNC_GPIO &pcfg_pull_none>; |
| 104 | }; |
| 105 | |
Peter Robinson | 7c79b87 | 2021-07-22 16:20:42 +0100 | [diff] [blame] | 106 | wlan_led_pin: wlan-led-pin { |
Peter Robinson | c91fb87 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 107 | rockchip,pins = |
| 108 | <4 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 109 | }; |
| 110 | |
Peter Robinson | 7c79b87 | 2021-07-22 16:20:42 +0100 | [diff] [blame] | 111 | bt_led_pin: bt-led-pin { |
Peter Robinson | c91fb87 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 112 | rockchip,pins = |
| 113 | <4 RK_PD6 RK_FUNC_GPIO &pcfg_pull_none>; |
| 114 | }; |
| 115 | }; |
| 116 | |
Manivannan Sadhasivam | c967395 | 2018-09-28 00:33:00 +0530 | [diff] [blame] | 117 | pcie { |
| 118 | pcie_drv: pcie-drv { |
| 119 | rockchip,pins = |
| 120 | <2 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; |
| 121 | }; |
| 122 | }; |
| 123 | |
| 124 | usb2 { |
| 125 | host_vbus_drv: host-vbus-drv { |
| 126 | rockchip,pins = |
| 127 | <4 RK_PD1 RK_FUNC_GPIO &pcfg_pull_none>; |
| 128 | }; |
| 129 | }; |
| 130 | }; |
| 131 | |
Jagan Teki | 5cc2118 | 2020-04-28 15:30:17 +0530 | [diff] [blame] | 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 | }; |
| 141 | |
Peter Robinson | c91fb87 | 2019-07-01 17:05:49 +0100 | [diff] [blame] | 142 | &usbdrd_dwc3_0 { |
| 143 | dr_mode = "otg"; |
| 144 | }; |
| 145 | |
| 146 | &usbdrd_dwc3_1 { |
| 147 | dr_mode = "host"; |
| 148 | }; |
| 149 | |
Manivannan Sadhasivam | c967395 | 2018-09-28 00:33:00 +0530 | [diff] [blame] | 150 | &vcc3v3_pcie { |
| 151 | gpio = <&gpio2 5 GPIO_ACTIVE_HIGH>; |
| 152 | }; |
| 153 | |
| 154 | &vcc5v0_host { |
| 155 | gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>; |
| 156 | }; |