imx7d-pico-pi.dts 859 字节
Newer Older
1 2 3
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
//
// Copyright 2017 NXP
4 5 6 7

#include "imx7d-pico.dtsi"

/ {
8 9 10
	model = "TechNexion PICO-IMX7D Board and PI baseboard";
	compatible = "technexion,imx7d-pico-pi", "fsl,imx7d";

11 12 13 14 15 16 17 18 19 20 21
	sound {
		compatible = "simple-audio-card";
		simple-audio-card,name = "imx7-sgtl5000";
		simple-audio-card,format = "i2s";
		simple-audio-card,bitclock-master = <&dailink_master>;
		simple-audio-card,frame-master = <&dailink_master>;
		simple-audio-card,cpu {
			sound-dai = <&sai1>;
		};

		dailink_master: simple-audio-card,codec {
22
			sound-dai = <&sgtl5000>;
23 24 25 26 27 28
			clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
		};
	};
};

&i2c1 {
29
	sgtl5000: codec@a {
30 31 32 33 34 35 36 37
		#sound-dai-cells = <0>;
		reg = <0x0a>;
		compatible = "fsl,sgtl5000";
		clocks = <&clks IMX7D_AUDIO_MCLK_ROOT_CLK>;
		VDDA-supply = <&reg_2p5v>;
		VDDIO-supply = <&reg_vref_1v8>;
	};
};