16a3a226eSMaxime Ripard/* 26a3a226eSMaxime Ripard * Copyright 2016 Mylène Josserand 36a3a226eSMaxime Ripard * 46a3a226eSMaxime Ripard * Mylène Josserand <mylene.josserand@free-electrons.com> 56a3a226eSMaxime Ripard * 66a3a226eSMaxime Ripard * This file is dual-licensed: you can use it either under the terms 76a3a226eSMaxime Ripard * of the GPL or the X11 license, at your option. Note that this dual 86a3a226eSMaxime Ripard * licensing only applies to this file, and not this project as a 96a3a226eSMaxime Ripard * whole. 106a3a226eSMaxime Ripard * 116a3a226eSMaxime Ripard * a) This library is free software; you can redistribute it and/or 126a3a226eSMaxime Ripard * modify it under the terms of the GNU General Public License as 136a3a226eSMaxime Ripard * published by the Free Software Foundation; either version 2 of the 146a3a226eSMaxime Ripard * License, or (at your option) any later version. 156a3a226eSMaxime Ripard * 166a3a226eSMaxime Ripard * This library is distributed in the hope that it will be useful, 176a3a226eSMaxime Ripard * but WITHOUT ANY WARRANTY; without even the implied warranty of 186a3a226eSMaxime Ripard * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 196a3a226eSMaxime Ripard * GNU General Public License for more details. 206a3a226eSMaxime Ripard * 216a3a226eSMaxime Ripard * Or, alternatively, 226a3a226eSMaxime Ripard * 236a3a226eSMaxime Ripard * b) Permission is hereby granted, free of charge, to any person 246a3a226eSMaxime Ripard * obtaining a copy of this software and associated documentation 256a3a226eSMaxime Ripard * files (the "Software"), to deal in the Software without 266a3a226eSMaxime Ripard * restriction, including without limitation the rights to use, 276a3a226eSMaxime Ripard * copy, modify, merge, publish, distribute, sublicense, and/or 286a3a226eSMaxime Ripard * sell copies of the Software, and to permit persons to whom the 296a3a226eSMaxime Ripard * Software is furnished to do so, subject to the following 306a3a226eSMaxime Ripard * conditions: 316a3a226eSMaxime Ripard * 326a3a226eSMaxime Ripard * The above copyright notice and this permission notice shall be 336a3a226eSMaxime Ripard * included in all copies or substantial portions of the Software. 346a3a226eSMaxime Ripard * 356a3a226eSMaxime Ripard * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 366a3a226eSMaxime Ripard * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 376a3a226eSMaxime Ripard * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 386a3a226eSMaxime Ripard * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 396a3a226eSMaxime Ripard * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 406a3a226eSMaxime Ripard * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 416a3a226eSMaxime Ripard * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 426a3a226eSMaxime Ripard * OTHER DEALINGS IN THE SOFTWARE. 436a3a226eSMaxime Ripard */ 446a3a226eSMaxime Ripard 45*13b36facSJagan Teki#include "sun5i.dtsi" 46*13b36facSJagan Teki 47*13b36facSJagan Teki#include <dt-bindings/clock/sun5i-ccu.h> 486a3a226eSMaxime Ripard#include <dt-bindings/dma/sun4i-a10.h> 49*13b36facSJagan Teki#include <dt-bindings/reset/sun5i-ccu.h> 506a3a226eSMaxime Ripard 516a3a226eSMaxime Ripard/ { 526a3a226eSMaxime Ripard display-engine { 536a3a226eSMaxime Ripard compatible = "allwinner,sun5i-a13-display-engine"; 546a3a226eSMaxime Ripard allwinner,pipelines = <&fe0>; 556a3a226eSMaxime Ripard }; 566a3a226eSMaxime Ripard 57*13b36facSJagan Teki soc@1c00000 { 58*13b36facSJagan Teki pwm: pwm@1c20e00 { 596a3a226eSMaxime Ripard compatible = "allwinner,sun5i-a10s-pwm"; 606a3a226eSMaxime Ripard reg = <0x01c20e00 0xc>; 61*13b36facSJagan Teki clocks = <&ccu CLK_HOSC>; 626a3a226eSMaxime Ripard #pwm-cells = <3>; 636a3a226eSMaxime Ripard status = "disabled"; 646a3a226eSMaxime Ripard }; 656a3a226eSMaxime Ripard 66*13b36facSJagan Teki spdif: spdif@1c21000 { 676a3a226eSMaxime Ripard #sound-dai-cells = <0>; 686a3a226eSMaxime Ripard compatible = "allwinner,sun4i-a10-spdif"; 696a3a226eSMaxime Ripard reg = <0x01c21000 0x400>; 706a3a226eSMaxime Ripard interrupts = <13>; 71*13b36facSJagan Teki clocks = <&ccu CLK_APB0_SPDIF>, <&ccu CLK_SPDIF>; 726a3a226eSMaxime Ripard clock-names = "apb", "spdif"; 736a3a226eSMaxime Ripard dmas = <&dma SUN4I_DMA_NORMAL 2>, 746a3a226eSMaxime Ripard <&dma SUN4I_DMA_NORMAL 2>; 756a3a226eSMaxime Ripard dma-names = "rx", "tx"; 766a3a226eSMaxime Ripard status = "disabled"; 776a3a226eSMaxime Ripard }; 786a3a226eSMaxime Ripard 79*13b36facSJagan Teki i2s0: i2s@1c22400 { 806a3a226eSMaxime Ripard #sound-dai-cells = <0>; 816a3a226eSMaxime Ripard compatible = "allwinner,sun4i-a10-i2s"; 826a3a226eSMaxime Ripard reg = <0x01c22400 0x400>; 836a3a226eSMaxime Ripard interrupts = <16>; 84*13b36facSJagan Teki clocks = <&ccu CLK_APB0_I2S>, <&ccu CLK_I2S>; 856a3a226eSMaxime Ripard clock-names = "apb", "mod"; 866a3a226eSMaxime Ripard dmas = <&dma SUN4I_DMA_NORMAL 3>, 876a3a226eSMaxime Ripard <&dma SUN4I_DMA_NORMAL 3>; 886a3a226eSMaxime Ripard dma-names = "rx", "tx"; 896a3a226eSMaxime Ripard status = "disabled"; 906a3a226eSMaxime Ripard }; 916a3a226eSMaxime Ripard }; 926a3a226eSMaxime Ripard}; 936a3a226eSMaxime Ripard 94*13b36facSJagan Teki&ccu { 95*13b36facSJagan Teki compatible = "nextthing,gr8-ccu"; 966a3a226eSMaxime Ripard}; 976a3a226eSMaxime Ripard 98*13b36facSJagan Teki&pio { 99*13b36facSJagan Teki compatible = "nextthing,gr8-pinctrl"; 1006a3a226eSMaxime Ripard 101*13b36facSJagan Teki i2s0_data_pins_a: i2s0-data@0 { 102*13b36facSJagan Teki pins = "PB6", "PB7", "PB8", "PB9"; 103*13b36facSJagan Teki function = "i2s0"; 1046a3a226eSMaxime Ripard }; 105*13b36facSJagan Teki 106*13b36facSJagan Teki i2s0_mclk_pins_a: i2s0-mclk@0 { 107*13b36facSJagan Teki pins = "PB5"; 108*13b36facSJagan Teki function = "i2s0"; 1096a3a226eSMaxime Ripard }; 110*13b36facSJagan Teki 111*13b36facSJagan Teki pwm1_pins: pwm1 { 112*13b36facSJagan Teki pins = "PG13"; 113*13b36facSJagan Teki function = "pwm1"; 1146a3a226eSMaxime Ripard }; 115*13b36facSJagan Teki 116*13b36facSJagan Teki spdif_tx_pins_a: spdif@0 { 117*13b36facSJagan Teki pins = "PB10"; 118*13b36facSJagan Teki function = "spdif"; 119*13b36facSJagan Teki bias-pull-up; 1206a3a226eSMaxime Ripard }; 121*13b36facSJagan Teki 122*13b36facSJagan Teki uart1_cts_rts_pins_a: uart1-cts-rts@0 { 123*13b36facSJagan Teki pins = "PG5", "PG6"; 124*13b36facSJagan Teki function = "uart1"; 1256a3a226eSMaxime Ripard }; 1266a3a226eSMaxime Ripard}; 127