title: How to enable I2C2 on beaglebone black for yocto project?
body: <p>I am trying to build yocto project on beaglebone black. I would like to enable I2C2 port on beagle bone. I am newbie in yocto project.
  Any pointer or reference document would be helpful.</p>
  <p>here is the original file am335x-boneblack-common.dtsi and I would like to modify that file with following content</p>
  <pre><code>    i2c2_pins: pinmux_i2c2_pins {
      pinctrl-single,pins = &lt;0x178 0x73 0x17c 0x73&gt;;
  };
  user_leds_pins: pinmux_user_leds {
      pinctrl-single,pins = &lt; AM33XX_IOPAD(0x848, PIN_OUTPUT | MUX_MODE7) &gt;; /* P9.14, gpio1[18] */
  
  };
  </code></pre>
  <p>and</p>
  <pre><code>leds {
  compatible = &quot;gpio-leds&quot;;
  pinctrl-names = &quot;default&quot;;
  pinctrl-0 = &lt;&amp;user_leds_pins&gt;;
  i2c2-live {
      gpios = &lt;&amp;gpio1 18 GPIO_ACTIVE_HIGH&gt;;
      default-state = &quot;on&quot;;
  };
  </code></pre>
  <p>};</p>
  <pre><code>&amp;i2c2: i2c@4819c000 {
  pinctrl-names = &quot;default&quot;;
  pinctrl-0 = &lt;&amp;i2c2_pins&gt;;
  status = &quot;okay&quot;;
  clock-frequency = &lt;100000&gt;;
  tmp75@4d {
      compatible = &quot;national,lm75&quot;;
      reg = &lt;0x4d&gt;;
  };
  </code></pre>
  <p>};</p>
  <p>Kindly suggest how to create patch for above code.</p>
  <p>Thanks in Advance</p>
  <p>Regards,
  Nikhil</p>