0001 /*
0002 * Copyright 2012 Maxime Ripard
0003 *
0004 * Maxime Ripard <maxime.ripard@free-electrons.com>
0005 *
0006 * This file is dual-licensed: you can use it either under the terms
0007 * of the GPL or the X11 license, at your option. Note that this dual
0008 * licensing only applies to this file, and not this project as a
0009 * whole.
0010 *
0011 * a) This library is free software; you can redistribute it and/or
0012 * modify it under the terms of the GNU General Public License as
0013 * published by the Free Software Foundation; either version 2 of the
0014 * License, or (at your option) any later version.
0015 *
0016 * This library is distributed in the hope that it will be useful,
0017 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
0019 * GNU General Public License for more details.
0020 *
0021 * Or, alternatively,
0022 *
0023 * b) Permission is hereby granted, free of charge, to any person
0024 * obtaining a copy of this software and associated documentation
0025 * files (the "Software"), to deal in the Software without
0026 * restriction, including without limitation the rights to use,
0027 * copy, modify, merge, publish, distribute, sublicense, and/or
0028 * sell copies of the Software, and to permit persons to whom the
0029 * Software is furnished to do so, subject to the following
0030 * conditions:
0031 *
0032 * The above copyright notice and this permission notice shall be
0033 * included in all copies or substantial portions of the Software.
0034 *
0035 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0036 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
0037 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
0038 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
0039 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
0040 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0041 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0042 * OTHER DEALINGS IN THE SOFTWARE.
0043 */
0044
0045 #include "sun5i.dtsi"
0046
0047 #include <dt-bindings/thermal/thermal.h>
0048
0049 / {
0050 thermal-zones {
0051 cpu-thermal {
0052 /* milliseconds */
0053 polling-delay-passive = <250>;
0054 polling-delay = <1000>;
0055 thermal-sensors = <&rtp>;
0056
0057 cooling-maps {
0058 map0 {
0059 trip = <&cpu_alert0>;
0060 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
0061 };
0062 };
0063
0064 trips {
0065 cpu_alert0: cpu_alert0 {
0066 /* milliCelsius */
0067 temperature = <85000>;
0068 hysteresis = <2000>;
0069 type = "passive";
0070 };
0071
0072 cpu_crit: cpu_crit {
0073 /* milliCelsius */
0074 temperature = <100000>;
0075 hysteresis = <2000>;
0076 type = "critical";
0077 };
0078 };
0079 };
0080 };
0081
0082 display-engine {
0083 compatible = "allwinner,sun5i-a13-display-engine";
0084 allwinner,pipelines = <&fe0>;
0085 };
0086
0087 soc {
0088 pwm: pwm@1c20e00 {
0089 compatible = "allwinner,sun5i-a13-pwm";
0090 reg = <0x01c20e00 0xc>;
0091 clocks = <&ccu CLK_HOSC>;
0092 #pwm-cells = <3>;
0093 status = "disabled";
0094 };
0095
0096 };
0097 };
0098
0099 &ccu {
0100 compatible = "allwinner,sun5i-a13-ccu";
0101 };
0102
0103 &cpu0 {
0104 clock-latency = <244144>; /* 8 32k periods */
0105 operating-points =
0106 /* kHz uV */
0107 <1008000 1400000>,
0108 <912000 1350000>,
0109 <864000 1300000>,
0110 <624000 1200000>,
0111 <576000 1200000>,
0112 <432000 1200000>;
0113 #cooling-cells = <2>;
0114 };
0115
0116 &pio {
0117 compatible = "allwinner,sun5i-a13-pinctrl";
0118 };