Skip to content

Commit 5273d6c

Browse files
xdarklightkhilman
authored andcommitted
arm64: dts: meson-gx: Switch to the meson-ee-pwrc bindings
The "amlogic,meson-gx-pwrc-vpu" binding only supports the VPU power domain, while actually there are more power domains behind that set of registers. Switch to the new bindings so we can add more power domains as needed. Signed-off-by: Martin Blumenstingl <[email protected]> Signed-off-by: Kevin Hilman <[email protected]> Reviewed-by: Neil Armstrong <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent cabb1f3 commit 5273d6c

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

arch/arm64/boot/dts/amlogic/meson-gx.dtsi

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <dt-bindings/gpio/gpio.h>
1313
#include <dt-bindings/interrupt-controller/irq.h>
1414
#include <dt-bindings/interrupt-controller/arm-gic.h>
15+
#include <dt-bindings/power/meson-gxbb-power.h>
1516
#include <dt-bindings/thermal/thermal.h>
1617

1718
/ {
@@ -60,15 +61,15 @@
6061
compatible = "amlogic,simple-framebuffer",
6162
"simple-framebuffer";
6263
amlogic,pipeline = "vpu-cvbs";
63-
power-domains = <&pwrc_vpu>;
64+
power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
6465
status = "disabled";
6566
};
6667

6768
simplefb_hdmi: framebuffer-hdmi {
6869
compatible = "amlogic,simple-framebuffer",
6970
"simple-framebuffer";
7071
amlogic,pipeline = "vpu-hdmi";
71-
power-domains = <&pwrc_vpu>;
72+
power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
7273
status = "disabled";
7374
};
7475
};
@@ -438,12 +439,6 @@
438439
compatible = "amlogic,meson-gx-ao-sysctrl", "simple-mfd", "syscon";
439440
reg = <0x0 0x0 0x0 0x100>;
440441

441-
pwrc_vpu: power-controller-vpu {
442-
compatible = "amlogic,meson-gx-pwrc-vpu";
443-
#power-domain-cells = <0>;
444-
amlogic,hhi-sysctrl = <&sysctrl>;
445-
};
446-
447442
clkc_AO: clock-controller {
448443
compatible = "amlogic,meson-gx-aoclkc";
449444
#clock-cells = <1>;
@@ -552,6 +547,12 @@
552547
sysctrl: system-controller@0 {
553548
compatible = "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon";
554549
reg = <0 0 0 0x400>;
550+
551+
pwrc: power-controller {
552+
compatible = "amlogic,meson-gxbb-pwrc";
553+
#power-domain-cells = <1>;
554+
amlogic,ao-sysctrl = <&sysctrl_AO>;
555+
};
555556
};
556557

557558
mailbox: mailbox@404 {
@@ -574,6 +575,7 @@
574575
interrupt-names = "macirq";
575576
rx-fifo-depth = <4096>;
576577
tx-fifo-depth = <2048>;
578+
power-domains = <&pwrc PWRC_GXBB_ETHERNET_MEM_ID>;
577579
status = "disabled";
578580
};
579581

arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@
747747
};
748748
};
749749

750-
&pwrc_vpu {
750+
&pwrc {
751751
resets = <&reset RESET_VIU>,
752752
<&reset RESET_VENC>,
753753
<&reset RESET_VCBUS>,
@@ -760,6 +760,9 @@
760760
<&reset RESET_VDI6>,
761761
<&reset RESET_VENCL>,
762762
<&reset RESET_VID_LOCK>;
763+
reset-names = "viu", "venc", "vcbus", "bt656",
764+
"dvin", "rdma", "venci", "vencp",
765+
"vdac", "vdi6", "vencl", "vid_lock";
763766
clocks = <&clkc CLKID_VPU>,
764767
<&clkc CLKID_VAPB>;
765768
clock-names = "vpu", "vapb";
@@ -866,7 +869,7 @@
866869

867870
&vpu {
868871
compatible = "amlogic,meson-gxbb-vpu", "amlogic,meson-gx-vpu";
869-
power-domains = <&pwrc_vpu>;
872+
power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
870873
};
871874

872875
&vdec {

arch/arm64/boot/dts/amlogic/meson-gxl.dtsi

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@
782782
};
783783
};
784784

785-
&pwrc_vpu {
785+
&pwrc {
786786
resets = <&reset RESET_VIU>,
787787
<&reset RESET_VENC>,
788788
<&reset RESET_VCBUS>,
@@ -795,6 +795,9 @@
795795
<&reset RESET_VDI6>,
796796
<&reset RESET_VENCL>,
797797
<&reset RESET_VID_LOCK>;
798+
reset-names = "viu", "venc", "vcbus", "bt656",
799+
"dvin", "rdma", "venci", "vencp",
800+
"vdac", "vdi6", "vencl", "vid_lock";
798801
clocks = <&clkc CLKID_VPU>,
799802
<&clkc CLKID_VAPB>;
800803
clock-names = "vpu", "vapb";
@@ -901,7 +904,7 @@
901904

902905
&vpu {
903906
compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu";
904-
power-domains = <&pwrc_vpu>;
907+
power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
905908
};
906909

907910
&vdec {

0 commit comments

Comments
 (0)