Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ properties:
- spacemit,k1-syscon-apbc
- spacemit,k1-syscon-apmu
- spacemit,k1-syscon-mpmu
- spacemit,k1-syscon-rcpu
- spacemit,k1-syscon-rcpu2
- spacemit,k1-syscon-apbc2

reg:
maxItems: 1
Expand Down Expand Up @@ -47,23 +50,35 @@ properties:
required:
- compatible
- reg
- clocks
- clock-names
- "#clock-cells"
- "#reset-cells"

allOf:
- if:
properties:
compatible:
contains:
const: spacemit,k1-syscon-apbc
enum:
- spacemit,k1-syscon-apmu
- spacemit,k1-syscon-mpmu
then:
required:
- "#power-domain-cells"
else:
properties:
"#power-domain-cells": false
else:
- if:
properties:
compatible:
contains:
enum:
- spacemit,k1-syscon-apbc
- spacemit,k1-syscon-apmu
- spacemit,k1-syscon-mpmu
then:
required:
- "#power-domain-cells"
- clocks
- clock-names
- "#clock-cells"

additionalProperties: false

Expand Down
18 changes: 18 additions & 0 deletions arch/riscv/boot/dts/spacemit/k1.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,18 @@
dma-noncoherent;
ranges;

syscon_rcpu: system-controller@c0880000 {
compatible = "spacemit,k1-syscon-rcpu";
reg = <0x0 0xc0880000 0x0 0x2048>;
#reset-cells = <1>;
};

syscon_rcpu2: system-controller@c0888000 {
compatible = "spacemit,k1-syscon-rcpu2";
reg = <0x0 0xc0888000 0x0 0x28>;
#reset-cells = <1>;
};

syscon_apbc: system-controller@d4015000 {
compatible = "spacemit,k1-syscon-apbc";
reg = <0x0 0xd4015000 0x0 0x1000>;
Expand Down Expand Up @@ -553,6 +565,12 @@
<&cpu7_intc 3>, <&cpu7_intc 7>;
};

syscon_apbc2: system-controller@f0610000 {
compatible = "spacemit,k1-syscon-apbc2";
reg = <0x0 0xf0610000 0x0 0x20>;
#reset-cells = <1>;
};

sec_uart1: serial@f0612000 {
compatible = "spacemit,k1-uart", "intel,xscale-uart";
reg = <0x0 0xf0612000 0x0 0x100>;
Expand Down
1 change: 1 addition & 0 deletions drivers/clk/spacemit/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
config SPACEMIT_CCU
tristate "Clock support for SpacemiT SoCs"
depends on ARCH_SPACEMIT || COMPILE_TEST
select AUXILIARY_BUS
select MFD_SYSCON
help
Say Y to enable clock controller unit support for SpacemiT SoCs.
Expand Down
Loading
Loading