aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLCPD Auto Merger2016-05-25 13:55:02 -0500
committerLCPD Auto Merger2016-05-25 13:55:02 -0500
commitf4c4c0be907c8979eed26bf50bc272ddea766c6b (patch)
tree4a961ee07519bca0c00a824f3a6ab62d549f9b40
parentc48eb31ee36a818f7bb981c62229a930108d6530 (diff)
parent461e4afa6bfe7fdba6c0e157eaf726bc856a7283 (diff)
downloadkernel-audio-f4c4c0be907c8979eed26bf50bc272ddea766c6b.tar.gz
kernel-audio-f4c4c0be907c8979eed26bf50bc272ddea766c6b.tar.xz
kernel-audio-f4c4c0be907c8979eed26bf50bc272ddea766c6b.zip
Merge branch 'ti-linux-4.4.y' of git.ti.com:ti-linux-kernel/ti-linux-kernel into ti-lsk-linux-4.4.y
TI-Feature: ti_linux_base_lsk TI-Tree: git@git.ti.com:ti-linux-kernel/ti-linux-kernel.git TI-Branch: ti-linux-4.4.y * 'ti-linux-4.4.y' of git.ti.com:ti-linux-kernel/ti-linux-kernel: soc: ti: opp-domain: Make ti,absolute-max-voltage-uv mandatory ARM: dts: OMAP5: Switch to opp-v2 definitions ARM: dts: OMAP5: Move the cpu-opp-domain to SoC dtsi ARM: dts: omap5-cm-t54: Switch to opp-domain ARM: dts: omap5-board-common: Move the opp-domain definition to board-common dts ARM: dts: omap5-uevm: Remove voltage tolerance ARM: dts: DRA7/AM57x: Move cpu-opp-domain mapping to SoC map ARM: dts: dra72-evm-common: Get rid of voltage tolerance Signed-off-by: LCPD Auto Merger <lcpd_integration@list.ti.com>
-rw-r--r--Documentation/devicetree/bindings/opp/ti-omap5-opp-domain.txt3
-rw-r--r--arch/arm/boot/dts/am571x-idk.dts4
-rw-r--r--arch/arm/boot/dts/am572x-idk.dts4
-rw-r--r--arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi4
-rw-r--r--arch/arm/boot/dts/dra7-evm.dts4
-rw-r--r--arch/arm/boot/dts/dra7.dtsi1
-rw-r--r--arch/arm/boot/dts/dra72-evm-common.dtsi5
-rw-r--r--arch/arm/boot/dts/omap5-board-common.dtsi16
-rw-r--r--arch/arm/boot/dts/omap5-cm-t54.dts12
-rw-r--r--arch/arm/boot/dts/omap5-uevm.dts17
-rw-r--r--arch/arm/boot/dts/omap5.dtsi23
-rw-r--r--drivers/soc/ti/ti-opp-domain.c12
12 files changed, 50 insertions, 55 deletions
diff --git a/Documentation/devicetree/bindings/opp/ti-omap5-opp-domain.txt b/Documentation/devicetree/bindings/opp/ti-omap5-opp-domain.txt
index c9ba3c6ba89f..aa31b16a1cd2 100644
--- a/Documentation/devicetree/bindings/opp/ti-omap5-opp-domain.txt
+++ b/Documentation/devicetree/bindings/opp/ti-omap5-opp-domain.txt
@@ -35,8 +35,6 @@ Required Properties:
35 optimized efuse configuration. Each item consists of the following: 35 optimized efuse configuration. Each item consists of the following:
36 volt: voltage in uV - reference voltage (OPP voltage) 36 volt: voltage in uV - reference voltage (OPP voltage)
37 efuse_offseet: efuse offset from reg where the optimized voltage is stored. 37 efuse_offseet: efuse offset from reg where the optimized voltage is stored.
38
39Optional Properties:
40- ti,absolute-max-voltage-uv: absolute maximum voltage for the OPP domain. 38- ti,absolute-max-voltage-uv: absolute maximum voltage for the OPP domain.
41 39
42Example: 40Example:
@@ -63,6 +61,7 @@ oppdm_mpu: oppdm@4a003b20 {
63 1160000 0x4 61 1160000 0x4
64 1210000 0x8 62 1210000 0x8
65 >; 63 >;
64 ti,absolute-max-voltage-uv = <1500000>;
66}; 65};
67 66
68oppdm_core: oppdm@4a003d20 { 67oppdm_core: oppdm@4a003d20 {
diff --git a/arch/arm/boot/dts/am571x-idk.dts b/arch/arm/boot/dts/am571x-idk.dts
index 78252b0c89c9..d2ddf6154d73 100644
--- a/arch/arm/boot/dts/am571x-idk.dts
+++ b/arch/arm/boot/dts/am571x-idk.dts
@@ -99,10 +99,6 @@
99 cd-gpios = <&gpio6 27 0>; /* gpio 219 */ 99 cd-gpios = <&gpio6 27 0>; /* gpio 219 */
100}; 100};
101 101
102&cpu0 {
103 cpu-opp-domain = <&oppdm_mpu>;
104};
105
106&oppdm_mpu { 102&oppdm_mpu {
107 vdd-supply = <&smps12_reg>; 103 vdd-supply = <&smps12_reg>;
108}; 104};
diff --git a/arch/arm/boot/dts/am572x-idk.dts b/arch/arm/boot/dts/am572x-idk.dts
index 044082c919e9..442804030236 100644
--- a/arch/arm/boot/dts/am572x-idk.dts
+++ b/arch/arm/boot/dts/am572x-idk.dts
@@ -447,10 +447,6 @@
447 reset-delay-us = <2>; /* PHY datasheet states 1uS min */ 447 reset-delay-us = <2>; /* PHY datasheet states 1uS min */
448}; 448};
449 449
450&cpu0 {
451 cpu-opp-domain = <&oppdm_mpu>;
452};
453
454&oppdm_mpu { 450&oppdm_mpu {
455 vdd-supply = <&smps12_reg>; 451 vdd-supply = <&smps12_reg>;
456}; 452};
diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
index 4a8b83a12bb8..e9a98cce0401 100644
--- a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
+++ b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
@@ -533,10 +533,6 @@
533 }; 533 };
534}; 534};
535 535
536&cpu0 {
537 cpu-opp-domain = <&oppdm_mpu>;
538};
539
540&oppdm_mpu { 536&oppdm_mpu {
541 vdd-supply = <&smps12_reg>; 537 vdd-supply = <&smps12_reg>;
542}; 538};
diff --git a/arch/arm/boot/dts/dra7-evm.dts b/arch/arm/boot/dts/dra7-evm.dts
index a0c41d16c920..5adcf9148644 100644
--- a/arch/arm/boot/dts/dra7-evm.dts
+++ b/arch/arm/boot/dts/dra7-evm.dts
@@ -919,10 +919,6 @@
919 }; 919 };
920}; 920};
921 921
922&cpu0 {
923 cpu-opp-domain = <&oppdm_mpu>;
924};
925
926&oppdm_mpu { 922&oppdm_mpu {
927 vdd-supply = <&smps123_reg>; 923 vdd-supply = <&smps123_reg>;
928}; 924};
diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi
index ad18b453411c..30f22e2f9bbc 100644
--- a/arch/arm/boot/dts/dra7.dtsi
+++ b/arch/arm/boot/dts/dra7.dtsi
@@ -82,6 +82,7 @@
82 reg = <0>; 82 reg = <0>;
83 83
84 operating-points-v2 = <&cpu0_opp_table>; 84 operating-points-v2 = <&cpu0_opp_table>;
85 cpu-opp-domain = <&oppdm_mpu>;
85 ti,syscon-efuse = <&scm_wkup 0x20c 0xf80000 19>; 86 ti,syscon-efuse = <&scm_wkup 0x20c 0xf80000 19>;
86 ti,syscon-rev = <&scm_wkup 0x204>; 87 ti,syscon-rev = <&scm_wkup 0x204>;
87 88
diff --git a/arch/arm/boot/dts/dra72-evm-common.dtsi b/arch/arm/boot/dts/dra72-evm-common.dtsi
index 65e91dd34616..7d75e171dd99 100644
--- a/arch/arm/boot/dts/dra72-evm-common.dtsi
+++ b/arch/arm/boot/dts/dra72-evm-common.dtsi
@@ -709,11 +709,6 @@
709 timers = <&timer5>; 709 timers = <&timer5>;
710}; 710};
711 711
712&cpu0 {
713 cpu-opp-domain = <&oppdm_mpu>;
714 voltage-tolerance = <1>;
715};
716
717&oppdm_mpu { 712&oppdm_mpu {
718 vdd-supply = <&smps1_reg>; 713 vdd-supply = <&smps1_reg>;
719}; 714};
diff --git a/arch/arm/boot/dts/omap5-board-common.dtsi b/arch/arm/boot/dts/omap5-board-common.dtsi
index 87cbaab4d1b1..d4ce98d79520 100644
--- a/arch/arm/boot/dts/omap5-board-common.dtsi
+++ b/arch/arm/boot/dts/omap5-board-common.dtsi
@@ -707,10 +707,6 @@
707 pinctrl-0 = <&uart5_pins>; 707 pinctrl-0 = <&uart5_pins>;
708}; 708};
709 709
710&cpu0 {
711 cpu0-supply = <&smps123_reg>;
712};
713
714&dss { 710&dss {
715 status = "ok"; 711 status = "ok";
716}; 712};
@@ -729,3 +725,15 @@
729 }; 725 };
730 }; 726 };
731}; 727};
728
729&oppdm_mpu {
730 vdd-supply = <&smps123_reg>;
731};
732
733&oppdm_mm {
734 vdd-supply = <&smps45_reg>;
735};
736
737&oppdm_core {
738 vdd-supply = <&smps6_reg>;
739};
diff --git a/arch/arm/boot/dts/omap5-cm-t54.dts b/arch/arm/boot/dts/omap5-cm-t54.dts
index 3774b37be6c8..1eeafde57b76 100644
--- a/arch/arm/boot/dts/omap5-cm-t54.dts
+++ b/arch/arm/boot/dts/omap5-cm-t54.dts
@@ -635,8 +635,16 @@
635 vbus-supply = <&smps10_out1_reg>; 635 vbus-supply = <&smps10_out1_reg>;
636}; 636};
637 637
638&cpu0 { 638&oppdm_mpu {
639 cpu0-supply = <&smps123_reg>; 639 vdd-supply = <&smps123_reg>;
640};
641
642&oppdm_mm {
643 vdd-supply = <&smps45_reg>;
644};
645
646&oppdm_core {
647 vdd-supply = <&smps8_reg>;
640}; 648};
641 649
642&dss { 650&dss {
diff --git a/arch/arm/boot/dts/omap5-uevm.dts b/arch/arm/boot/dts/omap5-uevm.dts
index bcaba151620b..5903e7e2d294 100644
--- a/arch/arm/boot/dts/omap5-uevm.dts
+++ b/arch/arm/boot/dts/omap5-uevm.dts
@@ -66,23 +66,6 @@
66 }; 66 };
67}; 67};
68 68
69&cpu0 {
70 cpu-opp-domain = <&oppdm_mpu>;
71 voltage-tolerance = <1>;
72};
73
74&oppdm_mpu {
75 vdd-supply = <&smps123_reg>;
76};
77
78&oppdm_mm {
79 vdd-supply = <&smps45_reg>;
80};
81
82&oppdm_core {
83 vdd-supply = <&smps6_reg>;
84};
85
86&tpd12s015 { 69&tpd12s015 {
87 gpios = <&gpio9 0 GPIO_ACTIVE_HIGH>, /* TCA6424A P01, CT CP HPD */ 70 gpios = <&gpio9 0 GPIO_ACTIVE_HIGH>, /* TCA6424A P01, CT CP HPD */
88 <&gpio9 1 GPIO_ACTIVE_HIGH>, /* TCA6424A P00, LS OE */ 71 <&gpio9 1 GPIO_ACTIVE_HIGH>, /* TCA6424A P00, LS OE */
diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi
index 50c59d447b9e..fb9c8fb1b5b2 100644
--- a/arch/arm/boot/dts/omap5.dtsi
+++ b/arch/arm/boot/dts/omap5.dtsi
@@ -45,11 +45,8 @@
45 compatible = "arm,cortex-a15"; 45 compatible = "arm,cortex-a15";
46 reg = <0x0>; 46 reg = <0x0>;
47 47
48 operating-points = < 48 operating-points-v2 = <&cpu0_opp_table>;
49 /* kHz uV */ 49 cpu-opp-domain = <&oppdm_mpu>;
50 1000000 1060000
51 1500000 1250000
52 >;
53 50
54 clocks = <&dpll_mpu_ck>; 51 clocks = <&dpll_mpu_ck>;
55 clock-names = "cpu"; 52 clock-names = "cpu";
@@ -68,6 +65,22 @@
68 }; 65 };
69 }; 66 };
70 67
68 cpu0_opp_table: opp_table0 {
69 compatible = "operating-points-v2";
70 opp-shared;
71
72 opp_nom@1000000000 {
73 opp-hz = /bits/ 64 <1000000000>;
74 opp-microvolt = <1060000 850000 1100000>;
75 opp-suspend;
76 };
77
78 opp_high@1500000000 {
79 opp-hz = /bits/ 64 <1500000000>;
80 opp-microvolt = <1250000 850000 1250000>;
81 };
82 };
83
71 thermal-zones { 84 thermal-zones {
72 #include "omap4-cpu-thermal.dtsi" 85 #include "omap4-cpu-thermal.dtsi"
73 #include "omap5-gpu-thermal.dtsi" 86 #include "omap5-gpu-thermal.dtsi"
diff --git a/drivers/soc/ti/ti-opp-domain.c b/drivers/soc/ti/ti-opp-domain.c
index 00eaca29a36d..10e16b560dc8 100644
--- a/drivers/soc/ti/ti-opp-domain.c
+++ b/drivers/soc/ti/ti-opp-domain.c
@@ -122,6 +122,14 @@ static int oppdm_store_optimized_voltages(struct device *dev,
122 goto out; 122 goto out;
123 } 123 }
124 124
125 ret = of_property_read_u32(dev->of_node, "ti,absolute-max-voltage-uv",
126 &data->vdd_absolute_max_voltage_uv);
127 if (ret) {
128 dev_err(dev, "ti,absolute-max-voltage-uv is missing\n");
129 ret = -EINVAL;
130 goto out;
131 }
132
125 table = kzalloc(sizeof(*data->vdd_table) * 133 table = kzalloc(sizeof(*data->vdd_table) *
126 data->num_vdd_table, GFP_KERNEL); 134 data->num_vdd_table, GFP_KERNEL);
127 if (!table) { 135 if (!table) {
@@ -160,10 +168,6 @@ static int oppdm_store_optimized_voltages(struct device *dev,
160 table->optimized_uv = table->reference_uv; 168 table->optimized_uv = table->reference_uv;
161 } 169 }
162 } 170 }
163
164 of_property_read_u32(dev->of_node, "ti,absolute-max-voltage-uv",
165 &data->vdd_absolute_max_voltage_uv);
166
167out: 171out:
168 iounmap(base); 172 iounmap(base);
169out_map: 173out_map: