From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-oi0-x22a.google.com ([2607:f8b0:4003:c06::22a]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fg4st-0002o9-3v for barebox@lists.infradead.org; Thu, 19 Jul 2018 09:06:04 +0000 Received: by mail-oi0-x22a.google.com with SMTP id i12-v6so14200796oik.2 for ; Thu, 19 Jul 2018 02:05:52 -0700 (PDT) MIME-Version: 1.0 From: Mihaita Ivascu Date: Thu, 19 Jul 2018 11:05:41 +0200 Message-ID: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Cannot set GPIOs in barebox To: barebox@lists.infradead.org Hello, I would like to set gpio direction and values from barebox. I use: gpio_direction_output(133, 1); mdelay(2); gpio_set_value(133, 1); mdelay(2); gpio_direction_output(137, 1); mdelay(2); gpio_set_value(137, 1); from my board.c or using commands in the barebox shell. Setting direction is working but setting value it not performed. GPIOs 128-159, chip 20ac000.gpio: dir val requested label GPIO 128: in lo false GPIO 129: in lo false GPIO 130: in lo false GPIO 131: in lo false GPIO 132: in lo false GPIO 133: out lo true gpio GPIO 134: in lo false GPIO 135: in lo false GPIO 136: in lo false GPIO 137: out lo true gpio GPIO 138: in lo false What could be the issue? And what could be the workaround? I would really need to set some GPIOs high from the barebox. Thanks, Mihaita _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox