Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Using GPIO on BananaPro and Mainline

Featured Replies

Hello together,

 

I'm trying to connect an LVDS panel to my BananPro and would like to switching power on/of and backlight on/off throw a GPIO pin.

 

So, first of all, I've added some lines to my DTS file (in &pio section).

 

This is for backlight driver (PH12 is connected to CON2 pin 7):

 

 

    bl_en_pins_a: bl_en@0 {
        allwinner,pins = "PH12";
        allwinner,function = "gpio_out";
        allwinner,drive = <SUN4I_PINCTRL_10_MA>;
        allwinner,pull = <SUN4I_PINCTRL_PULL_DOWN>;
    };

 

And this is for enable pin of voltage regulator (PH7 is connected to CON2 pin 6):

 

 

    lcd_power_pins_a: lcd_power@0 {
        allwinner,pins = "PH7";
        allwinner,function = "gpio_out";
        allwinner,drive = <SUN4I_PINCTRL_10_MA>;
        allwinner,pull = <SUN4I_PINCTRL_PULL_DOWN>;
    };

 

So, my question: How can I access those pins in linux (i.e. switch on or off and so one)?

 

I'm using mainline kernel 4.4.11 and BananaPRO.

 

Many thanks & kind regards,

Heinrich

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.