linux/arch/arm64/boot/dts/sprd/whale2.dtsi
Chunyan Zhang 22f37a2429 arm64: dts: add clocks for SC9860
Some clocks on SC9860 are in the same address area with syscon devices,
those are what have a property of 'sprd,syscon' which would refer to
syscon devices, others would have a reg property indicated their address
ranges.

Signed-off-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2018-01-04 17:50:39 +01:00

130 lines
2.6 KiB
Plaintext

/*
* Spreadtrum Whale2 platform peripherals
*
* Copyright (C) 2016, Spreadtrum Communications Inc.
*
* SPDX-License-Identifier: (GPL-2.0+ OR MIT)
*/
/ {
interrupt-parent = <&gic>;
#address-cells = <2>;
#size-cells = <2>;
soc: soc {
compatible = "simple-bus";
#address-cells = <2>;
#size-cells = <2>;
ranges;
ap_ahb_regs: syscon@20210000 {
compatible = "syscon";
reg = <0 0x20210000 0 0x10000>;
};
pmu_regs: syscon@402b0000 {
compatible = "syscon";
reg = <0 0x402b0000 0 0x10000>;
};
aon_regs: syscon@402e0000 {
compatible = "syscon";
reg = <0 0x402e0000 0 0x10000>;
};
ana_regs: syscon@40400000 {
compatible = "syscon";
reg = <0 0x40400000 0 0x10000>;
};
agcp_regs: syscon@415e0000 {
compatible = "syscon";
reg = <0 0x415e0000 0 0x1000000>;
};
vsp_regs: syscon@61100000 {
compatible = "syscon";
reg = <0 0x61100000 0 0x10000>;
};
cam_regs: syscon@62100000 {
compatible = "syscon";
reg = <0 0x62100000 0 0x10000>;
};
disp_regs: syscon@63100000 {
compatible = "syscon";
reg = <0 0x63100000 0 0x10000>;
};
ap_apb_regs: syscon@70b00000 {
compatible = "syscon";
reg = <0 0x70b00000 0 0x40000>;
};
ap-apb {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 0x0 0x70000000 0x10000000>;
uart0: serial@0 {
compatible = "sprd,sc9860-uart",
"sprd,sc9836-uart";
reg = <0x0 0x100>;
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ext_26m>;
status = "disabled";
};
uart1: serial@100000 {
compatible = "sprd,sc9860-uart",
"sprd,sc9836-uart";
reg = <0x100000 0x100>;
interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ext_26m>;
status = "disabled";
};
uart2: serial@200000 {
compatible = "sprd,sc9860-uart",
"sprd,sc9836-uart";
reg = <0x200000 0x100>;
interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ext_26m>;
status = "disabled";
};
uart3: serial@300000 {
compatible = "sprd,sc9860-uart",
"sprd,sc9836-uart";
reg = <0x300000 0x100>;
interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ext_26m>;
status = "disabled";
};
};
};
ext_32k: ext_32k {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <32768>;
clock-output-names = "ext-32k";
};
ext_26m: ext_26m {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <26000000>;
clock-output-names = "ext-26m";
};
ext_rco_100m: ext_rco_100m {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <100000000>;
clock-output-names = "ext-rco-100m";
};
};