1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 3 * Copyright (c) 2019 Linaro Ltd. 4 * Author: Manivannan Sadhasivam <manivannan.sa 5 */ 6 7 /dts-v1/; 8 9 #include "bm1880.dtsi" 10 11 /* 12 * GPIO name legend: proper name = the GPIO li 13 * NC = not connected (pin out but not 14 * anything the board) 15 * "[PER]" = pin is muxed for [periphe 16 * LSEC = Low Speed External Connector 17 * HSEC = High Speed External Connecto 18 * 19 * Line names are taken from the schematic "so 20 * version, 1.0210. 21 * 22 * For the lines routed to the external connec 23 * lines are named after the 96Boards CE Speci 24 * Appendix "Expansion Connector Signal Descri 25 * 26 * When the 96Board naming of a line and the s 27 * the same line are in conflict, the 96Board 28 * takes precedence. This is only for the info 29 * lines i.e. "[FOO]", the GPIO named lines "G 30 * are the only ones actually used for GPIO. 31 */ 32 33 / { 34 compatible = "bitmain,sophon-edge", "b 35 model = "Sophon Edge"; 36 37 aliases { 38 serial0 = &uart0; 39 serial1 = &uart2; 40 serial2 = &uart1; 41 }; 42 43 chosen { 44 stdout-path = "serial0:115200n 45 }; 46 47 memory@0 { 48 device_type = "memory"; 49 reg = <0x1 0x00000000 0x0 0x40 50 }; 51 52 soc { 53 gpio0: gpio@50027000 { 54 porta: gpio-controller 55 gpio-line-name 56 "GPIO- 57 "GPIO- 58 "[GPIO 59 "GPIO- 60 "[USB_ 61 "[EN_P 62 "[VDDI 63 "GPIO- 64 "[BM_T 65 "[EN_P 66 "NC", 67 "LED_W 68 "LED_B 69 "[BM_B 70 "NC", 71 "NC", 72 "NC", 73 "NC", 74 "NC", 75 "NC", 76 "NC", 77 "NC", 78 "NC", 79 "NC", 80 "NC", 81 "NC", 82 "NC", 83 "NC", 84 "NC", 85 "NC", 86 "NC", 87 "NC"; 88 }; 89 }; 90 91 gpio1: gpio@50027400 { 92 portb: gpio-controller 93 gpio-line-name 94 "NC", 95 "NC", 96 "[I2C0 97 "[I2C0 98 "[JTAG 99 "[JTAG 100 "[JTAG 101 "[JTAG 102 "[JTAG 103 "[JTAG 104 "[JTAG 105 "[JTAG 106 "[CPU_ 107 "[CPU_ 108 "[UART 109 "[UART 110 "[UART 111 "[UART 112 "GPIO- 113 "GPIO- 114 "USER_ 115 "USER_ 116 "[UART 117 "[UART 118 "USER_ 119 "USER_ 120 "[I2S0 121 "[I2S0 122 "[I2S0 123 "[I2S0 124 "GPIO- 125 "GPIO- 126 }; 127 }; 128 129 gpio2: gpio@50027800 { 130 portc: gpio-controller 131 gpio-line-name 132 "GPIO- 133 "GPIO- 134 "GPIO- 135 "GPIO- 136 "[SPI0 137 "[SPI0 138 "[SPI0 139 "[SPI0 140 }; 141 }; 142 }; 143 }; 144 145 &pinctrl { 146 pinctrl_uart0_default: pinctrl-uart0-d 147 pinmux { 148 groups = "uart0_grp"; 149 function = "uart0"; 150 }; 151 }; 152 153 pinctrl_uart1_default: pinctrl-uart1-d 154 pinmux { 155 groups = "uart1_grp"; 156 function = "uart1"; 157 }; 158 }; 159 160 pinctrl_uart2_default: pinctrl-uart2-d 161 pinmux { 162 groups = "uart2_grp"; 163 function = "uart2"; 164 }; 165 }; 166 }; 167 168 &uart0 { 169 status = "okay"; 170 pinctrl-names = "default"; 171 pinctrl-0 = <&pinctrl_uart0_default>; 172 }; 173 174 &uart1 { 175 status = "okay"; 176 pinctrl-names = "default"; 177 pinctrl-0 = <&pinctrl_uart1_default>; 178 }; 179 180 &uart2 { 181 status = "okay"; 182 pinctrl-names = "default"; 183 pinctrl-0 = <&pinctrl_uart2_default>; 184 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.