Skip to content

Commit 642b7eb

Browse files
committed
add SPI DMA to FunKey S dts
Signed-off-by: Vincent-FK <vincent.buso@funkey-project.com>
1 parent 29c3605 commit 642b7eb

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

arch/arm/boot/dts/sun8i-v3s-funkey.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
compatible = "sitronix,st7789v";
177177
reg = <0>;
178178
spi-max-frequency = <50000000>;
179-
txbuflen = <115200>;
179+
txbuflen = <115202>;
180180
rotate = <0>;
181181
fps = <50>;
182182
buswidth = <8>;

arch/arm/boot/dts/sun8i-v3s.dtsi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,8 @@
539539
interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
540540
clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
541541
clock-names = "ahb", "mod";
542+
dmas = <&dma 23>, <&dma 23>;
543+
dma-names = "rx", "tx";
542544
pinctrl-names = "default";
543545
pinctrl-0 = <&spi0_pins>;
544546
resets = <&ccu RST_BUS_SPI0>;

drivers/staging/fbtft/fbtft-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ struct fb_info *fbtft_framebuffer_alloc(struct fbtft_display *display,
837837
/* Transmit buffer */
838838
if (txbuflen == -1)
839839
txbuflen = vmem_size + 2; /* add in case startbyte is used */
840-
if (txbuflen >= vmem_size + 2)
840+
if (txbuflen > vmem_size + 2)
841841
txbuflen = 0;
842842

843843
#ifdef __LITTLE_ENDIAN

0 commit comments

Comments
 (0)