Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Linux/AM5728: GPIO configuration issue

$
0
0

Part Number:AM5728

Tool/software: Linux

Hi, TI and everyone.

I make and test the AM5728 custom board and DTS using PSK4.3 and am57xx-evm-reva3.dts.

This board uses the GPIO-fan that low-active, i.e, when GPIO outputs 0, the fan run.

My gpio-fan DTS(am57xx-beagle-x15-common.dtsi) is below:


gpio_fan: gpio_fan {
/* Based on 5v 500mA AFB02505HHB */
compatible = "gpio-fan";
pinctrl-names = "default";
pinctrl-0 = <&fan_pins_default>;
gpios = <&gpio2 30>;
gpio-fan,speed-map = <0 1>,
                                   <13000 0>;
default-state = "on";
#cooling-cells = <2>;
};

...


&cpu_trips {
cpu_alert1: cpu_alert1 {
temperature = <40000>; /* millicelsius */
hysteresis = <2000>; /* millicelsius */
type = "active";
};


...

&cpu_cooling_maps {
map1 {
trip = <&cpu_alert1>;
cooling-device = <&gpio_fan THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
};

The GPIO fan runs okay, but the polarity is not right.

When power up, the fan run; when CPU temperature is high, the fan stop.

How change the polarity?

Please lead me to solve this problem.

Best Regards.

Thanks.

Aither.


Viewing all articles
Browse latest Browse all 262198

Trending Articles