153ab4af3SHans de Goede/* 253ab4af3SHans de Goede * Copyright 2014 Chen-Yu Tsai 353ab4af3SHans de Goede * 453ab4af3SHans de Goede * Chen-Yu Tsai <wens@csie.org> 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 file 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 file 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 458b1ba941SHans de Goede#include "sun8i-a23-a33.dtsi" 4653ab4af3SHans de Goede 4753ab4af3SHans de Goede/ { 4853ab4af3SHans de Goede memory { 4953ab4af3SHans de Goede reg = <0x40000000 0x40000000>; 5053ab4af3SHans de Goede }; 5153ab4af3SHans de Goede 52*9ad93c0cSJagan Teki soc@1c00000 { 53*9ad93c0cSJagan Teki codec: codec@1c22c00 { 545ed82393SMaxime Ripard #sound-dai-cells = <0>; 555ed82393SMaxime Ripard compatible = "allwinner,sun8i-a23-codec"; 565ed82393SMaxime Ripard reg = <0x01c22c00 0x400>; 575ed82393SMaxime Ripard interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; 585ed82393SMaxime Ripard clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>; 595ed82393SMaxime Ripard clock-names = "apb", "codec"; 605ed82393SMaxime Ripard resets = <&ccu RST_BUS_CODEC>; 615ed82393SMaxime Ripard dmas = <&dma 15>, <&dma 15>; 625ed82393SMaxime Ripard dma-names = "rx", "tx"; 635ed82393SMaxime Ripard allwinner,codec-analog-controls = <&codec_analog>; 64da52a4a3SHans de Goede status = "disabled"; 65da52a4a3SHans de Goede }; 665ed82393SMaxime Ripard }; 675ed82393SMaxime Ripard}; 68da52a4a3SHans de Goede 695ed82393SMaxime Ripard&ccu { 705ed82393SMaxime Ripard compatible = "allwinner,sun8i-a23-ccu"; 7153ab4af3SHans de Goede}; 7253ab4af3SHans de Goede 738b1ba941SHans de Goede&pio { 7453ab4af3SHans de Goede compatible = "allwinner,sun8i-a23-pinctrl"; 7553ab4af3SHans de Goede interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, 7653ab4af3SHans de Goede <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>, 7753ab4af3SHans de Goede <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; 7853ab4af3SHans de Goede}; 795ed82393SMaxime Ripard 805ed82393SMaxime Ripard&usb_otg { 815ed82393SMaxime Ripard compatible = "allwinner,sun6i-a31-musb"; 825ed82393SMaxime Ripard}; 835ed82393SMaxime Ripard 845ed82393SMaxime Ripard&usbphy { 855ed82393SMaxime Ripard compatible = "allwinner,sun8i-a23-usb-phy"; 865ed82393SMaxime Ripard reg = <0x01c19400 0x10>, <0x01c1a800 0x4>; 875ed82393SMaxime Ripard reg-names = "phy_ctrl", "pmu1"; 885ed82393SMaxime Ripard}; 89