Re: [PATCH] ARM: dts: BCM5301X: Add CPU thermal sensor and zone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Fri, Apr 14, 2017 at 5:42 PM, Rafał Miłecki <zajec5@xxxxxxxxx> wrote:
> From: Rafał Miłecki <rafal@xxxxxxxxxx>
>
> This uses CPU thermal sensor available on every Northstar chipset to
> monitor temperature. We don't have any cooling or throttling so only a
> critical trip was added.

Haha!  You beat me to it (as I had a similar patch queued).

This looks good to me.

Acked-by: Jon Mason <jon.mason@xxxxxxxxxxxx>

>
> Signed-off-by: Rafał Miłecki <rafal@xxxxxxxxxx>
> ---
>  arch/arm/boot/dts/bcm5301x.dtsi | 26 ++++++++++++++++++++++++++
>  1 file changed, 26 insertions(+)
>
> diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi
> index 6a2afe7880ae..bbf39deb89f3 100644
> --- a/arch/arm/boot/dts/bcm5301x.dtsi
> +++ b/arch/arm/boot/dts/bcm5301x.dtsi
> @@ -356,6 +356,12 @@
>                                      "sata2";
>         };
>
> +       thermal: thermal@1800c2c0 {
> +               compatible = "brcm,ns-thermal";
> +               reg = <0x1800c2c0 0x10>;
> +               #thermal-sensor-cells = <0>;
> +       };
> +
>         srab: srab@18007000 {
>                 compatible = "brcm,bcm5301x-srab";
>                 reg = <0x18007000 0x1000>;
> @@ -419,4 +425,24 @@
>                         status = "disabled";
>                 };
>         };
> +
> +       thermal-zones {
> +               cpu_thermal: cpu-thermal {
> +                       polling-delay-passive = <0>;
> +                       polling-delay = <1000>;
> +                       coefficients = <(-556) 418000>;
> +                       thermal-sensors = <&thermal>;
> +
> +                       trips {
> +                               cpu-crit {
> +                                       temperature     = <125000>;
> +                                       hysteresis      = <0>;
> +                                       type            = "critical";
> +                               };
> +                       };
> +
> +                       cooling-maps {
> +                       };
> +               };
> +       };
>  };
> --
> 2.11.0
>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux