0001 // SPDX-License-Identifier: GPL-2.0+
0002 /*
0003 * Device Tree file for the Kontron SMARC-sAL28 board on a SMARC Eval 2.0
0004 * carrier (ADS2).
0005 *
0006 * Copyright (C) 2019 Michael Walle <michael@walle.cc>
0007 *
0008 */
0009
0010 /dts-v1/;
0011
0012 #include <dt-bindings/clock/fsl,qoriq-clockgen.h>
0013 #include "fsl-ls1028a-kontron-sl28.dts"
0014
0015 / {
0016 model = "Kontron SMARC-sAL28 (Single PHY) on SMARC Eval 2.0 carrier";
0017 compatible = "kontron,sl28-var3-ads2", "kontron,sl28-var3",
0018 "kontron,sl28", "fsl,ls1028a";
0019
0020 pwm-fan {
0021 compatible = "pwm-fan";
0022 cooling-min-state = <0>;
0023 cooling-max-state = <3>;
0024 #cooling-cells = <2>;
0025 pwms = <&sl28cpld_pwm0 0 4000000>;
0026 cooling-levels = <1 128 192 255>;
0027 };
0028
0029 sound {
0030 #address-cells = <1>;
0031 #size-cells = <0>;
0032 compatible = "simple-audio-card";
0033 simple-audio-card,widgets =
0034 "Headphone", "Headphone Jack",
0035 "Line", "Line Out Jack",
0036 "Microphone", "Microphone Jack",
0037 "Line", "Line In Jack";
0038 simple-audio-card,routing =
0039 "Line Out Jack", "LINEOUTR",
0040 "Line Out Jack", "LINEOUTL",
0041 "Headphone Jack", "HPOUTR",
0042 "Headphone Jack", "HPOUTL",
0043 "IN1L", "Line In Jack",
0044 "IN1R", "Line In Jack",
0045 "Microphone Jack", "MICBIAS",
0046 "IN2L", "Microphone Jack",
0047 "IN2R", "Microphone Jack";
0048 simple-audio-card,mclk-fs = <256>;
0049
0050 simple-audio-card,dai-link@0 {
0051 reg = <0>;
0052 bitclock-master = <&dailink0_master>;
0053 frame-master = <&dailink0_master>;
0054 format = "i2s";
0055
0056 cpu {
0057 sound-dai = <&sai6>;
0058 };
0059
0060 dailink0_master: codec {
0061 sound-dai = <&wm8904>;
0062 };
0063 };
0064
0065 simple-audio-card,dai-link@1 {
0066 reg = <1>;
0067 bitclock-master = <&dailink1_master>;
0068 frame-master = <&dailink1_master>;
0069 format = "i2s";
0070
0071 cpu {
0072 sound-dai = <&sai5>;
0073 };
0074
0075 dailink1_master: codec {
0076 sound-dai = <&wm8904>;
0077 };
0078 };
0079 };
0080 };
0081
0082 &dspi2 {
0083 flash@0 {
0084 compatible = "jedec,spi-nor";
0085 m25p,fast-read;
0086 spi-max-frequency = <100000000>;
0087 reg = <0>;
0088 };
0089 };
0090
0091 &i2c3 {
0092 eeprom@57 {
0093 compatible = "atmel,24c64";
0094 reg = <0x57>;
0095 pagesize = <32>;
0096 };
0097 };
0098
0099 &i2c4 {
0100 status = "okay";
0101
0102 wm8904: audio-codec@1a {
0103 #sound-dai-cells = <0>;
0104 compatible = "wlf,wm8904";
0105 reg = <0x1a>;
0106 clocks = <&mclk>;
0107 clock-names = "mclk";
0108 assigned-clocks = <&mclk>;
0109 assigned-clock-rates = <1250000>;
0110 };
0111 };
0112
0113 &sai5 {
0114 status = "okay";
0115 };
0116
0117 &sai6 {
0118 status = "okay";
0119 };
0120
0121 &soc {
0122 mclk: clock-mclk@f130080 {
0123 compatible = "fsl,vf610-sai-clock";
0124 reg = <0x0 0xf130080 0x0 0x80>;
0125 clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
0126 QORIQ_CLK_PLL_DIV(2)>;
0127 #clock-cells = <0>;
0128 };
0129 };