18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * dts file for Hisilicon HiKey970 Development Board
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2016, Hisilicon Ltd.
68c2ecf20Sopenharmony_ci * Copyright (C) 2018, Linaro Ltd.
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci/dts-v1/;
118c2ecf20Sopenharmony_ci#include <dt-bindings/gpio/gpio.h>
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#include "hi3670.dtsi"
148c2ecf20Sopenharmony_ci#include "hikey970-pinctrl.dtsi"
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci/ {
178c2ecf20Sopenharmony_ci	model = "HiKey970";
188c2ecf20Sopenharmony_ci	compatible = "hisilicon,hi3670-hikey970", "hisilicon,hi3670";
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci	aliases {
218c2ecf20Sopenharmony_ci		mshc1 = &dwmmc1;
228c2ecf20Sopenharmony_ci		mshc2 = &dwmmc2;
238c2ecf20Sopenharmony_ci		serial0 = &uart0;
248c2ecf20Sopenharmony_ci		serial1 = &uart1;
258c2ecf20Sopenharmony_ci		serial2 = &uart2;
268c2ecf20Sopenharmony_ci		serial3 = &uart3;
278c2ecf20Sopenharmony_ci		serial4 = &uart4;
288c2ecf20Sopenharmony_ci		serial5 = &uart5;
298c2ecf20Sopenharmony_ci		serial6 = &uart6;       /* console UART */
308c2ecf20Sopenharmony_ci	};
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci	chosen {
338c2ecf20Sopenharmony_ci		stdout-path = "serial6:115200n8";
348c2ecf20Sopenharmony_ci	};
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci	memory@0 {
378c2ecf20Sopenharmony_ci		device_type = "memory";
388c2ecf20Sopenharmony_ci		/* expect bootloader to fill in this region */
398c2ecf20Sopenharmony_ci		reg = <0x0 0x0 0x0 0x0>;
408c2ecf20Sopenharmony_ci	};
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci	sd_1v8: regulator-1v8 {
438c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
448c2ecf20Sopenharmony_ci		regulator-name = "fixed-1.8V";
458c2ecf20Sopenharmony_ci		regulator-min-microvolt = <1800000>;
468c2ecf20Sopenharmony_ci		regulator-max-microvolt = <1800000>;
478c2ecf20Sopenharmony_ci		regulator-always-on;
488c2ecf20Sopenharmony_ci	};
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci	sd_3v3: regulator-3v3 {
518c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
528c2ecf20Sopenharmony_ci		regulator-name = "fixed-3.3V";
538c2ecf20Sopenharmony_ci		regulator-min-microvolt = <3300000>;
548c2ecf20Sopenharmony_ci		regulator-max-microvolt = <3300000>;
558c2ecf20Sopenharmony_ci		regulator-boot-on;
568c2ecf20Sopenharmony_ci		regulator-always-on;
578c2ecf20Sopenharmony_ci	};
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ci	wlan_en: wlan-en-1-8v {
608c2ecf20Sopenharmony_ci		compatible = "regulator-fixed";
618c2ecf20Sopenharmony_ci		regulator-name = "wlan-en-regulator";
628c2ecf20Sopenharmony_ci		regulator-min-microvolt = <1800000>;
638c2ecf20Sopenharmony_ci		regulator-max-microvolt = <1800000>;
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci		/* GPIO_051_WIFI_EN */
668c2ecf20Sopenharmony_ci		gpio = <&gpio6 3 0>;
678c2ecf20Sopenharmony_ci
688c2ecf20Sopenharmony_ci		/* WLAN card specific delay */
698c2ecf20Sopenharmony_ci		startup-delay-us = <70000>;
708c2ecf20Sopenharmony_ci		enable-active-high;
718c2ecf20Sopenharmony_ci	};
728c2ecf20Sopenharmony_ci};
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_ci/*
758c2ecf20Sopenharmony_ci * Legend: proper name = the GPIO line is used as GPIO
768c2ecf20Sopenharmony_ci *         NC = not connected (pin out but not routed from the chip to
778c2ecf20Sopenharmony_ci *              anything the board)
788c2ecf20Sopenharmony_ci *         "[PER]" = pin is muxed for [peripheral] (not GPIO)
798c2ecf20Sopenharmony_ci *         "" = no idea, schematic doesn't say, could be
808c2ecf20Sopenharmony_ci *              unrouted (not connected to any external pin)
818c2ecf20Sopenharmony_ci *         LSEC = Low Speed External Connector
828c2ecf20Sopenharmony_ci *         HSEC = High Speed External Connector
838c2ecf20Sopenharmony_ci *
848c2ecf20Sopenharmony_ci * Line names are taken from "hikey970-schematics.pdf" from HiSilicon.
858c2ecf20Sopenharmony_ci *
868c2ecf20Sopenharmony_ci * For the lines routed to the external connectors the
878c2ecf20Sopenharmony_ci * lines are named after the 96Boards CE Specification 1.0,
888c2ecf20Sopenharmony_ci * Appendix "Expansion Connector Signal Description".
898c2ecf20Sopenharmony_ci *
908c2ecf20Sopenharmony_ci * When the 96Board naming of a line and the schematic name of
918c2ecf20Sopenharmony_ci * the same line are in conflict, the 96Board specification
928c2ecf20Sopenharmony_ci * takes precedence, which means that the external UART on the
938c2ecf20Sopenharmony_ci * LSEC is named UART0 while the schematic and SoC names this
948c2ecf20Sopenharmony_ci * UART2. This is only for the informational lines i.e. "[FOO]",
958c2ecf20Sopenharmony_ci * the GPIO named lines "GPIO-A" thru "GPIO-L" are the only
968c2ecf20Sopenharmony_ci * ones actually used for GPIO.
978c2ecf20Sopenharmony_ci */
988c2ecf20Sopenharmony_ci&gpio0 {
998c2ecf20Sopenharmony_ci	/* GPIO_000-GPIO_007 */
1008c2ecf20Sopenharmony_ci	gpio-line-names =
1018c2ecf20Sopenharmony_ci		"",
1028c2ecf20Sopenharmony_ci		"TP901", /* TEST_MODE connected to TP901 */
1038c2ecf20Sopenharmony_ci		"",
1048c2ecf20Sopenharmony_ci		"GPIO_003_USB_HUB_RESET_N",
1058c2ecf20Sopenharmony_ci		"NC",
1068c2ecf20Sopenharmony_ci		"[AP_GPS_REF_CLK]",
1078c2ecf20Sopenharmony_ci		"[I2C3_SCL]",
1088c2ecf20Sopenharmony_ci		"[I2C3_SDA]";
1098c2ecf20Sopenharmony_ci};
1108c2ecf20Sopenharmony_ci
1118c2ecf20Sopenharmony_ci&gpio1 {
1128c2ecf20Sopenharmony_ci	/* GPIO_008-GPIO_015 */
1138c2ecf20Sopenharmony_ci	gpio-line-names =
1148c2ecf20Sopenharmony_ci		"[UART0_CTS]", /* LSEC pin 3: GPIO_008_UART2_CTS_N */
1158c2ecf20Sopenharmony_ci		"[UART0_RTS]", /* LSEC pin 9: GPIO_009_UART2_RTS_N */
1168c2ecf20Sopenharmony_ci		"[UART0_TXD]", /* LSEC pin 5: GPIO_010_UART2_TXD */
1178c2ecf20Sopenharmony_ci		"[UART0_RXD]", /* LSEC pin 7: GPIO_011_UART2_RXD */
1188c2ecf20Sopenharmony_ci		"[USER_LED5]",
1198c2ecf20Sopenharmony_ci		"GPIO-I", /* LSEC pin 31: GPIO_013_CAM0_RST_N */
1208c2ecf20Sopenharmony_ci		"[USER_LED3]",
1218c2ecf20Sopenharmony_ci		"[USER_LED4]";
1228c2ecf20Sopenharmony_ci};
1238c2ecf20Sopenharmony_ci
1248c2ecf20Sopenharmony_ci&gpio2 {
1258c2ecf20Sopenharmony_ci	/* GPIO_016-GPIO_023 */
1268c2ecf20Sopenharmony_ci	gpio-line-names =
1278c2ecf20Sopenharmony_ci		"GPIO-G", /* LSEC pin 29: GPIO_016_LCD_TE0 */
1288c2ecf20Sopenharmony_ci		"[CSI0_MCLK]", /* HSEC pin 15: ISP_CCLK0_MCAM */
1298c2ecf20Sopenharmony_ci		"[CSI1_MCLK]", /* HSEC pin 17: ISP_CCLK1_SCAM */
1308c2ecf20Sopenharmony_ci		"GPIO_019_BT_ACTIVE",
1318c2ecf20Sopenharmony_ci		"[I2C2_SCL]", /* HSEC pin 32: ISP_SCL0 */
1328c2ecf20Sopenharmony_ci		"[I2C2_SDA]", /* HSEC pin 34: ISP_SDA0 */
1338c2ecf20Sopenharmony_ci		"[I2C3_SCL]", /* HSEC pin 36: ISP_SCL1 */
1348c2ecf20Sopenharmony_ci		"[I2C3_SDA]"; /* HSEC pin 38: ISP_SDA1 */
1358c2ecf20Sopenharmony_ci};
1368c2ecf20Sopenharmony_ci
1378c2ecf20Sopenharmony_ci&gpio3 {
1388c2ecf20Sopenharmony_ci	/* GPIO_024-GPIO_031 */
1398c2ecf20Sopenharmony_ci	gpio-line-names =
1408c2ecf20Sopenharmony_ci		"GPIO_024_WIFI_ACTIVE",
1418c2ecf20Sopenharmony_ci		"GPIO_025_PERST_M.2",
1428c2ecf20Sopenharmony_ci		"[I2C4_SCL]",
1438c2ecf20Sopenharmony_ci		"[I2C4_SDA]",
1448c2ecf20Sopenharmony_ci		"NC",
1458c2ecf20Sopenharmony_ci		"GPIO-H", /* LSEC pin 30: GPIO_029_LCD_RST_N */
1468c2ecf20Sopenharmony_ci		"[USER_LED1]",
1478c2ecf20Sopenharmony_ci		"GPIO-L"; /* LSEC pin 34: GPIO_031 */
1488c2ecf20Sopenharmony_ci};
1498c2ecf20Sopenharmony_ci
1508c2ecf20Sopenharmony_ci&gpio4 {
1518c2ecf20Sopenharmony_ci	/* GPIO_032-GPIO_039 */
1528c2ecf20Sopenharmony_ci	gpio-line-names =
1538c2ecf20Sopenharmony_ci		"GPIO-K", /* LSEC pin 33: GPIO_032_CAM1_RST_N */
1548c2ecf20Sopenharmony_ci		"GPIO_033_PMU1_EN",
1558c2ecf20Sopenharmony_ci		"GPIO_034_USBSW_SEL",
1568c2ecf20Sopenharmony_ci		/*
1578c2ecf20Sopenharmony_ci		 * These two pins should be used for SD(IO) data according
1588c2ecf20Sopenharmony_ci		 * to the 96boards specification but seems to be repurposed
1598c2ecf20Sopenharmony_ci		 * for UART 0. They are however named according to the spec.
1608c2ecf20Sopenharmony_ci		 */
1618c2ecf20Sopenharmony_ci		"[SD_DAT1]", /* HSEC pin 3: GPIO_035_UART0_RXD */
1628c2ecf20Sopenharmony_ci		"[SD_DAT2]", /* HSEC pin 5: GPIO_036_UART0_TXD */
1638c2ecf20Sopenharmony_ci		"[UART1_RXD]", /* LSEC pin 13: DEBUG_UART6_RXD */
1648c2ecf20Sopenharmony_ci		"[UART1_TXD]", /* LSEC pin 11: DEBUG_UART6_TXD */
1658c2ecf20Sopenharmony_ci		"[SOC_GPS_UART3_CTS_N]"; /* TP2304 */
1668c2ecf20Sopenharmony_ci};
1678c2ecf20Sopenharmony_ci
1688c2ecf20Sopenharmony_ci&gpio5 {
1698c2ecf20Sopenharmony_ci	/* GPIO_040-GPIO_047 */
1708c2ecf20Sopenharmony_ci	gpio-line-names =
1718c2ecf20Sopenharmony_ci		"[SOC_GPS_UART3_RTS_N]", /* TP2302 */
1728c2ecf20Sopenharmony_ci		"[SOC_GPS_UART3_RXD]", /* TP2303 */
1738c2ecf20Sopenharmony_ci		"[SOC_GPS_UART3_TXD]", /* TP2305 */
1748c2ecf20Sopenharmony_ci		"[SOC_BT_UART4_CTS_N]",
1758c2ecf20Sopenharmony_ci		"[SOC_BT_UART4_RTS_N]",
1768c2ecf20Sopenharmony_ci		"[SOC_BT_UART4_RXD]",
1778c2ecf20Sopenharmony_ci		"[SOC_BT_UART4_TXD]",
1788c2ecf20Sopenharmony_ci		"NC";
1798c2ecf20Sopenharmony_ci};
1808c2ecf20Sopenharmony_ci
1818c2ecf20Sopenharmony_ci&gpio6 {
1828c2ecf20Sopenharmony_ci	/* GPIO_048-GPIO_055 */
1838c2ecf20Sopenharmony_ci	gpio-line-names =
1848c2ecf20Sopenharmony_ci		"NC",
1858c2ecf20Sopenharmony_ci		"GPIO_049_USER_LED6",
1868c2ecf20Sopenharmony_ci		"GPIO_050_CAN_RST",
1878c2ecf20Sopenharmony_ci		"GPIO_051_WIFI_EN",
1888c2ecf20Sopenharmony_ci		"GPIO-D", /* LSEC pin 26 */
1898c2ecf20Sopenharmony_ci		"GPIO-J", /* LSEC pin 32 */
1908c2ecf20Sopenharmony_ci		"GPIO_054_BT_EN",
1918c2ecf20Sopenharmony_ci		"[GPIO_055_SEL]";
1928c2ecf20Sopenharmony_ci};
1938c2ecf20Sopenharmony_ci
1948c2ecf20Sopenharmony_ci&gpio7 {
1958c2ecf20Sopenharmony_ci	/* GPIO_056-GPIO_063 */
1968c2ecf20Sopenharmony_ci	gpio-line-names =
1978c2ecf20Sopenharmony_ci		"[PCIE_PERST_L]", "NC", "NC", "NC", "NC", "NC", "NC", "NC";
1988c2ecf20Sopenharmony_ci};
1998c2ecf20Sopenharmony_ci
2008c2ecf20Sopenharmony_ci&gpio8 {
2018c2ecf20Sopenharmony_ci	/* GPIO_064-GPIO_071 */
2028c2ecf20Sopenharmony_ci	gpio-line-names = "NC", "NC", "NC", "NC", "NC", "NC", "NC", "NC";
2038c2ecf20Sopenharmony_ci};
2048c2ecf20Sopenharmony_ci
2058c2ecf20Sopenharmony_ci&gpio9 {
2068c2ecf20Sopenharmony_ci	/* GPIO_072-GPIO_079 */
2078c2ecf20Sopenharmony_ci	gpio-line-names = "NC", "NC", "NC", "NC", "NC", "NC", "NC", "NC";
2088c2ecf20Sopenharmony_ci};
2098c2ecf20Sopenharmony_ci
2108c2ecf20Sopenharmony_ci&gpio10 {
2118c2ecf20Sopenharmony_ci	/* GPIO_080-GPIO_087 */
2128c2ecf20Sopenharmony_ci	gpio-line-names = "NC", "NC", "NC", "NC", "NC", "NC", "NC", "NC";
2138c2ecf20Sopenharmony_ci};
2148c2ecf20Sopenharmony_ci
2158c2ecf20Sopenharmony_ci&gpio11 {
2168c2ecf20Sopenharmony_ci	/* GPIO_088-GPIO_095 */
2178c2ecf20Sopenharmony_ci	gpio-line-names = "NC", "NC", "NC", "NC", "NC", "NC", "NC", "NC";
2188c2ecf20Sopenharmony_ci};
2198c2ecf20Sopenharmony_ci
2208c2ecf20Sopenharmony_ci&gpio12 {
2218c2ecf20Sopenharmony_ci	/* GPIO_096-GPIO_103 */
2228c2ecf20Sopenharmony_ci	gpio-line-names = "NC", "", "", "", "", "", "", "";
2238c2ecf20Sopenharmony_ci};
2248c2ecf20Sopenharmony_ci
2258c2ecf20Sopenharmony_ci&gpio13 {
2268c2ecf20Sopenharmony_ci	/* GPIO_104-GPIO_111 */
2278c2ecf20Sopenharmony_ci	gpio-line-names = "", "", "", "", "", "", "", "";
2288c2ecf20Sopenharmony_ci};
2298c2ecf20Sopenharmony_ci
2308c2ecf20Sopenharmony_ci&gpio14 {
2318c2ecf20Sopenharmony_ci	/* GPIO_112-GPIO_119 */
2328c2ecf20Sopenharmony_ci	gpio-line-names = "", "", "", "", "", "", "", "";
2338c2ecf20Sopenharmony_ci};
2348c2ecf20Sopenharmony_ci
2358c2ecf20Sopenharmony_ci&gpio15 {
2368c2ecf20Sopenharmony_ci	/* GPIO_120-GPIO_127 */
2378c2ecf20Sopenharmony_ci	gpio-line-names = "", "", "", "", "", "", "", "";
2388c2ecf20Sopenharmony_ci};
2398c2ecf20Sopenharmony_ci
2408c2ecf20Sopenharmony_ci&gpio16 {
2418c2ecf20Sopenharmony_ci	/* GPIO_128-GPIO_135 */
2428c2ecf20Sopenharmony_ci	gpio-line-names =
2438c2ecf20Sopenharmony_ci		"[WL_SDIO_CLK]",
2448c2ecf20Sopenharmony_ci		"[WL_SDIO_CMD]",
2458c2ecf20Sopenharmony_ci		"[WL_SDIO_DATA0]",
2468c2ecf20Sopenharmony_ci		"[WL_SDIO_DATA1]",
2478c2ecf20Sopenharmony_ci		"[WL_SDIO_DATA2]",
2488c2ecf20Sopenharmony_ci		"[WL_SDIO_DATA3]",
2498c2ecf20Sopenharmony_ci		"[ETH_ISOLATE]",
2508c2ecf20Sopenharmony_ci		"NC";
2518c2ecf20Sopenharmony_ci};
2528c2ecf20Sopenharmony_ci
2538c2ecf20Sopenharmony_ci&gpio17 {
2548c2ecf20Sopenharmony_ci	/* GPIO_136-GPIO_143 */
2558c2ecf20Sopenharmony_ci	gpio-line-names =
2568c2ecf20Sopenharmony_ci		"[MINI1CLK_EN]", "NC", "", "", "", "", "", "";
2578c2ecf20Sopenharmony_ci};
2588c2ecf20Sopenharmony_ci
2598c2ecf20Sopenharmony_ci&gpio18 {
2608c2ecf20Sopenharmony_ci	/* GPIO_144-GPIO_151 */
2618c2ecf20Sopenharmony_ci	gpio-line-names =
2628c2ecf20Sopenharmony_ci		"[SPI1_SCLK]", /* HSEC pin 9: GPIO_144_SPI3_CLK */
2638c2ecf20Sopenharmony_ci		"[SPI1_DIN]", /* HSEC pin 11: GPIO_145_SPI3_DI */
2648c2ecf20Sopenharmony_ci		"[SPI1_DOUT]", /* HSEC pin 1: GPIO_146_SPI3_DO */
2658c2ecf20Sopenharmony_ci		"[SPI1_CS]", /* HSEC pin 7: GPIO_147_SPI3_CS0_N */
2668c2ecf20Sopenharmony_ci		"[POWER_INT_N]",
2678c2ecf20Sopenharmony_ci		"[CDMA_GPS_SYNC]",
2688c2ecf20Sopenharmony_ci		"GPIO_150_PEX_INTA",
2698c2ecf20Sopenharmony_ci		"GPIO_151_CAN_INT";
2708c2ecf20Sopenharmony_ci};
2718c2ecf20Sopenharmony_ci
2728c2ecf20Sopenharmony_ci&gpio19 {
2738c2ecf20Sopenharmony_ci	/* GPIO_152-GPIO_159 */
2748c2ecf20Sopenharmony_ci	gpio-line-names = "", "", "", "", "", "", "", "";
2758c2ecf20Sopenharmony_ci};
2768c2ecf20Sopenharmony_ci
2778c2ecf20Sopenharmony_ci&gpio20 {
2788c2ecf20Sopenharmony_ci	/* GPIO_160-GPIO_167 */
2798c2ecf20Sopenharmony_ci	gpio-line-names =
2808c2ecf20Sopenharmony_ci		"[SD_CLK]",
2818c2ecf20Sopenharmony_ci		"[SD_CMD]",
2828c2ecf20Sopenharmony_ci		"[SD_DATA0]",
2838c2ecf20Sopenharmony_ci		"[SD_DATA1]",
2848c2ecf20Sopenharmony_ci		"[SD_DATA2]",
2858c2ecf20Sopenharmony_ci		"[SD_DATA3]",
2868c2ecf20Sopenharmony_ci		"GPIO_166_ETHCLK_EN",
2878c2ecf20Sopenharmony_ci		"GPIO_167_USER_LED2";
2888c2ecf20Sopenharmony_ci};
2898c2ecf20Sopenharmony_ci
2908c2ecf20Sopenharmony_ci&gpio21 {
2918c2ecf20Sopenharmony_ci	/* GPIO_168-GPIO_175 */
2928c2ecf20Sopenharmony_ci	gpio-line-names =
2938c2ecf20Sopenharmony_ci		"GPIO_168_GPS_EN",
2948c2ecf20Sopenharmony_ci		"GPIO-C", /* LSEC pin 25: GPIO_169_USIM1_CLK */
2958c2ecf20Sopenharmony_ci		"GPIO-E", /* LSEC pin 27: GPIO_170_USIM1_RST */
2968c2ecf20Sopenharmony_ci		"GPIO-B", /* LSEC pin 24: GPIO_171_USIM1_DATA */
2978c2ecf20Sopenharmony_ci		"", "", "", "", "";
2988c2ecf20Sopenharmony_ci};
2998c2ecf20Sopenharmony_ci
3008c2ecf20Sopenharmony_ci&gpio22 {
3018c2ecf20Sopenharmony_ci	/* GPIO_176-GPIO_183 */
3028c2ecf20Sopenharmony_ci	gpio-line-names =
3038c2ecf20Sopenharmony_ci		"[PMU_PWR_HOLD]",
3048c2ecf20Sopenharmony_ci		"GPIO_177_WL_WAKEUP_AP",
3058c2ecf20Sopenharmony_ci		"[JTAG_TCK]",
3068c2ecf20Sopenharmony_ci		"[JTAG_TMS]",
3078c2ecf20Sopenharmony_ci		"[JTAG_TDI]",
3088c2ecf20Sopenharmony_ci		"[JTAG_TMS]",
3098c2ecf20Sopenharmony_ci		"GPIO_182_FATAL_ERR",
3108c2ecf20Sopenharmony_ci		"NC";
3118c2ecf20Sopenharmony_ci};
3128c2ecf20Sopenharmony_ci
3138c2ecf20Sopenharmony_ci&gpio23 {
3148c2ecf20Sopenharmony_ci	/* GPIO_184-GPIO_191 */
3158c2ecf20Sopenharmony_ci	gpio-line-names =
3168c2ecf20Sopenharmony_ci		"GPIO_184_JTAG_SEL",
3178c2ecf20Sopenharmony_ci		"GPIO-F", /* LSEC pin 28: GPIO_185_LCD_BL_PWM */
3188c2ecf20Sopenharmony_ci		"[I2C0_SCL]", /* LSEC pin 15: GPIO_186_I2C0_SCL */
3198c2ecf20Sopenharmony_ci		"[I2C0_SDA]", /* LSEC pin 17: GPIO_187_I2C0_SDA */
3208c2ecf20Sopenharmony_ci		"[GPIO_188_I2C1_SCL]", /* Actual SoC I2C1_SCL */
3218c2ecf20Sopenharmony_ci		"[GPIO_189_I2C1_SDA]", /* Actual SoC I2C1_SDA */
3228c2ecf20Sopenharmony_ci		"[I2C1_SCL]", /* LSEC pin 19: GPIO_190_I2C2_SCL */
3238c2ecf20Sopenharmony_ci		"[I2C2_SDA]"; /* LSEC pin 21: GPIO_191_I2C2_SDA */
3248c2ecf20Sopenharmony_ci};
3258c2ecf20Sopenharmony_ci
3268c2ecf20Sopenharmony_ci&gpio24 {
3278c2ecf20Sopenharmony_ci	/* GPIO_192-GPIO_199 */
3288c2ecf20Sopenharmony_ci	gpio-line-names =
3298c2ecf20Sopenharmony_ci		"[SD_LED]",
3308c2ecf20Sopenharmony_ci		"NC",
3318c2ecf20Sopenharmony_ci		"[PCM_DI]", /* LSEC pin 22: GPIO_194_I2S0_DI */
3328c2ecf20Sopenharmony_ci		"[PCM_DO]", /* LSEC pin 20: GPIO_195_I2S0_DO */
3338c2ecf20Sopenharmony_ci		"[PCM_CLK]", /* LSEC pin 18: GPIO_196_I2S0_XCLK */
3348c2ecf20Sopenharmony_ci		"[PCM_FS]", /* LSEC pin 16: GPIO_197_I2S0_XFS */
3358c2ecf20Sopenharmony_ci		"",
3368c2ecf20Sopenharmony_ci		"[I2S2_DO]";
3378c2ecf20Sopenharmony_ci};
3388c2ecf20Sopenharmony_ci
3398c2ecf20Sopenharmony_ci&gpio25 {
3408c2ecf20Sopenharmony_ci	/* GPIO_200-GPIO_207 */
3418c2ecf20Sopenharmony_ci	gpio-line-names =
3428c2ecf20Sopenharmony_ci		"[I2S2_XCLK]",
3438c2ecf20Sopenharmony_ci		"[I2S2_XFS]",
3448c2ecf20Sopenharmony_ci		"GPIO_202_PERST_ETH",
3458c2ecf20Sopenharmony_ci		"GPIO_203_PWRON_DET",
3468c2ecf20Sopenharmony_ci		"GPIO_204_PMU1_IRQ_N",
3478c2ecf20Sopenharmony_ci		"GPIO_205_SD_DET",
3488c2ecf20Sopenharmony_ci		"GPIO_206_GPS_MOTION_INT",
3498c2ecf20Sopenharmony_ci		"GPIO_207_HDMI_SEL";
3508c2ecf20Sopenharmony_ci};
3518c2ecf20Sopenharmony_ci
3528c2ecf20Sopenharmony_ci&gpio26 {
3538c2ecf20Sopenharmony_ci	/* GPIO_208-GPIO_215 */
3548c2ecf20Sopenharmony_ci	gpio-line-names =
3558c2ecf20Sopenharmony_ci		"GPIO-A", /* LSEC pin 23: GPIO_208_WAKEUP_SOC */
3568c2ecf20Sopenharmony_ci		"GPIO_209_VBUS_TYPEC",
3578c2ecf20Sopenharmony_ci		"NC",
3588c2ecf20Sopenharmony_ci		"NC",
3598c2ecf20Sopenharmony_ci		"NC",
3608c2ecf20Sopenharmony_ci		"[SPI0_SCLK]", /* LSEC pin 8: GPIO_213_SPI2_CLK */
3618c2ecf20Sopenharmony_ci		"[SPI0_DIN]", /* LSEC pin 10: GPIO_214_SPI2_DI */
3628c2ecf20Sopenharmony_ci		"[SPI0_DOUT]"; /* LSEC pin 14: GPIO_215_SPI2_DO */
3638c2ecf20Sopenharmony_ci};
3648c2ecf20Sopenharmony_ci
3658c2ecf20Sopenharmony_ci&gpio27 {
3668c2ecf20Sopenharmony_ci	/* GPIO_216-GPIO_223 */
3678c2ecf20Sopenharmony_ci	gpio-line-names =
3688c2ecf20Sopenharmony_ci		"[SPI0_CS]", /* LSEC pin 12: GPIO_216_SPI2_CS0_N */
3698c2ecf20Sopenharmony_ci		"GPIO_217_HDMI_PD",
3708c2ecf20Sopenharmony_ci		"GPIO_218_GPS_WAKEUP_AP",
3718c2ecf20Sopenharmony_ci		"GPIO_219_M.2CLK_EN",
3728c2ecf20Sopenharmony_ci		"GPIO_220_PERST_MINI",
3738c2ecf20Sopenharmony_ci		"GPIO_221_CC_INT",
3748c2ecf20Sopenharmony_ci		"[PCIE_CLKREQ_L]",
3758c2ecf20Sopenharmony_ci		"NC";
3768c2ecf20Sopenharmony_ci};
3778c2ecf20Sopenharmony_ci
3788c2ecf20Sopenharmony_ci&gpio28 {
3798c2ecf20Sopenharmony_ci	/* GPIO_224-GPIO_231 */
3808c2ecf20Sopenharmony_ci	gpio-line-names =
3818c2ecf20Sopenharmony_ci		"[PMU0_INT]",
3828c2ecf20Sopenharmony_ci		"[SPMI_DATA]",
3838c2ecf20Sopenharmony_ci		"[SPMI_CLK]",
3848c2ecf20Sopenharmony_ci		"[CAN_SPI_CLK]",
3858c2ecf20Sopenharmony_ci		"[CAN_SPI_DI]",
3868c2ecf20Sopenharmony_ci		"[CAN_SPI_DO]",
3878c2ecf20Sopenharmony_ci		"[CAN_SPI_CS]",
3888c2ecf20Sopenharmony_ci		"GPIO_231_HDMI_INT";
3898c2ecf20Sopenharmony_ci};
3908c2ecf20Sopenharmony_ci
3918c2ecf20Sopenharmony_ci&dwmmc1 {
3928c2ecf20Sopenharmony_ci	bus-width = <0x4>;
3938c2ecf20Sopenharmony_ci	sd-uhs-sdr12;
3948c2ecf20Sopenharmony_ci	sd-uhs-sdr25;
3958c2ecf20Sopenharmony_ci	sd-uhs-sdr50;
3968c2ecf20Sopenharmony_ci	sd-uhs-sdr104;
3978c2ecf20Sopenharmony_ci	cap-sd-highspeed;
3988c2ecf20Sopenharmony_ci	disable-wp;
3998c2ecf20Sopenharmony_ci	cd-inverted;
4008c2ecf20Sopenharmony_ci	cd-gpios = <&gpio25 5 GPIO_ACTIVE_HIGH>;
4018c2ecf20Sopenharmony_ci	pinctrl-names = "default";
4028c2ecf20Sopenharmony_ci	pinctrl-0 = <&sd_pmx_func
4038c2ecf20Sopenharmony_ci		     &sd_clk_cfg_func
4048c2ecf20Sopenharmony_ci		     &sd_cfg_func>;
4058c2ecf20Sopenharmony_ci	vmmc-supply = <&sd_3v3>;
4068c2ecf20Sopenharmony_ci	vqmmc-supply = <&sd_1v8>;
4078c2ecf20Sopenharmony_ci	status = "okay";
4088c2ecf20Sopenharmony_ci};
4098c2ecf20Sopenharmony_ci
4108c2ecf20Sopenharmony_ci&dwmmc2 { /* WIFI */
4118c2ecf20Sopenharmony_ci	bus-width = <0x4>;
4128c2ecf20Sopenharmony_ci	non-removable;
4138c2ecf20Sopenharmony_ci	broken-cd;
4148c2ecf20Sopenharmony_ci	cap-power-off-card;
4158c2ecf20Sopenharmony_ci	pinctrl-names = "default";
4168c2ecf20Sopenharmony_ci	pinctrl-0 = <&sdio_pmx_func
4178c2ecf20Sopenharmony_ci		     &sdio_clk_cfg_func
4188c2ecf20Sopenharmony_ci		     &sdio_cfg_func>;
4198c2ecf20Sopenharmony_ci	/* WL_EN */
4208c2ecf20Sopenharmony_ci	vmmc-supply = <&wlan_en>;
4218c2ecf20Sopenharmony_ci	status = "okay";
4228c2ecf20Sopenharmony_ci
4238c2ecf20Sopenharmony_ci	wlcore: wlcore@2 {
4248c2ecf20Sopenharmony_ci		compatible = "ti,wl1837";
4258c2ecf20Sopenharmony_ci		reg = <2>;      /* sdio func num */
4268c2ecf20Sopenharmony_ci		/* WL_IRQ, GPIO_177_WL_WAKEUP_AP */
4278c2ecf20Sopenharmony_ci		interrupt-parent = <&gpio22>;
4288c2ecf20Sopenharmony_ci		interrupts = <1 IRQ_TYPE_EDGE_RISING>;
4298c2ecf20Sopenharmony_ci	};
4308c2ecf20Sopenharmony_ci};
4318c2ecf20Sopenharmony_ci
4328c2ecf20Sopenharmony_ci&uart0 {
4338c2ecf20Sopenharmony_ci	/* On High speed expansion header */
4348c2ecf20Sopenharmony_ci	label = "HS-UART0";
4358c2ecf20Sopenharmony_ci	status = "okay";
4368c2ecf20Sopenharmony_ci};
4378c2ecf20Sopenharmony_ci
4388c2ecf20Sopenharmony_ci&uart2 {
4398c2ecf20Sopenharmony_ci	/* On Low speed expansion header */
4408c2ecf20Sopenharmony_ci	label = "LS-UART0";
4418c2ecf20Sopenharmony_ci	status = "okay";
4428c2ecf20Sopenharmony_ci};
4438c2ecf20Sopenharmony_ci
4448c2ecf20Sopenharmony_ci&uart6 {
4458c2ecf20Sopenharmony_ci	/* On Low speed expansion header */
4468c2ecf20Sopenharmony_ci	label = "LS-UART1";
4478c2ecf20Sopenharmony_ci	status = "okay";
4488c2ecf20Sopenharmony_ci};
449