1bb51b535SNeil Armstrong/* 2bb51b535SNeil Armstrong * Copyright (c) 2016 Endless Computers, Inc. 3bb51b535SNeil Armstrong * Author: Carlo Caione <carlo@endlessm.com> 4bb51b535SNeil Armstrong * 5bb51b535SNeil Armstrong * This file is dual-licensed: you can use it either under the terms 6bb51b535SNeil Armstrong * of the GPL or the X11 license, at your option. Note that this dual 7bb51b535SNeil Armstrong * licensing only applies to this file, and not this project as a 8bb51b535SNeil Armstrong * whole. 9bb51b535SNeil Armstrong * 10bb51b535SNeil Armstrong * a) This library is free software; you can redistribute it and/or 11bb51b535SNeil Armstrong * modify it under the terms of the GNU General Public License as 12bb51b535SNeil Armstrong * published by the Free Software Foundation; either version 2 of the 13bb51b535SNeil Armstrong * License, or (at your option) any later version. 14bb51b535SNeil Armstrong * 15bb51b535SNeil Armstrong * This library is distributed in the hope that it will be useful, 16bb51b535SNeil Armstrong * but WITHOUT ANY WARRANTY; without even the implied warranty of 17bb51b535SNeil Armstrong * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18bb51b535SNeil Armstrong * GNU General Public License for more details. 19bb51b535SNeil Armstrong * 20bb51b535SNeil Armstrong * Or, alternatively, 21bb51b535SNeil Armstrong * 22bb51b535SNeil Armstrong * b) Permission is hereby granted, free of charge, to any person 23bb51b535SNeil Armstrong * obtaining a copy of this software and associated documentation 24bb51b535SNeil Armstrong * files (the "Software"), to deal in the Software without 25bb51b535SNeil Armstrong * restriction, including without limitation the rights to use, 26bb51b535SNeil Armstrong * copy, modify, merge, publish, distribute, sublicense, and/or 27bb51b535SNeil Armstrong * sell copies of the Software, and to permit persons to whom the 28bb51b535SNeil Armstrong * Software is furnished to do so, subject to the following 29bb51b535SNeil Armstrong * conditions: 30bb51b535SNeil Armstrong * 31bb51b535SNeil Armstrong * The above copyright notice and this permission notice shall be 32bb51b535SNeil Armstrong * included in all copies or substantial portions of the Software. 33bb51b535SNeil Armstrong * 34bb51b535SNeil Armstrong * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 35bb51b535SNeil Armstrong * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 36bb51b535SNeil Armstrong * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 37bb51b535SNeil Armstrong * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 38bb51b535SNeil Armstrong * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 39bb51b535SNeil Armstrong * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 40bb51b535SNeil Armstrong * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 41bb51b535SNeil Armstrong * OTHER DEALINGS IN THE SOFTWARE. 42bb51b535SNeil Armstrong */ 43bb51b535SNeil Armstrong 44bb51b535SNeil Armstrong#include "meson-gxl.dtsi" 45bb51b535SNeil Armstrong 46bb51b535SNeil Armstrong/ { 47bb51b535SNeil Armstrong compatible = "amlogic,meson-gxm"; 48bb51b535SNeil Armstrong 49bb51b535SNeil Armstrong cpus { 50bb51b535SNeil Armstrong cpu-map { 51bb51b535SNeil Armstrong cluster0 { 52bb51b535SNeil Armstrong core0 { 53bb51b535SNeil Armstrong cpu = <&cpu0>; 54bb51b535SNeil Armstrong }; 55bb51b535SNeil Armstrong core1 { 56bb51b535SNeil Armstrong cpu = <&cpu1>; 57bb51b535SNeil Armstrong }; 58bb51b535SNeil Armstrong core2 { 59bb51b535SNeil Armstrong cpu = <&cpu2>; 60bb51b535SNeil Armstrong }; 61bb51b535SNeil Armstrong core3 { 62bb51b535SNeil Armstrong cpu = <&cpu3>; 63bb51b535SNeil Armstrong }; 64bb51b535SNeil Armstrong }; 65bb51b535SNeil Armstrong 66bb51b535SNeil Armstrong cluster1 { 67bb51b535SNeil Armstrong core0 { 68bb51b535SNeil Armstrong cpu = <&cpu4>; 69bb51b535SNeil Armstrong }; 70bb51b535SNeil Armstrong core1 { 71bb51b535SNeil Armstrong cpu = <&cpu5>; 72bb51b535SNeil Armstrong }; 73bb51b535SNeil Armstrong core2 { 74bb51b535SNeil Armstrong cpu = <&cpu6>; 75bb51b535SNeil Armstrong }; 76bb51b535SNeil Armstrong core3 { 77bb51b535SNeil Armstrong cpu = <&cpu7>; 78bb51b535SNeil Armstrong }; 79bb51b535SNeil Armstrong }; 80bb51b535SNeil Armstrong }; 81bb51b535SNeil Armstrong 82bb51b535SNeil Armstrong cpu4: cpu@100 { 83bb51b535SNeil Armstrong device_type = "cpu"; 84bb51b535SNeil Armstrong compatible = "arm,cortex-a53", "arm,armv8"; 85bb51b535SNeil Armstrong reg = <0x0 0x100>; 86bb51b535SNeil Armstrong enable-method = "psci"; 87bb51b535SNeil Armstrong next-level-cache = <&l2>; 88*bd97abc0SMartin Blumenstingl clocks = <&scpi_dvfs 1>; 89bb51b535SNeil Armstrong }; 90bb51b535SNeil Armstrong 91bb51b535SNeil Armstrong cpu5: cpu@101 { 92bb51b535SNeil Armstrong device_type = "cpu"; 93bb51b535SNeil Armstrong compatible = "arm,cortex-a53", "arm,armv8"; 94bb51b535SNeil Armstrong reg = <0x0 0x101>; 95bb51b535SNeil Armstrong enable-method = "psci"; 96bb51b535SNeil Armstrong next-level-cache = <&l2>; 97*bd97abc0SMartin Blumenstingl clocks = <&scpi_dvfs 1>; 98bb51b535SNeil Armstrong }; 99bb51b535SNeil Armstrong 100bb51b535SNeil Armstrong cpu6: cpu@102 { 101bb51b535SNeil Armstrong device_type = "cpu"; 102bb51b535SNeil Armstrong compatible = "arm,cortex-a53", "arm,armv8"; 103bb51b535SNeil Armstrong reg = <0x0 0x102>; 104bb51b535SNeil Armstrong enable-method = "psci"; 105bb51b535SNeil Armstrong next-level-cache = <&l2>; 106*bd97abc0SMartin Blumenstingl clocks = <&scpi_dvfs 1>; 107bb51b535SNeil Armstrong }; 108bb51b535SNeil Armstrong 109bb51b535SNeil Armstrong cpu7: cpu@103 { 110bb51b535SNeil Armstrong device_type = "cpu"; 111bb51b535SNeil Armstrong compatible = "arm,cortex-a53", "arm,armv8"; 112bb51b535SNeil Armstrong reg = <0x0 0x103>; 113bb51b535SNeil Armstrong enable-method = "psci"; 114bb51b535SNeil Armstrong next-level-cache = <&l2>; 115*bd97abc0SMartin Blumenstingl clocks = <&scpi_dvfs 1>; 116bb51b535SNeil Armstrong }; 117bb51b535SNeil Armstrong }; 118bb51b535SNeil Armstrong}; 119fafdbdf7SNeil Armstrong 120*bd97abc0SMartin Blumenstingl&scpi_dvfs { 121*bd97abc0SMartin Blumenstingl clock-indices = <0 1>; 122*bd97abc0SMartin Blumenstingl clock-output-names = "vbig", "vlittle"; 123*bd97abc0SMartin Blumenstingl}; 124*bd97abc0SMartin Blumenstingl 125fafdbdf7SNeil Armstrong&vpu { 126fafdbdf7SNeil Armstrong compatible = "amlogic,meson-gxm-vpu", "amlogic,meson-gx-vpu"; 127fafdbdf7SNeil Armstrong}; 128*bd97abc0SMartin Blumenstingl 129