// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2015 MediaTek Inc. * Author: Erin Lo * */ /dts-v1/; #include #include "mt2701.dtsi" / { model = "MediaTek MT2701 evaluation board"; compatible = "mediatek,mt2701-evb", "mediatek,mt2701"; memory { device_type = "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"; }; backlight_lcd: backlight_lcd { compatible = "pwm-backlight"; pwms = <&bls 0 100000>; brightness-levels = < 0 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 255 >; default-brightness-level = <9>; }; usb_vbus: regulator@0 { compatible = "regulator-fixed"; regulator-name = "usb_vbus"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; gpio = <&pio 45 GPIO_ACTIVE_HIGH>; enable-active-high; }; }; &auxadc { status = "okay"; }; &bls { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&pwm_bls_gpio>; }; &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; }; }; pwm_bls_gpio: pwm_bls_gpio { pins_cmd_dat { pinmux = ; }; }; 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 = <4>; bias-pull-up; }; }; }; &uart0 { status = "okay"; }; &usb2 { status = "okay"; usb-role-switch; connector { compatible = "gpio-usb-b-connector", "usb-b-connector"; type = "micro"; id-gpios = <&pio 44 GPIO_ACTIVE_HIGH>; vbus-supply = <&usb_vbus>; }; };