On Sun, Feb 7, 2021 at 6:12 AM JeongHwan Kim <frog007.kernel...@gmail.com> wrote: > > I found the pinmux state is differnet between the emmc boot and sd card boot. > I set the spi0 pins (/ce, sclk, d1, d0) with MODE0 in am335x-bone-common.dtsi. > When the board runs in sd card boot, the spi0 pins mode is MODE 0. > but in emmc boot, the spi0 pins mode is MODE 7. > So, in emmc boot mode, I cannot access to spi-nor flash. > > I set the pin mux state in am335x0-bone-common.dtsi like this: > > ........ > > spi0_pins: spi0_pins { > pinctrl-single,pins = < > AM33XX_PADCONF(AM335X_PIN_SPI0_SCLK, PIN_INPUT_PULLUP, MUX_MODE0) > AM33XX_PADCONF(AM335X_PIN_SPI0_D0, PIN_INPUT_PULLUP, MUX_MODE0) > AM33XX_PADCONF(AM335X_PIN_SPI0_D1, PIN_OUTPUT_PULLUP, MUX_MODE0) > AM33XX_PADCONF(AM335X_PIN_SPI0_CS0, PIN_OUTPUT_PULLUP, MUX_MODE0) > >; > }; > ........... > > &spi0 { > pinctrl-name = "default"; > pinctrl-0 = <&spi0_pins>; > status = "okay"; > > spi-flash@0 { > #address-cells = <0x1>; > #size-cells = <0x1>; > compatible = "jedec,spi-nor"; > reg = <0x0>; > spi-max-frequency = <500000>; > partition@0 { > label = "partition1"; > reg = <0x0 0x10000>; > }; > partition@200000 { > label = "partition2"; > reg = <0x10000 0x10000>; > }; > }; > }; > > I don't know why the pin mode state is different between the emmc and sd card > boot mode. > Is there any factor to effect for the spi0 pins mode to differ beween emmc > and sd card boot?
I'm betting your version of u-boot on the eMMC and microsd are different.. Regards, -- Robert Nelson https://rcn-ee.com/ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYiCCfeAo93Mz7cOhuQz%3DEQLeO7WNT%3DGMXa%2BVXqOdHT__A%40mail.gmail.com.