153ab4af3SHans de Goede/* 253ab4af3SHans de Goede * Copyright 2013 Maxime Ripard 353ab4af3SHans de Goede * 453ab4af3SHans de Goede * Maxime Ripard <maxime.ripard@free-electrons.com> 553ab4af3SHans de Goede * 653ab4af3SHans de Goede * This file is dual-licensed: you can use it either under the terms 753ab4af3SHans de Goede * of the GPL or the X11 license, at your option. Note that this dual 853ab4af3SHans de Goede * licensing only applies to this file, and not this project as a 953ab4af3SHans de Goede * whole. 1053ab4af3SHans de Goede * 1153ab4af3SHans de Goede * a) This library is free software; you can redistribute it and/or 1253ab4af3SHans de Goede * modify it under the terms of the GNU General Public License as 1353ab4af3SHans de Goede * published by the Free Software Foundation; either version 2 of the 1453ab4af3SHans de Goede * License, or (at your option) any later version. 1553ab4af3SHans de Goede * 1653ab4af3SHans de Goede * This library is distributed in the hope that it will be useful, 1753ab4af3SHans de Goede * but WITHOUT ANY WARRANTY; without even the implied warranty of 1853ab4af3SHans de Goede * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1953ab4af3SHans de Goede * GNU General Public License for more details. 2053ab4af3SHans de Goede * 2153ab4af3SHans de Goede * Or, alternatively, 2253ab4af3SHans de Goede * 2353ab4af3SHans de Goede * b) Permission is hereby granted, free of charge, to any person 2453ab4af3SHans de Goede * obtaining a copy of this software and associated documentation 2553ab4af3SHans de Goede * files (the "Software"), to deal in the Software without 2653ab4af3SHans de Goede * restriction, including without limitation the rights to use, 2753ab4af3SHans de Goede * copy, modify, merge, publish, distribute, sublicense, and/or 2853ab4af3SHans de Goede * sell copies of the Software, and to permit persons to whom the 2953ab4af3SHans de Goede * Software is furnished to do so, subject to the following 3053ab4af3SHans de Goede * conditions: 3153ab4af3SHans de Goede * 3253ab4af3SHans de Goede * The above copyright notice and this permission notice shall be 3353ab4af3SHans de Goede * included in all copies or substantial portions of the Software. 3453ab4af3SHans de Goede * 3553ab4af3SHans de Goede * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 3653ab4af3SHans de Goede * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 3753ab4af3SHans de Goede * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 3853ab4af3SHans de Goede * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 3953ab4af3SHans de Goede * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 4053ab4af3SHans de Goede * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 4153ab4af3SHans de Goede * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 4253ab4af3SHans de Goede * OTHER DEALINGS IN THE SOFTWARE. 4353ab4af3SHans de Goede */ 4453ab4af3SHans de Goede 4553ab4af3SHans de Goede#include "skeleton.dtsi" 4653ab4af3SHans de Goede 4753ab4af3SHans de Goede#include "sun5i.dtsi" 4853ab4af3SHans de Goede 4953ab4af3SHans de Goede#include <dt-bindings/dma/sun4i-a10.h> 5053ab4af3SHans de Goede 5153ab4af3SHans de Goede/ { 5253ab4af3SHans de Goede interrupt-parent = <&intc>; 5353ab4af3SHans de Goede 5453ab4af3SHans de Goede aliases { 5553ab4af3SHans de Goede ethernet0 = &emac; 5653ab4af3SHans de Goede }; 5753ab4af3SHans de Goede 5853ab4af3SHans de Goede chosen { 5953ab4af3SHans de Goede #address-cells = <1>; 6053ab4af3SHans de Goede #size-cells = <1>; 6153ab4af3SHans de Goede ranges; 6253ab4af3SHans de Goede 63f0e8e8daSMaxime Ripard framebuffer@2 { 64f0e8e8daSMaxime Ripard compatible = "allwinner,simple-framebuffer", 65f0e8e8daSMaxime Ripard "simple-framebuffer"; 66*13b36facSJagan Teki allwinner,pipeline = "de_be0-lcd0-hdmi"; 67*13b36facSJagan Teki clocks = <&ccu CLK_AHB_LCD>, <&ccu CLK_AHB_HDMI>, 68*13b36facSJagan Teki <&ccu CLK_AHB_DE_BE>, <&ccu CLK_DRAM_DE_BE>, 69*13b36facSJagan Teki <&ccu CLK_DE_BE>, <&ccu CLK_HDMI>; 70f0e8e8daSMaxime Ripard status = "disabled"; 71f0e8e8daSMaxime Ripard }; 7253ab4af3SHans de Goede }; 7353ab4af3SHans de Goede 74*13b36facSJagan Teki display-engine { 75*13b36facSJagan Teki compatible = "allwinner,sun5i-a10s-display-engine"; 76*13b36facSJagan Teki allwinner,pipelines = <&fe0>; 7753ab4af3SHans de Goede }; 7853ab4af3SHans de Goede 79*13b36facSJagan Teki soc@1c00000 { 80*13b36facSJagan Teki hdmi: hdmi@1c16000 { 81*13b36facSJagan Teki compatible = "allwinner,sun5i-a10s-hdmi"; 82*13b36facSJagan Teki reg = <0x01c16000 0x1000>; 83*13b36facSJagan Teki interrupts = <58>; 84*13b36facSJagan Teki clocks = <&ccu CLK_AHB_HDMI>, <&ccu CLK_HDMI>, 85*13b36facSJagan Teki <&ccu CLK_PLL_VIDEO0_2X>, 86*13b36facSJagan Teki <&ccu CLK_PLL_VIDEO1_2X>; 87*13b36facSJagan Teki clock-names = "ahb", "mod", "pll-0", "pll-1"; 88*13b36facSJagan Teki dmas = <&dma SUN4I_DMA_NORMAL 16>, 89*13b36facSJagan Teki <&dma SUN4I_DMA_NORMAL 16>, 90*13b36facSJagan Teki <&dma SUN4I_DMA_DEDICATED 24>; 91*13b36facSJagan Teki dma-names = "ddc-tx", "ddc-rx", "audio-tx"; 9253ab4af3SHans de Goede status = "disabled"; 9353ab4af3SHans de Goede 94*13b36facSJagan Teki ports { 9553ab4af3SHans de Goede #address-cells = <1>; 9653ab4af3SHans de Goede #size-cells = <0>; 97*13b36facSJagan Teki 98*13b36facSJagan Teki hdmi_in: port@0 { 99*13b36facSJagan Teki reg = <0>; 100*13b36facSJagan Teki 101*13b36facSJagan Teki hdmi_in_tcon0: endpoint { 102*13b36facSJagan Teki remote-endpoint = <&tcon0_out_hdmi>; 103*13b36facSJagan Teki }; 10453ab4af3SHans de Goede }; 10553ab4af3SHans de Goede 106*13b36facSJagan Teki hdmi_out: port@1 { 107*13b36facSJagan Teki #address-cells = <1>; 108*13b36facSJagan Teki #size-cells = <0>; 109*13b36facSJagan Teki reg = <1>; 110*13b36facSJagan Teki }; 111*13b36facSJagan Teki }; 112*13b36facSJagan Teki }; 113*13b36facSJagan Teki 114*13b36facSJagan Teki pwm: pwm@1c20e00 { 115f0e8e8daSMaxime Ripard compatible = "allwinner,sun5i-a10s-pwm"; 116f0e8e8daSMaxime Ripard reg = <0x01c20e00 0xc>; 117*13b36facSJagan Teki clocks = <&ccu CLK_HOSC>; 118f0e8e8daSMaxime Ripard #pwm-cells = <3>; 119f0e8e8daSMaxime Ripard status = "disabled"; 120f0e8e8daSMaxime Ripard }; 121*13b36facSJagan Teki }; 12253ab4af3SHans de Goede}; 12353ab4af3SHans de Goede 124*13b36facSJagan Teki&ccu { 125*13b36facSJagan Teki compatible = "allwinner,sun5i-a10s-ccu"; 12653ab4af3SHans de Goede}; 12753ab4af3SHans de Goede 12853ab4af3SHans de Goede&pio { 12953ab4af3SHans de Goede compatible = "allwinner,sun5i-a10s-pinctrl"; 13053ab4af3SHans de Goede 13153ab4af3SHans de Goede uart0_pins_a: uart0@0 { 132*13b36facSJagan Teki pins = "PB19", "PB20"; 133*13b36facSJagan Teki function = "uart0"; 13453ab4af3SHans de Goede }; 13553ab4af3SHans de Goede 136*13b36facSJagan Teki uart2_pins_b: uart2@1 { 137*13b36facSJagan Teki pins = "PC18", "PC19"; 138*13b36facSJagan Teki function = "uart2"; 13953ab4af3SHans de Goede }; 14053ab4af3SHans de Goede 141*13b36facSJagan Teki emac_pins_b: emac0@1 { 142*13b36facSJagan Teki pins = "PA0", "PA1", "PA2", 14353ab4af3SHans de Goede "PA3", "PA4", "PA5", "PA6", 14453ab4af3SHans de Goede "PA7", "PA8", "PA9", "PA10", 14553ab4af3SHans de Goede "PA11", "PA12", "PA13", "PA14", 14653ab4af3SHans de Goede "PA15", "PA16"; 147*13b36facSJagan Teki function = "emac"; 1482ad76bf2SJelle van der Waa }; 1492ad76bf2SJelle van der Waa 15053ab4af3SHans de Goede mmc1_pins_a: mmc1@0 { 151*13b36facSJagan Teki pins = "PG3", "PG4", "PG5", 1528b1ba941SHans de Goede "PG6", "PG7", "PG8"; 153*13b36facSJagan Teki function = "mmc1"; 154*13b36facSJagan Teki drive-strength = <30>; 15553ab4af3SHans de Goede }; 156c1aa7d62SBoris Brezillon 157*13b36facSJagan Teki spi2_pins_b: spi2@1 { 158*13b36facSJagan Teki pins = "PB12", "PB13", "PB14"; 159*13b36facSJagan Teki function = "spi2"; 160c1aa7d62SBoris Brezillon }; 161c1aa7d62SBoris Brezillon 162*13b36facSJagan Teki spi2_cs0_pins_b: spi2_cs0@1 { 163*13b36facSJagan Teki pins = "PB11"; 164*13b36facSJagan Teki function = "spi2"; 165c1aa7d62SBoris Brezillon }; 16653ab4af3SHans de Goede}; 1678b1ba941SHans de Goede 1688b1ba941SHans de Goede&sram_a { 169*13b36facSJagan Teki}; 170*13b36facSJagan Teki 171*13b36facSJagan Teki&tcon0_out { 172*13b36facSJagan Teki tcon0_out_hdmi: endpoint@2 { 173*13b36facSJagan Teki reg = <2>; 174*13b36facSJagan Teki remote-endpoint = <&hdmi_in_tcon0>; 175*13b36facSJagan Teki allwinner,tcon-channel = <1>; 1768b1ba941SHans de Goede }; 1778b1ba941SHans de Goede}; 178