~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/hwmon/npcm750-pwm-fan.txt

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/hwmon/npcm750-pwm-fan.txt (Architecture m68k) and /Documentation/devicetree/bindings/hwmon/npcm750-pwm-fan.txt (Architecture ppc)


  1 Nuvoton NPCM PWM and Fan Tacho controller devi      1 Nuvoton NPCM PWM and Fan Tacho controller device
  2                                                     2 
  3 The Nuvoton BMC NPCM7XX supports 8 Pulse-width      3 The Nuvoton BMC NPCM7XX supports 8 Pulse-width modulation (PWM)
  4 controller outputs and 16 Fan tachometer contr      4 controller outputs and 16 Fan tachometer controller inputs.
  5                                                     5 
  6 The Nuvoton BMC NPCM8XX supports 12 Pulse-widt      6 The Nuvoton BMC NPCM8XX supports 12 Pulse-width modulation (PWM)
  7 controller outputs and 16 Fan tachometer contr      7 controller outputs and 16 Fan tachometer controller inputs.
  8                                                     8 
  9 Required properties for pwm-fan node                9 Required properties for pwm-fan node
 10 - #address-cells : should be 1.                    10 - #address-cells : should be 1.
 11 - #size-cells   : should be 0.                     11 - #size-cells   : should be 0.
 12 - compatible    : "nuvoton,npcm750-pwm-fan" fo     12 - compatible    : "nuvoton,npcm750-pwm-fan" for Poleg NPCM7XX.
 13                                 : "nuvoton,npc     13                                 : "nuvoton,npcm845-pwm-fan" for Arbel NPCM8XX.
 14 - reg                   : specifies physical b     14 - reg                   : specifies physical base address and size of the registers.
 15 - reg-names     : must contain:                    15 - reg-names     : must contain:
 16                                         * "pwm     16                                         * "pwm" for the PWM registers.
 17                                         * "fan     17                                         * "fan" for the Fan registers.
 18 - clocks                : phandle of reference     18 - clocks                : phandle of reference clocks.
 19 - clock-names   : must contain                     19 - clock-names   : must contain
 20                                         * "pwm     20                                         * "pwm" for PWM controller operating clock.
 21                                         * "fan     21                                         * "fan" for Fan controller operating clock.
 22 - interrupts    : contain the Fan interrupts w     22 - interrupts    : contain the Fan interrupts with flags for falling edge.
 23 - pinctrl-names : a pinctrl state named "defau     23 - pinctrl-names : a pinctrl state named "default" must be defined.
 24 - pinctrl-0     : phandle referencing pin conf     24 - pinctrl-0     : phandle referencing pin configuration of the PWM and Fan
 25                                         contro     25                                         controller ports.
 26                                                    26 
 27 fan subnode format:                                27 fan subnode format:
 28 ===================                                28 ===================
 29 Under fan subnode can be upto 8 child nodes, e     29 Under fan subnode can be upto 8 child nodes, each child node representing a fan.
 30 Each fan subnode must have one PWM channel and     30 Each fan subnode must have one PWM channel and at least one Fan tach channel.
 31                                                    31 
 32 For PWM channel can be configured cooling-leve     32 For PWM channel can be configured cooling-levels to create cooling device.
 33 Cooling device could be bound to a thermal zon     33 Cooling device could be bound to a thermal zone for the thermal control.
 34                                                    34 
 35 Required properties for each child node:           35 Required properties for each child node:
 36 - reg : specify the PWM output channel.            36 - reg : specify the PWM output channel.
 37         integer value in the range 0 through 7     37         integer value in the range 0 through 7, that represent
 38         the PWM channel number that used.          38         the PWM channel number that used.
 39                                                    39 
 40 - fan-tach-ch : specify the Fan tach input cha     40 - fan-tach-ch : specify the Fan tach input channel.
 41                 integer value in the range 0 t     41                 integer value in the range 0 through 15, that represent
 42                 the fan tach channel number th     42                 the fan tach channel number that used.
 43                                                    43 
 44                 At least one Fan tach input ch     44                 At least one Fan tach input channel is required
 45                                                    45 
 46 Optional property for each child node:             46 Optional property for each child node:
 47 - cooling-levels: PWM duty cycle values in a r     47 - cooling-levels: PWM duty cycle values in a range from 0 to 255
 48                   which correspond to thermal      48                   which correspond to thermal cooling states.
 49                                                    49 
 50 Examples:                                          50 Examples:
 51                                                    51 
 52 pwm_fan:pwm-fan-controller@103000 {                52 pwm_fan:pwm-fan-controller@103000 {
 53         #address-cells = <1>;                      53         #address-cells = <1>;
 54         #size-cells = <0>;                         54         #size-cells = <0>;
 55         compatible = "nuvoton,npcm750-pwm-fan"     55         compatible = "nuvoton,npcm750-pwm-fan";
 56         reg = <0x103000 0x2000>,                   56         reg = <0x103000 0x2000>,
 57                 <0x180000 0x8000>;                 57                 <0x180000 0x8000>;
 58         reg-names = "pwm", "fan";                  58         reg-names = "pwm", "fan";
 59         clocks = <&clk NPCM7XX_CLK_APB3>,          59         clocks = <&clk NPCM7XX_CLK_APB3>,
 60                 <&clk NPCM7XX_CLK_APB4>;           60                 <&clk NPCM7XX_CLK_APB4>;
 61         clock-names = "pwm","fan";                 61         clock-names = "pwm","fan";
 62         interrupts = <GIC_SPI 96 IRQ_TYPE_LEVE     62         interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>,
 63                         <GIC_SPI 97 IRQ_TYPE_L     63                         <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
 64                         <GIC_SPI 98 IRQ_TYPE_L     64                         <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
 65                         <GIC_SPI 99 IRQ_TYPE_L     65                         <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
 66                         <GIC_SPI 100 IRQ_TYPE_     66                         <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
 67                         <GIC_SPI 101 IRQ_TYPE_     67                         <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
 68                         <GIC_SPI 102 IRQ_TYPE_     68                         <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
 69                         <GIC_SPI 103 IRQ_TYPE_     69                         <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
 70         pinctrl-names = "default";                 70         pinctrl-names = "default";
 71         pinctrl-0 = <&pwm0_pins &pwm1_pins &pw     71         pinctrl-0 = <&pwm0_pins &pwm1_pins &pwm2_pins
 72                         &fanin0_pins &fanin1_p     72                         &fanin0_pins &fanin1_pins &fanin2_pins
 73                         &fanin3_pins &fanin4_p     73                         &fanin3_pins &fanin4_pins>;
 74         fan@0 {                                    74         fan@0 {
 75                 reg = <0x00>;                      75                 reg = <0x00>;
 76                 fan-tach-ch = /bits/ 8 <0x00 0     76                 fan-tach-ch = /bits/ 8 <0x00 0x01>;
 77                 cooling-levels = <127 255>;        77                 cooling-levels = <127 255>;
 78         };                                         78         };
 79         fan@1 {                                    79         fan@1 {
 80                 reg = <0x01>;                      80                 reg = <0x01>;
 81                 fan-tach-ch = /bits/ 8 <0x02 0     81                 fan-tach-ch = /bits/ 8 <0x02 0x03>;
 82         };                                         82         };
 83         fan@2 {                                    83         fan@2 {
 84                 reg = <0x02>;                      84                 reg = <0x02>;
 85                 fan-tach-ch = /bits/ 8 <0x04>;     85                 fan-tach-ch = /bits/ 8 <0x04>;
 86         };                                         86         };
 87                                                    87 
 88 };                                                 88 };
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php