xref: /linux/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts (revision 07b308eee06e9dacdfc2b54746613e838bef582d)
1f220d3ebSAndreas Färber// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
206edb80fSAndreas Färber/*
306edb80fSAndreas Färber * Copyright (c) 2017 Andreas Färber
406edb80fSAndreas Färber */
506edb80fSAndreas Färber
606edb80fSAndreas Färber/dts-v1/;
706edb80fSAndreas Färber
806edb80fSAndreas Färber#include "s900.dtsi"
906edb80fSAndreas Färber
1006edb80fSAndreas Färber/ {
1106edb80fSAndreas Färber	compatible = "ucrobotics,bubblegum-96", "actions,s900";
1206edb80fSAndreas Färber	model = "Bubblegum-96";
1306edb80fSAndreas Färber
1406edb80fSAndreas Färber	aliases {
1506edb80fSAndreas Färber		serial5 = &uart5;
1606edb80fSAndreas Färber	};
1706edb80fSAndreas Färber
1806edb80fSAndreas Färber	chosen {
1906edb80fSAndreas Färber		stdout-path = "serial5:115200n8";
2006edb80fSAndreas Färber	};
2106edb80fSAndreas Färber
2206edb80fSAndreas Färber	memory@0 {
2306edb80fSAndreas Färber		device_type = "memory";
2406edb80fSAndreas Färber		reg = <0x0 0x0 0x0 0x80000000>;
2506edb80fSAndreas Färber	};
2606edb80fSAndreas Färber};
2706edb80fSAndreas Färber
28*07b308eeSManivannan Sadhasivam&i2c0 {
29*07b308eeSManivannan Sadhasivam	status = "disabled";
30*07b308eeSManivannan Sadhasivam	pinctrl-names = "default";
31*07b308eeSManivannan Sadhasivam	pinctrl-0 = <&i2c0_default>;
32*07b308eeSManivannan Sadhasivam};
33*07b308eeSManivannan Sadhasivam
34*07b308eeSManivannan Sadhasivam&i2c1 {
35*07b308eeSManivannan Sadhasivam	status = "okay";
36*07b308eeSManivannan Sadhasivam	pinctrl-names = "default";
37*07b308eeSManivannan Sadhasivam	pinctrl-0 = <&i2c1_default>;
38*07b308eeSManivannan Sadhasivam};
39*07b308eeSManivannan Sadhasivam
40*07b308eeSManivannan Sadhasivam&i2c2 {
41*07b308eeSManivannan Sadhasivam	status = "okay";
42*07b308eeSManivannan Sadhasivam	pinctrl-names = "default";
43*07b308eeSManivannan Sadhasivam	pinctrl-0 = <&i2c2_default>;
44*07b308eeSManivannan Sadhasivam};
45*07b308eeSManivannan Sadhasivam
4629ea7baeSManivannan Sadhasivam/*
4729ea7baeSManivannan Sadhasivam * GPIO name legend: proper name = the GPIO line is used as GPIO
4829ea7baeSManivannan Sadhasivam *         NC = not connected (pin out but not routed from the chip to
4929ea7baeSManivannan Sadhasivam *              anything the board)
5029ea7baeSManivannan Sadhasivam *         "[PER]" = pin is muxed for [peripheral] (not GPIO)
5129ea7baeSManivannan Sadhasivam *         LSEC = Low Speed External Connector
5229ea7baeSManivannan Sadhasivam *         HSEC = High Speed External Connector
5329ea7baeSManivannan Sadhasivam *
5429ea7baeSManivannan Sadhasivam * Line names are taken from the schematic "Schematics Bubblegum96"
5529ea7baeSManivannan Sadhasivam * version v1.0
5629ea7baeSManivannan Sadhasivam *
5729ea7baeSManivannan Sadhasivam * For the lines routed to the external connectors the
5829ea7baeSManivannan Sadhasivam * lines are named after the 96Boards CE Specification 1.0,
5929ea7baeSManivannan Sadhasivam * Appendix "Expansion Connector Signal Description".
6029ea7baeSManivannan Sadhasivam *
6129ea7baeSManivannan Sadhasivam * When the 96Boards naming of a line and the schematic name of
6229ea7baeSManivannan Sadhasivam * the same line are in conflict, the 96Boards specification
6329ea7baeSManivannan Sadhasivam * takes precedence, which means that the external UART on the
6429ea7baeSManivannan Sadhasivam * LSEC is named UART0 while the schematic and SoC names this
6529ea7baeSManivannan Sadhasivam * UART2. Only exception is the I2C lines for which the schematic
6629ea7baeSManivannan Sadhasivam * naming has been preferred. This is only for the informational
6729ea7baeSManivannan Sadhasivam * lines i.e. "[FOO]", the GPIO named lines "GPIO-A" thru "GPIO-L"
6829ea7baeSManivannan Sadhasivam * are the only ones actually used for GPIO.
6929ea7baeSManivannan Sadhasivam */
7029ea7baeSManivannan Sadhasivam
7129ea7baeSManivannan Sadhasivam&pinctrl {
7229ea7baeSManivannan Sadhasivam	gpio-line-names =
7329ea7baeSManivannan Sadhasivam		"GPIO-A", /* GPIO_0, LSEC pin 23 */
7429ea7baeSManivannan Sadhasivam		"GPIO-B", /* GPIO_1, LSEC pin 24 */
7529ea7baeSManivannan Sadhasivam		"GPIO-C", /* GPIO_2, LSEC pin 25 */
7629ea7baeSManivannan Sadhasivam		"GPIO-D", /* GPIO_3, LSEC pin 26 */
7729ea7baeSManivannan Sadhasivam		"GPIO-E", /* GPIO_4, LSEC pin 27 */
7829ea7baeSManivannan Sadhasivam		"GPIO-F", /* GPIO_5, LSEC pin 28 */
7929ea7baeSManivannan Sadhasivam		"GPIO-G", /* GPIO_6, LSEC pin 29 */
8029ea7baeSManivannan Sadhasivam		"GPIO-H", /* GPIO_7, LSEC pin 30 */
8129ea7baeSManivannan Sadhasivam		"GPIO-I", /* GPIO_8, LSEC pin 31 */
8229ea7baeSManivannan Sadhasivam		"GPIO-J", /* GPIO_9, LSEC pin 32 */
8329ea7baeSManivannan Sadhasivam		"NC", /* GPIO_10 */
8429ea7baeSManivannan Sadhasivam		"NC", /* GPIO_11 */
8529ea7baeSManivannan Sadhasivam		"SIRQ2_1V8", /* GPIO_12 */
8629ea7baeSManivannan Sadhasivam		"PCM0_OUT", /* GPIO_13 */
8729ea7baeSManivannan Sadhasivam		"WIFI_LED", /* GPIO_14 */
8829ea7baeSManivannan Sadhasivam		"PCM0_SYNC", /* GPIO_15 */
8929ea7baeSManivannan Sadhasivam		"PCM0_CLK", /* GPIO_16 */
9029ea7baeSManivannan Sadhasivam		"PCM0_IN", /* GPIO_17 */
9129ea7baeSManivannan Sadhasivam		"BT_LED", /* GPIO_18 */
9229ea7baeSManivannan Sadhasivam		"LED0", /* GPIO_19 */
9329ea7baeSManivannan Sadhasivam		"LED1", /* GPIO_20 */
9429ea7baeSManivannan Sadhasivam		"JTAG_TCK", /* GPIO_21 */
9529ea7baeSManivannan Sadhasivam		"JTAG_TMS", /* GPIO_22 */
9629ea7baeSManivannan Sadhasivam		"JTAG_TDI", /* GPIO_23 */
9729ea7baeSManivannan Sadhasivam		"JTAG_TDO", /* GPIO_24 */
9829ea7baeSManivannan Sadhasivam		"[UART1_RxD]", /* GPIO_25, LSEC pin 13 */
9929ea7baeSManivannan Sadhasivam		"NC", /* GPIO_26 */
10029ea7baeSManivannan Sadhasivam		"[UART1_TxD]", /* GPIO_27, LSEC pin 11 */
10129ea7baeSManivannan Sadhasivam		"SD0_D0", /* GPIO_28 */
10229ea7baeSManivannan Sadhasivam		"SD0_D1", /* GPIO_29 */
10329ea7baeSManivannan Sadhasivam		"SD0_D2", /* GPIO_30 */
10429ea7baeSManivannan Sadhasivam		"SD0_D3", /* GPIO_31 */
10529ea7baeSManivannan Sadhasivam		"SD1_D0", /* GPIO_32 */
10629ea7baeSManivannan Sadhasivam		"SD1_D1", /* GPIO_33 */
10729ea7baeSManivannan Sadhasivam		"SD1_D2", /* GPIO_34 */
10829ea7baeSManivannan Sadhasivam		"SD1_D3", /* GPIO_35 */
10929ea7baeSManivannan Sadhasivam		"SD0_CMD", /* GPIO_36 */
11029ea7baeSManivannan Sadhasivam		"SD0_CLK", /* GPIO_37 */
11129ea7baeSManivannan Sadhasivam		"SD1_CMD", /* GPIO_38 */
11229ea7baeSManivannan Sadhasivam		"SD1_CLK", /* GPIO_39 */
11329ea7baeSManivannan Sadhasivam		"SPI0_SCLK", /* GPIO_40, LSEC pin 8 */
11429ea7baeSManivannan Sadhasivam		"SPI0_CS", /* GPIO_41, LSEC pin 12 */
11529ea7baeSManivannan Sadhasivam		"SPI0_DIN", /* GPIO_42, LSEC pin 10 */
11629ea7baeSManivannan Sadhasivam		"SPI0_DOUT", /* GPIO_43, LSEC pin 14 */
11729ea7baeSManivannan Sadhasivam		"I2C5_SDATA", /* GPIO_44, HSEC pin 36 */
11829ea7baeSManivannan Sadhasivam		"I2C5_SCLK", /* GPIO_45, HSEC pin 38 */
11929ea7baeSManivannan Sadhasivam		"UART0_RX", /* GPIO_46, LSEC pin 7 */
12029ea7baeSManivannan Sadhasivam		"UART0_TX", /* GPIO_47, LSEC pin 5 */
12129ea7baeSManivannan Sadhasivam		"UART0_RTSB", /* GPIO_48, LSEC pin 9 */
12229ea7baeSManivannan Sadhasivam		"UART0_CTSB", /* GPIO_49, LSEC pin 3 */
12329ea7baeSManivannan Sadhasivam		"I2C4_SCLK", /* GPIO_50, HSEC pin 32 */
12429ea7baeSManivannan Sadhasivam		"I2C4_SDATA", /* GPIO_51, HSEC pin 34 */
12529ea7baeSManivannan Sadhasivam		"I2C0_SCLK", /* GPIO_52 */
12629ea7baeSManivannan Sadhasivam		"I2C0_SDATA", /* GPIO_53 */
12729ea7baeSManivannan Sadhasivam		"I2C1_SCLK", /* GPIO_54, LSEC pin 15 */
12829ea7baeSManivannan Sadhasivam		"I2C1_SDATA", /* GPIO_55, LSEC pin 17 */
12929ea7baeSManivannan Sadhasivam		"I2C2_SCLK", /* GPIO_56, LSEC pin 19 */
13029ea7baeSManivannan Sadhasivam		"I2C2_SDATA", /* GPIO_57, LSEC pin 21 */
13129ea7baeSManivannan Sadhasivam		"CSI0_DN0", /* GPIO_58, HSEC pin 10 */
13229ea7baeSManivannan Sadhasivam		"CSI0_DP0", /* GPIO_59, HSEC pin 8 */
13329ea7baeSManivannan Sadhasivam		"CSI0_DN1", /* GPIO_60, HSEC pin 16 */
13429ea7baeSManivannan Sadhasivam		"CSI0_DP1", /* GPIO_61, HSEC pin 14 */
13529ea7baeSManivannan Sadhasivam		"CSI0_CN", /* GPIO_62, HSEC pin 4 */
13629ea7baeSManivannan Sadhasivam		"CSI0_CP", /* GPIO_63, HSEC pin 2 */
13729ea7baeSManivannan Sadhasivam		"CSI0_DN2", /* GPIO_64, HSEC pin 22 */
13829ea7baeSManivannan Sadhasivam		"CSI0_DP2", /* GPIO_65, HSEC pin 20 */
13929ea7baeSManivannan Sadhasivam		"CSI0_DN3", /* GPIO_66, HSEC pin 28 */
14029ea7baeSManivannan Sadhasivam		"CSI0_DP3", /* GPIO_67, HSEC pin 26 */
14129ea7baeSManivannan Sadhasivam		"[CLK0]", /* GPIO_68, HSEC pin 15 */
14229ea7baeSManivannan Sadhasivam		"CSI1_DN0", /* GPIO_69, HSEC pin 44 */
14329ea7baeSManivannan Sadhasivam		"CSI1_DP0", /* GPIO_70, HSEC pin 42 */
14429ea7baeSManivannan Sadhasivam		"CSI1_DN1", /* GPIO_71, HSEC pin 50 */
14529ea7baeSManivannan Sadhasivam		"CSI1_DP1", /* GPIO_72, HSEC pin 48 */
14629ea7baeSManivannan Sadhasivam		"CSI1_CN", /* GPIO_73, HSEC pin 56 */
14729ea7baeSManivannan Sadhasivam		"CSI1_CP", /* GPIO_74, HSEC pin 54 */
14829ea7baeSManivannan Sadhasivam		"[CLK1]", /* GPIO_75, HSEC pin 17 */
14929ea7baeSManivannan Sadhasivam		"[GPIOD0]", /* GPIO_76 */
15029ea7baeSManivannan Sadhasivam		"[GPIOD1]", /* GPIO_77 */
15129ea7baeSManivannan Sadhasivam		"BT_RST_N", /* GPIO_78 */
15229ea7baeSManivannan Sadhasivam		"EXT_DC_EN", /* GPIO_79 */
15329ea7baeSManivannan Sadhasivam		"[PCM_DI]", /* GPIO_80, LSEC pin 22 */
15429ea7baeSManivannan Sadhasivam		"[PCM_DO]", /* GPIO_81, LSEC pin 20 */
15529ea7baeSManivannan Sadhasivam		"[PCM_CLK]", /* GPIO_82, LSEC pin 18 */
15629ea7baeSManivannan Sadhasivam		"[PCM_FS]", /* GPIO_83, LSEC pin 16 */
15729ea7baeSManivannan Sadhasivam		"WAKE_BT", /* GPIO_84 */
15829ea7baeSManivannan Sadhasivam		"WL_REG_ON", /* GPIO_85 */
15929ea7baeSManivannan Sadhasivam		"NC", /* GPIO_86 */
16029ea7baeSManivannan Sadhasivam		"NC", /* GPIO_87 */
16129ea7baeSManivannan Sadhasivam		"NC", /* GPIO_88 */
16229ea7baeSManivannan Sadhasivam		"NC", /* GPIO_89 */
16329ea7baeSManivannan Sadhasivam		"NC", /* GPIO_90 */
16429ea7baeSManivannan Sadhasivam		"WIFI_WAKE", /* GPIO_91 */
16529ea7baeSManivannan Sadhasivam		"BT_WAKE", /* GPIO_92 */
16629ea7baeSManivannan Sadhasivam		"NC", /* GPIO_93 */
16729ea7baeSManivannan Sadhasivam		"OTG_EN2", /* GPIO_94 */
16829ea7baeSManivannan Sadhasivam		"OTG_EN", /* GPIO_95 */
16929ea7baeSManivannan Sadhasivam		"DSI_DP3", /* GPIO_96, HSEC pin 45 */
17029ea7baeSManivannan Sadhasivam		"DSI_DN3", /* GPIO_97, HSEC pin 47 */
17129ea7baeSManivannan Sadhasivam		"DSI_DP1", /* GPIO_98, HSEC pin 33 */
17229ea7baeSManivannan Sadhasivam		"DSI_DN1", /* GPIO_99, HSEC pin 35 */
17329ea7baeSManivannan Sadhasivam		"DSI_CP", /* GPIO_100, HSEC pin 21 */
17429ea7baeSManivannan Sadhasivam		"DSI_CN", /* GPIO_101, HSEC pin 23 */
17529ea7baeSManivannan Sadhasivam		"DSI_DP0", /* GPIO_102, HSEC pin 27 */
17629ea7baeSManivannan Sadhasivam		"DSI_DN0", /* GPIO_103, HSEC pin 29 */
17729ea7baeSManivannan Sadhasivam		"DSI_DP2", /* GPIO_104, HSEC pin 39 */
17829ea7baeSManivannan Sadhasivam		"DSI_DN2", /* GPIO_105, HSEC pin 41 */
17929ea7baeSManivannan Sadhasivam		"N0_D0", /* GPIO_106 */
18029ea7baeSManivannan Sadhasivam		"N0_D1", /* GPIO_107 */
18129ea7baeSManivannan Sadhasivam		"N0_D2", /* GPIO_108 */
18229ea7baeSManivannan Sadhasivam		"N0_D3", /* GPIO_109 */
18329ea7baeSManivannan Sadhasivam		"N0_D4", /* GPIO_110 */
18429ea7baeSManivannan Sadhasivam		"N0_D5", /* GPIO_111 */
18529ea7baeSManivannan Sadhasivam		"N0_D6", /* GPIO_112 */
18629ea7baeSManivannan Sadhasivam		"N0_D7", /* GPIO_113 */
18729ea7baeSManivannan Sadhasivam		"N0_DQS", /* GPIO_114 */
18829ea7baeSManivannan Sadhasivam		"N0_DQSN", /* GPIO_115 */
18929ea7baeSManivannan Sadhasivam		"NC", /* GPIO_116 */
19029ea7baeSManivannan Sadhasivam		"NC", /* GPIO_117 */
19129ea7baeSManivannan Sadhasivam		"NC", /* GPIO_118 */
19229ea7baeSManivannan Sadhasivam		"N0_CEB1", /* GPIO_119 */
19329ea7baeSManivannan Sadhasivam		"CARD_DT", /* GPIO_120 */
19429ea7baeSManivannan Sadhasivam		"N0_CEB3", /* GPIO_121 */
19529ea7baeSManivannan Sadhasivam		"SD_DAT0", /* GPIO_122, HSEC pin 1 */
19629ea7baeSManivannan Sadhasivam		"SD_DAT1", /* GPIO_123, HSEC pin 3 */
19729ea7baeSManivannan Sadhasivam		"SD_DAT2", /* GPIO_124, HSEC pin 5 */
19829ea7baeSManivannan Sadhasivam		"SD_DAT3", /* GPIO_125, HSEC pin 7 */
19929ea7baeSManivannan Sadhasivam		"NC", /* GPIO_126 */
20029ea7baeSManivannan Sadhasivam		"NC", /* GPIO_127 */
20129ea7baeSManivannan Sadhasivam		"[PWR_BTN_N]", /* GPIO_128, LSEC pin 4 */
20229ea7baeSManivannan Sadhasivam		"[RST_BTN_N]", /* GPIO_129, LSEC pin 6 */
20329ea7baeSManivannan Sadhasivam		"NC", /* GPIO_130 */
20429ea7baeSManivannan Sadhasivam		"SD_CMD", /* GPIO_131 */
20529ea7baeSManivannan Sadhasivam		"GPIO-L", /* GPIO_132, LSEC pin 34 */
20629ea7baeSManivannan Sadhasivam		"GPIO-K", /* GPIO_133, LSEC pin 33 */
20729ea7baeSManivannan Sadhasivam		"NC", /* GPIO_134 */
20829ea7baeSManivannan Sadhasivam		"SD_SCLK", /* GPIO_135 */
20929ea7baeSManivannan Sadhasivam		"NC", /* GPIO_136 */
21029ea7baeSManivannan Sadhasivam		"JTAG_TRST", /* GPIO_137 */
21129ea7baeSManivannan Sadhasivam		"I2C3_SCLK", /* GPIO_138 */
21229ea7baeSManivannan Sadhasivam		"LED2", /* GPIO_139 */
21329ea7baeSManivannan Sadhasivam		"LED3", /* GPIO_140 */
21429ea7baeSManivannan Sadhasivam		"I2C3_SDATA", /* GPIO_141 */
21529ea7baeSManivannan Sadhasivam		"UART3_RX", /* GPIO_142 */
21629ea7baeSManivannan Sadhasivam		"UART3_TX", /* GPIO_143 */
21729ea7baeSManivannan Sadhasivam		"UART3_RTSB", /* GPIO_144 */
21829ea7baeSManivannan Sadhasivam		"UART3_CTSB"; /* GPIO_145 */
219*07b308eeSManivannan Sadhasivam
220*07b308eeSManivannan Sadhasivam	i2c0_default: i2c0-default {
221*07b308eeSManivannan Sadhasivam		pinmux {
222*07b308eeSManivannan Sadhasivam			groups = "i2c0_mfp";
223*07b308eeSManivannan Sadhasivam			function = "i2c0";
224*07b308eeSManivannan Sadhasivam		};
225*07b308eeSManivannan Sadhasivam		pinconf {
226*07b308eeSManivannan Sadhasivam			pins = "i2c0_sclk", "i2c0_sdata";
227*07b308eeSManivannan Sadhasivam			bias-pull-up;
228*07b308eeSManivannan Sadhasivam		};
229*07b308eeSManivannan Sadhasivam	};
230*07b308eeSManivannan Sadhasivam
231*07b308eeSManivannan Sadhasivam	i2c1_default: i2c1-default {
232*07b308eeSManivannan Sadhasivam		pinconf {
233*07b308eeSManivannan Sadhasivam			pins = "i2c1_sclk", "i2c1_sdata";
234*07b308eeSManivannan Sadhasivam			bias-pull-up;
235*07b308eeSManivannan Sadhasivam		};
236*07b308eeSManivannan Sadhasivam	};
237*07b308eeSManivannan Sadhasivam
238*07b308eeSManivannan Sadhasivam	i2c2_default: i2c2-default {
239*07b308eeSManivannan Sadhasivam		pinconf {
240*07b308eeSManivannan Sadhasivam			pins = "i2c2_sclk", "i2c2_sdata";
241*07b308eeSManivannan Sadhasivam			bias-pull-up;
242*07b308eeSManivannan Sadhasivam		};
243*07b308eeSManivannan Sadhasivam	};
24429ea7baeSManivannan Sadhasivam};
24529ea7baeSManivannan Sadhasivam
24606edb80fSAndreas Färber&timer {
24706edb80fSAndreas Färber	clocks = <&hosc>;
24806edb80fSAndreas Färber};
24906edb80fSAndreas Färber
25006edb80fSAndreas Färber&uart5 {
25106edb80fSAndreas Färber	status = "okay";
25206edb80fSAndreas Färber};
253