Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright 2016 Mylène Josserand
0003  *
0004  * Mylène Josserand <mylene.josserand@free-electrons.com>
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 library 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 library 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 "sun5i.dtsi"
0046 
0047 #include <dt-bindings/clock/sun5i-ccu.h>
0048 #include <dt-bindings/dma/sun4i-a10.h>
0049 #include <dt-bindings/reset/sun5i-ccu.h>
0050 
0051 / {
0052         display-engine {
0053                 compatible = "allwinner,sun5i-a13-display-engine";
0054                 allwinner,pipelines = <&fe0>;
0055         };
0056 
0057         soc {
0058                 pwm: pwm@1c20e00 {
0059                         compatible = "allwinner,sun5i-a10s-pwm";
0060                         reg = <0x01c20e00 0xc>;
0061                         clocks = <&ccu CLK_HOSC>;
0062                         #pwm-cells = <3>;
0063                         status = "disabled";
0064                 };
0065 
0066                 spdif: spdif@1c21000 {
0067                         #sound-dai-cells = <0>;
0068                         compatible = "allwinner,sun4i-a10-spdif";
0069                         reg = <0x01c21000 0x400>;
0070                         interrupts = <13>;
0071                         clocks = <&ccu CLK_APB0_SPDIF>, <&ccu CLK_SPDIF>;
0072                         clock-names = "apb", "spdif";
0073                         dmas = <&dma SUN4I_DMA_NORMAL 2>,
0074                                <&dma SUN4I_DMA_NORMAL 2>;
0075                         dma-names = "rx", "tx";
0076                         status = "disabled";
0077                 };
0078 
0079                 i2s0: i2s@1c22400 {
0080                         #sound-dai-cells = <0>;
0081                         compatible = "allwinner,sun4i-a10-i2s";
0082                         reg = <0x01c22400 0x400>;
0083                         interrupts = <16>;
0084                         clocks = <&ccu CLK_APB0_I2S>, <&ccu CLK_I2S>;
0085                         clock-names = "apb", "mod";
0086                         dmas = <&dma SUN4I_DMA_NORMAL 3>,
0087                                <&dma SUN4I_DMA_NORMAL 3>;
0088                         dma-names = "rx", "tx";
0089                         status = "disabled";
0090                 };
0091         };
0092 };
0093 
0094 &ccu {
0095         compatible = "nextthing,gr8-ccu";
0096 };
0097 
0098 &pio {
0099         compatible = "nextthing,gr8-pinctrl";
0100 
0101         i2s0_data_pins: i2s0-data-pins {
0102                 pins = "PB6", "PB7", "PB8", "PB9";
0103                 function = "i2s0";
0104         };
0105 
0106         i2s0_mclk_pin: i2s0-mclk-pin {
0107                 pins = "PB5";
0108                 function = "i2s0";
0109         };
0110 
0111         pwm1_pins: pwm1-pin {
0112                 pins = "PG13";
0113                 function = "pwm1";
0114         };
0115 
0116         spdif_tx_pin: spdif-tx-pin {
0117                 pins = "PB10";
0118                 function = "spdif";
0119                 bias-pull-up;
0120         };
0121 
0122         uart1_cts_rts_pins: uart1-cts-rts-pins {
0123                 pins = "PG5", "PG6";
0124                 function = "uart1";
0125         };
0126 };