I am facing the same issue as mentioned in the below link : https://github.com/raspberrypi/linux/issues/4567
I am using Raspberry Pi 5 and 64 bit Bookworm OS.
Based on the information I have gathered from various online resources, I think if I control the cs_setup and cs_hold properties, I could potentially reduce the delay between CS line and when the CLK starts and vice versa.
https://github.com/raspberrypi/linux/bl ... pi.c#L2334
Also this: https://github.com/raspberrypi/linux/bl ... props.yaml
It looks like there is no way to control the "cs_setup" and "cs_hold" from user space. So, created a dts file inspired from "spi0-2cs-overlay,dts"
I am a beginner at writing device trees. I request help in figuring out why the overlay below is not making any difference in the delay.
Any help is much appreciated.
Thank you!
I am using Raspberry Pi 5 and 64 bit Bookworm OS.
Based on the information I have gathered from various online resources, I think if I control the cs_setup and cs_hold properties, I could potentially reduce the delay between CS line and when the CLK starts and vice versa.
https://github.com/raspberrypi/linux/bl ... pi.c#L2334
Also this: https://github.com/raspberrypi/linux/bl ... props.yaml
It looks like there is no way to control the "cs_setup" and "cs_hold" from user space. So, created a dts file inspired from "spi0-2cs-overlay,dts"
I am a beginner at writing device trees. I request help in figuring out why the overlay below is not making any difference in the delay.
Any help is much appreciated.
Thank you!
Code:
/dts-v1/;/plugin/;/ {compatible = "brcm,bcm2835";fragment@0 {target = <&spi0_cs_pins>;frag0: __overlay__ {brcm,pins = <8 7>;};};fragment@1 {target = <&spi0>;frag1: __overlay__ {cs-gpios = <&gpio 8 1>, <&gpio 7 1>;status = "okay"; spidev0_0: spidev@0 {compatible = "spidev";reg = <0>;/* CE0 */#address-cells = <1>;#size-cells = <0>;spi-cs-setup-delay-ns = <50>;spi-cs-hold-delay-ns = <50>;status = "okay";};};};fragment@2 {target = <&spi0_pins>;__dormant__ {brcm,pins = <10 11>;};};__overrides__ {cs0_pin = <&frag0>,"brcm,pins:0", <&frag1>,"cs-gpios:4";cs1_pin = <&frag0>,"brcm,pins:4", <&frag1>,"cs-gpios:16";no_miso = <0>,"=2";};};
Statistics: Posted by pegasus2020 — Wed Mar 05, 2025 6:21 am — Replies 0 — Views 11