<?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: add more brightness level in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/add-more-brightness-level/m-p/1061575#M156057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-avatarid="29594" data-externalid="" data-online="false" data-presence="null" data-userid="337097" data-username="limh@sunray.cn" href="https://community.nxp.com/people/limh@sunray.cn" style="color: inherit; background-color: #ffffff; border: 0px; font-weight: bold; text-decoration: underline; font-size: 14px;"&gt;铭恒 李&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The backlight node is defined in&amp;nbsp;imx6qdl-sabresd.dtsi which is included by&amp;nbsp;imx6dl-sabresd.dts&lt;/P&gt;&lt;P&gt;So you can make changes in&amp;nbsp;&lt;SPAN&gt;imx6qdl-sabresd.dtsi.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Karan Gajjar&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2020 06:22:44 GMT</pubDate>
    <dc:creator>karangajjar</dc:creator>
    <dc:date>2020-07-06T06:22:44Z</dc:date>
    <item>
      <title>add more brightness level</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/add-more-brightness-level/m-p/1061568#M156050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I want to set brightness by setting /sys/class/backlight/backlight/brightness.&lt;/P&gt;&lt;P&gt;But I find the max_brightness is 7,which means that the level is from 0 to 7.&lt;/P&gt;&lt;P&gt;I want to add more level (from 0 to 100) ,but how to know which file is it in ../arch/arm/dts/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also find some files, but the levels they define are not suitable.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;# they have 9 levels not 8 levels&lt;/P&gt;&lt;P&gt;arch/arm/dts/am437x-sk-evm.dts:35: brightness-levels = &amp;lt;0 51 53 56 62 75 101 152 255&amp;gt;;&lt;BR /&gt;arch/arm/dts/am437x-gp-evm.dts:63: brightness-levels = &amp;lt;0 51 53 56 62 75 101 152 255&amp;gt;;&lt;BR /&gt;arch/arm/dts/am335x-evm.dts:105: brightness-levels = &amp;lt;0 51 53 56 62 75 101 152 255&amp;gt;;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mihan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2020 07:06:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/add-more-brightness-level/m-p/1061568#M156050</guid>
      <dc:creator>Mihan</dc:creator>
      <dc:date>2020-07-03T07:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: add more brightness level</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/add-more-brightness-level/m-p/1061569#M156051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="337097" data-username="limh@sunray.cn" href="https://community.nxp.com/people/limh@sunray.cn" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: underline; font-size: 11.9994px;"&gt;铭恒 李&lt;/A&gt;&lt;SPAN style="color: #646464; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer below document for configuring backlight in device tree.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.kernel.org/doc/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt" title="https://www.kernel.org/doc/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt"&gt;https://www.kernel.org/doc/Documentation/devicetree/bindings/leds/backlight/pwm-backlight.txt&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As, you can see in node "brightness-level" you can add numbers ranging from 0 to 255 at different levels that you want. And set default-brigthness-level as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After compiling and flashing you can change the brightness of backlight from sysfs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karan Gajjar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2020 09:40:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/add-more-brightness-level/m-p/1061569#M156051</guid>
      <dc:creator>karangajjar</dc:creator>
      <dc:date>2020-07-03T09:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: add more brightness level</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/add-more-brightness-level/m-p/1061570#M156052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also useful links:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developer.toradex.com/knowledge-base/pwm-(linux)" title="https://developer.toradex.com/knowledge-base/pwm-(linux)"&gt;PWM (Linux)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developer.toradex.com/knowledge-base/backlight-(linux)#ApalisColibri_iMX6_Colibri_iMX7_Colibri_VFxx" title="https://developer.toradex.com/knowledge-base/backlight-(linux)#ApalisColibri_iMX6_Colibri_iMX7_Colibri_VFxx"&gt;Backlight (Linux)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2020 10:04:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/add-more-brightness-level/m-p/1061570#M156052</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-07-03T10:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: add more brightness level</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/add-more-brightness-level/m-p/1061571#M156053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So where is the level of backlight defined?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I can change the backlight by&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #000000; background: #ffffff; border: 1px dotted #cccccc; font-size: 14px; margin: 3px 0px; padding: 10px;"&gt;&lt;CODE style="color: inherit; background-color: transparent; font-size: 14px !important;"&gt;/sys/class/backlight/backlight/brightness&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but I want to change the&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #000000; background: #ffffff; border: 1px dotted #cccccc; font-size: 14px; margin: 3px 0px; padding: 10px;"&gt;&lt;CODE style="color: inherit; background-color: transparent; font-size: 14px !important;"&gt;/sys/class/backlight/backlight/max_brightness&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;so that I can change the backlight more smoothly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2020 01:44:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/add-more-brightness-level/m-p/1061571#M156053</guid>
      <dc:creator>Mihan</dc:creator>
      <dc:date>2020-07-06T01:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: add more brightness level</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/add-more-brightness-level/m-p/1061572#M156054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" class="" data-content-finding="Community" data-userid="337097" data-username="limh@sunray.cn" href="https://community.nxp.com/people/limh@sunray.cn" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: underline; font-size: 1.286rem;"&gt;铭恒 李&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After changing the brightness-level as suggested in the previous comment, the max_brigthtness will be automatically calculated as per number of levels defined in brightness-level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's say you added brightness-level ranging from 0 to 255 in 100 different levels like:&lt;/P&gt;&lt;P&gt;0 5 10 15 ....255&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //100 different numbers(level)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The max-brightness will have value 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karan Gajjar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2020 04:25:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/add-more-brightness-level/m-p/1061572#M156054</guid>
      <dc:creator>karangajjar</dc:creator>
      <dc:date>2020-07-06T04:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: add more brightness level</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/add-more-brightness-level/m-p/1061573#M156055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh thanks, that should be what I need!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2020 05:30:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/add-more-brightness-level/m-p/1061573#M156055</guid>
      <dc:creator>Mihan</dc:creator>
      <dc:date>2020-07-06T05:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: add more brightness level</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/add-more-brightness-level/m-p/1061574#M156056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;by the way, if I&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #000000; background: #ffffff; border: 1px dotted #cccccc; font-size: 14px; margin: 3px 0px; padding: 10px;"&gt;&lt;CODE style="color: inherit; background-color: transparent; border: 0px; font-weight: inherit; font-size: 14px !important;"&gt;make imx6dl-sabresd.dtb&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which device tree file should I change?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2020 06:00:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/add-more-brightness-level/m-p/1061574#M156056</guid>
      <dc:creator>Mihan</dc:creator>
      <dc:date>2020-07-06T06:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: add more brightness level</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/add-more-brightness-level/m-p/1061575#M156057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" class="" data-avatarid="29594" data-externalid="" data-online="false" data-presence="null" data-userid="337097" data-username="limh@sunray.cn" href="https://community.nxp.com/people/limh@sunray.cn" style="color: inherit; background-color: #ffffff; border: 0px; font-weight: bold; text-decoration: underline; font-size: 14px;"&gt;铭恒 李&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The backlight node is defined in&amp;nbsp;imx6qdl-sabresd.dtsi which is included by&amp;nbsp;imx6dl-sabresd.dts&lt;/P&gt;&lt;P&gt;So you can make changes in&amp;nbsp;&lt;SPAN&gt;imx6qdl-sabresd.dtsi.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Karan Gajjar&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2020 06:22:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/add-more-brightness-level/m-p/1061575#M156057</guid>
      <dc:creator>karangajjar</dc:creator>
      <dc:date>2020-07-06T06:22:44Z</dc:date>
    </item>
  </channel>
</rss>

