1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot
3*f126890aSEmmanuel Vadot#include <dt-bindings/clock/maxim,max9485.h>
4*f126890aSEmmanuel Vadot
5*f126890aSEmmanuel Vadot/ {
6*f126890aSEmmanuel Vadot	xo_27mhz: oscillator-27mhz {
7*f126890aSEmmanuel Vadot		compatible = "fixed-clock";
8*f126890aSEmmanuel Vadot		#clock-cells = <0>;
9*f126890aSEmmanuel Vadot		clock-frequency = <27000000>;
10*f126890aSEmmanuel Vadot		clock-accuracy = <100>;
11*f126890aSEmmanuel Vadot	};
12*f126890aSEmmanuel Vadot
13*f126890aSEmmanuel Vadot	sound {
14*f126890aSEmmanuel Vadot		compatible = "simple-audio-card";
15*f126890aSEmmanuel Vadot		simple-audio-card,name = "Raumfeld Speaker";
16*f126890aSEmmanuel Vadot		#address-cells = <1>;
17*f126890aSEmmanuel Vadot		#size-cells = <0>;
18*f126890aSEmmanuel Vadot
19*f126890aSEmmanuel Vadot		simple-audio-card,dai-link@0 {
20*f126890aSEmmanuel Vadot			reg = <0>;
21*f126890aSEmmanuel Vadot			format = "i2s";
22*f126890aSEmmanuel Vadot			bitclock-master = <&dailink_master_analog>;
23*f126890aSEmmanuel Vadot			frame-master = <&dailink_master_analog>;
24*f126890aSEmmanuel Vadot			mclk-fs = <256>;
25*f126890aSEmmanuel Vadot
26*f126890aSEmmanuel Vadot			dailink_master_analog: cpu {
27*f126890aSEmmanuel Vadot				sound-dai = <&ssp_dai0>;
28*f126890aSEmmanuel Vadot			};
29*f126890aSEmmanuel Vadot
30*f126890aSEmmanuel Vadot			codec {
31*f126890aSEmmanuel Vadot				sound-dai = <&cs4270>;
32*f126890aSEmmanuel Vadot			};
33*f126890aSEmmanuel Vadot		};
34*f126890aSEmmanuel Vadot	};
35*f126890aSEmmanuel Vadot};
36*f126890aSEmmanuel Vadot
37*f126890aSEmmanuel Vadot&ssp_dai0 {
38*f126890aSEmmanuel Vadot	clocks = <&max9485 MAX9485_CLKOUT1>;
39*f126890aSEmmanuel Vadot};
40*f126890aSEmmanuel Vadot
41*f126890aSEmmanuel Vadot&ssp_dai1 {
42*f126890aSEmmanuel Vadot	clocks = <&max9485 MAX9485_CLKOUT1>;
43*f126890aSEmmanuel Vadot};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot&pxai2c1 {
46*f126890aSEmmanuel Vadot	cs4270: codec@48 {
47*f126890aSEmmanuel Vadot		compatible = "cirrus,cs4270";
48*f126890aSEmmanuel Vadot		pinctrl-names = "default";
49*f126890aSEmmanuel Vadot		pinctrl-0 = <&cs4270_pins>;
50*f126890aSEmmanuel Vadot		reg = <0x48>;
51*f126890aSEmmanuel Vadot		va-supply = <&reg_va_5v0>;
52*f126890aSEmmanuel Vadot		vd-supply = <&reg_3v3>;
53*f126890aSEmmanuel Vadot		vlc-supply = <&reg_3v3>;
54*f126890aSEmmanuel Vadot		reset-gpios = <&gpio 120 GPIO_ACTIVE_HIGH>;
55*f126890aSEmmanuel Vadot		#sound-dai-cells = <0>;
56*f126890aSEmmanuel Vadot	};
57*f126890aSEmmanuel Vadot
58*f126890aSEmmanuel Vadot	max9485: clock-generator@63 {
59*f126890aSEmmanuel Vadot		compatible = "maxim,max9485";
60*f126890aSEmmanuel Vadot		pinctrl-names = "default";
61*f126890aSEmmanuel Vadot		pinctrl-0 = <&max9485_pins>;
62*f126890aSEmmanuel Vadot		reg = <0x63>;
63*f126890aSEmmanuel Vadot		vdd-supply = <&reg_3v3>;
64*f126890aSEmmanuel Vadot		clock-names = "xclk";
65*f126890aSEmmanuel Vadot		clocks = <&xo_27mhz>;
66*f126890aSEmmanuel Vadot		reset-gpios = <&gpio 111 GPIO_ACTIVE_HIGH>;
67*f126890aSEmmanuel Vadot		#clock-cells = <1>;
68*f126890aSEmmanuel Vadot	};
69*f126890aSEmmanuel Vadot};
70*f126890aSEmmanuel Vadot
71*f126890aSEmmanuel Vadot&pinctrl {
72*f126890aSEmmanuel Vadot	cs4270_pins: cs4270-pins {
73*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
74*f126890aSEmmanuel Vadot			MFP_PIN_PXA300(120) MFP_AF0	/* RESET */
75*f126890aSEmmanuel Vadot		>;
76*f126890aSEmmanuel Vadot		pinctrl-single,low-power-mode = MFP_LPM(MFP_LPM_PULL_LOW);
77*f126890aSEmmanuel Vadot	};
78*f126890aSEmmanuel Vadot
79*f126890aSEmmanuel Vadot	max9485_pins: max9485-pins {
80*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
81*f126890aSEmmanuel Vadot			MFP_PIN_PXA300(111) MFP_AF0	/* RESET */
82*f126890aSEmmanuel Vadot		>;
83*f126890aSEmmanuel Vadot		pinctrl-single,low-power-mode = MFP_LPM(MFP_LPM_PULL_LOW);
84*f126890aSEmmanuel Vadot	};
85*f126890aSEmmanuel Vadot};
86