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";
};

댓글 없음:

댓글 쓰기

도커 내부의 hosts에 주소 추가하기

echo "192.168.10.19 happycpu-P620.local" | sudo tee -a /etc/hosts