1// SPDX-License-Identifier: GPL-2.0 OR MIT
2//
3// Copyright (C) 2023 chargebyte GmbH
4
5#include "imx6ull-tarragon-common.dtsi"
6
7/ {
8	model = "chargebyte Tarragon SlaveXT";
9	compatible = "chargebyte,imx6ull-tarragon-slavext", "fsl,imx6ull";
10
11	fan0: pwm-fan {
12		compatible = "pwm-fan";
13		pwms = <&pwm7 0 40000 PWM_POLARITY_INVERTED>;
14		pinctrl-names = "default";
15		pinctrl-0 = <&pinctrl_fan_sense_snvs>;
16		fan-supply = <&reg_fan>;
17		interrupt-parent = <&gpio5>;
18		interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
19	};
20
21	reg_fan: regulator {
22		compatible = "regulator-fixed";
23		regulator-name = "fan-supply";
24		pinctrl-names = "default";
25		pinctrl-0 = <&pinctrl_fan_enable>;
26		regulator-min-microvolt = <12000000>;
27		regulator-max-microvolt = <12000000>;
28		gpio = <&gpio3 5 GPIO_ACTIVE_HIGH>;
29		enable-active-high;
30		regulator-boot-on;
31	};
32};
33
34&ecspi2 {
35	status = "okay";
36
37	qca700x_cp: ethernet@0 {
38		reg = <0x0>;
39		compatible = "qca,qca7000";
40		pinctrl-names = "default";
41		pinctrl-0 = <&pinctrl_qca700x_cp_int
42			     &pinctrl_qca700x_cp_rst
43			     &pinctrl_qca700x_cp_btld>;
44		interrupt-parent = <&gpio2>;
45		interrupts = <19 IRQ_TYPE_EDGE_RISING>;
46		spi-cpha;
47		spi-cpol;
48		spi-max-frequency = <16000000>;
49	};
50};
51
52&fec1 {
53	status = "okay";
54};
55
56&pwm7 {
57	pinctrl-names = "default";
58	pinctrl-0 = <&pinctrl_pwm_fan>;
59	status = "okay";
60};
61
62&uart5 {
63	status = "okay";
64};
65