Back to home page

OSCL-LXR

 
 

    


0001 Technologic Systems NBUS
0002 
0003 The NBUS is a bus used to interface with peripherals in the Technologic
0004 Systems FPGA on the TS-4600 SoM.
0005 
0006 Required properties :
0007  - compatible           : "technologic,ts-nbus"
0008  - #address-cells       : must be 1
0009  - #size-cells          : must be 0
0010  - pwms                 : The PWM bound to the FPGA
0011  - ts,data-gpios        : The 8 GPIO pins connected to the data lines on the FPGA
0012  - ts,csn-gpios         : The GPIO pin connected to the csn line on the FPGA
0013  - ts,txrx-gpios        : The GPIO pin connected to the txrx line on the FPGA
0014  - ts,strobe-gpios      : The GPIO pin connected to the stobe line on the FPGA
0015  - ts,ale-gpios         : The GPIO pin connected to the ale line on the FPGA
0016  - ts,rdy-gpios         : The GPIO pin connected to the rdy line on the FPGA
0017 
0018 Child nodes:
0019 
0020 The NBUS node can contain zero or more child nodes representing peripherals
0021 on the bus.
0022 
0023 Example:
0024 
0025         nbus {
0026                 compatible = "technologic,ts-nbus";
0027                 pinctrl-0 = <&nbus_pins>;
0028                 #address-cells = <1>;
0029                 #size-cells = <0>;
0030                 pwms = <&pwm 2 83>;
0031                 ts,data-gpios   = <&gpio0 0 GPIO_ACTIVE_HIGH
0032                                    &gpio0 1 GPIO_ACTIVE_HIGH
0033                                    &gpio0 2 GPIO_ACTIVE_HIGH
0034                                    &gpio0 3 GPIO_ACTIVE_HIGH
0035                                    &gpio0 4 GPIO_ACTIVE_HIGH
0036                                    &gpio0 5 GPIO_ACTIVE_HIGH
0037                                    &gpio0 6 GPIO_ACTIVE_HIGH
0038                                    &gpio0 7 GPIO_ACTIVE_HIGH>;
0039                 ts,csn-gpios    = <&gpio0 16 GPIO_ACTIVE_HIGH>;
0040                 ts,txrx-gpios   = <&gpio0 24 GPIO_ACTIVE_HIGH>;
0041                 ts,strobe-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
0042                 ts,ale-gpios    = <&gpio0 26 GPIO_ACTIVE_HIGH>;
0043                 ts,rdy-gpios    = <&gpio0 21 GPIO_ACTIVE_HIGH>;
0044 
0045                 watchdog@2a {
0046                         compatible = "...";
0047 
0048                         /* ... */
0049                 };
0050         };