From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934737AbdA0Lu6 (ORCPT ); Fri, 27 Jan 2017 06:50:58 -0500 Received: from mail-it0-f54.google.com ([209.85.214.54]:35974 "EHLO mail-it0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933603AbdA0Luj (ORCPT ); Fri, 27 Jan 2017 06:50:39 -0500 MIME-Version: 1.0 In-Reply-To: <20170122144947.16158-2-paul@crapouillou.net> References: <27071da2f01d48141e8ac3dfaa13255d@mail.crapouillou.net> <20170122144947.16158-1-paul@crapouillou.net> <20170122144947.16158-2-paul@crapouillou.net> From: Linus Walleij Date: Fri, 27 Jan 2017 12:18:39 +0100 Message-ID: Subject: Re: [PATCH v2 01/14] Documentation: dt/bindings: Document pinctrl-ingenic To: Paul Cercueil Cc: Rob Herring , Mark Rutland , Ralf Baechle , Ulf Hansson , Boris Brezillon , Thierry Reding , 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 Sun, Jan 22, 2017 at 3:49 PM, Paul Cercueil wrote: > +Required properties: > +- compatible: One of: > + - "ingenic,jz4740-pinctrl" > + - "ingenic,jz4780-pinctrl" > + > +Optional properties: > +- ingenic,pull-ups: A list of 32-bit bit fields, where each bit set tells the > + driver that a pull-up resistor is available for this pin. > + By default, the driver considers that all pins feature a pull-up resistor. > +- ingenic,pull-downs: A list of 32-bit bit fields, where each bit set tells > + the driver that a pull-down resistor is available for this pin. > + By default, the driver considers that all pins feature a pull-down > + resistor. So I still don't understand these properties. Does this mean that there is a pull-up *inside* the SoC or *outside* on the board where it is mounted? If it is *outside* the SoC, on the board, the pulls should be set on the consumers, not on the controller. In the former case, if this pertains to the *inside* of the SoC: is it just different between jz4740 and jz4780? In that case, just code this into the driver as .data to the .compatible in the DT match. No special DT properties needed. If it is different between e.g. different versions of jz4740, why not make different compatible-properties? If there are different versions of the circuit, with different hard-wired hardware configuration, they are different devices and should have different compatible strings. > + /* CLK, CMD, D0 */ > + ingenic,pins = <0x69 0 0x68 0 0x6a 0>; Standard bindings use just "pins". Why the custom ingenic, prefix? Yours, Linus Walleij