1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright (c) 2016 Andreas Färber
4 * Copyright (c) 2016 BayLibre, Inc.
5 * Author: Kevin Hilman <khilman@kernel.org>
6 */
7
8/dts-v1/;
9
10#include "meson-gxbb-p20x.dtsi"
11#include <dt-bindings/sound/meson-aiu.h>
12
13/ {
14	compatible = "amlogic,p201", "amlogic,meson-gxbb";
15	model = "Amlogic Meson GXBB P201 Development Board";
16
17	sound {
18		compatible = "amlogic,gx-sound-card";
19		model = "P201";
20		clocks = <&clkc CLKID_MPLL0>,
21			 <&clkc CLKID_MPLL1>,
22			 <&clkc CLKID_MPLL2>;
23
24		assigned-clocks = <&clkc CLKID_MPLL0>,
25				  <&clkc CLKID_MPLL1>,
26				  <&clkc CLKID_MPLL2>;
27		assigned-clock-parents = <0>, <0>, <0>;
28		assigned-clock-rates = <294912000>,
29				       <270950400>,
30				       <393216000>;
31
32		dai-link-0 {
33			sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
34		};
35
36		dai-link-1 {
37			sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
38			dai-format = "i2s";
39			mclk-fs = <256>;
40
41			codec-0 {
42				sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
43			};
44		};
45
46		dai-link-2 {
47			sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
48
49			codec-0 {
50				sound-dai = <&hdmi_tx>;
51			};
52		};
53	};
54};
55
56&aiu {
57	status = "okay";
58};
59
60&ethmac {
61	status = "okay";
62	pinctrl-0 = <&eth_rmii_pins>;
63	pinctrl-names = "default";
64	phy-mode = "rmii";
65
66	snps,reset-gpio = <&gpio GPIOZ_14 0>;
67	snps,reset-delays-us = <0>, <10000>, <1000000>;
68	snps,reset-active-low;
69};
70