xref: /linux/scripts/dtc/include-prefixes/arm/marvell/dove-cubox.dts (revision 724ba6751532055db75992fc6ae21c3e322e94a7)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2*724ba675SRob Herring/dts-v1/;
3*724ba675SRob Herring
4*724ba675SRob Herring#include "dove.dtsi"
5*724ba675SRob Herring
6*724ba675SRob Herring/ {
7*724ba675SRob Herring	model = "SolidRun CuBox";
8*724ba675SRob Herring	compatible = "solidrun,cubox", "marvell,dove";
9*724ba675SRob Herring
10*724ba675SRob Herring	memory {
11*724ba675SRob Herring		device_type = "memory";
12*724ba675SRob Herring		reg = <0x00000000 0x40000000>;
13*724ba675SRob Herring	};
14*724ba675SRob Herring
15*724ba675SRob Herring	chosen {
16*724ba675SRob Herring		bootargs = "console=ttyS0,115200n8 earlyprintk";
17*724ba675SRob Herring	};
18*724ba675SRob Herring
19*724ba675SRob Herring	leds {
20*724ba675SRob Herring		compatible = "gpio-leds";
21*724ba675SRob Herring		pinctrl-0 = <&pmx_gpio_18>;
22*724ba675SRob Herring		pinctrl-names = "default";
23*724ba675SRob Herring
24*724ba675SRob Herring		led-power {
25*724ba675SRob Herring			label = "Power";
26*724ba675SRob Herring			gpios = <&gpio0 18 1>;
27*724ba675SRob Herring			default-state = "keep";
28*724ba675SRob Herring		};
29*724ba675SRob Herring	};
30*724ba675SRob Herring
31*724ba675SRob Herring	regulators {
32*724ba675SRob Herring		compatible = "simple-bus";
33*724ba675SRob Herring		#address-cells = <1>;
34*724ba675SRob Herring		#size-cells = <0>;
35*724ba675SRob Herring
36*724ba675SRob Herring		usb_power: regulator@1 {
37*724ba675SRob Herring			compatible = "regulator-fixed";
38*724ba675SRob Herring			reg = <1>;
39*724ba675SRob Herring			regulator-name = "USB Power";
40*724ba675SRob Herring			regulator-min-microvolt = <5000000>;
41*724ba675SRob Herring			regulator-max-microvolt = <5000000>;
42*724ba675SRob Herring			enable-active-high;
43*724ba675SRob Herring			regulator-always-on;
44*724ba675SRob Herring			regulator-boot-on;
45*724ba675SRob Herring			gpio = <&gpio0 1 0>;
46*724ba675SRob Herring			pinctrl-0 = <&pmx_gpio_1>;
47*724ba675SRob Herring			pinctrl-names = "default";
48*724ba675SRob Herring		};
49*724ba675SRob Herring	};
50*724ba675SRob Herring
51*724ba675SRob Herring	clocks {
52*724ba675SRob Herring		/* 25MHz reference crystal */
53*724ba675SRob Herring		ref25: oscillator {
54*724ba675SRob Herring			compatible = "fixed-clock";
55*724ba675SRob Herring			#clock-cells = <0>;
56*724ba675SRob Herring			clock-frequency = <25000000>;
57*724ba675SRob Herring		};
58*724ba675SRob Herring	};
59*724ba675SRob Herring
60*724ba675SRob Herring	ir_recv: ir-receiver {
61*724ba675SRob Herring		compatible = "gpio-ir-receiver";
62*724ba675SRob Herring		gpios = <&gpio0 19 1>;
63*724ba675SRob Herring		pinctrl-0 = <&pmx_gpio_19>;
64*724ba675SRob Herring		pinctrl-names = "default";
65*724ba675SRob Herring	};
66*724ba675SRob Herring
67*724ba675SRob Herring	gpu-subsystem {
68*724ba675SRob Herring		status = "okay";
69*724ba675SRob Herring	};
70*724ba675SRob Herring};
71*724ba675SRob Herring
72*724ba675SRob Herring&uart0 { status = "okay"; };
73*724ba675SRob Herring&sata0 { status = "okay"; };
74*724ba675SRob Herring&mdio { status = "okay"; };
75*724ba675SRob Herring&eth {
76*724ba675SRob Herring	status = "okay";
77*724ba675SRob Herring	ethernet-port@0 {
78*724ba675SRob Herring		phy-handle = <&ethphy>;
79*724ba675SRob Herring	};
80*724ba675SRob Herring};
81*724ba675SRob Herring
82*724ba675SRob Herring&mdio {
83*724ba675SRob Herring	ethphy: ethernet-phy@1 {
84*724ba675SRob Herring		compatible = "marvell,88e1310";
85*724ba675SRob Herring		reg = <1>;
86*724ba675SRob Herring	};
87*724ba675SRob Herring};
88*724ba675SRob Herring
89*724ba675SRob Herring&gpu {
90*724ba675SRob Herring	status = "okay";
91*724ba675SRob Herring};
92*724ba675SRob Herring
93*724ba675SRob Herring&i2c0 {
94*724ba675SRob Herring	status = "okay";
95*724ba675SRob Herring	clock-frequency = <100000>;
96*724ba675SRob Herring
97*724ba675SRob Herring	si5351: clock-generator@60 {
98*724ba675SRob Herring		compatible = "silabs,si5351a-msop";
99*724ba675SRob Herring		reg = <0x60>;
100*724ba675SRob Herring		#address-cells = <1>;
101*724ba675SRob Herring		#size-cells = <0>;
102*724ba675SRob Herring		#clock-cells = <1>;
103*724ba675SRob Herring
104*724ba675SRob Herring		/* connect xtal input to 25MHz reference */
105*724ba675SRob Herring		clocks = <&ref25>;
106*724ba675SRob Herring		clock-names = "xtal";
107*724ba675SRob Herring
108*724ba675SRob Herring		/* connect xtal input as source of pll0 and pll1 */
109*724ba675SRob Herring		silabs,pll-source = <0 0>, <1 0>;
110*724ba675SRob Herring
111*724ba675SRob Herring		clkout0 {
112*724ba675SRob Herring			reg = <0>;
113*724ba675SRob Herring			silabs,drive-strength = <8>;
114*724ba675SRob Herring			silabs,multisynth-source = <0>;
115*724ba675SRob Herring			silabs,clock-source = <0>;
116*724ba675SRob Herring			silabs,pll-master;
117*724ba675SRob Herring		};
118*724ba675SRob Herring
119*724ba675SRob Herring		clkout2 {
120*724ba675SRob Herring			reg = <2>;
121*724ba675SRob Herring			silabs,drive-strength = <8>;
122*724ba675SRob Herring			silabs,multisynth-source = <1>;
123*724ba675SRob Herring			silabs,clock-source = <0>;
124*724ba675SRob Herring			silabs,pll-master;
125*724ba675SRob Herring		};
126*724ba675SRob Herring	};
127*724ba675SRob Herring};
128*724ba675SRob Herring
129*724ba675SRob Herring&sdio0 {
130*724ba675SRob Herring	status = "okay";
131*724ba675SRob Herring};
132*724ba675SRob Herring
133*724ba675SRob Herring&spi0 {
134*724ba675SRob Herring	status = "okay";
135*724ba675SRob Herring
136*724ba675SRob Herring	/* spi0.0: 4M Flash Winbond W25Q32BV */
137*724ba675SRob Herring	flash@0 {
138*724ba675SRob Herring		compatible = "st,w25q32";
139*724ba675SRob Herring		spi-max-frequency = <20000000>;
140*724ba675SRob Herring		reg = <0>;
141*724ba675SRob Herring	};
142*724ba675SRob Herring};
143*724ba675SRob Herring
144*724ba675SRob Herring&audio1 {
145*724ba675SRob Herring	status = "okay";
146*724ba675SRob Herring	clocks = <&gate_clk 13>, <&si5351 2>;
147*724ba675SRob Herring	clock-names = "internal", "extclk";
148*724ba675SRob Herring	pinctrl-0 = <&pmx_audio1_i2s1_spdifo &pmx_audio1_extclk>;
149*724ba675SRob Herring	pinctrl-names = "default";
150*724ba675SRob Herring};
151