Message ID | 20200103064407.19861-4-michael.kao@mediatek.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Add Mediatek thermal dirver and dtsi | expand |
On 03/01/2020 07:44, Michael Kao wrote: > From: "michael.kao" <michael.kao@mediatek.com> > > The #cooling-cells property needs to be specified to allow a CPU > to be used as cooling device. > > Signed-off-by: Michael Kao <michael.kao@mediatek.com> Applied to v5.6-next/dts64 Thanks > --- > arch/arm64/boot/dts/mediatek/mt8183.dtsi | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi > index cfb74af260e0..63378ae14a16 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi > @@ -9,6 +9,7 @@ > #include <dt-bindings/interrupt-controller/arm-gic.h> > #include <dt-bindings/interrupt-controller/irq.h> > #include "mt8183-pinfunc.h" > +#include <dt-bindings/thermal/thermal.h> > > / { > compatible = "mediatek,mt8183"; > @@ -74,6 +75,7 @@ > enable-method = "psci"; > capacity-dmips-mhz = <741>; > dynamic-power-coefficient = <84>; > + #cooling-cells = <2>; > }; > > cpu1: cpu@1 { > @@ -83,6 +85,7 @@ > enable-method = "psci"; > capacity-dmips-mhz = <741>; > dynamic-power-coefficient = <84>; > + #cooling-cells = <2>; > }; > > cpu2: cpu@2 { > @@ -92,6 +95,7 @@ > enable-method = "psci"; > capacity-dmips-mhz = <741>; > dynamic-power-coefficient = <84>; > + #cooling-cells = <2>; > }; > > cpu3: cpu@3 { > @@ -101,6 +105,7 @@ > enable-method = "psci"; > capacity-dmips-mhz = <741>; > dynamic-power-coefficient = <84>; > + #cooling-cells = <2>; > }; > > cpu4: cpu@100 { > @@ -110,6 +115,7 @@ > enable-method = "psci"; > capacity-dmips-mhz = <1024>; > dynamic-power-coefficient = <211>; > + #cooling-cells = <2>; > }; > > cpu5: cpu@101 { > @@ -119,6 +125,7 @@ > enable-method = "psci"; > capacity-dmips-mhz = <1024>; > dynamic-power-coefficient = <211>; > + #cooling-cells = <2>; > }; > > cpu6: cpu@102 { > @@ -128,6 +135,7 @@ > enable-method = "psci"; > capacity-dmips-mhz = <1024>; > dynamic-power-coefficient = <211>; > + #cooling-cells = <2>; > }; > > cpu7: cpu@103 { > @@ -137,6 +145,7 @@ > enable-method = "psci"; > capacity-dmips-mhz = <1024>; > dynamic-power-coefficient = <211>; > + #cooling-cells = <2>; > }; > }; > >
diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index cfb74af260e0..63378ae14a16 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -9,6 +9,7 @@ #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/irq.h> #include "mt8183-pinfunc.h" +#include <dt-bindings/thermal/thermal.h> / { compatible = "mediatek,mt8183"; @@ -74,6 +75,7 @@ enable-method = "psci"; capacity-dmips-mhz = <741>; dynamic-power-coefficient = <84>; + #cooling-cells = <2>; }; cpu1: cpu@1 { @@ -83,6 +85,7 @@ enable-method = "psci"; capacity-dmips-mhz = <741>; dynamic-power-coefficient = <84>; + #cooling-cells = <2>; }; cpu2: cpu@2 { @@ -92,6 +95,7 @@ enable-method = "psci"; capacity-dmips-mhz = <741>; dynamic-power-coefficient = <84>; + #cooling-cells = <2>; }; cpu3: cpu@3 { @@ -101,6 +105,7 @@ enable-method = "psci"; capacity-dmips-mhz = <741>; dynamic-power-coefficient = <84>; + #cooling-cells = <2>; }; cpu4: cpu@100 { @@ -110,6 +115,7 @@ enable-method = "psci"; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <211>; + #cooling-cells = <2>; }; cpu5: cpu@101 { @@ -119,6 +125,7 @@ enable-method = "psci"; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <211>; + #cooling-cells = <2>; }; cpu6: cpu@102 { @@ -128,6 +135,7 @@ enable-method = "psci"; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <211>; + #cooling-cells = <2>; }; cpu7: cpu@103 { @@ -137,6 +145,7 @@ enable-method = "psci"; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <211>; + #cooling-cells = <2>; }; };