Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1485953pxb; Fri, 20 Nov 2020 10:36:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgQtZnDDAjCiuDFFAXEmF93kKNtiV4K95Oc/KXITFl2Or4QEv6JHNjP0lIn4C1V4KFmLRS X-Received: by 2002:a17:906:e96:: with SMTP id p22mr16152204ejf.451.1605897385662; Fri, 20 Nov 2020 10:36:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605897385; cv=none; d=google.com; s=arc-20160816; b=WG4+Oe36bfZaaf2ieyGJzwItD3xPBjJEXOdsnkb18sprngT6ifGN5gxXmLylSOxHID QWXuWcF3rBQlA4z2vGej3wL+MGYY1apeMlvRSvVoUeIMYJC+lqAaRW/JU5ALr3V1iVnJ hUT4PHKkoQcrq53tlVQHrkTCA5myYwWdqtGSbADauyJcWLH+gaxl3Qq1brZAN1PUjJfq 8bwE/tQLRYV5EfrXZWFy4HQ23ZsIRSM+WBo1/nZVXUnjVVvDrkywSjejyXh9JlTfazPC j7/YJHFswMvSTsbf1z2N+xmr9eq4oMVvdSGJ2ZjP2nQphK89YvsyyV5OPMUdjn+QkBkw jiBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xudo2I6VKOadttIlQPFdDdwbEKk8bWqHc6a0qA4f9L0=; b=sS7J8fgNhJXqaxI/+Q3Enr4objPAmzt2Ng0pLC6MOBz4D986Lq2B80FNGc0O5UM7ms DrrcBcKWaWm2hI1fvEAgrJ/h6MJBgsL2MiwZHqvRul38WA1MxDIrl/PMgbCPlP+xU5QM ZT9z5BoOAv5MS9blFfjrs+j0SLAhAMC5zKag0U7Nizt/1pK8CthKcEyuHb7/azcyQqb8 v83HmLBHL5qkJ5aThS4/lfLBQq04ScDaLsl82GCVfw4uZDWVw5DuTi2kYWPwHjnWjlpf t0gwbWt8wWYJOJVQM4Euab2uNU0nSxCuT8IEY5sg85QT5H9vVYlScpM0C1N4iXYahmgM ucmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fossekall.de header.s=strato-dkim-0002 header.b=dwT135xF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hk6si2061357ejb.716.2020.11.20.10.36.02; Fri, 20 Nov 2020 10:36:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@fossekall.de header.s=strato-dkim-0002 header.b=dwT135xF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730815AbgKTSdu (ORCPT + 99 others); Fri, 20 Nov 2020 13:33:50 -0500 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.54]:16462 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730557AbgKTSdu (ORCPT ); Fri, 20 Nov 2020 13:33:50 -0500 X-Greylist: delayed 364 seconds by postgrey-1.27 at vger.kernel.org; Fri, 20 Nov 2020 13:33:48 EST DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1605897227; s=strato-dkim-0002; d=fossekall.de; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=xudo2I6VKOadttIlQPFdDdwbEKk8bWqHc6a0qA4f9L0=; b=dwT135xFlanjpCBsjTQAXCGyX2fyPwRBZXQQzJqGUh52wc7awX0GN94kQQ3TyplUN6 d7wBL20a/SkgBE5bUPBQOckskY3N883LQ+oRfUiaDZjCqKHi5ce5iGik4/HB1fDKgWkz nUB5DI127lrJISwVdn7+6wkqV3HWfsu8boW8icvfYvVh9A5plt4KCacw7113bDwM5fHJ EDNL0R3IyuocggbbiY0KCV+CzkCWL02+dhQPeXB7yUlzox8z8fdtNY2PGE98RTID/xyG hhOuxgl9ztyCKUPZVUiRO3r1xRczPNh/q3+yyPJ3I5cn3wce7ModUkbLjsgp7sbNI3ll N5eQ== X-RZG-AUTH: ":O2kGeEG7b/pS1EzgE2y7nF0STYsSLflpbjNKxx7cGrBOdI6BL9pkS3QW19mO7I+/JwRspuzJFZuRzQ==" X-RZG-CLASS-ID: mo00 Received: from aerfugl by smtp.strato.de (RZmta 47.3.4 AUTH) with ESMTPSA id g02087wAKIRftpy (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Fri, 20 Nov 2020 19:27:41 +0100 (CET) Received: from koltrast.a98shuttle.de ([192.168.1.27] helo=a98shuttle.de) by aerfugl with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1kgB8G-0001sg-EU; Fri, 20 Nov 2020 19:27:40 +0100 Date: Fri, 20 Nov 2020 19:27:39 +0100 From: Michael Klein To: Maxime Ripard Cc: Rob Herring , Chen-Yu Tsai , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ARM: dts: sun8i-h2-plus-bananapi-m2-zero: add gpio-line-names Message-ID: <20201120182739.GA3734181@a98shuttle.de> References: <20201115222425.2885427-1-michael@fossekall.de> <20201120155252.kfkavrn4wpqzmbyc@gilmour> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20201120155252.kfkavrn4wpqzmbyc@gilmour> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thank you for having a look at the patch! On Fri, Nov 20, 2020 at 04:52:52PM +0100, Maxime Ripard wrote: >On Sun, Nov 15, 2020 at 11:24:25PM +0100, Michael Klein wrote: >> Add gpio-line-names as documented in the Banana Pi wiki [1] and in the >> schematics [2]. >> >> [1]: http://wiki.banana-pi.org/Banana_Pi_BPI-M2_ZERO#GPIO_PIN_define >> [2]: https://drive.google.com/file/d/0B4PAo2nW2KfnMW5sVkxWSW9qa28/view >> >> Signed-off-by: Michael Klein >> --- >> .../dts/sun8i-h2-plus-bananapi-m2-zero.dts | 64 +++++++++++++++++++ >> 1 file changed, 64 insertions(+) >> >> diff --git a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts >> index 4c6704e4c57e..b4ddfaf01b45 100644 >> --- a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts >> +++ b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts >> @@ -136,6 +136,70 @@ bluetooth { >> >> }; >> >> +&pio { >> + gpio-line-names = >> + /* PA */ >> + "UART2-TX", "UART2-RX", "UART2-RTS", "UART2-CTS", >> + "UART0-TXD", "UART0-RXD", "PWM1", "PA7-EINT7", >> + "PA8-EINT8", "PA9-EINT9", "PA10-EINT10", "TWI0-SCK", >> + "TWI0-SDA", "UART3-TX", "UART3-RX", "UART3-RTS", >> + "UART3-CTS", "PA17-EINT17", "TWI1-SCK", "TWI1-SDA", >> + "PA20-EINT20", "PA21-EINT21", "", "", >> + "", "", "", "", "", "", "", "", > >IIRC, the point is to have the pin names that the vendor publishes. > >Looking at Documentation/devicetree/bindings/gpio/gpio.txt, it says: > >""" >Optionally, a GPIO controller may have a "gpio-line-names" property. This is >an array of strings defining the names of the GPIO lines going out of the >GPIO controller. This name should be the most meaningful producer name >for the system, such as a rail name indicating the usage. Package names >such as pin name are discouraged: such lines have opaque names (since they >are by definition generic purpose) and such names are usually not very >helpful. >""" > >In this case, from the link you gave above, I think having the CON*-P* >names make more sense. Hm, but these are the pin names (of the connector) and should thus not be used, right? For e.g. the PA0 pin, the wiki link gives three candidates: - CON2-P13 (GPIO Pin Name -> pin 13 of the 40 pin GPIO header) - UART2-TX (Default Function) - PA0-EINT0 (Function2 : GPIO) IMHO, the CON*-P* name is the least helpful of the above, as it tells nothing about the usage. I'm not sure about the other two names, though. Michael