Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: "-c install" worked in previous yocto versions, but may not be entirely accurate now

...

  1. Add the following code in the device tree to set LCD_DATA0 to GPIO2_6 (mux mode 7):

    Code Block
    &am33xx_pinmux {
          pinctrl-names = "default";
          pinctrl-0 = <&miscgpio_pins>;
          miscgpio_pins: pinmux_miscgpio {
                pinctrl-single,pins = <
                      0xA0 (PIN_OUTPUT | MUX_MODE7) /* lcd_data0.gpio2_6 */
                >;
          };
      };


  2. Check for any other references to the pin you are setting and remove these or disable the node in the dts. In this case, LCD_DATA0 is being set to LCD in am335x-phytec-lcd-018.dtsi:

    Code Block
    &am33xx_pinmux {
            lcd_pins: pinmux_lcd {
                    pinctrl-single,pins = <
                            0xA0 (PIN_OUTPUT | MUX_MODE0)   /* lcd_data0.lcd_data0 */
                            0xA4 (PIN_OUTPUT | MUX_MODE0)   /* lcd_data1.lcd_data1 */
                            0xA8 (PIN_OUTPUT | MUX_MODE0)   /* lcd_data2.lcd_data2 */
                            0xAC (PIN_OUTPUT | MUX_MODE0)   /* lcd_data3.lcd_data3 */
                            0xB0 (PIN_OUTPUT | MUX_MODE0)   /* lcd_data4.lcd_data4 */
                            0xB4 (PIN_OUTPUT | MUX_MODE0)   /* lcd_data5.lcd_data5 */
                            0xB8 (PIN_OUTPUT | MUX_MODE0)   /* lcd_data6.lcd_data6 */
                            
    						...


    Note

    Since the am335x-phytec-lcd-018.dtsi is an expansion board, barebox is configured to enable these nodes on booting the kernel. Please see How to Enable Expansion Boards in barebox for Yocto AM335x for instructions on disabling LCD pins.


  3. Rebuild the device tree (dependent on BSP, for the PD15.1.0 AM335x, linux-ti is the kernel recipe):

    Code Block
    bitbake linux-ti -f -c install;compile && bitbake linux-ti


  4. To verify that the output of the GPIO pin can now be toggled, boot the board with this new device tree and follow the commands below:
    (Note: For the AM335x processor, the GPIO number corresponds to 32*Bank + (gpio), so gpio2_6 is gpio70)

...

Page properties
hiddentrue


Related issues