Part Number: PROCESSOR-SDK-AM437X
Other Parts Discussed in Thread: AM4372
Tool/software: Linux
I assume I am making some naive mistake, I expect that if i have the right driver and the correct dts I should see a /dev/mtdx entry. Am i missing somthing? I see no spi2 or flash messages in dmesg.
Here is my setup.
1. no changes in u-boot. (don't need to access part there).
2. part is connected to spi2
3. added stt flash drive in Device Drivers > Memory Technology Device (MTD) support > Self-contained MTD device drivers turned on Support SST25L
4. pin set up. Note I have tried PIN_ all INPUT as one forum article suggested.
spi2_pins: spi2_pins {
pinctrl-single,pins = <
AM4372_IOPAD(0xa60, PIN_INPUT_PULLUP | MUX_MODE3) /* (AC18) cam0_field.spi2_sclk */
AM4372_IOPAD(0xa64, PIN_INPUT_PULLUP | MUX_MODE3) /* (AD17) cam0_wen.spi2_d0 */
AM4372_IOPAD(0xa68, PIN_OUTPUT_PULLUP | MUX_MODE3) /* (AD18) cam0_vd.spi2_d1 */
AM4372_IOPAD(0xa6c, PIN_OUTPUT_PULLUP | MUX_MODE3) /* (AC20) cam0_pclk.spi2_cs0 */
>;
};
4, bus entry: (added dma after i noticed warning in dmesg, needed?)
&spi2 {
status = "okay";
pinctrl-names = "default";
pinctrl-0=<&spi2_pins>;
// needed? correct dma channel?
dmas = <&edma 16 0 &edma 17 0>;
dma-names = "tx0", "rx0";
flash:flash@1 {
//compatible = "sst, sst25vf016b", "jedec,spi-nor";
compatible = "sst, sst25vf016b";
spi-max-frequency = <20000000>;
reg = <0>;
};
};