Cooling device – CPU device

The following code block provides an example of the cooling device - CPU device.
cpu0: cpu@0 {
            compatible = "sifive,s7", "riscv";
            reg = <0>;
            d-cache-block-size = <64>;
            d-cache-sets = <64>;
            d-cache-size = <8192>;
            d-tlb-sets = <1>;
            d-tlb-size = <40>;
            device_type = "cpu";
            i-cache-block-size = <64>;
            i-cache-sets = <64>;
            i-cache-size = <16384>;
            i-tlb-sets = <1>;
            i-tlb-size = <40>;
            mmu-type = "riscv,sv39";
            next-level-cache = <&cachectrl>;
            riscv,isa = "rv64imac_zba_zbb";
            tlb-split;
            #cooling-cells = <2>;
            status = "disabled";

            cpu0intctrl: interrupt-controller {
                #interrupt-cells = <1>;
                compatible = "riscv,cpu-intc";
                interrupt-controller;
            };
        };
The following list provides explanations for the parameters included in the above code block.
  • compatible: Compatibility information, used to associate the driver and its target device.
  • reg: Register base address .
  • status: The work status of the thermal sensor module. To enable the module, set this bit as "okay" or to disable the module, set this bit as "disabled".