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