From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk0-f45.google.com ([209.85.213.45]:33412 "EHLO mail-vk0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752007AbcIBQQg (ORCPT ); Fri, 2 Sep 2016 12:16:36 -0400 MIME-Version: 1.0 In-Reply-To: <1472829819.12668.3.camel@googlemail.com> References: <1472827740.1929.26.camel@googlemail.com> <1472828671.1929.32.camel@googlemail.com> <1472829819.12668.3.camel@googlemail.com> From: Fabio Estevam Date: Fri, 2 Sep 2016 13:16:34 -0300 Message-ID: Subject: Re: [PATCH] iio: sx9500: add final devicetree support To: Christoph Fritz Cc: Jonathan Cameron , Vlad Dogaru , Hartmut Knaack , linux-iio@vger.kernel.org, "devicetree@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-iio-owner@vger.kernel.org List-Id: linux-iio@vger.kernel.org On Fri, Sep 2, 2016 at 12:23 PM, Christoph Fritz wrote: > What do you mean by "software command", to send a reset command by i2c? Yes, by writing 0xDE into RegReset register. > > The reset GPIO is fetched in sx9500 here: > > See sx9500_gpio_probe(): > ... > data->gpiod_rst = devm_gpiod_get_index(dev, SX9500_GPIO_RESET, > 0, GPIOD_OUT_HIGH); but there is no code that actually reads the "reset-gpios" dt property. Does your board work well without passing "reset-gpios" property?