From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934090AbdEVQ30 (ORCPT ); Mon, 22 May 2017 12:29:26 -0400 Received: from mail-lf0-f42.google.com ([209.85.215.42]:36628 "EHLO mail-lf0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934018AbdEVQ3X (ORCPT ); Mon, 22 May 2017 12:29:23 -0400 Subject: Re: [PATCH] ARM: dts: vf610-zii-dev-rev-b: add hi8435 device To: Stefan Agner References: <20170522131010.3537-1-nikita.yoush@cogentembedded.com> Cc: Shawn Guo , Sascha Hauer , Rob Herring , Mark Rutland , Russell King , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron , Chris Healy , Jeff White , Vladimir Barinov From: Nikita Yushchenko X-Enigmail-Draft-Status: N1110 Message-ID: <076f6258-f0b4-6ba5-9670-e2c0582a92b5@cogentembedded.com> Date: Mon, 22 May 2017 19:29:14 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> + hi8435@1 { >> + compatible = "holt,hi8435"; >> + reg = <1>; >> + spi-max-frequency = <20000000>; >> + gpios = <&gpio5 3 0>; > > Nit: GPIO_ACTIVE_HIGH instead of 0? Gray area here. Chip's reset input is active LOW. However, hi8435 driver historically was coded using inverted values passed to gpiolib calls. And there are setups in the wild with device trees containing GPIO_ACTIVE_HIGH that I'd prefer not breaking. To solve, I submitted a patch on hi8435 driver that changes to _raw() gpio calls (thus making it independent of what is written in device tree), and want [future] device trees not to contain explicitly written gpio polarity. Far not ideal but better than device trees explicitly stating GPIO_ACTIVE_HIGH while it is active low. Nikita