Skip to content

Commit 1e11cbf

Browse files
committed
Merge tag 'v4.15-rockchip-dts64-2' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip into next/dt
Pull "Rockchip dts64 updates for 4.15 part2" from Heiko Stübner: Support for the RGA (raster graphics accelerator) on rk3399 and efuses on rk3368. * tag 'v4.15-rockchip-dts64-2' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/mmind/linux-rockchip: arm64: dts: rockchip: add efuse for RK3368 SoCs arm64: dts: rockchip: add RGA device node for RK3399 clk: rockchip: add more rk3188 graphics clock ids clk: rockchip: add clock id for PCLK_EFUSE256 of RK3368 SoCs
2 parents 87f89ac + 6f8c539 commit 1e11cbf

File tree

4 files changed

+35
-2
lines changed

4 files changed

+35
-2
lines changed

arch/arm64/boot/dts/rockchip/rk3368.dtsi

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,22 @@
786786
status = "disabled";
787787
};
788788

789+
efuse256: efuse@ffb00000 {
790+
compatible = "rockchip,rk3368-efuse";
791+
reg = <0x0 0xffb00000 0x0 0x20>;
792+
#address-cells = <1>;
793+
#size-cells = <1>;
794+
clocks = <&cru PCLK_EFUSE256>;
795+
clock-names = "pclk_efuse";
796+
797+
cpu_leakage: cpu-leakage@17 {
798+
reg = <0x17 0x1>;
799+
};
800+
temp_adjust: temp-adjust@1f {
801+
reg = <0x1f 0x1>;
802+
};
803+
};
804+
789805
gic: interrupt-controller@ffb71000 {
790806
compatible = "arm,gic-400";
791807
interrupt-controller;

arch/arm64/boot/dts/rockchip/rk3399.dtsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1204,6 +1204,17 @@
12041204
status = "disabled";
12051205
};
12061206

1207+
rga: rga@ff680000 {
1208+
compatible = "rockchip,rk3399-rga";
1209+
reg = <0x0 0xff680000 0x0 0x10000>;
1210+
interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH 0>;
1211+
clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA_CORE>;
1212+
clock-names = "aclk", "hclk", "sclk";
1213+
resets = <&cru SRST_RGA_CORE>, <&cru SRST_A_RGA>, <&cru SRST_H_RGA>;
1214+
reset-names = "core", "axi", "ahb";
1215+
power-domains = <&power RK3399_PD_RGA>;
1216+
};
1217+
12071218
efuse0: efuse@ff690000 {
12081219
compatible = "rockchip,rk3399-efuse";
12091220
reg = <0x0 0xff690000 0x0 0x80>;

include/dt-bindings/clock/rk3188-cru-common.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,14 @@
6868
#define ACLK_LCDC1 196
6969
#define ACLK_GPU 197
7070
#define ACLK_SMC 198
71-
#define ACLK_CIF 199
71+
#define ACLK_CIF1 199
7272
#define ACLK_IPP 200
7373
#define ACLK_RGA 201
7474
#define ACLK_CIF0 202
7575
#define ACLK_CPU 203
7676
#define ACLK_PERI 204
77+
#define ACLK_VEPU 205
78+
#define ACLK_VDPU 206
7779

7880
/* pclk gates */
7981
#define PCLK_GRF 320
@@ -134,8 +136,11 @@
134136
#define HCLK_NANDC0 467
135137
#define HCLK_CPU 468
136138
#define HCLK_PERI 469
139+
#define HCLK_CIF1 470
140+
#define HCLK_VEPU 471
141+
#define HCLK_VDPU 472
137142

138-
#define CLK_NR_CLKS (HCLK_PERI + 1)
143+
#define CLK_NR_CLKS (HCLK_VDPU + 1)
139144

140145
/* soft-reset indices */
141146
#define SRST_MCORE 2

include/dt-bindings/clock/rk3368-cru.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@
156156
#define PCLK_ISP 366
157157
#define PCLK_VIP 367
158158
#define PCLK_WDT 368
159+
#define PCLK_EFUSE256 369
159160

160161
/* hclk gates */
161162
#define HCLK_SFC 448

0 commit comments

Comments
 (0)