Advertisement
Guest User

devicetree switch and adconverter

a guest
Jul 15th, 2021
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. +&pio{
  2. + spi1_cs1: spi1_cs1 {
  3. + pins = "PC3";
  4. + function = "gpio_out";
  5. + output-high;
  6. + };
  7. +};
  8. +&spi1 {
  9. + #address-cells= <1>;
  10. + #size-cells = <0>;
  11. + status = "okay";
  12. + bias-pull-up;
  13. + spi-max-frequency = <10000000>;
  14. + pinctrl-names = "default", "default";
  15. + pinctrl-1 = <&spi1_cs1>;
  16. + cs-gpios = <0>, <&pio 2 3 GPIO_ACTIVE_LOW>; //CS0 &pio 0 13 GPIO_ACTIVE_LOW e PC3?
  17. + num-chipselects=<2>;
  18. + switch: spi@0 {
  19. + compatible = "spidev";
  20. + reg = <0>;
  21. + spi-max-frequency = <10000000>;
  22. + };
  23. + adconverter: spi@1 {
  24. + compatible = "ti,adc108s102","ti,adc128s102","ti,ti-adc108s102","ti,ti_adc108s102","spidev";
  25. + reg = <1>;
  26. + vref-supply = <&reg_vcc3v3>;
  27. + spi-max-frequency = <10000000>;
  28. + #io-channel-cells = <5>;
  29. + spi-cpha;
  30. + spi-cpol;
  31. + };
  32. +};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement