Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0 or MIT)
0002 //
0003 // Copyright (C) 2021 emtrion GmbH
0004 // Author: Frank Erdrich <frank.erdrich@emtrion.com>
0005 //
0006 
0007 / {
0008         aliases {
0009                 boardid = &boardID;
0010                 mmc0 = &usdhc1;
0011                 mmc1 = &usdhc2;
0012         };
0013 
0014         chosen {
0015                 stdout-path = &uart1;
0016         };
0017 
0018         reg_wall_5p0: regulator-wall5p0 {
0019                 compatible = "regulator-fixed";
0020                 regulator-name = "Main-Supply";
0021                 regulator-min-microvolt = <5000000>;
0022                 regulator-max-microvolt = <5000000>;
0023                 regulator-always-on;
0024                 regulator-boot-on;
0025         };
0026 
0027         reg_base3p3: regulator-base3p3 {
0028                 compatible = "regulator-fixed";
0029                 vin-supply = <&reg_wall_5p0>;
0030                 regulator-name = "3V3-avari";
0031                 regulator-min-microvolt = <3300000>;
0032                 regulator-max-microvolt = <3300000>;
0033                 regulator-always-on;
0034                 regulator-boot-on;
0035         };
0036 
0037         reg_base1p5: regulator-base1p5 {
0038                 compatible = "regulator-fixed";
0039                 vin-supply = <&reg_base3p3>;
0040                 regulator-name = "1V5-avari";
0041                 regulator-min-microvolt = <1500000>;
0042                 regulator-max-microvolt = <1500000>;
0043                 regulator-always-on;
0044                 regulator-boot-on;
0045         };
0046 
0047         reg_usb_otg: regulator-otgvbus {
0048                 compatible = "regulator-fixed";
0049                 vin-supply = <&reg_wall_5p0>;
0050                 regulator-name = "OTG_VBUS";
0051                 regulator-min-microvolt = <5000000>;
0052                 regulator-max-microvolt = <5000000>;
0053                 gpio = <&gpio1 8 GPIO_ACTIVE_LOW>;
0054                 regulator-always-on;
0055         };
0056 
0057         clk_codec: clock-codec {
0058                 compatible = "fixed-clock";
0059                 #clock-cells = <0>;
0060                 clock-frequency = <12000000>;
0061         };
0062 
0063         sound {
0064                 compatible = "simple-audio-card";
0065                 simple-audio-card,name = "SGTL5000-Card";
0066                 simple-audio-card,format = "i2s";
0067                 simple-audio-card,bitclock-master = <&codec_dai>;
0068                 simple-audio-card,frame-master = <&codec_dai>;
0069                 simple-audio-card,widgets = "Headphone", "Headphone Jack";
0070                 simple-audio-card,routing = "Headphone Jack", "HP_OUT";
0071 
0072                 cpu_dai: simple-audio-card,cpu {
0073                         sound-dai = <&sai2>;
0074                 };
0075 
0076                 codec_dai: simple-audio-card,codec {
0077                         sound-dai = <&sgtl5000>;
0078                 };
0079         };
0080 };
0081 
0082 &ecspi1 {
0083         status = "okay";
0084 };
0085 
0086 &i2c2 {
0087         status = "okay";
0088 };
0089 
0090 &i2c1 {
0091         clock-frequency = <100000>;
0092         status = "okay";
0093 
0094         sgtl5000: audio-codec@a {
0095                 compatible = "fsl,sgtl5000";
0096                 reg = <0x0a>;
0097                 #sound-dai-cells = <0>;
0098                 clocks = <&clk_codec>;
0099                 VDDA-supply = <&reg_base3p3>;
0100                 VDDIO-supply = <&reg_base3p3>;
0101         };
0102 
0103         boardID: gpio@3a {
0104                 compatible = "nxp,pca8574";
0105                 reg = <0x3a>;
0106                 gpio-controller;
0107                 #gpio-cells = <1>;
0108         };
0109 };
0110 
0111 &sai2 {
0112         status = "okay";
0113 };
0114 
0115 &uart2 {
0116         uart-has-rtscts;
0117         status = "okay";
0118 };
0119 
0120 &uart3 {
0121         status = "okay";
0122 };
0123 
0124 &uart4 {
0125         status = "okay";
0126 };
0127 
0128 &usbotg1 {
0129         status = "okay";
0130 };
0131 
0132 &usbotg2 {
0133         dr_mode = "host";
0134         status = "disabled";
0135 };
0136 
0137 &usdhc2 {
0138         status = "okay";
0139 };