2022-07-15

[기술노트] esp-hosted를 위한 spi2 device tree






&spi2{
    pinctrl-names = "default","sleep";
    pinctrl-0 = <&spi2_pins_mx>;
    pinctrl-1 = <&spi2_sleep_pins_mx>;
    cs-gpios = <&gpiob 9 0>;
    status = "okay";
   
    spidev2: spidev@0{
        compatible = "linux,spidev";
        reg = <0>;
        spi-max-frequency = <20000000>;
    };
};

&spidev2{
    status = "disable";
};

댓글 없음:

댓글 쓰기

How to Convert EUC-KR Source Code to UTF-8

How to Convert EUC-KR Source Code to UTF-8 I found old STM32 firmware code. The files were in EUC-KR encoding. This is an old Korean text f...