Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Device Tree file for Freescale LS1012A Freedom Board.
0004  *
0005  * Copyright 2016 Freescale Semiconductor, Inc.
0006  *
0007  */
0008 /dts-v1/;
0009 
0010 #include <dt-bindings/interrupt-controller/irq.h>
0011 #include "fsl-ls1012a.dtsi"
0012 
0013 / {
0014         model = "LS1012A Freedom Board";
0015         compatible = "fsl,ls1012a-frdm", "fsl,ls1012a";
0016 
0017         sys_mclk: clock-mclk {
0018                 compatible = "fixed-clock";
0019                 #clock-cells = <0>;
0020                 clock-frequency = <25000000>;
0021         };
0022 
0023         reg_1p8v: regulator-1p8v {
0024                 compatible = "regulator-fixed";
0025                 regulator-name = "1P8V";
0026                 regulator-min-microvolt = <1800000>;
0027                 regulator-max-microvolt = <1800000>;
0028                 regulator-always-on;
0029         };
0030 
0031         sound {
0032                 compatible = "simple-audio-card";
0033                 simple-audio-card,format = "i2s";
0034                 simple-audio-card,widgets =
0035                         "Microphone", "Microphone Jack",
0036                         "Headphone", "Headphone Jack",
0037                         "Speaker", "Speaker Ext",
0038                         "Line", "Line In Jack";
0039                 simple-audio-card,routing =
0040                         "MIC_IN", "Microphone Jack",
0041                         "Microphone Jack", "Mic Bias",
0042                         "LINE_IN", "Line In Jack",
0043                         "Headphone Jack", "HP_OUT",
0044                         "Speaker Ext", "LINE_OUT";
0045 
0046                 simple-audio-card,cpu {
0047                         sound-dai = <&sai2>;
0048                         frame-master;
0049                         bitclock-master;
0050                 };
0051 
0052                 simple-audio-card,codec {
0053                         sound-dai = <&codec>;
0054                         frame-master;
0055                         bitclock-master;
0056                         system-clock-frequency = <25000000>;
0057                 };
0058         };
0059 };
0060 
0061 &dspi {
0062         bus-num = <0>;
0063         status = "okay";
0064 
0065         serial@0 {
0066                 compatible = "nxp,sc16is740";
0067                 reg = <0>;
0068                 spi-max-frequency = <4000000>;
0069                 clocks = <&sc16is7xx_clk>;
0070                 interrupt-parent = <&gpio1>;
0071                 interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
0072 
0073                 sc16is7xx_clk: clock-sc16is7xx {
0074                         compatible = "fixed-clock";
0075                         #clock-cells = <0>;
0076                         clock-frequency = <24000000>;
0077                 };
0078         };
0079 };
0080 
0081 &duart0 {
0082         status = "okay";
0083 };
0084 
0085 &i2c0 {
0086         status = "okay";
0087 
0088         codec: sgtl5000@a {
0089                 #sound-dai-cells = <0>;
0090                 compatible = "fsl,sgtl5000";
0091                 reg = <0xa>;
0092                 VDDA-supply = <&reg_1p8v>;
0093                 VDDIO-supply = <&reg_1p8v>;
0094                 clocks = <&sys_mclk>;
0095         };
0096 };
0097 
0098 &qspi {
0099         status = "okay";
0100 
0101         s25fs512s0: flash@0 {
0102                 compatible = "jedec,spi-nor";
0103                 #address-cells = <1>;
0104                 #size-cells = <1>;
0105                 spi-max-frequency = <50000000>;
0106                 m25p,fast-read;
0107                 reg = <0>;
0108                 spi-rx-bus-width = <2>;
0109                 spi-tx-bus-width = <2>;
0110         };
0111 };
0112 
0113 &sai2 {
0114         status = "okay";
0115 };
0116 
0117 &sata {
0118         status = "okay";
0119 };