Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +&pio{
- + spi1_cs1: spi1_cs1 {
- + pins = "PC3";
- + function = "gpio_out";
- + output-high;
- + };
- +};
- +&spi1 {
- + #address-cells= <1>;
- + #size-cells = <0>;
- + status = "okay";
- + bias-pull-up;
- + spi-max-frequency = <10000000>;
- + pinctrl-names = "default", "default";
- + pinctrl-1 = <&spi1_cs1>;
- + cs-gpios = <0>, <&pio 2 3 GPIO_ACTIVE_LOW>; //CS0 &pio 0 13 GPIO_ACTIVE_LOW e PC3?
- + num-chipselects=<2>;
- + switch: spi@0 {
- + compatible = "spidev";
- + reg = <0>;
- + spi-max-frequency = <10000000>;
- + };
- + adconverter: spi@1 {
- + compatible = "ti,adc108s102","ti,adc128s102","ti,ti-adc108s102","ti,ti_adc108s102","spidev";
- + reg = <1>;
- + vref-supply = <®_vcc3v3>;
- + spi-max-frequency = <10000000>;
- + #io-channel-cells = <5>;
- + spi-cpha;
- + spi-cpol;
- + };
- +};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement