07-19-2016, 01:56 PM
(This post was last modified: 07-19-2016, 02:01 PM by martinayotte.)
You don't need to touch that part. I presume, to my understanding, that this is used when the SPI is actually "disabled".
When set to "okay", it is using the following :
spi0@0 {
linux,phandle = <0xa7>;
phandle = <0xa7>;
allwinner,pins = "PC3";
allwinner,function = "spi0";
allwinner,pname = "spi0_cs0";
allwinner,muxsel = <0x4>;
allwinner,pull = <0x1>;
allwinner,drive = <0xffffffff>;
allwinner,data = <0xffffffff>;
};
spi0@1 {
linux,phandle = <0xa8>;
phandle = <0xa8>;
allwinner,pins = "PC2", "PC0", "PC1";
allwinner,function = "spi0";
allwinner,pname = "spi0_sclk", "spi0_mosi", "spi0_miso";
allwinner,muxsel = <0x4>;
allwinner,pull = <0xffffffff>;
allwinner,drive = <0xffffffff>;
allwinner,data = <0xffffffff>;
};
If you look at other peripherals, such uarts or i2c, there are always 2 definitions where one is "io_disabled". In fact, I've never since such "io_disabled" definition on other platforms, such beaglebone/raspberrypi/orangpi.
When set to "okay", it is using the following :
spi0@0 {
linux,phandle = <0xa7>;
phandle = <0xa7>;
allwinner,pins = "PC3";
allwinner,function = "spi0";
allwinner,pname = "spi0_cs0";
allwinner,muxsel = <0x4>;
allwinner,pull = <0x1>;
allwinner,drive = <0xffffffff>;
allwinner,data = <0xffffffff>;
};
spi0@1 {
linux,phandle = <0xa8>;
phandle = <0xa8>;
allwinner,pins = "PC2", "PC0", "PC1";
allwinner,function = "spi0";
allwinner,pname = "spi0_sclk", "spi0_mosi", "spi0_miso";
allwinner,muxsel = <0x4>;
allwinner,pull = <0xffffffff>;
allwinner,drive = <0xffffffff>;
allwinner,data = <0xffffffff>;
};
If you look at other peripherals, such uarts or i2c, there are always 2 definitions where one is "io_disabled". In fact, I've never since such "io_disabled" definition on other platforms, such beaglebone/raspberrypi/orangpi.