xref: /linux/arch/mips/boot/dts/mobileye/eyeq6h-pins.dtsi (revision 55d0969c451159cff86949b38c39171cab962069)
1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2/*
3 * Copyright 2024 Mobileye Vision Technologies Ltd.
4 */
5
6/*
7 * MUX register structure
8 * bits    | field      | comment
9 * [0]     | MUX_SEL    | 0 - GPIO, 1 - alternative func
10 * [4]     | SW_LOOPBACK|
11 * [5]     | SW_OUT_HZ  |
12 * [7]     | DBG_IN     |
13 * [11:8]  | DS         | drive strength
14 * [13:12] | PUD        | pull-up/pull-down. 0, 3 - no, 1 - PD, 2 - PU
15 * [14]    | OD         | Open drain
16 * [15]    | ST_CFG     | Hysteretic input enable (Schmitt trigger)
17 */
18
19&pinctrl_west {
20	// TODO: use pinctrl-single,bias-pullup
21	// TODO: use pinctrl-single,bias-pulldown
22	// TODO: use pinctrl-single,drive-strength
23	// TODO: use pinctrl-single,input-schmitt
24
25	i2c0_pins: i2c0-pins {
26		pinctrl-single,pins = <
27			0x000 0x200	// I2C0_SCL pin
28			0x004 0x200	// I2C0_SDA pin
29		>;
30	};
31	i2c1_pins: i2c1-pins {
32		pinctrl-single,pins = <
33			0x008 0x200	// I2C1_SCL pin
34			0x00c 0x200	// I2C1_SDA pin
35		>;
36	};
37	eth0_pins: eth0-pins {
38		pinctrl-single,pins = <
39			0x080 1		// GPIO_C4__SMA0_MDC pin
40			0x084 1		// GPIO_C5__SMA0_MDIO pin
41		>;
42	};
43	uart0_pins: uart0-pins {
44		pinctrl-single,pins = <0x0a8 1>; // UART0 pin group
45	};
46	uart1_pins: uart1-pins {
47		pinctrl-single,pins = <0x0a0 1>; // UART1 pin group
48	};
49	spi0_pins: spi0-pins {
50		pinctrl-single,pins = <0x0ac 1>; // SPI0 pin group
51	};
52	spi1_pins: spi1-pins {
53		pinctrl-single,pins = <0x0a4 1>; // SPI1 pin group
54	};
55};
56
57&pinctrl_east {
58	i2c2_pins: i2c2-pins {
59		pinctrl-single,pins = <
60			0x000 0x200	// i2c2_SCL pin
61			0x004 0x200	// i2c2_SDA pin
62		>;
63	};
64	i2c3_pins: i2c3-pins {
65		pinctrl-single,pins = <
66			0x008 0x200	// i2c3_SCL pin
67			0x00c 0x200	// i2c3_SDA pin
68		>;
69	};
70	eth1_pins: eth1-pins {
71		pinctrl-single,pins = <
72			0x080 1	// GPIO_D4__SMA1_MDC pin
73			0x084 1	// GPIO_D5__SMA1_MDIO pin
74		>;
75	};
76	uart2_sel_pins: uart2-pins {
77		pinctrl-single,pins = <0x0a4 1>; // UART2 pin group
78	};
79	uart3_pins: uart3-pins {
80		pinctrl-single,pins = <0x09c 1>; // UART3 pin group
81	};
82	spi2_pins: spi2-pins {
83		pinctrl-single,pins = <0x0a8 1>; // SPI2 pin group
84	};
85	spi3_pins: spi3-pins {
86		pinctrl-single,pins = <0x0a0 1>; // SPI3 pin group
87	};
88};
89