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>
19 compatible = "hisilicon,hi3660-hikey960", "hisilicon,hi3660";
34 stdout-path = "serial6:115200n8";
38 device_type = "memory";
39 /* rewrite this at bootloader */
40 reg = <0x0 0x0 0x0 0x0>;
49 compatible = "ramoops";
50 reg = <0x0 0x32000000 0x0 0x00100000>;
51 record-size = <0x00020000>;
52 console-size = <0x00020000>;
53 ftrace-size = <0x00020000>;
57 reboot-mode-syscon@32100000 {
58 compatible = "syscon", "simple-mfd";
59 reg = <0x0 0x32100000 0x0 0x00001000>;
62 compatible = "syscon-reboot-mode";
65 mode-normal = <0x77665501>;
66 mode-bootloader = <0x77665500>;
67 mode-recovery = <0x77665502>;
72 compatible = "gpio-keys";
73 pinctrl-names = "default";
74 pinctrl-0 = <&pwr_key_pmx_func &pwr_key_cfg_func>;
78 gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_POWER>;
85 compatible = "gpio-leds";
88 label = "green:user1";
89 /* gpio_150_user_led1 */
90 gpios = <&gpio18 6 0>;
91 linux,default-trigger = "heartbeat";
95 label = "green:user2";
96 /* gpio_151_user_led2 */
97 gpios = <&gpio18 7 0>;
98 linux,default-trigger = "none";
102 label = "green:user3";
103 /* gpio_189_user_led3 */
104 gpios = <&gpio23 5 0>;
105 linux,default-trigger = "mmc0";
109 label = "green:user4";
110 /* gpio_190_user_led4 */
111 gpios = <&gpio23 6 0>;
113 linux,default-trigger = "none";
117 label = "yellow:wlan";
118 /* gpio_205_wifi_active */
119 gpios = <&gpio25 5 0>;
120 linux,default-trigger = "phy0tx";
121 default-state = "off";
126 gpios = <&gpio25 7 0>;
127 /* gpio_207_user_led1 */
128 linux,default-trigger = "hci0-power";
129 default-state = "off";
133 pmic: pmic@fff34000 {
134 compatible = "hisilicon,hi6421v530-pmic";
135 reg = <0x0 0xfff34000 0x0 0x1000>;
136 interrupt-controller;
137 #interrupt-cells = <2>;
140 ldo3: LDO3 { /* HDMI */
141 regulator-name = "VOUT3_1V85";
142 regulator-min-microvolt = <1800000>;
143 regulator-max-microvolt = <2200000>;
144 regulator-enable-ramp-delay = <120>;
147 ldo9: LDO9 { /* SDCARD I/O */
148 regulator-name = "VOUT9_1V8_2V95";
149 regulator-min-microvolt = <1750000>;
150 regulator-max-microvolt = <3300000>;
151 regulator-enable-ramp-delay = <240>;
154 ldo11: LDO11 { /* Low Speed Connector */
155 regulator-name = "VOUT11_1V8_2V95";
156 regulator-min-microvolt = <1750000>;
157 regulator-max-microvolt = <3300000>;
158 regulator-enable-ramp-delay = <240>;
161 ldo15: LDO15 { /* UFS VCC */
162 regulator-name = "VOUT15_3V0";
163 regulator-min-microvolt = <1750000>;
164 regulator-max-microvolt = <3000000>;
167 regulator-enable-ramp-delay = <120>;
170 ldo16: LDO16 { /* SD VDD */
171 regulator-name = "VOUT16_2V95";
172 regulator-min-microvolt = <1750000>;
173 regulator-max-microvolt = <3000000>;
174 regulator-enable-ramp-delay = <360>;
179 wlan_en: wlan-en-1-8v {
180 compatible = "regulator-fixed";
181 regulator-name = "wlan-en-regulator";
182 regulator-min-microvolt = <1800000>;
183 regulator-max-microvolt = <1800000>;
185 /* GPIO_051_WIFI_EN */
188 /* WLAN card specific delay */
189 startup-delay-us = <70000>;
195 compatible = "linaro,optee-tz";
202 * Legend: proper name = the GPIO line is used as GPIO
203 * NC = not connected (pin out but not routed from the chip to
204 * anything the board)
205 * "[PER]" = pin is muxed for [peripheral] (not GPIO)
206 * "" = no idea, schematic doesn't say, could be
207 * unrouted (not connected to any external pin)
208 * LSEC = Low Speed External Connector
209 * HSEC = High Speed External Connector
211 * Line names are taken from "HiKey 960 Board ver A" schematics
212 * from Huawei. The 40 pin low speed expansion connector is named
215 * For the lines routed to the external connectors the
216 * lines are named after the 96Boards CE Specification 1.0,
217 * Appendix "Expansion Connector Signal Description".
219 * When the 96Board naming of a line and the schematic name of
220 * the same line are in conflict, the 96Board specification
221 * takes precedence, which means that the external UART on the
222 * LSEC is named UART0 while the schematic and SoC names this
223 * UART3. This is only for the informational lines i.e. "[FOO]",
224 * the GPIO named lines "GPIO-A" thru "GPIO-L" are the only
225 * ones actually used for GPIO.
228 /* GPIO_000-GPIO_007 */
231 "TP901", /* TEST_MODE connected to TP901 */
241 /* GPIO_008-GPIO_015 */
253 /* GPIO_016-GPIO_023 */
256 "GPIO-J", /* LSEC pin 32: GPIO_019 */
258 "GPIO-L", /* LSEC pin 34: GPIO_021 */
259 "GPIO_022_UFSBUCK_INT_N",
260 "GPIO-G"; /* LSEC pin 29: LCD_TE0 */
264 /* GPIO_024-GPIO_031 */
265 /* The rail from pin BK36 is named LCD_TE0, we assume to be muxed as GPIO for GPIO-G */
267 "[CSI0_MCLK]", /* HSEC pin 15: ISP_CCLK0_MCAM */
268 "[CSI1_MCLK]", /* HSEC pin 17: ISP_CCLK1_SCAM */
270 "[I2C2_SCL]", /* HSEC pin 32: ISP_SCL0 */
271 "[I2C2_SDA]", /* HSEC pin 34: ISP_SDA0 */
272 "[I2C3_SCL]", /* HSEC pin 36: ISP_SCL1 */
273 "[I2C3_SDA]", /* HSEC pin 38: ISP_SDA1 */
278 /* GPIO_032-GPIO_039 */
281 "PWR_BTN_N", /* LSEC pin 4: GPIO_034_PWRON_DET */
283 "GPIO_036_USB_HUB_RESET",
288 /* GPIO_040-GPIO_047 */
290 "GPIO-H", /* LSEC pin 30: GPIO_040_LCD_RST_N */
292 "TP904", /* Test point */
293 "TP905", /* Test point */
295 "GPIO_046_HUB_VDD33_EN",
300 /* GPIO_048-GPIO_055 */
304 "GPIO-I", /* LSEC pin 31: GPIO_052_CAM0_RST_N */
306 * These two pins should be used for SD(IO) data according to the
307 * 96boards specification but seems to be repurposed for a IRDA UART.
308 * They are however named according to the spec.
310 "[SD_DAT1]", /* HSEC pin 3: UART0_IRDA_RXD */
311 "[SD_DAT2]", /* HSEC pin 5: UART0_IRDA_TXD */
312 "[UART1_RXD]"; /* LSEC pin 13: DEBUG_UART6_RXD */
316 /* GPIO_056-GPIO_063 */
318 "[UART1_TXD]", /* LSEC pin 11: DEBUG_UART6_TXD */
319 "[UART0_CTS]", /* LSEC pin 3: UART3_CTS_N */
320 "[UART0_RTS]", /* LSEC pin 9: UART3_RTS_N */
321 "[UART0_RXD]", /* LSEC pin 7: UART3_RXD */
322 "[UART0_TXD]", /* LSEC pin 5: UART3_TXD */
323 "[SOC_BT_UART4_CTS_N]",
324 "[SOC_BT_UART4_RTS_N]",
325 "[SOC_BT_UART4_RXD]";
329 /* GPIO_064-GPIO_071 */
331 "[SOC_BT_UART4_TXD]",
341 /* GPIO_072-GPIO_079 */
344 "GPIO-K", /* LSEC pin 33: GPIO_075_CAM1_RST_N */
345 "NC", "NC", "NC", "NC";
349 /* GPIO_080-GPIO_087 */
350 gpio-line-names = "NC", "NC", "NC", "NC", "NC", "NC", "NC", "NC";
354 /* GPIO_088-GPIO_095 */
358 "NC", "NC", "NC", "NC", "NC", "NC";
362 /* GPIO_096-GPIO_103 */
363 gpio-line-names = "NC", "NC", "NC", "", "", "", "", "NC";
367 /* GPIO_104-GPIO_111 */
368 gpio-line-names = "NC", "NC", "NC", "NC", "NC", "NC", "NC", "NC";
372 /* GPIO_112-GPIO_119 */
373 gpio-line-names = "NC", "NC", "NC", "NC", "NC", "NC", "NC", "NC";
377 /* GPIO_120-GPIO_127 */
379 "NC", "NC", "NC", "NC", "NC", "NC",
381 "TP902"; /* GPIO_127_JTAG_SEL0 */
385 /* GPIO_128-GPIO_135 */
386 gpio-line-names = "", "", "", "", "", "", "", "";
390 /* GPIO_136-GPIO_143 */
391 gpio-line-names = "", "", "", "", "", "", "", "";
395 /* GPIO_144-GPIO_151 */
399 "[SPI1_SCLK]", /* HSEC pin 9: GPIO_146_SPI3_CLK */
400 "[SPI1_DIN]", /* HSEC pin 11: GPIO_147_SPI3_DI */
401 "[SPI1_DOUT]", /* HSEC pin 1: GPIO_148_SPI3_DO */
402 "[SPI1_CS]", /* HSEC pin 7: GPIO_149_SPI3_CS0_N */
403 "GPIO_150_USER_LED1",
404 "GPIO_151_USER_LED2";
408 /* GPIO_152-GPIO_159 */
409 gpio-line-names = "NC", "NC", "NC", "NC", "", "", "", "";
413 /* GPIO_160-GPIO_167 */
425 /* GPIO_168-GPIO_175 */
437 /* GPIO_176-GPIO_183 */
439 "[GPIO_176_PMU_PWR_HOLD]",
442 "GPIO_179_WL_WAKEUP_AP",
445 "GPIO-F", /* LSEC pin 28: LCD_BL_PWM */
446 "[I2C0_SCL]"; /* LSEC pin 15 */
450 /* GPIO_184-GPIO_191 */
452 "[I2C0_SDA]", /* LSEC pin 17 */
453 "[I2C1_SCL]", /* Actual SoC I2C1 */
454 "[I2C1_SDA]", /* Actual SoC I2C1 */
455 "[I2C1_SCL]", /* LSEC pin 19: I2C7_SCL */
456 "[I2C1_SDA]", /* LSEC pin 21: I2C7_SDA */
457 "GPIO_189_USER_LED3",
458 "GPIO_190_USER_LED4",
463 /* GPIO_192-GPIO_199 */
465 "[PCM_DI]", /* LSEC pin 22: GPIO_192_I2S0_DI */
466 "[PCM_DO]", /* LSEC pin 20: GPIO_193_I2S0_DO */
467 "[PCM_CLK]", /* LSEC pin 18: GPIO_194_I2S0_XCLK */
468 "[PCM_FS]", /* LSEC pin 16: GPIO_195_I2S0_XFS */
469 "[GPIO_196_I2S2_DI]",
470 "[GPIO_197_I2S2_DO]",
471 "[GPIO_198_I2S2_XCLK]",
472 "[GPIO_199_I2S2_XFS]";
476 /* GPIO_200-GPIO_207 */
480 "GPIO_202_VBUS_TYPEC",
482 "GPIO_204_PMU12_IRQ_N",
483 "GPIO_205_WIFI_ACTIVE",
484 "GPIO_206_USBSW_SEL",
485 "GPIO_207_BT_ACTIVE";
489 /* GPIO_208-GPIO_215 */
491 "GPIO-A", /* LSEC pin 23: GPIO_208 */
492 "GPIO-B", /* LSEC pin 24: GPIO_209 */
493 "GPIO-C", /* LSEC pin 25: GPIO_210 */
494 "GPIO-D", /* LSEC pin 26: GPIO_211 */
495 "GPIO-E", /* LSEC pin 27: GPIO_212 */
498 "[SPI0_CLK]"; /* LSEC pin 8: SPI2_CLK */
502 /* GPIO_216-GPIO_223 */
504 "[SPI0_DIN]", /* LSEC pin 10: SPI2_DI */
505 "[SPI0_DOUT]", /* LSEC pin 14: SPI2_DO */
506 "[SPI0_CS]", /* LSEC pin 12: SPI2_CS0_N */
515 /* GPIO_224-GPIO_231 */
517 "", "", "", "", "", "", "", "";
521 /* On Low speed expansion */
529 adv7533: adv7533@39 {
531 compatible = "adi,adv7533";
537 /* On Low speed expansion */
543 /* On Low speed expansion */
552 compatible = "ti,wl1837-st";
553 enable-gpios = <&gpio15 6 GPIO_ACTIVE_HIGH>;
554 max-speed = <3000000>;
559 /* On Low speed expansion */
565 /* On Low speed expansion */
571 /* On High speed expansion */
584 cd-gpios = <&gpio25 3 GPIO_ACTIVE_LOW>;
585 pinctrl-names = "default";
586 pinctrl-0 = <&sd_pmx_func
589 vmmc-supply = <&ldo16>;
590 vqmmc-supply = <&ldo9>;
599 pinctrl-names = "default";
600 pinctrl-0 = <&sdio_pmx_func
604 vmmc-supply = <&wlan_en>;
608 compatible = "ti,wl1837";
609 reg = <2>; /* sdio func num */
610 /* WL_IRQ, GPIO_179_WL_WAKEUP_AP */
611 interrupt-parent = <&gpio22>;
612 interrupts = <3 IRQ_TYPE_EDGE_RISING>;