AnsweredAssumed Answered

why don't activated on imx8mq android p9.0.0_1.0.0-ga

Question asked by sangwook kim on Apr 18, 2019
Latest reply on Jun 1, 2019 by Huilai Zhan

I want to use GPIO1_IO01 pin as backlight-pwm.

I already check pwm (for lcd backlight) in L4.9.88_2.0.0 package.

when boot on, backlight is turn-on and pwm pulse is generated in GPIO1_IO01 pin

but in android p9.0.0_1.0.0-ga package, pwm pulse do not enabled.

how can I enable pwm in GPIO1_IO01 pin ???

please guide to me.

 

my dts file is below.

 

/ {
 lvds_backlight0: backlight {
  compatible = "pwm-backlight";
  pwms = <&pwm1 0 1000000 0>;
  brightness-levels = < 0  1  2  3  4  5  6  7  8  9
         10 11 12 13 14 15 16 17 18 19
         20 21 22 23 24 25 26 27 28 29
         30 31 32 33 34 35 36 37 38 39
         40 41 42 43 44 45 46 47 48 49
         50 51 52 53 54 55 56 57 58 59
         60 61 62 63 64 65 66 67 68 69
         70 71 72 73 74 75 76 77 78 79
         80 81 82 83 84 85 86 87 88 89
         90 91 92 93 94 95 96 97 98 99
        100>;
  default-brightness-level = <80>;
  enable = <&gpio1 1 GPIO_ACTIVE_HIGH>;
  fb-names = "HY070NA01D";
  status = "okay";
 };
};

&pwm1 {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_pwm1>;
 status = "okay";
};

&iomuxc {
 imx8mq-evk {
  pinctrl_mipi_dsi_en: mipi_dsi_en {
   fsl,pins = <
    MX8MQ_IOMUXC_ECSPI1_SCLK_GPIO5_IO6 0x16
   >;
  };

  pinctrl_pwm1: pwm1grp {
   fsl,pins = <
    MX8MQ_IOMUXC_GPIO1_IO01_PWM1_OUT         0x06
   >;
  };
 };
};

Outcomes