Linux Audio

Check our new training course

Linux kernel drivers training

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