&spi0 { status = "okay"; spi_device@0 { compatible = "vendor,spi-device"; reg = <0>; /* 片选号,通常为0-based */ spi-max-frequency = <1000000>; /* 最大速度,单位为Hz */ spi-cpol; /* 时钟极性,1表示高电平 */ spi-cpha; /* 时钟相位,1表示在时钟的第二...
spidev2: spi@2 { compatible = "rohm,dh2228fv"; spi-max-frequency = <0x100000>; reg = <2>; }; }; 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 驱动代码: AI检测代码解析 static co...
2 &spi_1 { 1 status = "okay"; 388 cs-gpios = <&gpa2 5 GPIO_ACTIVE_HIGH>; // 使用 GPIO A2 第5个引脚, 1 2 w25q80bw@0 { 3 #address-cells = <1>; 4 #size-cells = <1>; 5 compatible = "w25x80"; 6 reg = <0>; 7 spi-max-frequency = <1000000>; 8 9 controller-data...
+ //pinctrl-1 = <&spi1_gpio>; spidev0: spidev@0 { compatible = "rockchip,spidev"; reg = <0>; - spi-max-frequency = <10000000>; + spi-max-frequency = <48000000>; status = "okay"; }; }; @@ -423,9 +423,6 @@ status = "okay"; }; -&uart4 { - status = "okay";...
2&spi_1 {1status ="okay";388cs-gpios = <&gpa25GPIO_ACTIVE_HIGH>;// 使用 GPIO A2 第5个引脚,12w25q80bw@0{3#address-cells =<1>;4#size-cells =<1>;5compatible ="w25x80";6reg = <0>;7spi-max-frequency = <1000000>;89controller-data {10samsung,spi-feedback-delay = <0>;11}...
spi-max-frequency = <25000000>; reg = <0>; }; }; }; 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 < 登录后即可复制 函数调用过程: a. of_platform_default_populate_init (drivers/of/platform.c) 被调用到过程: ...
gpio_spi: gpio_spi@0 { compatible = "fairchild,74hc595"; gpio-controller; #gpio-cells = <2>; reg = <0>; registers-number = <1>; registers-default = /bits/ 8 <0x57>; spi-max-frequency = <100000>; }; }; test_led{ #address-cells = <1>; ...
compatible = "qcom,spi-qup-v2"; reg = <0xf9923000 0x1000="">; interrupts = <0 95="" 0="">; spi-max-frequency = <19200000>; #address-cells = <1>; #size-cells = <0>; gpios = <&msmgpio 3 0>, /* CLK */ <&msmgpio 1 0>, /* MISO */ ...
我修改了 am571x-idk.dts、如下所示以启用 McSPI2: mcspi2{(&M) 状态="正常"; TI、pidd-d0-out-d1-in; mydev@0{ 兼容="linux、spidev"; SPI-max-frequency =<24000000>; reg =<0>; SPI-cpol =<1>; spi-cpha =<1>; }; }; ...
spi-max-frequency = <29000000>; spi-nor,ddr-quad-read-dummy = <8>; }; }; &lpuart5 { @@ -38,108 +96,70 @@ status = "okay"; }; &iomuxc1 { pinctrl_dsi: dsigrp { fsl,pins = < MX8ULP_PAD_PTF8__PTF8 0x3 >; }; pinctrl_lpuart5: lpuart5grp { fsl,pins = < MX8ULP...