2019-05-27 20:38:52 +07:00
|
|
|
// SPDX-License-Identifier: GPL-2.0 OR MIT
|
2014-10-06 04:59:14 +07:00
|
|
|
/*
|
|
|
|
* Copyright 2014 Carlo Caione <carlo@caione.org>
|
|
|
|
*/
|
|
|
|
|
2019-12-09 01:05:24 +07:00
|
|
|
#include <dt-bindings/clock/meson8-ddr-clkc.h>
|
2017-06-05 01:33:41 +07:00
|
|
|
#include <dt-bindings/clock/meson8b-clkc.h>
|
2015-01-18 01:15:16 +07:00
|
|
|
#include <dt-bindings/gpio/meson8-gpio.h>
|
2017-09-17 23:45:22 +07:00
|
|
|
#include <dt-bindings/reset/amlogic,meson8b-clkc-reset.h>
|
2018-01-22 05:14:13 +07:00
|
|
|
#include <dt-bindings/reset/amlogic,meson8b-reset.h>
|
2017-06-16 04:33:43 +07:00
|
|
|
#include "meson.dtsi"
|
2014-10-06 04:59:14 +07:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Amlogic Meson8 SoC";
|
|
|
|
compatible = "amlogic,meson8";
|
|
|
|
|
|
|
|
cpus {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2018-04-22 17:45:01 +07:00
|
|
|
cpu0: cpu@200 {
|
2014-10-06 04:59:14 +07:00
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-a9";
|
2014-11-18 21:30:35 +07:00
|
|
|
next-level-cache = <&L2>;
|
2014-10-06 04:59:14 +07:00
|
|
|
reg = <0x200>;
|
2017-09-17 23:45:22 +07:00
|
|
|
enable-method = "amlogic,meson8-smp";
|
|
|
|
resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>;
|
2018-11-30 06:00:43 +07:00
|
|
|
operating-points-v2 = <&cpu_opp_table>;
|
|
|
|
clocks = <&clkc CLKID_CPUCLK>;
|
2014-10-06 04:59:14 +07:00
|
|
|
};
|
|
|
|
|
2018-04-22 17:45:01 +07:00
|
|
|
cpu1: cpu@201 {
|
2014-10-06 04:59:14 +07:00
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-a9";
|
2014-11-18 21:30:35 +07:00
|
|
|
next-level-cache = <&L2>;
|
2014-10-06 04:59:14 +07:00
|
|
|
reg = <0x201>;
|
2017-09-17 23:45:22 +07:00
|
|
|
enable-method = "amlogic,meson8-smp";
|
|
|
|
resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>;
|
2018-11-30 06:00:43 +07:00
|
|
|
operating-points-v2 = <&cpu_opp_table>;
|
|
|
|
clocks = <&clkc CLKID_CPUCLK>;
|
2014-10-06 04:59:14 +07:00
|
|
|
};
|
|
|
|
|
2018-04-22 17:45:01 +07:00
|
|
|
cpu2: cpu@202 {
|
2014-10-06 04:59:14 +07:00
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-a9";
|
2014-11-18 21:30:35 +07:00
|
|
|
next-level-cache = <&L2>;
|
2014-10-06 04:59:14 +07:00
|
|
|
reg = <0x202>;
|
2017-09-17 23:45:22 +07:00
|
|
|
enable-method = "amlogic,meson8-smp";
|
|
|
|
resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>;
|
2018-11-30 06:00:43 +07:00
|
|
|
operating-points-v2 = <&cpu_opp_table>;
|
|
|
|
clocks = <&clkc CLKID_CPUCLK>;
|
2014-10-06 04:59:14 +07:00
|
|
|
};
|
|
|
|
|
2018-04-22 17:45:01 +07:00
|
|
|
cpu3: cpu@203 {
|
2014-10-06 04:59:14 +07:00
|
|
|
device_type = "cpu";
|
|
|
|
compatible = "arm,cortex-a9";
|
2014-11-18 21:30:35 +07:00
|
|
|
next-level-cache = <&L2>;
|
2014-10-06 04:59:14 +07:00
|
|
|
reg = <0x203>;
|
2017-09-17 23:45:22 +07:00
|
|
|
enable-method = "amlogic,meson8-smp";
|
|
|
|
resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>;
|
2018-11-30 06:00:43 +07:00
|
|
|
operating-points-v2 = <&cpu_opp_table>;
|
|
|
|
clocks = <&clkc CLKID_CPUCLK>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
cpu_opp_table: opp-table {
|
|
|
|
compatible = "operating-points-v2";
|
|
|
|
opp-shared;
|
|
|
|
|
|
|
|
opp-96000000 {
|
|
|
|
opp-hz = /bits/ 64 <96000000>;
|
|
|
|
opp-microvolt = <825000>;
|
|
|
|
};
|
|
|
|
opp-192000000 {
|
|
|
|
opp-hz = /bits/ 64 <192000000>;
|
|
|
|
opp-microvolt = <825000>;
|
|
|
|
};
|
|
|
|
opp-312000000 {
|
|
|
|
opp-hz = /bits/ 64 <312000000>;
|
|
|
|
opp-microvolt = <825000>;
|
|
|
|
};
|
|
|
|
opp-408000000 {
|
|
|
|
opp-hz = /bits/ 64 <408000000>;
|
|
|
|
opp-microvolt = <825000>;
|
|
|
|
};
|
|
|
|
opp-504000000 {
|
|
|
|
opp-hz = /bits/ 64 <504000000>;
|
|
|
|
opp-microvolt = <825000>;
|
|
|
|
};
|
|
|
|
opp-600000000 {
|
|
|
|
opp-hz = /bits/ 64 <600000000>;
|
|
|
|
opp-microvolt = <850000>;
|
|
|
|
};
|
|
|
|
opp-720000000 {
|
|
|
|
opp-hz = /bits/ 64 <720000000>;
|
|
|
|
opp-microvolt = <850000>;
|
|
|
|
};
|
|
|
|
opp-816000000 {
|
|
|
|
opp-hz = /bits/ 64 <816000000>;
|
|
|
|
opp-microvolt = <875000>;
|
|
|
|
};
|
|
|
|
opp-1008000000 {
|
|
|
|
opp-hz = /bits/ 64 <1008000000>;
|
|
|
|
opp-microvolt = <925000>;
|
|
|
|
};
|
|
|
|
opp-1200000000 {
|
|
|
|
opp-hz = /bits/ 64 <1200000000>;
|
|
|
|
opp-microvolt = <975000>;
|
|
|
|
};
|
|
|
|
opp-1416000000 {
|
|
|
|
opp-hz = /bits/ 64 <1416000000>;
|
|
|
|
opp-microvolt = <1025000>;
|
|
|
|
};
|
|
|
|
opp-1608000000 {
|
|
|
|
opp-hz = /bits/ 64 <1608000000>;
|
|
|
|
opp-microvolt = <1100000>;
|
|
|
|
};
|
|
|
|
opp-1800000000 {
|
|
|
|
status = "disabled";
|
|
|
|
opp-hz = /bits/ 64 <1800000000>;
|
|
|
|
opp-microvolt = <1125000>;
|
|
|
|
};
|
|
|
|
opp-1992000000 {
|
|
|
|
status = "disabled";
|
|
|
|
opp-hz = /bits/ 64 <1992000000>;
|
|
|
|
opp-microvolt = <1150000>;
|
2014-10-06 04:59:14 +07:00
|
|
|
};
|
|
|
|
};
|
2017-06-16 04:33:48 +07:00
|
|
|
|
2018-12-09 00:12:46 +07:00
|
|
|
gpu_opp_table: gpu-opp-table {
|
|
|
|
compatible = "operating-points-v2";
|
|
|
|
|
2019-12-25 08:06:06 +07:00
|
|
|
opp-182142857 {
|
|
|
|
opp-hz = /bits/ 64 <182142857>;
|
2018-12-09 00:12:46 +07:00
|
|
|
opp-microvolt = <1150000>;
|
|
|
|
};
|
|
|
|
opp-318750000 {
|
|
|
|
opp-hz = /bits/ 64 <318750000>;
|
|
|
|
opp-microvolt = <1150000>;
|
|
|
|
};
|
|
|
|
opp-425000000 {
|
|
|
|
opp-hz = /bits/ 64 <425000000>;
|
|
|
|
opp-microvolt = <1150000>;
|
|
|
|
};
|
|
|
|
opp-510000000 {
|
|
|
|
opp-hz = /bits/ 64 <510000000>;
|
|
|
|
opp-microvolt = <1150000>;
|
|
|
|
};
|
|
|
|
opp-637500000 {
|
|
|
|
opp-hz = /bits/ 64 <637500000>;
|
|
|
|
opp-microvolt = <1150000>;
|
|
|
|
turbo-mode;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-04-22 17:45:01 +07:00
|
|
|
pmu {
|
|
|
|
compatible = "arm,cortex-a9-pmu";
|
|
|
|
interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
|
|
|
|
};
|
|
|
|
|
2017-06-16 04:33:48 +07:00
|
|
|
reserved-memory {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
/* 2 MiB reserved for Hardware ROM Firmware? */
|
|
|
|
hwrom@0 {
|
|
|
|
reg = <0x0 0x200000>;
|
|
|
|
no-map;
|
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 1 MiB reserved for the "ARM Power Firmware": this is ARM
|
|
|
|
* code which is responsible for system suspend. It loads a
|
|
|
|
* piece of ARC code ("arc_power" in the vendor u-boot tree)
|
|
|
|
* into SRAM, executes that and shuts down the (last) ARM core.
|
|
|
|
* The arc_power firmware then checks various wakeup sources
|
|
|
|
* (IR remote receiver, HDMI CEC, WIFI and Bluetooth wakeup or
|
|
|
|
* simply the power key) and re-starts the ARM core once it
|
|
|
|
* detects a wakeup request.
|
|
|
|
*/
|
|
|
|
power-firmware@4f00000 {
|
|
|
|
reg = <0x4f00000 0x100000>;
|
|
|
|
no-map;
|
|
|
|
};
|
|
|
|
};
|
2018-12-08 23:50:24 +07:00
|
|
|
|
2019-05-21 02:43:51 +07:00
|
|
|
mmcbus: bus@c8000000 {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
reg = <0xc8000000 0x8000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges = <0x0 0xc8000000 0x8000>;
|
|
|
|
|
2019-12-09 01:05:24 +07:00
|
|
|
ddr_clkc: clock-controller@400 {
|
|
|
|
compatible = "amlogic,meson8-ddr-clkc";
|
|
|
|
reg = <0x400 0x20>;
|
|
|
|
clocks = <&xtal>;
|
|
|
|
clock-names = "xtal";
|
|
|
|
#clock-cells = <1>;
|
|
|
|
};
|
|
|
|
|
2019-05-21 02:43:51 +07:00
|
|
|
dmcbus: bus@6000 {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
reg = <0x6000 0x400>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges = <0x0 0x6000 0x400>;
|
|
|
|
|
|
|
|
canvas: video-lut@20 {
|
|
|
|
compatible = "amlogic,meson8-canvas",
|
|
|
|
"amlogic,canvas";
|
|
|
|
reg = <0x20 0x14>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-08 23:50:24 +07:00
|
|
|
apb: bus@d0000000 {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
reg = <0xd0000000 0x200000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges = <0x0 0xd0000000 0x200000>;
|
2018-12-09 00:12:46 +07:00
|
|
|
|
|
|
|
mali: gpu@c0000 {
|
|
|
|
compatible = "amlogic,meson8-mali", "arm,mali-450";
|
|
|
|
reg = <0xc0000 0x40000>;
|
|
|
|
interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>,
|
2019-04-20 16:32:57 +07:00
|
|
|
<GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>,
|
2018-12-09 00:12:46 +07:00
|
|
|
<GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 175 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>,
|
|
|
|
<GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
interrupt-names = "gp", "gpmmu", "pp", "pmu",
|
|
|
|
"pp0", "ppmmu0", "pp1", "ppmmu1",
|
|
|
|
"pp2", "ppmmu2", "pp4", "ppmmu4",
|
|
|
|
"pp5", "ppmmu5", "pp6", "ppmmu6";
|
|
|
|
resets = <&reset RESET_MALI>;
|
|
|
|
clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>;
|
|
|
|
clock-names = "bus", "core";
|
|
|
|
operating-points-v2 = <&gpu_opp_table>;
|
|
|
|
};
|
2018-12-08 23:50:24 +07:00
|
|
|
};
|
2017-04-18 04:39:37 +07:00
|
|
|
}; /* end of / */
|
|
|
|
|
|
|
|
&aobus {
|
2017-09-17 23:45:22 +07:00
|
|
|
pmu: pmu@e0 {
|
|
|
|
compatible = "amlogic,meson8-pmu", "syscon";
|
2019-11-17 22:41:54 +07:00
|
|
|
reg = <0xe0 0x18>;
|
2017-09-17 23:45:22 +07:00
|
|
|
};
|
|
|
|
|
2017-04-18 04:39:37 +07:00
|
|
|
pinctrl_aobus: pinctrl@84 {
|
|
|
|
compatible = "amlogic,meson8-aobus-pinctrl";
|
|
|
|
reg = <0x84 0xc>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
gpio_ao: ao-bank@14 {
|
|
|
|
reg = <0x14 0x4>,
|
|
|
|
<0x2c 0x4>,
|
|
|
|
<0x24 0x8>;
|
|
|
|
reg-names = "mux", "pull", "gpio";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
2017-09-22 00:14:44 +07:00
|
|
|
gpio-ranges = <&pinctrl_aobus 0 0 16>;
|
2017-04-18 04:39:37 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
uart_ao_a_pins: uart_ao_a {
|
|
|
|
mux {
|
|
|
|
groups = "uart_tx_ao_a", "uart_rx_ao_a";
|
|
|
|
function = "uart_ao";
|
2018-11-09 21:04:45 +07:00
|
|
|
bias-disable;
|
2017-04-18 04:39:37 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
i2c_ao_pins: i2c_mst_ao {
|
|
|
|
mux {
|
|
|
|
groups = "i2c_mst_sck_ao", "i2c_mst_sda_ao";
|
|
|
|
function = "i2c_mst_ao";
|
2018-11-09 21:04:45 +07:00
|
|
|
bias-disable;
|
2017-04-18 04:39:37 +07:00
|
|
|
};
|
|
|
|
};
|
2017-06-10 05:20:39 +07:00
|
|
|
|
|
|
|
ir_recv_pins: remote {
|
|
|
|
mux {
|
|
|
|
groups = "remote_input";
|
|
|
|
function = "remote";
|
2018-11-09 21:04:45 +07:00
|
|
|
bias-disable;
|
2017-06-10 05:20:39 +07:00
|
|
|
};
|
|
|
|
};
|
2017-06-16 04:33:45 +07:00
|
|
|
|
|
|
|
pwm_f_ao_pins: pwm-f-ao {
|
|
|
|
mux {
|
|
|
|
groups = "pwm_f_ao";
|
|
|
|
function = "pwm_f_ao";
|
2018-11-09 21:04:45 +07:00
|
|
|
bias-disable;
|
2017-06-16 04:33:45 +07:00
|
|
|
};
|
|
|
|
};
|
2017-04-18 04:39:37 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&cbus {
|
2018-01-22 05:14:13 +07:00
|
|
|
reset: reset-controller@4404 {
|
|
|
|
compatible = "amlogic,meson8b-reset";
|
|
|
|
reg = <0x4404 0x9c>;
|
|
|
|
#reset-cells = <1>;
|
|
|
|
};
|
|
|
|
|
2017-09-23 21:14:03 +07:00
|
|
|
analog_top: analog-top@81a8 {
|
|
|
|
compatible = "amlogic,meson8-analog-top", "syscon";
|
|
|
|
reg = <0x81a8 0x14>;
|
|
|
|
};
|
|
|
|
|
2017-07-12 05:20:15 +07:00
|
|
|
pwm_ef: pwm@86c0 {
|
|
|
|
compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
|
|
|
|
reg = <0x86c0 0x10>;
|
|
|
|
#pwm-cells = <3>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2019-02-09 07:26:40 +07:00
|
|
|
clock-measure@8758 {
|
|
|
|
compatible = "amlogic,meson8-clk-measure";
|
|
|
|
reg = <0x8758 0x1c>;
|
|
|
|
};
|
|
|
|
|
2017-04-18 04:39:37 +07:00
|
|
|
pinctrl_cbus: pinctrl@9880 {
|
2016-03-23 16:13:59 +07:00
|
|
|
compatible = "amlogic,meson8-cbus-pinctrl";
|
2017-04-18 04:39:37 +07:00
|
|
|
reg = <0x9880 0x10>;
|
2015-01-18 01:15:16 +07:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
ranges;
|
|
|
|
|
2017-04-18 04:39:37 +07:00
|
|
|
gpio: banks@80b0 {
|
|
|
|
reg = <0x80b0 0x28>,
|
|
|
|
<0x80e8 0x18>,
|
|
|
|
<0x8120 0x18>,
|
|
|
|
<0x8030 0x30>;
|
2015-01-18 01:15:16 +07:00
|
|
|
reg-names = "mux", "pull", "pull-enable", "gpio";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
2017-03-23 23:27:26 +07:00
|
|
|
gpio-ranges = <&pinctrl_cbus 0 0 120>;
|
2015-01-18 01:15:16 +07:00
|
|
|
};
|
|
|
|
|
2017-06-16 04:33:46 +07:00
|
|
|
sd_a_pins: sd-a {
|
|
|
|
mux {
|
|
|
|
groups = "sd_d0_a", "sd_d1_a", "sd_d2_a",
|
|
|
|
"sd_d3_a", "sd_clk_a", "sd_cmd_a";
|
|
|
|
function = "sd_a";
|
2018-11-09 21:04:45 +07:00
|
|
|
bias-disable;
|
2017-06-16 04:33:46 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
sd_b_pins: sd-b {
|
|
|
|
mux {
|
|
|
|
groups = "sd_d0_b", "sd_d1_b", "sd_d2_b",
|
|
|
|
"sd_d3_b", "sd_clk_b", "sd_cmd_b";
|
|
|
|
function = "sd_b";
|
2018-11-09 21:04:45 +07:00
|
|
|
bias-disable;
|
2017-06-16 04:33:46 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
sd_c_pins: sd-c {
|
|
|
|
mux {
|
|
|
|
groups = "sd_d0_c", "sd_d1_c", "sd_d2_c",
|
|
|
|
"sd_d3_c", "sd_clk_c", "sd_cmd_c";
|
|
|
|
function = "sd_c";
|
2018-11-09 21:04:45 +07:00
|
|
|
bias-disable;
|
2017-06-16 04:33:46 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2015-01-18 01:15:16 +07:00
|
|
|
spi_nor_pins: nor {
|
|
|
|
mux {
|
|
|
|
groups = "nor_d", "nor_q", "nor_c", "nor_cs";
|
|
|
|
function = "nor";
|
2018-11-09 21:04:45 +07:00
|
|
|
bias-disable;
|
2015-01-18 01:15:16 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
eth_pins: ethernet {
|
|
|
|
mux {
|
|
|
|
groups = "eth_tx_clk_50m", "eth_tx_en",
|
|
|
|
"eth_txd1", "eth_txd0",
|
|
|
|
"eth_rx_clk_in", "eth_rx_dv",
|
|
|
|
"eth_rxd1", "eth_rxd0", "eth_mdio",
|
|
|
|
"eth_mdc";
|
|
|
|
function = "ethernet";
|
2018-11-09 21:04:45 +07:00
|
|
|
bias-disable;
|
2015-01-18 01:15:16 +07:00
|
|
|
};
|
|
|
|
};
|
2017-06-16 04:33:45 +07:00
|
|
|
|
|
|
|
pwm_e_pins: pwm-e {
|
|
|
|
mux {
|
|
|
|
groups = "pwm_e";
|
|
|
|
function = "pwm_e";
|
2018-11-09 21:04:45 +07:00
|
|
|
bias-disable;
|
2017-06-16 04:33:45 +07:00
|
|
|
};
|
|
|
|
};
|
2018-05-10 06:50:36 +07:00
|
|
|
|
|
|
|
uart_a1_pins: uart-a1 {
|
|
|
|
mux {
|
|
|
|
groups = "uart_tx_a1",
|
|
|
|
"uart_rx_a1";
|
|
|
|
function = "uart_a";
|
2018-11-09 21:04:45 +07:00
|
|
|
bias-disable;
|
2018-05-10 06:50:36 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
uart_a1_cts_rts_pins: uart-a1-cts-rts {
|
|
|
|
mux {
|
|
|
|
groups = "uart_cts_a1",
|
|
|
|
"uart_rts_a1";
|
|
|
|
function = "uart_a";
|
2018-11-09 21:04:45 +07:00
|
|
|
bias-disable;
|
2018-05-10 06:50:36 +07:00
|
|
|
};
|
|
|
|
};
|
2015-01-18 01:15:16 +07:00
|
|
|
};
|
2017-04-18 04:39:37 +07:00
|
|
|
};
|
2015-01-18 01:15:16 +07:00
|
|
|
|
2017-09-17 23:45:22 +07:00
|
|
|
&ahb_sram {
|
|
|
|
smp-sram@1ff80 {
|
|
|
|
compatible = "amlogic,meson8-smp-sram";
|
|
|
|
reg = <0x1ff80 0x8>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-10-03 06:28:04 +07:00
|
|
|
&efuse {
|
|
|
|
compatible = "amlogic,meson8-efuse";
|
|
|
|
clocks = <&clkc CLKID_EFUSE>;
|
|
|
|
clock-names = "core";
|
2019-01-19 05:52:23 +07:00
|
|
|
|
|
|
|
temperature_calib: calib@1f4 {
|
|
|
|
/* only the upper two bytes are relevant */
|
|
|
|
reg = <0x1f4 0x4>;
|
|
|
|
};
|
2017-10-03 06:28:04 +07:00
|
|
|
};
|
|
|
|
|
2017-04-18 04:39:37 +07:00
|
|
|
ðmac {
|
2017-06-16 04:33:52 +07:00
|
|
|
clocks = <&clkc CLKID_ETH>;
|
2017-04-18 04:39:37 +07:00
|
|
|
clock-names = "stmmaceth";
|
|
|
|
};
|
2016-03-23 16:13:59 +07:00
|
|
|
|
2017-10-30 06:05:22 +07:00
|
|
|
&gpio_intc {
|
|
|
|
compatible = "amlogic,meson8-gpio-intc", "amlogic,meson-gpio-intc";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2019-01-19 05:52:21 +07:00
|
|
|
&hhi {
|
|
|
|
clkc: clock-controller {
|
|
|
|
compatible = "amlogic,meson8-clkc";
|
2019-12-09 01:05:24 +07:00
|
|
|
clocks = <&xtal>, <&ddr_clkc DDR_CLKID_DDR_PLL>;
|
|
|
|
clock-names = "xtal", "ddr_pll";
|
2019-01-19 05:52:21 +07:00
|
|
|
#clock-cells = <1>;
|
|
|
|
#reset-cells = <1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-06-16 04:33:49 +07:00
|
|
|
&hwrng {
|
|
|
|
compatible = "amlogic,meson8-rng", "amlogic,meson-rng";
|
|
|
|
clocks = <&clkc CLKID_RNG0>;
|
|
|
|
clock-names = "core";
|
|
|
|
};
|
|
|
|
|
2017-04-18 04:39:37 +07:00
|
|
|
&i2c_AO {
|
2017-06-05 01:33:41 +07:00
|
|
|
clocks = <&clkc CLKID_CLK81>;
|
2017-04-18 04:39:37 +07:00
|
|
|
};
|
2016-03-23 16:13:59 +07:00
|
|
|
|
2017-04-18 04:39:37 +07:00
|
|
|
&i2c_A {
|
2017-06-05 01:33:41 +07:00
|
|
|
clocks = <&clkc CLKID_CLK81>;
|
2017-04-18 04:39:37 +07:00
|
|
|
};
|
2016-03-23 16:13:59 +07:00
|
|
|
|
2017-04-18 04:39:37 +07:00
|
|
|
&i2c_B {
|
2017-06-05 01:33:41 +07:00
|
|
|
clocks = <&clkc CLKID_CLK81>;
|
2017-04-18 04:39:37 +07:00
|
|
|
};
|
|
|
|
|
2017-04-18 04:42:44 +07:00
|
|
|
&L2 {
|
|
|
|
arm,data-latency = <3 3 3>;
|
|
|
|
arm,tag-latency = <2 2 2>;
|
|
|
|
arm,filter-ranges = <0x100000 0xc0000000>;
|
2017-11-01 05:23:16 +07:00
|
|
|
prefetch-data = <1>;
|
|
|
|
prefetch-instr = <1>;
|
|
|
|
arm,shared-override;
|
2017-04-18 04:42:44 +07:00
|
|
|
};
|
|
|
|
|
2018-11-24 02:53:07 +07:00
|
|
|
&periph {
|
|
|
|
scu@0 {
|
|
|
|
compatible = "arm,cortex-a9-scu";
|
|
|
|
reg = <0x0 0x100>;
|
|
|
|
};
|
2018-11-24 02:53:08 +07:00
|
|
|
|
2018-11-24 02:53:09 +07:00
|
|
|
timer@200 {
|
|
|
|
compatible = "arm,cortex-a9-global-timer";
|
|
|
|
reg = <0x200 0x20>;
|
|
|
|
interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
|
|
|
|
clocks = <&clkc CLKID_PERIPH>;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* the arm_global_timer driver currently does not handle clock
|
|
|
|
* rate changes. Keep it disabled for now.
|
|
|
|
*/
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
2018-11-24 02:53:08 +07:00
|
|
|
timer@600 {
|
|
|
|
compatible = "arm,cortex-a9-twd-timer";
|
|
|
|
reg = <0x600 0x20>;
|
|
|
|
interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
|
|
|
|
clocks = <&clkc CLKID_PERIPH>;
|
|
|
|
};
|
2018-11-24 02:53:07 +07:00
|
|
|
};
|
|
|
|
|
2017-07-12 05:20:15 +07:00
|
|
|
&pwm_ab {
|
|
|
|
compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
|
|
|
|
};
|
|
|
|
|
|
|
|
&pwm_cd {
|
|
|
|
compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
|
|
|
|
};
|
|
|
|
|
2019-04-13 23:34:21 +07:00
|
|
|
&rtc {
|
|
|
|
compatible = "amlogic,meson8-rtc";
|
|
|
|
resets = <&reset RESET_RTC>;
|
|
|
|
};
|
|
|
|
|
2017-06-16 04:33:47 +07:00
|
|
|
&saradc {
|
|
|
|
compatible = "amlogic,meson8-saradc", "amlogic,meson-saradc";
|
2019-12-09 01:05:23 +07:00
|
|
|
clocks = <&xtal>, <&clkc CLKID_SAR_ADC>;
|
2017-11-16 16:01:15 +07:00
|
|
|
clock-names = "clkin", "core";
|
2019-01-19 05:52:23 +07:00
|
|
|
amlogic,hhi-sysctrl = <&hhi>;
|
|
|
|
nvmem-cells = <&temperature_calib>;
|
|
|
|
nvmem-cell-names = "temperature_calib";
|
2017-06-16 04:33:47 +07:00
|
|
|
};
|
|
|
|
|
2017-10-07 23:29:39 +07:00
|
|
|
&sdio {
|
|
|
|
compatible = "amlogic,meson8-sdio", "amlogic,meson-mx-sdio";
|
|
|
|
clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>;
|
|
|
|
clock-names = "core", "clkin";
|
|
|
|
};
|
|
|
|
|
2017-04-18 04:39:37 +07:00
|
|
|
&spifc {
|
2017-06-05 01:33:41 +07:00
|
|
|
clocks = <&clkc CLKID_CLK81>;
|
2017-04-18 04:39:37 +07:00
|
|
|
};
|
|
|
|
|
2018-11-17 03:42:35 +07:00
|
|
|
&timer_abcde {
|
2019-12-09 01:05:23 +07:00
|
|
|
clocks = <&xtal>, <&clkc CLKID_CLK81>;
|
2018-11-17 03:42:35 +07:00
|
|
|
clock-names = "xtal", "pclk";
|
|
|
|
};
|
|
|
|
|
2017-04-18 04:39:37 +07:00
|
|
|
&uart_AO {
|
2017-11-18 05:58:56 +07:00
|
|
|
compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
|
2019-12-09 01:05:23 +07:00
|
|
|
clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_CLK81>;
|
2017-11-18 05:58:56 +07:00
|
|
|
clock-names = "baud", "xtal", "pclk";
|
2017-04-18 04:39:37 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&uart_A {
|
2017-11-18 05:58:56 +07:00
|
|
|
compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
|
2019-12-09 01:05:23 +07:00
|
|
|
clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART0>;
|
2017-11-18 05:58:56 +07:00
|
|
|
clock-names = "baud", "xtal", "pclk";
|
2017-04-18 04:39:37 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&uart_B {
|
2017-11-18 05:58:56 +07:00
|
|
|
compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
|
2019-12-09 01:05:23 +07:00
|
|
|
clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART1>;
|
2017-11-18 05:58:56 +07:00
|
|
|
clock-names = "baud", "xtal", "pclk";
|
2017-04-18 04:39:37 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&uart_C {
|
2017-11-18 05:58:56 +07:00
|
|
|
compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
|
2019-12-09 01:05:23 +07:00
|
|
|
clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART2>;
|
2017-11-18 05:58:56 +07:00
|
|
|
clock-names = "baud", "xtal", "pclk";
|
2017-04-18 04:39:37 +07:00
|
|
|
};
|
2017-06-16 04:33:50 +07:00
|
|
|
|
|
|
|
&usb0 {
|
|
|
|
compatible = "amlogic,meson8-usb", "snps,dwc2";
|
|
|
|
clocks = <&clkc CLKID_USB0_DDR_BRIDGE>;
|
|
|
|
clock-names = "otg";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb1 {
|
|
|
|
compatible = "amlogic,meson8-usb", "snps,dwc2";
|
|
|
|
clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
|
|
|
|
clock-names = "otg";
|
|
|
|
};
|
|
|
|
|
|
|
|
&usb0_phy {
|
|
|
|
compatible = "amlogic,meson8-usb2-phy", "amlogic,meson-mx-usb2-phy";
|
|
|
|
clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
|
|
|
|
clock-names = "usb_general", "usb";
|
2018-01-22 05:14:14 +07:00
|
|
|
resets = <&reset RESET_USB_OTG>;
|
2017-06-16 04:33:50 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&usb1_phy {
|
|
|
|
compatible = "amlogic,meson8-usb2-phy", "amlogic,meson-mx-usb2-phy";
|
|
|
|
clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>;
|
|
|
|
clock-names = "usb_general", "usb";
|
2018-01-22 05:14:14 +07:00
|
|
|
resets = <&reset RESET_USB_OTG>;
|
2017-06-16 04:33:50 +07:00
|
|
|
};
|