Commit ac904843 authored by Vasily Khoruzhick's avatar Vasily Khoruzhick Committed by Maxime Ripard

arm64: dts: allwinner: a64: enable DVFS

Add CPU regulator and operating points for all the A64-based boards
that are currently supported to enable DVFS.
Signed-off-by: default avatarVasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
parent 51b3eaba
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
/dts-v1/; /dts-v1/;
#include "sun50i-a64.dtsi" #include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
...@@ -63,6 +64,22 @@ wifi_pwrseq: wifi-pwrseq { ...@@ -63,6 +64,22 @@ wifi_pwrseq: wifi-pwrseq {
}; };
}; };
&cpu0 {
cpu-supply = <&reg_dcdc2>;
};
&cpu1 {
cpu-supply = <&reg_dcdc2>;
};
&cpu2 {
cpu-supply = <&reg_dcdc2>;
};
&cpu3 {
cpu-supply = <&reg_dcdc2>;
};
&csi { &csi {
status = "okay"; status = "okay";
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
/dts-v1/; /dts-v1/;
#include "sun50i-a64.dtsi" #include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
...@@ -69,6 +70,22 @@ &codec_analog { ...@@ -69,6 +70,22 @@ &codec_analog {
status = "okay"; status = "okay";
}; };
&cpu0 {
cpu-supply = <&reg_dcdc2>;
};
&cpu1 {
cpu-supply = <&reg_dcdc2>;
};
&cpu2 {
cpu-supply = <&reg_dcdc2>;
};
&cpu3 {
cpu-supply = <&reg_dcdc2>;
};
&dai { &dai {
status = "okay"; status = "okay";
}; };
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
/dts-v1/; /dts-v1/;
#include "sun50i-a64.dtsi" #include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
...@@ -48,6 +49,22 @@ wifi_pwrseq: wifi_pwrseq { ...@@ -48,6 +49,22 @@ wifi_pwrseq: wifi_pwrseq {
}; };
}; };
&cpu0 {
cpu-supply = <&reg_dcdc2>;
};
&cpu1 {
cpu-supply = <&reg_dcdc2>;
};
&cpu2 {
cpu-supply = <&reg_dcdc2>;
};
&cpu3 {
cpu-supply = <&reg_dcdc2>;
};
&de { &de {
status = "okay"; status = "okay";
}; };
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
/dts-v1/; /dts-v1/;
#include "sun50i-a64.dtsi" #include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
...@@ -48,6 +49,22 @@ wifi_pwrseq: wifi_pwrseq { ...@@ -48,6 +49,22 @@ wifi_pwrseq: wifi_pwrseq {
}; };
}; };
&cpu0 {
cpu-supply = <&reg_dcdc2>;
};
&cpu1 {
cpu-supply = <&reg_dcdc2>;
};
&cpu2 {
cpu-supply = <&reg_dcdc2>;
};
&cpu3 {
cpu-supply = <&reg_dcdc2>;
};
&de { &de {
status = "okay"; status = "okay";
}; };
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
/dts-v1/; /dts-v1/;
#include "sun50i-a64.dtsi" #include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
...@@ -84,6 +85,22 @@ &codec_analog { ...@@ -84,6 +85,22 @@ &codec_analog {
status = "okay"; status = "okay";
}; };
&cpu0 {
cpu-supply = <&reg_dcdc2>;
};
&cpu1 {
cpu-supply = <&reg_dcdc2>;
};
&cpu2 {
cpu-supply = <&reg_dcdc2>;
};
&cpu3 {
cpu-supply = <&reg_dcdc2>;
};
&dai { &dai {
status = "okay"; status = "okay";
}; };
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
/dts-v1/; /dts-v1/;
#include "sun50i-a64.dtsi" #include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
...@@ -45,6 +46,22 @@ &codec_analog { ...@@ -45,6 +46,22 @@ &codec_analog {
status = "okay"; status = "okay";
}; };
&cpu0 {
cpu-supply = <&reg_dcdc2>;
};
&cpu1 {
cpu-supply = <&reg_dcdc2>;
};
&cpu2 {
cpu-supply = <&reg_dcdc2>;
};
&cpu3 {
cpu-supply = <&reg_dcdc2>;
};
&dai { &dai {
status = "okay"; status = "okay";
}; };
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
/dts-v1/; /dts-v1/;
#include "sun50i-a64.dtsi" #include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/gpio-keys.h> #include <dt-bindings/input/gpio-keys.h>
...@@ -97,6 +98,22 @@ &codec_analog { ...@@ -97,6 +98,22 @@ &codec_analog {
status = "okay"; status = "okay";
}; };
&cpu0 {
cpu-supply = <&reg_dcdc2>;
};
&cpu1 {
cpu-supply = <&reg_dcdc2>;
};
&cpu2 {
cpu-supply = <&reg_dcdc2>;
};
&cpu3 {
cpu-supply = <&reg_dcdc2>;
};
&dai { &dai {
status = "okay"; status = "okay";
}; };
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
// Copyright (c) 2016 ARM Ltd. // Copyright (c) 2016 ARM Ltd.
#include "sun50i-a64.dtsi" #include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
...@@ -11,6 +12,22 @@ &codec_analog { ...@@ -11,6 +12,22 @@ &codec_analog {
cpvdd-supply = <&reg_eldo1>; cpvdd-supply = <&reg_eldo1>;
}; };
&cpu0 {
cpu-supply = <&reg_dcdc2>;
};
&cpu1 {
cpu-supply = <&reg_dcdc2>;
};
&cpu2 {
cpu-supply = <&reg_dcdc2>;
};
&cpu3 {
cpu-supply = <&reg_dcdc2>;
};
&mmc0 { &mmc0 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>; pinctrl-0 = <&mmc0_pins>;
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
/dts-v1/; /dts-v1/;
#include "sun50i-a64.dtsi" #include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
#include <dt-bindings/gpio/gpio.h> #include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
...@@ -101,6 +102,22 @@ &de { ...@@ -101,6 +102,22 @@ &de {
status = "okay"; status = "okay";
}; };
&cpu0 {
cpu-supply = <&reg_dcdc2>;
};
&cpu1 {
cpu-supply = <&reg_dcdc2>;
};
&cpu2 {
cpu-supply = <&reg_dcdc2>;
};
&cpu3 {
cpu-supply = <&reg_dcdc2>;
};
&ehci1 { &ehci1 {
status = "okay"; status = "okay";
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment