1 // SPDX-License-Identifier: GPL-2.0
3 * dts file for Hisilicon HiKey960 Development Board
5 * Copyright (C) 2016, HiSilicon Ltd.
11 #include "hi3660.dtsi"
12 #include "hikey960-pinctrl.dtsi"
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/interrupt-controller/irq.h>
16 #include <dt-bindings/usb/pd.h>
20 compatible = "hisilicon,hi3660-hikey960", "hisilicon,hi3660";
35 stdout-path = "serial6:115200n8";
39 device_type = "memory";
40 /* rewrite this at bootloader */
41 reg = <0x0 0x0 0x0 0x0>;
50 compatible = "ramoops";
51 reg = <0x0 0x32000000 0x0 0x00100000>;
52 record-size = <0x00020000>;
53 console-size = <0x00020000>;
54 ftrace-size = <0x00020000>;
58 reboot-mode-syscon@32100000 {
59 compatible = "syscon", "simple-mfd";
60 reg = <0x0 0x32100000 0x0 0x00001000>;
63 compatible = "syscon-reboot-mode";
66 mode-normal = <0x77665501>;
67 mode-bootloader = <0x77665500>;
68 mode-recovery = <0x77665502>;
73 compatible = "gpio-keys";
74 pinctrl-names = "default";
75 pinctrl-0 = <&pwr_key_pmx_func &pwr_key_cfg_func>;
79 gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
81 linux,code = <KEY_POWER>;
86 compatible = "gpio-leds";
89 label = "green:user1";
90 /* gpio_150_user_led1 */
91 gpios = <&gpio18 6 0>;
92 linux,default-trigger = "heartbeat";
96 label = "green:user2";
97 /* gpio_151_user_led2 */
98 gpios = <&gpio18 7 0>;
99 linux,default-trigger = "none";
103 label = "green:user3";
104 /* gpio_189_user_led3 */
105 gpios = <&gpio23 5 0>;
106 linux,default-trigger = "mmc0";
110 label = "green:user4";
111 /* gpio_190_user_led4 */
112 gpios = <&gpio23 6 0>;
114 linux,default-trigger = "none";
118 label = "yellow:wlan";
119 /* gpio_205_wifi_active */
120 gpios = <&gpio25 5 0>;
121 linux,default-trigger = "phy0tx";
122 default-state = "off";
127 gpios = <&gpio25 7 0>;
128 /* gpio_207_user_led1 */
129 linux,default-trigger = "hci0-power";
130 default-state = "off";
134 pmic: pmic@fff34000 {
135 compatible = "hisilicon,hi6421v530-pmic";
136 reg = <0x0 0xfff34000 0x0 0x1000>;
137 interrupt-controller;
138 #interrupt-cells = <2>;
141 ldo3: LDO3 { /* HDMI */
142 regulator-name = "VOUT3_1V85";
143 regulator-min-microvolt = <1800000>;
144 regulator-max-microvolt = <2200000>;
145 regulator-enable-ramp-delay = <120>;
148 ldo9: LDO9 { /* SDCARD I/O */
149 regulator-name = "VOUT9_1V8_2V95";
150 regulator-min-microvolt = <1750000>;
151 regulator-max-microvolt = <3300000>;
152 regulator-enable-ramp-delay = <240>;
155 ldo11: LDO11 { /* Low Speed Connector */
156 regulator-name = "VOUT11_1V8_2V95";
157 regulator-min-microvolt = <1750000>;
158 regulator-max-microvolt = <3300000>;
159 regulator-enable-ramp-delay = <240>;
162 ldo15: LDO15 { /* UFS VCC */
163 regulator-name = "VOUT15_3V0";
164 regulator-min-microvolt = <1750000>;
165 regulator-max-microvolt = <3000000>;
168 regulator-enable-ramp-delay = <120>;
171 ldo16: LDO16 { /* SD VDD */
172 regulator-name = "VOUT16_2V95";
173 regulator-min-microvolt = <1750000>;
174 regulator-max-microvolt = <3000000>;
175 regulator-enable-ramp-delay = <360>;
180 wlan_en: wlan-en-1-8v {
181 compatible = "regulator-fixed";
182 regulator-name = "wlan-en-regulator";
183 regulator-min-microvolt = <1800000>;
184 regulator-max-microvolt = <1800000>;
186 /* GPIO_051_WIFI_EN */
189 /* WLAN card specific delay */
190 startup-delay-us = <70000>;
196 compatible = "linaro,optee-tz";
203 * Legend: proper name = the GPIO line is used as GPIO
204 * NC = not connected (pin out but not routed from the chip to
205 * anything the board)
206 * "[PER]" = pin is muxed for [peripheral] (not GPIO)
207 * "" = no idea, schematic doesn't say, could be
208 * unrouted (not connected to any external pin)
209 * LSEC = Low Speed External Connector
210 * HSEC = High Speed External Connector
212 * Line names are taken from "HiKey 960 Board ver A" schematics
213 * from Huawei. The 40 pin low speed expansion connector is named
216 * For the lines routed to the external connectors the
217 * lines are named after the 96Boards CE Specification 1.0,
218 * Appendix "Expansion Connector Signal Description".
220 * When the 96Board naming of a line and the schematic name of
221 * the same line are in conflict, the 96Board specification
222 * takes precedence, which means that the external UART on the
223 * LSEC is named UART0 while the schematic and SoC names this
224 * UART3. This is only for the informational lines i.e. "[FOO]",
225 * the GPIO named lines "GPIO-A" thru "GPIO-L" are the only
226 * ones actually used for GPIO.
229 /* GPIO_000-GPIO_007 */
232 "TP901", /* TEST_MODE connected to TP901 */
242 /* GPIO_008-GPIO_015 */
254 /* GPIO_016-GPIO_023 */
257 "GPIO-J", /* LSEC pin 32: GPIO_019 */
259 "GPIO-L", /* LSEC pin 34: GPIO_021 */
260 "GPIO_022_UFSBUCK_INT_N",
261 "GPIO-G"; /* LSEC pin 29: LCD_TE0 */
265 /* GPIO_024-GPIO_031 */
266 /* The rail from pin BK36 is named LCD_TE0, we assume to be muxed as GPIO for GPIO-G */
268 "[CSI0_MCLK]", /* HSEC pin 15: ISP_CCLK0_MCAM */
269 "[CSI1_MCLK]", /* HSEC pin 17: ISP_CCLK1_SCAM */
271 "[I2C2_SCL]", /* HSEC pin 32: ISP_SCL0 */
272 "[I2C2_SDA]", /* HSEC pin 34: ISP_SDA0 */
273 "[I2C3_SCL]", /* HSEC pin 36: ISP_SCL1 */
274 "[I2C3_SDA]", /* HSEC pin 38: ISP_SDA1 */
279 /* GPIO_032-GPIO_039 */
282 "PWR_BTN_N", /* LSEC pin 4: GPIO_034_PWRON_DET */
284 "GPIO_036_USB_HUB_RESET",
289 /* GPIO_040-GPIO_047 */
291 "GPIO-H", /* LSEC pin 30: GPIO_040_LCD_RST_N */
293 "TP904", /* Test point */
294 "TP905", /* Test point */
296 "GPIO_046_HUB_VDD33_EN",
301 /* GPIO_048-GPIO_055 */
305 "GPIO-I", /* LSEC pin 31: GPIO_052_CAM0_RST_N */
307 * These two pins should be used for SD(IO) data according to the
308 * 96boards specification but seems to be repurposed for a IRDA UART.
309 * They are however named according to the spec.
311 "[SD_DAT1]", /* HSEC pin 3: UART0_IRDA_RXD */
312 "[SD_DAT2]", /* HSEC pin 5: UART0_IRDA_TXD */
313 "[UART1_RXD]"; /* LSEC pin 13: DEBUG_UART6_RXD */
317 /* GPIO_056-GPIO_063 */
319 "[UART1_TXD]", /* LSEC pin 11: DEBUG_UART6_TXD */
320 "[UART0_CTS]", /* LSEC pin 3: UART3_CTS_N */
321 "[UART0_RTS]", /* LSEC pin 9: UART3_RTS_N */
322 "[UART0_RXD]", /* LSEC pin 7: UART3_RXD */
323 "[UART0_TXD]", /* LSEC pin 5: UART3_TXD */
324 "[SOC_BT_UART4_CTS_N]",
325 "[SOC_BT_UART4_RTS_N]",
326 "[SOC_BT_UART4_RXD]";
330 /* GPIO_064-GPIO_071 */
332 "[SOC_BT_UART4_TXD]",
342 /* GPIO_072-GPIO_079 */
345 "GPIO-K", /* LSEC pin 33: GPIO_075_CAM1_RST_N */
346 "NC", "NC", "NC", "NC";
350 /* GPIO_080-GPIO_087 */
351 gpio-line-names = "NC", "NC", "NC", "NC", "NC", "NC", "NC", "NC";
355 /* GPIO_088-GPIO_095 */
359 "NC", "NC", "NC", "NC", "NC", "NC";
363 /* GPIO_096-GPIO_103 */
364 gpio-line-names = "NC", "NC", "NC", "", "", "", "", "NC";
368 /* GPIO_104-GPIO_111 */
369 gpio-line-names = "NC", "NC", "NC", "NC", "NC", "NC", "NC", "NC";
373 /* GPIO_112-GPIO_119 */
374 gpio-line-names = "NC", "NC", "NC", "NC", "NC", "NC", "NC", "NC";
378 /* GPIO_120-GPIO_127 */
380 "NC", "NC", "NC", "NC", "NC", "NC",
382 "TP902"; /* GPIO_127_JTAG_SEL0 */
386 /* GPIO_128-GPIO_135 */
387 gpio-line-names = "", "", "", "", "", "", "", "";
391 /* GPIO_136-GPIO_143 */
392 gpio-line-names = "", "", "", "", "", "", "", "";
396 /* GPIO_144-GPIO_151 */
400 "[SPI1_SCLK]", /* HSEC pin 9: GPIO_146_SPI3_CLK */
401 "[SPI1_DIN]", /* HSEC pin 11: GPIO_147_SPI3_DI */
402 "[SPI1_DOUT]", /* HSEC pin 1: GPIO_148_SPI3_DO */
403 "[SPI1_CS]", /* HSEC pin 7: GPIO_149_SPI3_CS0_N */
404 "GPIO_150_USER_LED1",
405 "GPIO_151_USER_LED2";
409 /* GPIO_152-GPIO_159 */
410 gpio-line-names = "NC", "NC", "NC", "NC", "", "", "", "";
414 /* GPIO_160-GPIO_167 */
426 /* GPIO_168-GPIO_175 */
438 /* GPIO_176-GPIO_183 */
440 "[GPIO_176_PMU_PWR_HOLD]",
443 "GPIO_179_WL_WAKEUP_AP",
446 "GPIO-F", /* LSEC pin 28: LCD_BL_PWM */
447 "[I2C0_SCL]"; /* LSEC pin 15 */
451 /* GPIO_184-GPIO_191 */
453 "[I2C0_SDA]", /* LSEC pin 17 */
454 "[I2C1_SCL]", /* Actual SoC I2C1 */
455 "[I2C1_SDA]", /* Actual SoC I2C1 */
456 "[I2C1_SCL]", /* LSEC pin 19: I2C7_SCL */
457 "[I2C1_SDA]", /* LSEC pin 21: I2C7_SDA */
458 "GPIO_189_USER_LED3",
459 "GPIO_190_USER_LED4",
464 /* GPIO_192-GPIO_199 */
466 "[PCM_DI]", /* LSEC pin 22: GPIO_192_I2S0_DI */
467 "[PCM_DO]", /* LSEC pin 20: GPIO_193_I2S0_DO */
468 "[PCM_CLK]", /* LSEC pin 18: GPIO_194_I2S0_XCLK */
469 "[PCM_FS]", /* LSEC pin 16: GPIO_195_I2S0_XFS */
470 "[GPIO_196_I2S2_DI]",
471 "[GPIO_197_I2S2_DO]",
472 "[GPIO_198_I2S2_XCLK]",
473 "[GPIO_199_I2S2_XFS]";
477 /* GPIO_200-GPIO_207 */
481 "GPIO_202_VBUS_TYPEC",
483 "GPIO_204_PMU12_IRQ_N",
484 "GPIO_205_WIFI_ACTIVE",
485 "GPIO_206_USBSW_SEL",
486 "GPIO_207_BT_ACTIVE";
490 /* GPIO_208-GPIO_215 */
492 "GPIO-A", /* LSEC pin 23: GPIO_208 */
493 "GPIO-B", /* LSEC pin 24: GPIO_209 */
494 "GPIO-C", /* LSEC pin 25: GPIO_210 */
495 "GPIO-D", /* LSEC pin 26: GPIO_211 */
496 "GPIO-E", /* LSEC pin 27: GPIO_212 */
499 "[SPI0_CLK]"; /* LSEC pin 8: SPI2_CLK */
503 /* GPIO_216-GPIO_223 */
505 "[SPI0_DIN]", /* LSEC pin 10: SPI2_DI */
506 "[SPI0_DOUT]", /* LSEC pin 14: SPI2_DO */
507 "[SPI0_CS]", /* LSEC pin 12: SPI2_CS0_N */
516 /* GPIO_224-GPIO_231 */
518 "", "", "", "", "", "", "", "";
522 /* On Low speed expansion */
530 rt1711h: rt1711h@4e {
531 compatible = "richtek,rt1711h";
534 interrupt-parent = <&gpio27>;
535 interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
536 pinctrl-names = "default";
537 pinctrl-0 = <&usb_cfg_func>;
540 compatible = "usb-c-connector";
544 try-power-role = "sink";
545 source-pdos = <PDO_FIXED(5000, 500, PDO_FIXED_USB_COMM)>;
546 sink-pdos = <PDO_FIXED(5000, 500, PDO_FIXED_USB_COMM)
547 PDO_VAR(5000, 5000, 1000)>;
548 op-sink-microwatt = <10000000>;
551 #address-cells = <1>;
555 usb_con_ss: endpoint {
556 remote-endpoint = <&dwc3_ss>;
562 #address-cells = <1>;
565 rt1711h_ep: endpoint@0 {
567 remote-endpoint = <&dwc3_role_switch>;
572 adv7533: adv7533@39 {
574 compatible = "adi,adv7533";
578 #address-cells = <1>;
591 /* On Low speed expansion */
597 /* On Low speed expansion */
606 compatible = "ti,wl1837-st";
607 enable-gpios = <&gpio15 6 GPIO_ACTIVE_HIGH>;
608 max-speed = <3000000>;
613 /* On Low speed expansion */
619 /* On Low speed expansion */
625 /* On High speed expansion */
638 cd-gpios = <&gpio25 3 GPIO_ACTIVE_LOW>;
639 pinctrl-names = "default";
640 pinctrl-0 = <&sd_pmx_func
643 vmmc-supply = <&ldo16>;
644 vqmmc-supply = <&ldo9>;
653 pinctrl-names = "default";
654 pinctrl-0 = <&sdio_pmx_func
658 vmmc-supply = <&wlan_en>;
662 compatible = "ti,wl1837";
663 reg = <2>; /* sdio func num */
664 /* WL_IRQ, GPIO_179_WL_WAKEUP_AP */
665 interrupt-parent = <&gpio22>;
666 interrupts = <3 IRQ_TYPE_EDGE_RISING>;
672 maximum-speed = "super-speed";
674 snps,dis-del-phy-power-chg-quirk;
675 snps,lfps_filter_quirk;
676 snps,dis_u2_susphy_quirk;
677 snps,dis_u3_susphy_quirk;
678 snps,tx_de_emphasis_quirk;
679 snps,tx_de_emphasis = <1>;
680 snps,dis_enblslpm_quirk;
681 snps,gctl-reset-quirk;
683 role-switch-default-mode = "host";
685 #address-cells = <1>;
687 dwc3_role_switch: endpoint@0 {
689 remote-endpoint = <&rt1711h_ep>;
692 dwc3_ss: endpoint@1 {
694 remote-endpoint = <&usb_con_ss>;