xref: /freebsd/sys/contrib/device-tree/Bindings/bus/ts-nbus.txt (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
1Technologic Systems NBUS
2
3The NBUS is a bus used to interface with peripherals in the Technologic
4Systems FPGA on the TS-4600 SoM.
5
6Required properties :
7 - compatible		: "technologic,ts-nbus"
8 - #address-cells	: must be 1
9 - #size-cells		: must be 0
10 - pwms			: The PWM bound to the FPGA
11 - ts,data-gpios	: The 8 GPIO pins connected to the data lines on the FPGA
12 - ts,csn-gpios		: The GPIO pin connected to the csn line on the FPGA
13 - ts,txrx-gpios	: The GPIO pin connected to the txrx line on the FPGA
14 - ts,strobe-gpios	: The GPIO pin connected to the stobe line on the FPGA
15 - ts,ale-gpios		: The GPIO pin connected to the ale line on the FPGA
16 - ts,rdy-gpios		: The GPIO pin connected to the rdy line on the FPGA
17
18Child nodes:
19
20The NBUS node can contain zero or more child nodes representing peripherals
21on the bus.
22
23Example:
24
25	nbus {
26		compatible = "technologic,ts-nbus";
27		pinctrl-0 = <&nbus_pins>;
28		#address-cells = <1>;
29		#size-cells = <0>;
30		pwms = <&pwm 2 83>;
31		ts,data-gpios   = <&gpio0 0 GPIO_ACTIVE_HIGH
32				   &gpio0 1 GPIO_ACTIVE_HIGH
33				   &gpio0 2 GPIO_ACTIVE_HIGH
34				   &gpio0 3 GPIO_ACTIVE_HIGH
35				   &gpio0 4 GPIO_ACTIVE_HIGH
36				   &gpio0 5 GPIO_ACTIVE_HIGH
37				   &gpio0 6 GPIO_ACTIVE_HIGH
38				   &gpio0 7 GPIO_ACTIVE_HIGH>;
39		ts,csn-gpios    = <&gpio0 16 GPIO_ACTIVE_HIGH>;
40		ts,txrx-gpios   = <&gpio0 24 GPIO_ACTIVE_HIGH>;
41		ts,strobe-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
42		ts,ale-gpios    = <&gpio0 26 GPIO_ACTIVE_HIGH>;
43		ts,rdy-gpios    = <&gpio0 21 GPIO_ACTIVE_HIGH>;
44
45		watchdog@2a {
46			compatible = "...";
47
48			/* ... */
49		};
50	};
51