Teslacreiste reacted to
almaz1c in SPI default state
September 29, 2020
spi0 {
pins = "PC0", "PC1", "PC2", "PC3";
function = "spio0";
linux, phandle = <0x20>;
phandle = <0x20>;
};
spi1 {
pins = "PA15", "PA16", "PA14", "PA13";
function = "spi1";
linux, phandle = <0x21>;
phandle = <0x21>;
};
spi@01c68000 {
compatible = "allwinner, sun8i-h3-spi";
reg = <0x1c68000 0x1000>;
interrupts = <0x0 0x41 0x4>;
clocks = <0x6 0x1e 0x6 0x52>;
clock-names = "ahb", "mod";
dmas = <0x1f 0x17 0x1f 0x17>;
dma-names = "default";
pinctrl-names = "default";
pinctrl-0 = <0x20>;
resets = <0x6 0xf>;
status = "disabled";
#address-cells = 0x1;
#size-cells = 0x0;
linux,phandle = <0x5c>;
phandle = <0x5c>;
flash@0 {
#address-cells = <0x1>;
#size-cells = <0x1>;
compatible = "mxicy, mx25l1606e", "winbond, w25q1$
reg = <0x0>;
spi-max-frequency = <0x2625a00>;
};
};
spi@01c69000 {
compatible = "allwinner, sun8i-h3-spi";
reg = <0x1c69000 0x1000>;
interrupts = <0x0 0x42 0x4>;
clocks = <0x6 0x1f 0x6 0x53>;
clock-names = "ahb", "mod";
dmas = <0x1f 0x18 0x6 0x53>;
dma-names = "rx", "tx";
pinctrl-names = "default";
pinctrl-0 = <0x21>;
resets = <0x6 0x10>;
status = "disabled";
#address-cells = <0x1>;
#size-cells = <0x0>;
linux, phandle = <0x5d>;
phandle = <0x5d>;
};
spi0_pins = "/soc/pinctrl@01c20800/spi0";
spi1_pins = "/soc/pinctrl@01c20800/spi1";
spi0 = "/soc/spi@01c68000";
spi1 = "/soc/spi@01c69000";
I use debian server mainline kernel. So there is dts instead of fex.
Here is what I found in dts.
What is the magic string that will invert CS default state?