Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright 2014 Chen-Yu Tsai
0003  *
0004  * Chen-Yu Tsai <wens@csie.org>
0005  *
0006  * This file is dual-licensed: you can use it either under the terms
0007  * of the GPL or the X11 license, at your option. Note that this dual
0008  * licensing only applies to this file, and not this project as a
0009  * whole.
0010  *
0011  *  a) This file is free software; you can redistribute it and/or
0012  *     modify it under the terms of the GNU General Public License as
0013  *     published by the Free Software Foundation; either version 2 of the
0014  *     License, or (at your option) any later version.
0015  *
0016  *     This file is distributed in the hope that it will be useful,
0017  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
0018  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0019  *     GNU General Public License for more details.
0020  *
0021  * Or, alternatively,
0022  *
0023  *  b) Permission is hereby granted, free of charge, to any person
0024  *     obtaining a copy of this software and associated documentation
0025  *     files (the "Software"), to deal in the Software without
0026  *     restriction, including without limitation the rights to use,
0027  *     copy, modify, merge, publish, distribute, sublicense, and/or
0028  *     sell copies of the Software, and to permit persons to whom the
0029  *     Software is furnished to do so, subject to the following
0030  *     conditions:
0031  *
0032  *     The above copyright notice and this permission notice shall be
0033  *     included in all copies or substantial portions of the Software.
0034  *
0035  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0036  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0037  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0038  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0039  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0040  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0041  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0042  *     OTHER DEALINGS IN THE SOFTWARE.
0043  */
0044 
0045 #include "sun8i-a23-a33.dtsi"
0046 
0047 / {
0048         soc {
0049                 codec: codec@1c22c00 {
0050                         #sound-dai-cells = <0>;
0051                         compatible = "allwinner,sun8i-a23-codec";
0052                         reg = <0x01c22c00 0x400>;
0053                         interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
0054                         clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
0055                         clock-names = "apb", "codec";
0056                         resets = <&ccu RST_BUS_CODEC>;
0057                         dmas = <&dma 15>, <&dma 15>;
0058                         dma-names = "rx", "tx";
0059                         allwinner,codec-analog-controls = <&codec_analog>;
0060                         status = "disabled";
0061                 };
0062         };
0063 };
0064 
0065 &be0 {
0066         compatible = "allwinner,sun8i-a23-display-backend";
0067 };
0068 
0069 &ccu {
0070         compatible = "allwinner,sun8i-a23-ccu";
0071 };
0072 
0073 &de {
0074         compatible = "allwinner,sun8i-a23-display-engine";
0075 };
0076 
0077 &drc0 {
0078         compatible = "allwinner,sun8i-a23-drc";
0079 };
0080 
0081 &fe0 {
0082         compatible = "allwinner,sun8i-a23-display-frontend";
0083 };
0084 
0085 &pio {
0086         compatible = "allwinner,sun8i-a23-pinctrl";
0087         interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
0088                      <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
0089                      <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
0090 };
0091 
0092 &tcon0 {
0093         compatible = "allwinner,sun8i-a23-tcon";
0094 };
0095 
0096 &usb_otg {
0097         compatible = "allwinner,sun6i-a31-musb";
0098 };
0099 
0100 &usbphy {
0101         compatible = "allwinner,sun8i-a23-usb-phy";
0102         reg = <0x01c19400 0x10>, <0x01c1a800 0x4>;
0103         reg-names = "phy_ctrl", "pmu1";
0104 };