/* * Copyright (c) 2015 MediaTek Inc. * Author: Erin Lo * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ /dts-v1/; #include "mt2701.dtsi" / { model = "MediaTek MT2701 evaluation board"; compatible = "mediatek,mt2701-evb", "mediatek,mt2701"; memory { reg = <0 0x80000000 0 0x40000000>; }; sound:sound { compatible = "mediatek,mt2701-cs42448-machine"; mediatek,platform = <&afe>; /* CS42448 Machine name */ audio-routing = "Line Out Jack", "AOUT1L", "Line Out Jack", "AOUT1R", "Line Out Jack", "AOUT2L", "Line Out Jack", "AOUT2R", "Line Out Jack", "AOUT3L", "Line Out Jack", "AOUT3R", "Line Out Jack", "AOUT4L", "Line Out Jack", "AOUT4R", "AIN1L", "AMIC", "AIN1R", "AMIC", "AIN2L", "Tuner In", "AIN2R", "Tuner In", "AIN3L", "Satellite Tuner In", "AIN3R", "Satellite Tuner In", "AIN3L", "AUX In", "AIN3R", "AUX In"; mediatek,audio-codec = <&cs42448>; mediatek,audio-codec-bt-mrg = <&bt_sco_codec>; pinctrl-names = "default"; pinctrl-0 = <&aud_pins_default>; i2s1-in-sel-gpio1 = <&pio 53 0>; i2s1-in-sel-gpio2 = <&pio 54 0>; status = "okay"; }; bt_sco_codec:bt_sco_codec { compatible = "linux,bt-sco"; }; }; &auxadc { status = "okay"; }; &i2c0 { pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins_a>; status = "okay"; }; &i2c1 { pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins_a>; status = "okay"; }; &i2c2 { pinctrl-names = "default"; pinctrl-0 = <&i2c2_pins_a>; status = "okay"; cs42448: cs42448@48 { compatible = "cirrus,cs42448"; reg = <0x48>; clocks = <&topckgen CLK_TOP_AUD_I2S1_MCLK>; clock-names = "mclk"; }; }; &pio { i2c0_pins_a: i2c0@0 { pins1 { pinmux = , ; bias-disable; }; }; i2c1_pins_a: i2c1@0 { pins1 { pinmux = , ; bias-disable; }; }; i2c2_pins_a: i2c2@0 { pins1 { pinmux = , ; bias-disable; }; }; spi_pins_a: spi0@0 { pins_spi { pinmux = , , , ; bias-disable; }; }; aud_pins_default: audiodefault { pins_cmd_dat { pinmux = , , , , , , , , , , , , , , , , , ; drive-strength = ; bias-pull-down; }; }; spi_pins_b: spi1@0 { pins_spi { pinmux = , , , ; bias-disable; }; }; spi_pins_c: spi2@0 { pins_spi { pinmux = , , , ; bias-disable; }; }; }; &spi0 { pinctrl-names = "default"; pinctrl-0 = <&spi_pins_a>; status = "disabled"; }; &spi1 { pinctrl-names = "default"; pinctrl-0 = <&spi_pins_b>; status = "disabled"; }; &spi2 { pinctrl-names = "default"; pinctrl-0 = <&spi_pins_c>; status = "disabled"; }; &nor_flash { pinctrl-names = "default"; pinctrl-0 = <&nor_pins_default>; status = "okay"; flash@0 { compatible = "jedec,spi-nor"; reg = <0>; }; }; &pio { nor_pins_default: nor { pins1 { pinmux = , , , , , ; drive-strength = ; bias-pull-up; }; }; }; &uart0 { status = "okay"; };