From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751476AbdC2Buq (ORCPT ); Tue, 28 Mar 2017 21:50:46 -0400 Received: from mail-it0-f54.google.com ([209.85.214.54]:36597 "EHLO mail-it0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751194AbdC2Buo (ORCPT ); Tue, 28 Mar 2017 21:50:44 -0400 MIME-Version: 1.0 In-Reply-To: References: From: Linus Walleij Date: Wed, 29 Mar 2017 03:50:41 +0200 Message-ID: Subject: Re: [PATCH 0/3] XRA1403,gpio - add XRA1403 gpio expander driver To: Nandor Han Cc: Alexandre Courbot , Rob Herring , Mark Rutland , "linux-gpio@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 27, 2017 at 8:22 AM, Nandor Han wrote: > Testing: > > 1. XRA1403 connected to iMX53 MCU > 2. Export gpio from userspace > 3. Verify that corresponding gpio directories are created > in `/sys/class/gpio/gpioXX` > 4. Export gpios from first and second bank as output > 5. Set the output gpio pin to high/low and verify with the > oscilloscope that gpio status is according with the configured > value. Do *NOT* use the sysfs for testing GPIO. This is being phased out. Use the tools in tools/gpio/* so that you exercise the character device instead of the old deprecated ABI. Yours, Linus Walleij