ARM64: dts: meson-gxbb: Add SCPI with cpufreq & sensors Nodes
authorNeil Armstrong <narmstrong@baylibre.com>
Wed, 19 Oct 2016 12:51:12 +0000 (14:51 +0200)
committerKevin Hilman <khilman@baylibre.com>
Tue, 15 Nov 2016 20:04:56 +0000 (12:04 -0800)
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi

index f6b68b046b0aebba867887604f4498e4d146e958..2d69a3b68de445e7086816778c5d46e51be98046 100644 (file)
                };
        };
 
+       scpi {
+               compatible = "amlogic,meson-gxbb-scpi";
+               mboxes = <&mailbox 1 &mailbox 2>;
+               shmem = <&cpu_scp_lpri &cpu_scp_hpri>;
+
+               clocks {
+                       compatible = "arm,scpi-clocks";
+
+                       scpi_dvfs: scpi_clocks@0 {
+                               compatible = "arm,scpi-dvfs-clocks";
+                               #clock-cells = <1>;
+                               clock-indices = <0>;
+                               clock-output-names = "vcpu";
+                       };
+               };
+
+               scpi_sensors: sensors {
+                       compatible = "arm,scpi-sensors";
+                       #thermal-sensor-cells = <1>;
+               };
+       };
+
        soc {
                usb0_phy: phy@c0000000 {
                        compatible = "amlogic,meson-gxbb-usb2-phy";
                        #address-cells = <1>;
                        #size-cells = <1>;
                        ranges = <0 0x0 0xc8000000 0x14000>;
+
+                       cpu_scp_lpri: scp-shmem@0 {
+                               compatible = "amlogic,meson-gxbb-scp-shmem";
+                               reg = <0x13000 0x400>;
+                       };
+
+                       cpu_scp_hpri: scp-shmem@200 {
+                               compatible = "amlogic,meson-gxbb-scp-shmem";
+                               reg = <0x13400 0x400>;
+                       };
                };
 
                usb0: usb@c9000000 {
        };
 };
 
+&cpu0 {
+       clocks = <&scpi_dvfs 0>;
+};
+
+&cpu1 {
+       clocks = <&scpi_dvfs 0>;
+};
+
+&cpu2 {
+       clocks = <&scpi_dvfs 0>;
+};
+
+&cpu3 {
+       clocks = <&scpi_dvfs 0>;
+};
+
 &cbus {
        reset: reset-controller@4404 {
                compatible = "amlogic,meson-gxbb-reset";