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