1f126890aSEmmanuel Vadot/* 2f126890aSEmmanuel Vadot * Copyright 2012 Maxime Ripard 3f126890aSEmmanuel Vadot * 4f126890aSEmmanuel Vadot * Maxime Ripard <maxime.ripard@free-electrons.com> 5f126890aSEmmanuel Vadot * 6f126890aSEmmanuel Vadot * This file is dual-licensed: you can use it either under the terms 7f126890aSEmmanuel Vadot * of the GPL or the X11 license, at your option. Note that this dual 8f126890aSEmmanuel Vadot * licensing only applies to this file, and not this project as a 9f126890aSEmmanuel Vadot * whole. 10f126890aSEmmanuel Vadot * 11f126890aSEmmanuel Vadot * a) This library is free software; you can redistribute it and/or 12f126890aSEmmanuel Vadot * modify it under the terms of the GNU General Public License as 13f126890aSEmmanuel Vadot * published by the Free Software Foundation; either version 2 of the 14f126890aSEmmanuel Vadot * License, or (at your option) any later version. 15f126890aSEmmanuel Vadot * 16f126890aSEmmanuel Vadot * This library is distributed in the hope that it will be useful, 17f126890aSEmmanuel Vadot * but WITHOUT ANY WARRANTY; without even the implied warranty of 18f126890aSEmmanuel Vadot * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19f126890aSEmmanuel Vadot * GNU General Public License for more details. 20f126890aSEmmanuel Vadot * 21f126890aSEmmanuel Vadot * Or, alternatively, 22f126890aSEmmanuel Vadot * 23f126890aSEmmanuel Vadot * b) Permission is hereby granted, free of charge, to any person 24f126890aSEmmanuel Vadot * obtaining a copy of this software and associated documentation 25f126890aSEmmanuel Vadot * files (the "Software"), to deal in the Software without 26f126890aSEmmanuel Vadot * restriction, including without limitation the rights to use, 27f126890aSEmmanuel Vadot * copy, modify, merge, publish, distribute, sublicense, and/or 28f126890aSEmmanuel Vadot * sell copies of the Software, and to permit persons to whom the 29f126890aSEmmanuel Vadot * Software is furnished to do so, subject to the following 30f126890aSEmmanuel Vadot * conditions: 31f126890aSEmmanuel Vadot * 32f126890aSEmmanuel Vadot * The above copyright notice and this permission notice shall be 33f126890aSEmmanuel Vadot * included in all copies or substantial portions of the Software. 34f126890aSEmmanuel Vadot * 35f126890aSEmmanuel Vadot * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 36f126890aSEmmanuel Vadot * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 37f126890aSEmmanuel Vadot * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 38f126890aSEmmanuel Vadot * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 39f126890aSEmmanuel Vadot * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 40f126890aSEmmanuel Vadot * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 41f126890aSEmmanuel Vadot * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 42f126890aSEmmanuel Vadot * OTHER DEALINGS IN THE SOFTWARE. 43f126890aSEmmanuel Vadot */ 44f126890aSEmmanuel Vadot 45f126890aSEmmanuel Vadot#include "sun5i.dtsi" 46f126890aSEmmanuel Vadot 47f126890aSEmmanuel Vadot#include <dt-bindings/thermal/thermal.h> 48f126890aSEmmanuel Vadot 49f126890aSEmmanuel Vadot/ { 50f126890aSEmmanuel Vadot thermal-zones { 51f126890aSEmmanuel Vadot cpu-thermal { 52f126890aSEmmanuel Vadot /* milliseconds */ 53f126890aSEmmanuel Vadot polling-delay-passive = <250>; 54f126890aSEmmanuel Vadot polling-delay = <1000>; 55f126890aSEmmanuel Vadot thermal-sensors = <&rtp>; 56f126890aSEmmanuel Vadot 57f126890aSEmmanuel Vadot cooling-maps { 58f126890aSEmmanuel Vadot map0 { 59f126890aSEmmanuel Vadot trip = <&cpu_alert0>; 60f126890aSEmmanuel Vadot cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 61f126890aSEmmanuel Vadot }; 62f126890aSEmmanuel Vadot }; 63f126890aSEmmanuel Vadot 64f126890aSEmmanuel Vadot trips { 65*7d0873ebSEmmanuel Vadot cpu_alert0: cpu-alert0 { 66f126890aSEmmanuel Vadot /* milliCelsius */ 67f126890aSEmmanuel Vadot temperature = <85000>; 68f126890aSEmmanuel Vadot hysteresis = <2000>; 69f126890aSEmmanuel Vadot type = "passive"; 70f126890aSEmmanuel Vadot }; 71f126890aSEmmanuel Vadot 72*7d0873ebSEmmanuel Vadot cpu_crit: cpu-crit { 73f126890aSEmmanuel Vadot /* milliCelsius */ 74f126890aSEmmanuel Vadot temperature = <100000>; 75f126890aSEmmanuel Vadot hysteresis = <2000>; 76f126890aSEmmanuel Vadot type = "critical"; 77f126890aSEmmanuel Vadot }; 78f126890aSEmmanuel Vadot }; 79f126890aSEmmanuel Vadot }; 80f126890aSEmmanuel Vadot }; 81f126890aSEmmanuel Vadot 82f126890aSEmmanuel Vadot display-engine { 83f126890aSEmmanuel Vadot compatible = "allwinner,sun5i-a13-display-engine"; 84f126890aSEmmanuel Vadot allwinner,pipelines = <&fe0>; 85f126890aSEmmanuel Vadot }; 86f126890aSEmmanuel Vadot 87f126890aSEmmanuel Vadot soc { 88f126890aSEmmanuel Vadot pwm: pwm@1c20e00 { 89f126890aSEmmanuel Vadot compatible = "allwinner,sun5i-a13-pwm"; 90f126890aSEmmanuel Vadot reg = <0x01c20e00 0xc>; 91f126890aSEmmanuel Vadot clocks = <&ccu CLK_HOSC>; 92f126890aSEmmanuel Vadot #pwm-cells = <3>; 93f126890aSEmmanuel Vadot status = "disabled"; 94f126890aSEmmanuel Vadot }; 95f126890aSEmmanuel Vadot 96f126890aSEmmanuel Vadot }; 97f126890aSEmmanuel Vadot}; 98f126890aSEmmanuel Vadot 99f126890aSEmmanuel Vadot&ccu { 100f126890aSEmmanuel Vadot compatible = "allwinner,sun5i-a13-ccu"; 101f126890aSEmmanuel Vadot}; 102f126890aSEmmanuel Vadot 103f126890aSEmmanuel Vadot&cpu0 { 104f126890aSEmmanuel Vadot clock-latency = <244144>; /* 8 32k periods */ 105f126890aSEmmanuel Vadot operating-points = 106f126890aSEmmanuel Vadot /* kHz uV */ 107f126890aSEmmanuel Vadot <1008000 1400000>, 108f126890aSEmmanuel Vadot <912000 1350000>, 109f126890aSEmmanuel Vadot <864000 1300000>, 110f126890aSEmmanuel Vadot <624000 1200000>, 111f126890aSEmmanuel Vadot <576000 1200000>, 112f126890aSEmmanuel Vadot <432000 1200000>; 113f126890aSEmmanuel Vadot #cooling-cells = <2>; 114f126890aSEmmanuel Vadot}; 115f126890aSEmmanuel Vadot 116f126890aSEmmanuel Vadot&pio { 117f126890aSEmmanuel Vadot compatible = "allwinner,sun5i-a13-pinctrl"; 118f126890aSEmmanuel Vadot}; 119