summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/imx6ull-tarragon-master.dts
blob: 67007ce383e3caf21438bb6fbdfbec2f3bb719b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// SPDX-License-Identifier: GPL-2.0 OR MIT
//
// Copyright (C) 2023 chargebyte GmbH

#include "imx6ull-tarragon-common.dtsi"

/ {
	model = "chargebyte Tarragon Master";
	compatible = "chargebyte,imx6ull-tarragon-master", "fsl,imx6ull";

	fan0: pwm-fan {
		compatible = "pwm-fan";
		pwms = <&pwm7 0 40000 PWM_POLARITY_INVERTED>;
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_fan_sense_snvs>;
		fan-supply = <&reg_fan>;
		interrupt-parent = <&gpio5>;
		interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
	};

	reg_fan: regulator {
		compatible = "regulator-fixed";
		regulator-name = "fan-supply";
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_fan_enable>;
		regulator-min-microvolt = <12000000>;
		regulator-max-microvolt = <12000000>;
		gpio = <&gpio3 5 GPIO_ACTIVE_HIGH>;
		enable-active-high;
		regulator-boot-on;
	};
};

&ecspi2 {
	status = "okay";

	qca700x_cp: ethernet@0 {
		reg = <0x0>;
		compatible = "qca,qca7000";
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_qca700x_cp_int
			     &pinctrl_qca700x_cp_rst
			     &pinctrl_qca700x_cp_btld>;
		interrupt-parent = <&gpio2>;
		interrupts = <19 IRQ_TYPE_EDGE_RISING>;
		spi-cpha;
		spi-cpol;
		spi-max-frequency = <16000000>;
	};
};

&ecspi4 {
	status = "okay";

	qca700x_mains: ethernet@0 {
		reg = <0x0>;
		compatible = "qca,qca7000";
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_qca700x_mains_int
			     &pinctrl_qca700x_mains_rst
			     &pinctrl_qca700x_mains_btld>;
		interrupt-parent = <&gpio5>;
		interrupts = <9 IRQ_TYPE_EDGE_RISING>;
		spi-cpha;
		spi-cpol;
		spi-max-frequency = <16000000>;
	};
};

&fec1 {
	status = "okay";
};

&pwm7 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_pwm_fan>;
	status = "okay";
};

&uart5 {
	status = "okay";
};