<?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>i.MX Processorsのトピックov5640_write_reg error?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/ov5640-write-reg-error/m-p/502536#M81350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;well i have actually able to create sysfs entry and able to pass some value to desired brightness level&amp;nbsp; but it is returning ov5640_write_reg fail. i have only modified ov5640_mipi.c file only.&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;Below is my code snippet please check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;ov5640_mipi.c&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;===================================================================================================&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;static struct kobject *ov5640_mipi_kobj;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;static ssize_t ov5640_mipi_brightness_set(struct device *dev, struct device_attribute *attr, char *buf,size_t size)&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;{&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp; int err;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; unsigned long val;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; if (strict_strtoul(buf, 10, &amp;amp;val))&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return -EINVAL;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; pr_info("GB : ov5640_mipi_brightness_set\n");&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; switch(val){&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; case 0 :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ov5640_write_reg(0x5001, 0xff);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ov5640_write_reg(0x5587, 0x40);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ov5640_write_reg(0x5580, 0x04);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ov5640_write_reg(0x5588, 0x01);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;..................&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;..................&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;}&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;static struct kobj_attribute brightness = __ATTR(brightness_ctrl, 0664, NULL, ov5640_mipi_brightness_set);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;static struct attribute *attributes_ov5640_mipi[] = {&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;brightness.attr,&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULL,&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;};&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;static struct attribute_group attr_group_ov5640_mipi = {&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .attrs = attributes_ov5640_mipi,&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;};&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;static int create_sysfs_interfaces(struct device *dev)// calling from probe function&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;{&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int err;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ov5640_mipi_kobj = kobject_create_and_add("ov5640_mipi_sensor", &amp;amp;dev-&amp;gt;kobj);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(!ov5640_mipi_kobj)&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return -ENOMEM;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; err = sysfs_create_group(ov5640_mipi_kobj, &amp;amp;attr_group_ov5640_mipi);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (err)&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kobject_put(ov5640_mipi_kobj);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dev_err(dev, "%s:Unable to create interface\n", __func__);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return -1;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; pr_info("GB : create_sysfs_interfaces\n");&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; return 0;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;$ echo 0 &amp;gt; /sys/bus/i2c/../devices/ov5640_brightness_set/brightness_ctrl&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;GB : ov5640_mipi_brightness_set&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;ov5640_write_reg:write reg error:reg=5001,val=ff&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;ov5640_write_reg:write reg error:reg=5587,val=40&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;ov5640_write_reg:write reg error:reg=5580,val=4&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;ov5640_write_reg:write reg error:reg=5588,val=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-outcome-helpful-counts-container-default js-outcome-helpful-counts-container j-outcome-helpful-counts-container font-color-okay" data-display-overall="true" data-helpful-count="0" data-object-id="606123" data-object-type="2" data-overall-count="0" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #138700;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jan 2016 09:08:55 GMT</pubDate>
    <dc:creator>gbiradar</dc:creator>
    <dc:date>2016-01-20T09:08:55Z</dc:date>
    <item>
      <title>ov5640_write_reg error?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ov5640-write-reg-error/m-p/502536#M81350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;well i have actually able to create sysfs entry and able to pass some value to desired brightness level&amp;nbsp; but it is returning ov5640_write_reg fail. i have only modified ov5640_mipi.c file only.&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;Below is my code snippet please check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;ov5640_mipi.c&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;===================================================================================================&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;static struct kobject *ov5640_mipi_kobj;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;static ssize_t ov5640_mipi_brightness_set(struct device *dev, struct device_attribute *attr, char *buf,size_t size)&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;{&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp; int err;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; unsigned long val;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; if (strict_strtoul(buf, 10, &amp;amp;val))&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return -EINVAL;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; pr_info("GB : ov5640_mipi_brightness_set\n");&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; switch(val){&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; case 0 :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ov5640_write_reg(0x5001, 0xff);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ov5640_write_reg(0x5587, 0x40);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ov5640_write_reg(0x5580, 0x04);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ov5640_write_reg(0x5588, 0x01);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;..................&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;..................&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;}&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;static struct kobj_attribute brightness = __ATTR(brightness_ctrl, 0664, NULL, ov5640_mipi_brightness_set);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;static struct attribute *attributes_ov5640_mipi[] = {&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;brightness.attr,&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NULL,&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;};&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;static struct attribute_group attr_group_ov5640_mipi = {&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .attrs = attributes_ov5640_mipi,&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;};&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;static int create_sysfs_interfaces(struct device *dev)// calling from probe function&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;{&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int err;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ov5640_mipi_kobj = kobject_create_and_add("ov5640_mipi_sensor", &amp;amp;dev-&amp;gt;kobj);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(!ov5640_mipi_kobj)&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return -ENOMEM;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; err = sysfs_create_group(ov5640_mipi_kobj, &amp;amp;attr_group_ov5640_mipi);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (err)&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kobject_put(ov5640_mipi_kobj);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dev_err(dev, "%s:Unable to create interface\n", __func__);&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return -1;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; pr_info("GB : create_sysfs_interfaces\n");&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; return 0;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;$ echo 0 &amp;gt; /sys/bus/i2c/../devices/ov5640_brightness_set/brightness_ctrl&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;GB : ov5640_mipi_brightness_set&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;ov5640_write_reg:write reg error:reg=5001,val=ff&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;ov5640_write_reg:write reg error:reg=5587,val=40&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;ov5640_write_reg:write reg error:reg=5580,val=4&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;ov5640_write_reg:write reg error:reg=5588,val=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-outcome-helpful-counts-container-default js-outcome-helpful-counts-container j-outcome-helpful-counts-container font-color-okay" data-display-overall="true" data-helpful-count="0" data-object-id="606123" data-object-type="2" data-overall-count="0" style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #138700;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 09:08:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ov5640-write-reg-error/m-p/502536#M81350</guid>
      <dc:creator>gbiradar</dc:creator>
      <dc:date>2016-01-20T09:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: ov5640_write_reg error?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ov5640-write-reg-error/m-p/502537#M81351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you try to make it as a ioctl function and then control the brightness via ioctl?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 10:16:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ov5640-write-reg-error/m-p/502537#M81351</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2016-01-20T10:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: ov5640_write_reg error?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ov5640-write-reg-error/m-p/502538#M81352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jimmychan"&gt;jimmychan&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Well yes i have tried and set brightness value through ioctl call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ganesh Biradar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 10:34:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ov5640-write-reg-error/m-p/502538#M81352</guid>
      <dc:creator>gbiradar</dc:creator>
      <dc:date>2016-01-20T10:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: ov5640_write_reg error?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ov5640-write-reg-error/m-p/502539#M81353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the above question update is :&lt;/P&gt;&lt;P&gt;when board boot up when it comes to shell the camera will be in power down mode so until unless some application is run to start the camera in active mode you can't modify any register. in my case i have to run gstreamer after that i used my sysfs entries to modify brightness it worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2016 13:25:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ov5640-write-reg-error/m-p/502539#M81353</guid>
      <dc:creator>gbiradar</dc:creator>
      <dc:date>2016-01-21T13:25:01Z</dc:date>
    </item>
  </channel>
</rss>

