Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: ti: k3-am642-evm: Add support for SPI EEPROM

Add pinmux details and device tree node for the EEPROM attached to SPI0
module in main domain.

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
Link: https://lore.kernel.org/r/20210309162315.22743-1-a-govindraju@ti.com

authored by

Aswath Govindraju and committed by
Nishanth Menon
4fb6c046 efbdf2e9

+22
+22
arch/arm64/boot/dts/ti/k3-am642-evm.dts
··· 154 154 >; 155 155 }; 156 156 157 + main_spi0_pins_default: main-spi0-pins-default { 158 + pinctrl-single,pins = < 159 + AM64X_IOPAD(0x0210, PIN_INPUT, 0) /* (D13) SPI0_CLK */ 160 + AM64X_IOPAD(0x0208, PIN_OUTPUT, 0) /* (D12) SPI0_CS0 */ 161 + AM64X_IOPAD(0x0214, PIN_OUTPUT, 0) /* (A13) SPI0_D0 */ 162 + AM64X_IOPAD(0x0218, PIN_INPUT, 0) /* (A14) SPI0_D1 */ 163 + >; 164 + }; 165 + 157 166 main_i2c1_pins_default: main-i2c1-pins-default { 158 167 pinctrl-single,pins = < 159 168 AM64X_IOPAD(0x0268, PIN_INPUT_PULLUP, 0) /* (C18) I2C1_SCL */ ··· 302 293 303 294 &mcu_spi1 { 304 295 status = "disabled"; 296 + }; 297 + 298 + &main_spi0 { 299 + pinctrl-names = "default"; 300 + pinctrl-0 = <&main_spi0_pins_default>; 301 + ti,pindir-d0-out-d1-in = <1>; 302 + eeprom@0 { 303 + compatible = "microchip,93lc46b"; 304 + reg = <0>; 305 + spi-max-frequency = <1000000>; 306 + spi-cs-high; 307 + data-size = <16>; 308 + }; 305 309 }; 306 310 307 311 &sdhci0 {