1 // SPDX-License-Identifier: GPL-2.0 << 2 /* 1 /* 3 * DTS File for HiSilicon Poplar Development B 2 * DTS File for HiSilicon Poplar Development Board 4 * 3 * 5 * Copyright (c) 2016-2017 HiSilicon Technolog 4 * Copyright (c) 2016-2017 HiSilicon Technologies Co., Ltd. >> 5 * >> 6 * Released under the GPLv2 only. >> 7 * SPDX-License-Identifier: GPL-2.0 6 */ 8 */ 7 9 8 /dts-v1/; 10 /dts-v1/; 9 11 10 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/gpio/gpio.h> 11 #include "hi3798cv200.dtsi" 13 #include "hi3798cv200.dtsi" 12 #include "poplar-pinctrl.dtsi" 14 #include "poplar-pinctrl.dtsi" 13 15 14 / { 16 / { 15 model = "HiSilicon Poplar Development 17 model = "HiSilicon Poplar Development Board"; 16 compatible = "hisilicon,hi3798cv200-po 18 compatible = "hisilicon,hi3798cv200-poplar", "hisilicon,hi3798cv200"; 17 19 18 aliases { 20 aliases { 19 serial0 = &uart0; 21 serial0 = &uart0; 20 serial2 = &uart2; 22 serial2 = &uart2; 21 }; 23 }; 22 24 23 chosen { 25 chosen { 24 stdout-path = "serial0:115200n 26 stdout-path = "serial0:115200n8"; 25 }; 27 }; 26 28 27 memory@0 { 29 memory@0 { 28 device_type = "memory"; 30 device_type = "memory"; 29 reg = <0x0 0x0 0x0 0x80000000> 31 reg = <0x0 0x0 0x0 0x80000000>; 30 }; 32 }; 31 33 32 leds { 34 leds { 33 compatible = "gpio-leds"; 35 compatible = "gpio-leds"; 34 36 35 user-led0 { 37 user-led0 { 36 label = "green:user1"; 38 label = "green:user1"; 37 gpios = <&gpio6 3 GPIO 39 gpios = <&gpio6 3 GPIO_ACTIVE_LOW>; 38 linux,default-trigger 40 linux,default-trigger = "heartbeat"; 39 default-state = "off"; 41 default-state = "off"; 40 }; 42 }; 41 43 42 user-led1 { 44 user-led1 { 43 label = "green:user2"; 45 label = "green:user2"; 44 gpios = <&gpio5 1 GPIO 46 gpios = <&gpio5 1 GPIO_ACTIVE_LOW>; 45 linux,default-trigger 47 linux,default-trigger = "mmc0"; 46 default-state = "off"; 48 default-state = "off"; 47 }; 49 }; 48 50 49 user-led2 { 51 user-led2 { 50 label = "green:user3"; 52 label = "green:user3"; 51 gpios = <&gpio5 2 GPIO 53 gpios = <&gpio5 2 GPIO_ACTIVE_LOW>; 52 linux,default-trigger 54 linux,default-trigger = "mmc1"; 53 default-state = "off"; 55 default-state = "off"; 54 }; 56 }; 55 57 56 user-led3 { 58 user-led3 { 57 label = "green:user4"; 59 label = "green:user4"; 58 gpios = <&gpio10 6 GPI 60 gpios = <&gpio10 6 GPIO_ACTIVE_LOW>; 59 linux,default-trigger 61 linux,default-trigger = "none"; 60 panic-indicator; 62 panic-indicator; 61 default-state = "off"; 63 default-state = "off"; 62 }; 64 }; 63 }; 65 }; 64 66 65 reg_pcie: regulator-pcie { 67 reg_pcie: regulator-pcie { 66 compatible = "regulator-fixed" 68 compatible = "regulator-fixed"; 67 regulator-name = "3V3_PCIE0"; 69 regulator-name = "3V3_PCIE0"; 68 regulator-min-microvolt = <330 70 regulator-min-microvolt = <3300000>; 69 regulator-max-microvolt = <330 71 regulator-max-microvolt = <3300000>; 70 gpio = <&gpio6 7 0>; 72 gpio = <&gpio6 7 0>; 71 enable-active-high; 73 enable-active-high; 72 }; 74 }; 73 }; 75 }; 74 76 75 &ehci { 77 &ehci { 76 status = "okay"; 78 status = "okay"; 77 }; 79 }; 78 80 79 &emmc { 81 &emmc { 80 pinctrl-names = "default"; 82 pinctrl-names = "default"; 81 pinctrl-0 = <&emmc_pins_1 &emmc_pins_2 83 pinctrl-0 = <&emmc_pins_1 &emmc_pins_2 82 &emmc_pins_3 &emmc_pins_4 84 &emmc_pins_3 &emmc_pins_4>; 83 fifo-depth = <256>; 85 fifo-depth = <256>; 84 clock-frequency = <200000000>; 86 clock-frequency = <200000000>; 85 cap-mmc-highspeed; 87 cap-mmc-highspeed; 86 mmc-ddr-1_8v; 88 mmc-ddr-1_8v; 87 mmc-hs200-1_8v; 89 mmc-hs200-1_8v; 88 non-removable; 90 non-removable; 89 bus-width = <8>; 91 bus-width = <8>; 90 status = "okay"; 92 status = "okay"; 91 }; 93 }; 92 94 93 &gmac1 { 95 &gmac1 { 94 status = "okay"; 96 status = "okay"; 95 #address-cells = <1>; 97 #address-cells = <1>; 96 #size-cells = <0>; 98 #size-cells = <0>; 97 phy-handle = <ð_phy1>; 99 phy-handle = <ð_phy1>; 98 phy-mode = "rgmii"; 100 phy-mode = "rgmii"; 99 hisilicon,phy-reset-delays-us = <10000 101 hisilicon,phy-reset-delays-us = <10000 10000 30000>; 100 102 101 eth_phy1: phy@3 { 103 eth_phy1: phy@3 { 102 reg = <3>; 104 reg = <3>; 103 }; 105 }; 104 }; 106 }; 105 107 106 &gpio1 { 108 &gpio1 { 107 status = "okay"; 109 status = "okay"; 108 gpio-line-names = "GPIO-E", "", 110 gpio-line-names = "GPIO-E", "", 109 "", "", 111 "", "", 110 "", "GPIO- 112 "", "GPIO-F", 111 "", "GPIO- 113 "", "GPIO-J"; 112 }; 114 }; 113 115 114 &gpio2 { 116 &gpio2 { 115 status = "okay"; 117 status = "okay"; 116 gpio-line-names = "GPIO-H", "GPIO- 118 gpio-line-names = "GPIO-H", "GPIO-I", 117 "GPIO-L", "GPIO- 119 "GPIO-L", "GPIO-G", 118 "GPIO-K", "", 120 "GPIO-K", "", 119 "", ""; 121 "", ""; 120 }; 122 }; 121 123 122 &gpio3 { 124 &gpio3 { 123 status = "okay"; 125 status = "okay"; 124 gpio-line-names = "", "", 126 gpio-line-names = "", "", 125 "", "", 127 "", "", 126 "GPIO-C", "", 128 "GPIO-C", "", 127 "", "GPIO- 129 "", "GPIO-B"; 128 }; 130 }; 129 131 130 &gpio4 { 132 &gpio4 { 131 status = "okay"; 133 status = "okay"; 132 gpio-line-names = "", "", 134 gpio-line-names = "", "", 133 "", "", 135 "", "", 134 "", "GPIO- 136 "", "GPIO-D", 135 "", ""; 137 "", ""; 136 }; 138 }; 137 139 138 &gpio5 { 140 &gpio5 { 139 status = "okay"; 141 status = "okay"; 140 gpio-line-names = "", "USER- 142 gpio-line-names = "", "USER-LED-1", 141 "USER-LED-2", "", 143 "USER-LED-2", "", 142 "", "GPIO- 144 "", "GPIO-A", 143 "", ""; 145 "", ""; 144 }; 146 }; 145 147 146 &gpio6 { 148 &gpio6 { 147 status = "okay"; 149 status = "okay"; 148 gpio-line-names = "", "", 150 gpio-line-names = "", "", 149 "", "USER- 151 "", "USER-LED-0", 150 "", "", 152 "", "", 151 "", ""; 153 "", ""; 152 }; 154 }; 153 155 154 &gpio10 { 156 &gpio10 { 155 status = "okay"; 157 status = "okay"; 156 gpio-line-names = "", "", 158 gpio-line-names = "", "", 157 "", "", 159 "", "", 158 "", "", 160 "", "", 159 "USER-LED-3", ""; 161 "USER-LED-3", ""; 160 }; 162 }; 161 163 162 &i2c0 { 164 &i2c0 { 163 status = "okay"; 165 status = "okay"; 164 label = "LS-I2C0"; 166 label = "LS-I2C0"; 165 }; 167 }; 166 168 167 &i2c2 { 169 &i2c2 { 168 status = "okay"; 170 status = "okay"; 169 label = "LS-I2C1"; 171 label = "LS-I2C1"; 170 }; 172 }; 171 173 172 &ir { 174 &ir { 173 linux,rc-map-name = "rc-hisi-poplar"; << 174 status = "okay"; 175 status = "okay"; 175 }; 176 }; 176 177 177 &ohci { 178 &ohci { 178 status = "okay"; 179 status = "okay"; 179 }; 180 }; 180 181 181 &pcie { 182 &pcie { 182 reset-gpios = <&gpio4 4 GPIO_ACTIVE_HI 183 reset-gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>; 183 vpcie-supply = <®_pcie>; 184 vpcie-supply = <®_pcie>; 184 status = "okay"; 185 status = "okay"; 185 }; 186 }; 186 187 187 &sd0 { 188 &sd0 { 188 bus-width = <4>; 189 bus-width = <4>; 189 cap-sd-highspeed; 190 cap-sd-highspeed; 190 status = "okay"; 191 status = "okay"; 191 }; 192 }; 192 193 193 &spi0 { 194 &spi0 { 194 status = "okay"; 195 status = "okay"; 195 label = "LS-SPI0"; 196 label = "LS-SPI0"; 196 }; 197 }; 197 198 198 &uart0 { 199 &uart0 { 199 status = "okay"; 200 status = "okay"; 200 }; 201 }; 201 202 202 &uart2 { 203 &uart2 { 203 status = "okay"; 204 status = "okay"; 204 label = "LS-UART0"; 205 label = "LS-UART0"; 205 }; 206 }; 206 /* No optional LS-UART1 on Low Speed Expansion 207 /* No optional LS-UART1 on Low Speed Expansion Connector. */
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.