18c2ecf20Sopenharmony_ciTechnologic Systems NBUS
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThe NBUS is a bus used to interface with peripherals in the Technologic
48c2ecf20Sopenharmony_ciSystems FPGA on the TS-4600 SoM.
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciRequired properties :
78c2ecf20Sopenharmony_ci - compatible		: "technologic,ts-nbus"
88c2ecf20Sopenharmony_ci - #address-cells	: must be 1
98c2ecf20Sopenharmony_ci - #size-cells		: must be 0
108c2ecf20Sopenharmony_ci - pwms			: The PWM bound to the FPGA
118c2ecf20Sopenharmony_ci - ts,data-gpios	: The 8 GPIO pins connected to the data lines on the FPGA
128c2ecf20Sopenharmony_ci - ts,csn-gpios		: The GPIO pin connected to the csn line on the FPGA
138c2ecf20Sopenharmony_ci - ts,txrx-gpios	: The GPIO pin connected to the txrx line on the FPGA
148c2ecf20Sopenharmony_ci - ts,strobe-gpios	: The GPIO pin connected to the stobe line on the FPGA
158c2ecf20Sopenharmony_ci - ts,ale-gpios		: The GPIO pin connected to the ale line on the FPGA
168c2ecf20Sopenharmony_ci - ts,rdy-gpios		: The GPIO pin connected to the rdy line on the FPGA
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ciChild nodes:
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciThe NBUS node can contain zero or more child nodes representing peripherals
218c2ecf20Sopenharmony_cion the bus.
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciExample:
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci	nbus {
268c2ecf20Sopenharmony_ci		compatible = "technologic,ts-nbus";
278c2ecf20Sopenharmony_ci		pinctrl-0 = <&nbus_pins>;
288c2ecf20Sopenharmony_ci		#address-cells = <1>;
298c2ecf20Sopenharmony_ci		#size-cells = <0>;
308c2ecf20Sopenharmony_ci		pwms = <&pwm 2 83>;
318c2ecf20Sopenharmony_ci		ts,data-gpios   = <&gpio0 0 GPIO_ACTIVE_HIGH
328c2ecf20Sopenharmony_ci				   &gpio0 1 GPIO_ACTIVE_HIGH
338c2ecf20Sopenharmony_ci				   &gpio0 2 GPIO_ACTIVE_HIGH
348c2ecf20Sopenharmony_ci				   &gpio0 3 GPIO_ACTIVE_HIGH
358c2ecf20Sopenharmony_ci				   &gpio0 4 GPIO_ACTIVE_HIGH
368c2ecf20Sopenharmony_ci				   &gpio0 5 GPIO_ACTIVE_HIGH
378c2ecf20Sopenharmony_ci				   &gpio0 6 GPIO_ACTIVE_HIGH
388c2ecf20Sopenharmony_ci				   &gpio0 7 GPIO_ACTIVE_HIGH>;
398c2ecf20Sopenharmony_ci		ts,csn-gpios    = <&gpio0 16 GPIO_ACTIVE_HIGH>;
408c2ecf20Sopenharmony_ci		ts,txrx-gpios   = <&gpio0 24 GPIO_ACTIVE_HIGH>;
418c2ecf20Sopenharmony_ci		ts,strobe-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
428c2ecf20Sopenharmony_ci		ts,ale-gpios    = <&gpio0 26 GPIO_ACTIVE_HIGH>;
438c2ecf20Sopenharmony_ci		ts,rdy-gpios    = <&gpio0 21 GPIO_ACTIVE_HIGH>;
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci		watchdog@2a {
468c2ecf20Sopenharmony_ci			compatible = "...";
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci			/* ... */
498c2ecf20Sopenharmony_ci		};
508c2ecf20Sopenharmony_ci	};
51