From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751553AbdATIke (ORCPT ); Fri, 20 Jan 2017 03:40:34 -0500 Received: from mail-it0-f54.google.com ([209.85.214.54]:38646 "EHLO mail-it0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751403AbdATIkc (ORCPT ); Fri, 20 Jan 2017 03:40:32 -0500 MIME-Version: 1.0 In-Reply-To: <27071da2f01d48141e8ac3dfaa13255d@mail.crapouillou.net> References: <20170117231421.16310-1-paul@crapouillou.net> <20170118071530.GA18989@ulmo.ba.sec> <27071da2f01d48141e8ac3dfaa13255d@mail.crapouillou.net> From: Linus Walleij Date: Fri, 20 Jan 2017 09:40:30 +0100 Message-ID: Subject: Re: [PATCH 00/13] Ingenic JZ4740 / JZ4780 pinctrl driver To: Paul Cercueil Cc: Thierry Reding , Rob Herring , Mark Rutland , Ralf Baechle , Ulf Hansson , Boris Brezillon , Bartlomiej Zolnierkiewicz , Maarten ter Huurne , Lars-Peter Clausen , Paul Burton , "linux-gpio@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Linux MIPS , "linux-mmc@vger.kernel.org" , "linux-mtd@lists.infradead.org" , "linux-pwm@vger.kernel.org" , "linux-fbdev@vger.kernel.org" , James Hogan 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 Thu, Jan 19, 2017 at 12:19 PM, Paul Cercueil wrote: > The problem with pinctrl and PWM, is that the pinctrl API works by "states". > A default state, sleep state, and basically any custom state that the > devicetree > provides. This works well until you need to control individually each pin; > with > 8 pins, you would need 2^8 states, each one corresponding to a given > configuration. I do not really understand, do you really use all 2^8 states in a given system? The pin control states are to be used for practical situations, not for all theoretical situations. You should define in your device tree the states that your particular system will use. Not all possible states on all possible systems. Yours, Linus Walleij