<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: IMX6 FB blank behavior in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-FB-blank-behavior/m-p/1212478#M167828</link>
    <description>&lt;P&gt;Thanks for the response, we're using the BSP from&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tag/?h=rel_imx_4.9.88_2.0.0_ga" target="_blank"&gt;&amp;nbsp;rel_imx_4.9.88_2.0.0_ga&lt;/A&gt;&amp;nbsp;and it's too far down the line to change right now.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jan 2021 16:33:20 GMT</pubDate>
    <dc:creator>chrisroed</dc:creator>
    <dc:date>2021-01-15T16:33:20Z</dc:date>
    <item>
      <title>IMX6 FB blank behavior</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-FB-blank-behavior/m-p/1206256#M167219</link>
      <description>&lt;P&gt;I have an odd problem popping up on my IMX6 board.&amp;nbsp; We have an LVDS display, and a wifi module on mmc0.&lt;BR /&gt;&lt;BR /&gt;When I boot up the board, I can set the brightness of my backlight&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;echo (1-7) &amp;gt; /sys/class/backlight/backlight/brightness&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;However, if I blank and unblank the FB, the brightness will change to maximum, and even if a new value is written to the `brightness` file, the actual brightness will not change until I reboot the device. (EDIT: see below, this only seems to happen if the brightness file is set to something other than max when unblanking the display... /shrug)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The reason I mention the wifi module on mmc0 is that after blanking the FB, the wifi stops working and prints the following on the console.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;mmc0: Timeout waiting for hardware interrupt.
mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
mmc0: sdhci: Sys addr: 0x388ac360 | Version: 0x00000002
mmc0: sdhci: Blk size: 0x000000c4 | Blk cnt: 0x00000001
mmc0: sdhci: Argument: 0x100000c4 | Trn mode: 0x00000013
mmc0: sdhci: Present: 0x01f88a0a | Host ctl: 0x00000013
mmc0: sdhci: Power: 0x00000002 | Blk gap: 0x00000080
mmc0: sdhci: Wake-up: 0x00000008 | Clock: 0x0000003f
mmc0: sdhci: Timeout: 0x0000008f | Int stat: 0x00000000
mmc0: sdhci: Int enab: 0x107f100b | Sig enab: 0x107f100b
mmc0: sdhci: AC12 err: 0x00000000 | Slot int: 0x00000103
mmc0: sdhci: Caps: 0x07eb0000 | Caps_1: 0x0000a007
mmc0: sdhci: Cmd: 0x0000353a | Max curr: 0x00ffffff
mmc0: sdhci: Resp[0]: 0x00002000 | Resp[1]: 0x00000000
mmc0: sdhci: Resp[2]: 0x00000000 | Resp[3]: 0x00000000
mmc0: sdhci: Host ctl2: 0x00000000
mmc0: sdhci: ADMA Err: 0x00000007 | ADMA Ptr: 0x3c049200
mmc0: sdhci: ============================================&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Has anyone seen this behavior before?&lt;BR /&gt;&lt;BR /&gt;Relevant device tree info&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;backlight: backlight {
compatible = "pwm-backlight";
pwms = &amp;lt;&amp;amp;pwm3 0 500000 &amp;gt;;
pwm-names = "ldb";
brightness-levels = &amp;lt;0 4 8 16 32 64 128 255&amp;gt;;
default-brightness-level = &amp;lt;7&amp;gt;;
enable-gpios = &amp;lt;&amp;amp;gpio1 2 GPIO_ACTIVE_HIGH&amp;gt;;
};

mxcfb1: fb@0 {
compatible = "fsl,mxc_sdc_fb";
disp_dev = "ldb";
interface_pix_fmt = "RGB24";
default_bpp = &amp;lt;32&amp;gt;;
int_clk = &amp;lt;0&amp;gt;;
late_init = &amp;lt;0&amp;gt;;
status = "okay";
};

/* Wireless */
&amp;amp;usdhc1 {
pinctrl-names = "default";
pinctrl-0 = &amp;lt;&amp;amp;pinctrl_usdhc1&amp;gt;;
status = "okay";
vmmc-supply = &amp;lt;&amp;amp;reg_wifi_3p3v&amp;gt;;
non-removable;
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 20:56:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-FB-blank-behavior/m-p/1206256#M167219</guid>
      <dc:creator>chrisroed</dc:creator>
      <dc:date>2021-01-04T20:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 FB blank behavior</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-FB-blank-behavior/m-p/1206271#M167221</link>
      <description>&lt;P&gt;I seem to have found a workaround for this issue...&lt;BR /&gt;&lt;BR /&gt;One can set the the brightness value to 0 to turn off the display (this doesn't break my wifi... so far anyway)&lt;BR /&gt;&lt;BR /&gt;HOWEVER it must be noted that when you turn on the display again you must write the MAX value of the brightness to that register in order for the backlight to be adjustable again.&amp;nbsp; In my case the value is 7 according to the setup in my device tree.&amp;nbsp; I do this in code, and it's fast enough that the flicker isn't *too* noticeable.&lt;BR /&gt;&lt;BR /&gt;If you do not write the max value to the brightness register when turning it on, the brightness will not be adjustable and will look as though you've set the maximum value.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 20:56:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-FB-blank-behavior/m-p/1206271#M167221</guid>
      <dc:creator>chrisroed</dc:creator>
      <dc:date>2021-01-04T20:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 FB blank behavior</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-FB-blank-behavior/m-p/1206316#M167229</link>
      <description>&lt;P&gt;Hi chrisroed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;what bsp used in the case, one can try with latest nxp linux from source.codeaurora.org/external/imx/linux-imx repository :&lt;BR /&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_5.4.70_2.3.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_5.4.70_2.3.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Documentation:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX?tab=In-Depth_Tab" target="_blank"&gt;https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX?tab=In-Depth_Tab&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 00:14:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-FB-blank-behavior/m-p/1206316#M167229</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-01-05T00:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 FB blank behavior</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-FB-blank-behavior/m-p/1212478#M167828</link>
      <description>&lt;P&gt;Thanks for the response, we're using the BSP from&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tag/?h=rel_imx_4.9.88_2.0.0_ga" target="_blank"&gt;&amp;nbsp;rel_imx_4.9.88_2.0.0_ga&lt;/A&gt;&amp;nbsp;and it's too far down the line to change right now.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2021 16:33:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-FB-blank-behavior/m-p/1212478#M167828</guid>
      <dc:creator>chrisroed</dc:creator>
      <dc:date>2021-01-15T16:33:20Z</dc:date>
    </item>
  </channel>
</rss>

