153ab4af3SHans de Goede/* 253ab4af3SHans de Goede * Copyright 2012 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/thermal/thermal.h> 5053ab4af3SHans de Goede 5153ab4af3SHans de Goede/ { 5253ab4af3SHans de Goede interrupt-parent = <&intc>; 5353ab4af3SHans de Goede 5453ab4af3SHans de Goede thermal-zones { 5553ab4af3SHans de Goede cpu_thermal { 5653ab4af3SHans de Goede /* milliseconds */ 5753ab4af3SHans de Goede polling-delay-passive = <250>; 5853ab4af3SHans de Goede polling-delay = <1000>; 5953ab4af3SHans de Goede thermal-sensors = <&rtp>; 6053ab4af3SHans de Goede 6153ab4af3SHans de Goede cooling-maps { 6253ab4af3SHans de Goede map0 { 6353ab4af3SHans de Goede trip = <&cpu_alert0>; 6453ab4af3SHans de Goede cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 6553ab4af3SHans de Goede }; 6653ab4af3SHans de Goede }; 6753ab4af3SHans de Goede 6853ab4af3SHans de Goede trips { 6953ab4af3SHans de Goede cpu_alert0: cpu_alert0 { 7053ab4af3SHans de Goede /* milliCelsius */ 71*13b36facSJagan Teki temperature = <85000>; 7253ab4af3SHans de Goede hysteresis = <2000>; 7353ab4af3SHans de Goede type = "passive"; 7453ab4af3SHans de Goede }; 7553ab4af3SHans de Goede 7653ab4af3SHans de Goede cpu_crit: cpu_crit { 7753ab4af3SHans de Goede /* milliCelsius */ 7853ab4af3SHans de Goede temperature = <100000>; 7953ab4af3SHans de Goede hysteresis = <2000>; 8053ab4af3SHans de Goede type = "critical"; 8153ab4af3SHans de Goede }; 8253ab4af3SHans de Goede }; 8353ab4af3SHans de Goede }; 8453ab4af3SHans de Goede }; 8553ab4af3SHans de Goede 86860fbdd4SHans de Goede display-engine { 87860fbdd4SHans de Goede compatible = "allwinner,sun5i-a13-display-engine"; 88860fbdd4SHans de Goede allwinner,pipelines = <&fe0>; 89f0e8e8daSMaxime Ripard }; 90f0e8e8daSMaxime Ripard 91*13b36facSJagan Teki soc@1c00000 { 92*13b36facSJagan Teki pwm: pwm@1c20e00 { 93f0e8e8daSMaxime Ripard compatible = "allwinner,sun5i-a13-pwm"; 94f0e8e8daSMaxime Ripard reg = <0x01c20e00 0xc>; 95*13b36facSJagan Teki clocks = <&ccu CLK_HOSC>; 96f0e8e8daSMaxime Ripard #pwm-cells = <3>; 97f0e8e8daSMaxime Ripard status = "disabled"; 9853ab4af3SHans de Goede }; 99860fbdd4SHans de Goede 100860fbdd4SHans de Goede }; 101860fbdd4SHans de Goede}; 102860fbdd4SHans de Goede 103*13b36facSJagan Teki&ccu { 104*13b36facSJagan Teki compatible = "allwinner,sun5i-a13-ccu"; 10553ab4af3SHans de Goede}; 10653ab4af3SHans de Goede 10753ab4af3SHans de Goede&cpu0 { 10853ab4af3SHans de Goede clock-latency = <244144>; /* 8 32k periods */ 10953ab4af3SHans de Goede operating-points = < 11053ab4af3SHans de Goede /* kHz uV */ 11153ab4af3SHans de Goede 1008000 1400000 11253ab4af3SHans de Goede 912000 1350000 11353ab4af3SHans de Goede 864000 1300000 11453ab4af3SHans de Goede 624000 1200000 11553ab4af3SHans de Goede 576000 1200000 11653ab4af3SHans de Goede 432000 1200000 11753ab4af3SHans de Goede >; 11853ab4af3SHans de Goede #cooling-cells = <2>; 11953ab4af3SHans de Goede}; 12053ab4af3SHans de Goede 12153ab4af3SHans de Goede&pio { 12253ab4af3SHans de Goede compatible = "allwinner,sun5i-a13-pinctrl"; 12353ab4af3SHans de Goede}; 124