1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2017 Andreas Färber 4 */ 5 6/dts-v1/; 7 8#include "s900.dtsi" 9 10/ { 11 compatible = "ucrobotics,bubblegum-96", "actions,s900"; 12 model = "Bubblegum-96"; 13 14 aliases { 15 serial5 = &uart5; 16 }; 17 18 chosen { 19 stdout-path = "serial5:115200n8"; 20 }; 21 22 memory@0 { 23 device_type = "memory"; 24 reg = <0x0 0x0 0x0 0x80000000>; 25 }; 26}; 27 28&i2c0 { 29 status = "disabled"; 30 pinctrl-names = "default"; 31 pinctrl-0 = <&i2c0_default>; 32}; 33 34&i2c1 { 35 status = "okay"; 36 pinctrl-names = "default"; 37 pinctrl-0 = <&i2c1_default>; 38}; 39 40&i2c2 { 41 status = "okay"; 42 pinctrl-names = "default"; 43 pinctrl-0 = <&i2c2_default>; 44}; 45 46/* 47 * GPIO name legend: proper name = the GPIO line is used as GPIO 48 * NC = not connected (pin out but not routed from the chip to 49 * anything the board) 50 * "[PER]" = pin is muxed for [peripheral] (not GPIO) 51 * LSEC = Low Speed External Connector 52 * HSEC = High Speed External Connector 53 * 54 * Line names are taken from the schematic "Schematics Bubblegum96" 55 * version v1.0 56 * 57 * For the lines routed to the external connectors the 58 * lines are named after the 96Boards CE Specification 1.0, 59 * Appendix "Expansion Connector Signal Description". 60 * 61 * When the 96Boards naming of a line and the schematic name of 62 * the same line are in conflict, the 96Boards specification 63 * takes precedence, which means that the external UART on the 64 * LSEC is named UART0 while the schematic and SoC names this 65 * UART2. Only exception is the I2C lines for which the schematic 66 * naming has been preferred. This is only for the informational 67 * lines i.e. "[FOO]", the GPIO named lines "GPIO-A" thru "GPIO-L" 68 * are the only ones actually used for GPIO. 69 */ 70 71&pinctrl { 72 gpio-line-names = 73 "GPIO-A", /* GPIO_0, LSEC pin 23 */ 74 "GPIO-B", /* GPIO_1, LSEC pin 24 */ 75 "GPIO-C", /* GPIO_2, LSEC pin 25 */ 76 "GPIO-D", /* GPIO_3, LSEC pin 26 */ 77 "GPIO-E", /* GPIO_4, LSEC pin 27 */ 78 "GPIO-F", /* GPIO_5, LSEC pin 28 */ 79 "GPIO-G", /* GPIO_6, LSEC pin 29 */ 80 "GPIO-H", /* GPIO_7, LSEC pin 30 */ 81 "GPIO-I", /* GPIO_8, LSEC pin 31 */ 82 "GPIO-J", /* GPIO_9, LSEC pin 32 */ 83 "NC", /* GPIO_10 */ 84 "NC", /* GPIO_11 */ 85 "SIRQ2_1V8", /* GPIO_12 */ 86 "PCM0_OUT", /* GPIO_13 */ 87 "WIFI_LED", /* GPIO_14 */ 88 "PCM0_SYNC", /* GPIO_15 */ 89 "PCM0_CLK", /* GPIO_16 */ 90 "PCM0_IN", /* GPIO_17 */ 91 "BT_LED", /* GPIO_18 */ 92 "LED0", /* GPIO_19 */ 93 "LED1", /* GPIO_20 */ 94 "JTAG_TCK", /* GPIO_21 */ 95 "JTAG_TMS", /* GPIO_22 */ 96 "JTAG_TDI", /* GPIO_23 */ 97 "JTAG_TDO", /* GPIO_24 */ 98 "[UART1_RxD]", /* GPIO_25, LSEC pin 13 */ 99 "NC", /* GPIO_26 */ 100 "[UART1_TxD]", /* GPIO_27, LSEC pin 11 */ 101 "SD0_D0", /* GPIO_28 */ 102 "SD0_D1", /* GPIO_29 */ 103 "SD0_D2", /* GPIO_30 */ 104 "SD0_D3", /* GPIO_31 */ 105 "SD1_D0", /* GPIO_32 */ 106 "SD1_D1", /* GPIO_33 */ 107 "SD1_D2", /* GPIO_34 */ 108 "SD1_D3", /* GPIO_35 */ 109 "SD0_CMD", /* GPIO_36 */ 110 "SD0_CLK", /* GPIO_37 */ 111 "SD1_CMD", /* GPIO_38 */ 112 "SD1_CLK", /* GPIO_39 */ 113 "SPI0_SCLK", /* GPIO_40, LSEC pin 8 */ 114 "SPI0_CS", /* GPIO_41, LSEC pin 12 */ 115 "SPI0_DIN", /* GPIO_42, LSEC pin 10 */ 116 "SPI0_DOUT", /* GPIO_43, LSEC pin 14 */ 117 "I2C5_SDATA", /* GPIO_44, HSEC pin 36 */ 118 "I2C5_SCLK", /* GPIO_45, HSEC pin 38 */ 119 "UART0_RX", /* GPIO_46, LSEC pin 7 */ 120 "UART0_TX", /* GPIO_47, LSEC pin 5 */ 121 "UART0_RTSB", /* GPIO_48, LSEC pin 9 */ 122 "UART0_CTSB", /* GPIO_49, LSEC pin 3 */ 123 "I2C4_SCLK", /* GPIO_50, HSEC pin 32 */ 124 "I2C4_SDATA", /* GPIO_51, HSEC pin 34 */ 125 "I2C0_SCLK", /* GPIO_52 */ 126 "I2C0_SDATA", /* GPIO_53 */ 127 "I2C1_SCLK", /* GPIO_54, LSEC pin 15 */ 128 "I2C1_SDATA", /* GPIO_55, LSEC pin 17 */ 129 "I2C2_SCLK", /* GPIO_56, LSEC pin 19 */ 130 "I2C2_SDATA", /* GPIO_57, LSEC pin 21 */ 131 "CSI0_DN0", /* GPIO_58, HSEC pin 10 */ 132 "CSI0_DP0", /* GPIO_59, HSEC pin 8 */ 133 "CSI0_DN1", /* GPIO_60, HSEC pin 16 */ 134 "CSI0_DP1", /* GPIO_61, HSEC pin 14 */ 135 "CSI0_CN", /* GPIO_62, HSEC pin 4 */ 136 "CSI0_CP", /* GPIO_63, HSEC pin 2 */ 137 "CSI0_DN2", /* GPIO_64, HSEC pin 22 */ 138 "CSI0_DP2", /* GPIO_65, HSEC pin 20 */ 139 "CSI0_DN3", /* GPIO_66, HSEC pin 28 */ 140 "CSI0_DP3", /* GPIO_67, HSEC pin 26 */ 141 "[CLK0]", /* GPIO_68, HSEC pin 15 */ 142 "CSI1_DN0", /* GPIO_69, HSEC pin 44 */ 143 "CSI1_DP0", /* GPIO_70, HSEC pin 42 */ 144 "CSI1_DN1", /* GPIO_71, HSEC pin 50 */ 145 "CSI1_DP1", /* GPIO_72, HSEC pin 48 */ 146 "CSI1_CN", /* GPIO_73, HSEC pin 56 */ 147 "CSI1_CP", /* GPIO_74, HSEC pin 54 */ 148 "[CLK1]", /* GPIO_75, HSEC pin 17 */ 149 "[GPIOD0]", /* GPIO_76 */ 150 "[GPIOD1]", /* GPIO_77 */ 151 "BT_RST_N", /* GPIO_78 */ 152 "EXT_DC_EN", /* GPIO_79 */ 153 "[PCM_DI]", /* GPIO_80, LSEC pin 22 */ 154 "[PCM_DO]", /* GPIO_81, LSEC pin 20 */ 155 "[PCM_CLK]", /* GPIO_82, LSEC pin 18 */ 156 "[PCM_FS]", /* GPIO_83, LSEC pin 16 */ 157 "WAKE_BT", /* GPIO_84 */ 158 "WL_REG_ON", /* GPIO_85 */ 159 "NC", /* GPIO_86 */ 160 "NC", /* GPIO_87 */ 161 "NC", /* GPIO_88 */ 162 "NC", /* GPIO_89 */ 163 "NC", /* GPIO_90 */ 164 "WIFI_WAKE", /* GPIO_91 */ 165 "BT_WAKE", /* GPIO_92 */ 166 "NC", /* GPIO_93 */ 167 "OTG_EN2", /* GPIO_94 */ 168 "OTG_EN", /* GPIO_95 */ 169 "DSI_DP3", /* GPIO_96, HSEC pin 45 */ 170 "DSI_DN3", /* GPIO_97, HSEC pin 47 */ 171 "DSI_DP1", /* GPIO_98, HSEC pin 33 */ 172 "DSI_DN1", /* GPIO_99, HSEC pin 35 */ 173 "DSI_CP", /* GPIO_100, HSEC pin 21 */ 174 "DSI_CN", /* GPIO_101, HSEC pin 23 */ 175 "DSI_DP0", /* GPIO_102, HSEC pin 27 */ 176 "DSI_DN0", /* GPIO_103, HSEC pin 29 */ 177 "DSI_DP2", /* GPIO_104, HSEC pin 39 */ 178 "DSI_DN2", /* GPIO_105, HSEC pin 41 */ 179 "N0_D0", /* GPIO_106 */ 180 "N0_D1", /* GPIO_107 */ 181 "N0_D2", /* GPIO_108 */ 182 "N0_D3", /* GPIO_109 */ 183 "N0_D4", /* GPIO_110 */ 184 "N0_D5", /* GPIO_111 */ 185 "N0_D6", /* GPIO_112 */ 186 "N0_D7", /* GPIO_113 */ 187 "N0_DQS", /* GPIO_114 */ 188 "N0_DQSN", /* GPIO_115 */ 189 "NC", /* GPIO_116 */ 190 "NC", /* GPIO_117 */ 191 "NC", /* GPIO_118 */ 192 "N0_CEB1", /* GPIO_119 */ 193 "CARD_DT", /* GPIO_120 */ 194 "N0_CEB3", /* GPIO_121 */ 195 "SD_DAT0", /* GPIO_122, HSEC pin 1 */ 196 "SD_DAT1", /* GPIO_123, HSEC pin 3 */ 197 "SD_DAT2", /* GPIO_124, HSEC pin 5 */ 198 "SD_DAT3", /* GPIO_125, HSEC pin 7 */ 199 "NC", /* GPIO_126 */ 200 "NC", /* GPIO_127 */ 201 "[PWR_BTN_N]", /* GPIO_128, LSEC pin 4 */ 202 "[RST_BTN_N]", /* GPIO_129, LSEC pin 6 */ 203 "NC", /* GPIO_130 */ 204 "SD_CMD", /* GPIO_131 */ 205 "GPIO-L", /* GPIO_132, LSEC pin 34 */ 206 "GPIO-K", /* GPIO_133, LSEC pin 33 */ 207 "NC", /* GPIO_134 */ 208 "SD_SCLK", /* GPIO_135 */ 209 "NC", /* GPIO_136 */ 210 "JTAG_TRST", /* GPIO_137 */ 211 "I2C3_SCLK", /* GPIO_138 */ 212 "LED2", /* GPIO_139 */ 213 "LED3", /* GPIO_140 */ 214 "I2C3_SDATA", /* GPIO_141 */ 215 "UART3_RX", /* GPIO_142 */ 216 "UART3_TX", /* GPIO_143 */ 217 "UART3_RTSB", /* GPIO_144 */ 218 "UART3_CTSB"; /* GPIO_145 */ 219 220 i2c0_default: i2c0-default { 221 pinmux { 222 groups = "i2c0_mfp"; 223 function = "i2c0"; 224 }; 225 pinconf { 226 pins = "i2c0_sclk", "i2c0_sdata"; 227 bias-pull-up; 228 }; 229 }; 230 231 i2c1_default: i2c1-default { 232 pinconf { 233 pins = "i2c1_sclk", "i2c1_sdata"; 234 bias-pull-up; 235 }; 236 }; 237 238 i2c2_default: i2c2-default { 239 pinconf { 240 pins = "i2c2_sclk", "i2c2_sdata"; 241 bias-pull-up; 242 }; 243 }; 244}; 245 246&timer { 247 clocks = <&hosc>; 248}; 249 250&uart5 { 251 status = "okay"; 252}; 253