xref: /freebsd/sys/contrib/device-tree/src/arm64/amlogic/meson-gxbb-p201.dts (revision 6580f5c38dd5b01aeeaed16b370f1a12423437f0)
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		assigned-clocks = <&clkc CLKID_MPLL0>,
21				  <&clkc CLKID_MPLL1>,
22				  <&clkc CLKID_MPLL2>;
23		assigned-clock-parents = <0>, <0>, <0>;
24		assigned-clock-rates = <294912000>,
25				       <270950400>,
26				       <393216000>;
27
28		dai-link-0 {
29			sound-dai = <&aiu AIU_CPU CPU_I2S_FIFO>;
30		};
31
32		dai-link-1 {
33			sound-dai = <&aiu AIU_CPU CPU_I2S_ENCODER>;
34			dai-format = "i2s";
35			mclk-fs = <256>;
36
37			codec-0 {
38				sound-dai = <&aiu AIU_HDMI CTRL_I2S>;
39			};
40		};
41
42		dai-link-2 {
43			sound-dai = <&aiu AIU_HDMI CTRL_OUT>;
44
45			codec-0 {
46				sound-dai = <&hdmi_tx>;
47			};
48		};
49	};
50};
51
52&aiu {
53	status = "okay";
54};
55
56&ethmac {
57	status = "okay";
58	pinctrl-0 = <&eth_rmii_pins>;
59	pinctrl-names = "default";
60	phy-mode = "rmii";
61
62	snps,reset-gpio = <&gpio GPIOZ_14 0>;
63	snps,reset-delays-us = <0>, <10000>, <1000000>;
64	snps,reset-active-low;
65};
66