1*05c618f3SKrzysztof Kozlowski// SPDX-License-Identifier: (GPL-2.0 OR MIT)
22449d044SReinhold Mueller//
32449d044SReinhold Mueller// Copyright (C) 2021 emtrion GmbH
42449d044SReinhold Mueller// Author: Frank Erdrich <frank.erdrich@emtrion.com>
52449d044SReinhold Mueller//
62449d044SReinhold Mueller
72449d044SReinhold Mueller/ {
82449d044SReinhold Mueller	aliases {
92449d044SReinhold Mueller		boardid = &boardID;
102449d044SReinhold Mueller		mmc0 = &usdhc1;
112449d044SReinhold Mueller		mmc1 = &usdhc2;
122449d044SReinhold Mueller	};
132449d044SReinhold Mueller
142449d044SReinhold Mueller	chosen {
152449d044SReinhold Mueller		stdout-path = &uart1;
162449d044SReinhold Mueller	};
172449d044SReinhold Mueller
182449d044SReinhold Mueller	reg_wall_5p0: regulator-wall5p0 {
192449d044SReinhold Mueller		compatible = "regulator-fixed";
202449d044SReinhold Mueller		regulator-name = "Main-Supply";
212449d044SReinhold Mueller		regulator-min-microvolt = <5000000>;
222449d044SReinhold Mueller		regulator-max-microvolt = <5000000>;
232449d044SReinhold Mueller		regulator-always-on;
242449d044SReinhold Mueller		regulator-boot-on;
252449d044SReinhold Mueller	};
262449d044SReinhold Mueller
272449d044SReinhold Mueller	reg_base3p3: regulator-base3p3 {
282449d044SReinhold Mueller		compatible = "regulator-fixed";
292449d044SReinhold Mueller		vin-supply = <&reg_wall_5p0>;
302449d044SReinhold Mueller		regulator-name = "3V3-avari";
312449d044SReinhold Mueller		regulator-min-microvolt = <3300000>;
322449d044SReinhold Mueller		regulator-max-microvolt = <3300000>;
332449d044SReinhold Mueller		regulator-always-on;
342449d044SReinhold Mueller		regulator-boot-on;
352449d044SReinhold Mueller	};
362449d044SReinhold Mueller
372449d044SReinhold Mueller	reg_base1p5: regulator-base1p5 {
382449d044SReinhold Mueller		compatible = "regulator-fixed";
392449d044SReinhold Mueller		vin-supply = <&reg_base3p3>;
402449d044SReinhold Mueller		regulator-name = "1V5-avari";
412449d044SReinhold Mueller		regulator-min-microvolt = <1500000>;
422449d044SReinhold Mueller		regulator-max-microvolt = <1500000>;
432449d044SReinhold Mueller		regulator-always-on;
442449d044SReinhold Mueller		regulator-boot-on;
452449d044SReinhold Mueller	};
462449d044SReinhold Mueller
472449d044SReinhold Mueller	reg_usb_otg: regulator-otgvbus {
482449d044SReinhold Mueller		compatible = "regulator-fixed";
492449d044SReinhold Mueller		vin-supply = <&reg_wall_5p0>;
502449d044SReinhold Mueller		regulator-name = "OTG_VBUS";
512449d044SReinhold Mueller		regulator-min-microvolt = <5000000>;
522449d044SReinhold Mueller		regulator-max-microvolt = <5000000>;
532449d044SReinhold Mueller		gpio = <&gpio1 8 GPIO_ACTIVE_LOW>;
542449d044SReinhold Mueller		regulator-always-on;
552449d044SReinhold Mueller	};
562449d044SReinhold Mueller
572449d044SReinhold Mueller	clk_codec: clock-codec {
582449d044SReinhold Mueller		compatible = "fixed-clock";
592449d044SReinhold Mueller		#clock-cells = <0>;
602449d044SReinhold Mueller		clock-frequency = <12000000>;
612449d044SReinhold Mueller	};
622449d044SReinhold Mueller
632449d044SReinhold Mueller	sound {
642449d044SReinhold Mueller		compatible = "simple-audio-card";
652449d044SReinhold Mueller		simple-audio-card,name = "SGTL5000-Card";
662449d044SReinhold Mueller		simple-audio-card,format = "i2s";
672449d044SReinhold Mueller		simple-audio-card,bitclock-master = <&codec_dai>;
682449d044SReinhold Mueller		simple-audio-card,frame-master = <&codec_dai>;
692449d044SReinhold Mueller		simple-audio-card,widgets = "Headphone", "Headphone Jack";
702449d044SReinhold Mueller		simple-audio-card,routing = "Headphone Jack", "HP_OUT";
712449d044SReinhold Mueller
722449d044SReinhold Mueller		cpu_dai: simple-audio-card,cpu {
732449d044SReinhold Mueller			sound-dai = <&sai2>;
742449d044SReinhold Mueller		};
752449d044SReinhold Mueller
762449d044SReinhold Mueller		codec_dai: simple-audio-card,codec {
772449d044SReinhold Mueller			sound-dai = <&sgtl5000>;
782449d044SReinhold Mueller		};
792449d044SReinhold Mueller	};
802449d044SReinhold Mueller};
812449d044SReinhold Mueller
822449d044SReinhold Mueller&ecspi1 {
832449d044SReinhold Mueller	status = "okay";
842449d044SReinhold Mueller};
852449d044SReinhold Mueller
862449d044SReinhold Mueller&i2c2 {
872449d044SReinhold Mueller	status = "okay";
882449d044SReinhold Mueller};
892449d044SReinhold Mueller
902449d044SReinhold Mueller&i2c1 {
912449d044SReinhold Mueller	clock-frequency = <100000>;
922449d044SReinhold Mueller	status = "okay";
932449d044SReinhold Mueller
942449d044SReinhold Mueller	sgtl5000: audio-codec@a {
952449d044SReinhold Mueller		compatible = "fsl,sgtl5000";
962449d044SReinhold Mueller		reg = <0x0a>;
972449d044SReinhold Mueller		#sound-dai-cells = <0>;
982449d044SReinhold Mueller		clocks = <&clk_codec>;
992449d044SReinhold Mueller		VDDA-supply = <&reg_base3p3>;
1002449d044SReinhold Mueller		VDDIO-supply = <&reg_base3p3>;
1012449d044SReinhold Mueller	};
1022449d044SReinhold Mueller
1032449d044SReinhold Mueller	boardID: gpio@3a {
1042449d044SReinhold Mueller		compatible = "nxp,pca8574";
1052449d044SReinhold Mueller		reg = <0x3a>;
1062449d044SReinhold Mueller		gpio-controller;
1072449d044SReinhold Mueller		#gpio-cells = <1>;
1082449d044SReinhold Mueller	};
1092449d044SReinhold Mueller};
1102449d044SReinhold Mueller
1112449d044SReinhold Mueller&sai2 {
1122449d044SReinhold Mueller	status = "okay";
1132449d044SReinhold Mueller};
1142449d044SReinhold Mueller
1152449d044SReinhold Mueller&uart2 {
1162449d044SReinhold Mueller	uart-has-rtscts;
1172449d044SReinhold Mueller	status = "okay";
1182449d044SReinhold Mueller};
1192449d044SReinhold Mueller
1202449d044SReinhold Mueller&uart3 {
1212449d044SReinhold Mueller	status = "okay";
1222449d044SReinhold Mueller};
1232449d044SReinhold Mueller
1242449d044SReinhold Mueller&uart4 {
1252449d044SReinhold Mueller	status = "okay";
1262449d044SReinhold Mueller};
1272449d044SReinhold Mueller
1282449d044SReinhold Mueller&usbotg1 {
1292449d044SReinhold Mueller	status = "okay";
1302449d044SReinhold Mueller};
1312449d044SReinhold Mueller
1322449d044SReinhold Mueller&usbotg2 {
1332449d044SReinhold Mueller	dr_mode = "host";
1342449d044SReinhold Mueller	status = "disabled";
1352449d044SReinhold Mueller};
1362449d044SReinhold Mueller
1372449d044SReinhold Mueller&usdhc2 {
1382449d044SReinhold Mueller	status = "okay";
1392449d044SReinhold Mueller};
140