Hi,
Good day.
I am trying to add a child node to SPI1 node, where the child node MAX14830.
as per my undertsanding the MAXIM14830 drivers are already available in kernal, so it is enough for us to add a node in device tree. after adding it just compile and deploy should be fine.
i did all the things needed in device tree, below is the child node description,
max14830: max14830@0 {
compatible = "maxim,max14830";
reg = <0>;
clocks = <&k3_clks 142 0>;
interrupt-parent = <&mcu_gpio0>;
interrupts = <14 IRQ_TYPE_LEVEL_LOW>;
gpio-controller;
#gpio-cells = <2>;
};
and the pins are configured as below,
/* Verdin SPI_1 */
pinctrl_spi1: main-spi1-pins-default {
pinctrl-single,pins = <
AM62X_IOPAD(0x0020, PIN_INPUT, 1) /* (J25) OSPI0_D5.SPI1_CLK */ /* SODIMM 196 */
AM62X_IOPAD(0x0024, PIN_INPUT, 1) /* (H25) OSPI0_D6.SPI1_D0 */ /* SODIMM 200 */
AM62X_IOPAD(0x0028, PIN_INPUT, 1) /* (J22) OSPI0_D7.SPI1_D1 */ /* SODIMM 198 */
>;
};
/* Verdin SPI_1 CS */
pinctrl_spi1_cs0: main-spi1-cs0-default-pins {
pinctrl-single,pins = <
AM62X_IOPAD(0x001c, PIN_INPUT, 1) /* (J23) OSPI0_D4.SPI1_CS0 */ /* SODIMM 202 */
>;
};
i have verified that dts is compiling, but still i am not seeing any spi devices in /dev directory in after booting the image in am625.
is there anything i am doing wrong?
kindly suggest me on this issue.