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