-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Error code:
[ 3.622226] sun6i-spi 1c69000.spi: chipselect 0 already in use
[ 3.622264] spi_master spi0: spi_device register error /soc/spi@1c69000/panel@0
[ 3.622325] spi_master spi0: Failed to create SPI device for /soc/spi@1c69000/panel@0
panel-mipi-dbi-spi.dts:
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun8i-h2+";
fragment@0 {
target = <&spi1>; // spi总线
__overlay__ {
/* needed to avoid dtc warning */
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
panel: panel@0 {
compatible = "panel-mipi-dbi-spi";
reg = <0>;
spi-max-frequency = <32000000>;
width-mm = <20>;
height-mm = <20>;
reset-gpios = <&pio 0 199 0>; // reset引脚
dc-gpios = <&pio 0 198 0>; // dc引脚
write-only;
timing: panel-timing {
hactive = <160>; // 横向分辨率
vactive = <128>; // 纵向分辨率
hback-porch = <0>;
vback-porch = <0>;
clock-frequency = <0>;
hfront-porch = <0>;
hsync-len = <0>;
vfront-porch = <0>;
vsync-len = <0>;
};
};
};
};
};
Why I can't create SPI device???
Metadata
Metadata
Assignees
Labels
No labels