arm64: dts: amlogic: meson-g12b-bananapi: remove invalid fan on wrong pwm_cd controller
authorNeil Armstrong <neil.armstrong@linaro.org>
Thu, 6 Jun 2024 08:48:08 +0000 (10:48 +0200)
committerNeil Armstrong <neil.armstrong@linaro.org>
Fri, 7 Jun 2024 09:17:12 +0000 (11:17 +0200)
The fan is connected to the GPIOAO_10 pin, which can be connected to the pwm_AO_cd
controller, but this one is already used for the vddcpu_b regulator.

The fan was wrongly described as using the pwm_cd with the invalid "pwm-gpios"
property, both are wrong so remove the fan until we find an acceptable solution.

This fixes the following error:
pwm@1a000: 'pwm-gpios' does not match any of the regexes: 'pinctrl-[0-9]+'
        from schema $id: http://devicetree.org/schemas/pwm/pwm-amlogic.yaml#

Tested-by: Christian Hewitt <christianshewitt@gmail.com>
Link: https://lore.kernel.org/r/20240606-topic-amlogic-upstream-bindings-fixes-dts-v1-1-62e812729541@linaro.org
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
arch/arm64/boot/dts/amlogic/meson-g12b-bananapi.dtsi

index 4b8db872bbf315ce36f13dab646c2e46bdb89429..6a346cb86a5394809c764e0412d747d727baabbf 100644 (file)
                reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>;
        };
 
-       fan0: pwm-fan {
-               compatible = "pwm-fan";
-               #cooling-cells = <2>;
-               cooling-levels = <0 120 170 220>;
-               pwms = <&pwm_cd 1 40000 0>;
-       };
-
        hdmi-connector {
                compatible = "hdmi-connector";
                type = "a";
        clock-names = "clkin0";
 };
 
-&pwm_cd {
-       status = "okay";
-       pinctrl-0 = <&pwm_d_x6_pins>;
-       pinctrl-names = "default";
-       pwm-gpios = <&gpio GPIOAO_10 GPIO_ACTIVE_HIGH>;
-};
-
 &pwm_ef {
        status = "okay";
        pinctrl-0 = <&pwm_e_pins>;