Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1492748ybg; Tue, 2 Jun 2020 11:26:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtjSUG0gvnfuJPBk8CyBSS9ZjlrqY+h0cHo5E30aWRHZ/Jfx+r6aqe8/NmM15niTyADcj8 X-Received: by 2002:a17:906:6897:: with SMTP id n23mr2354130ejr.437.1591122418838; Tue, 02 Jun 2020 11:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591122418; cv=none; d=google.com; s=arc-20160816; b=dTOcicldJP8bwaJ6zX7eg/ObAZ+f/QQ/sFnjf6VKX3Pv6Q/NkqGjPFzZoDiZgjUAcK 9iune9h5yfkqzv/Q/kpEXMugu2QZlmIkIl/Yj7qW2wt87NmZMVpwinEWjdEJdvm2YudO 3nVCmqJC/Cn9UKr+0Wj00lJr/Alnx/VHGDHoZO4RnvdX9o4oBLb/ZQ3eU4vycmAmCXR9 unDWY+N8EYBcBAV3kCgPmTIY8F4y6ImidlPEC/HcAfImUXh5+6VshjIy0JX40coa/I+G nWDRMC8ualiIWuDZYAhuiCbtDC/TJF1ij8GlItRpRHjsXMX2zerJJPnXkUyCyAIaFTbq gG0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ScERK/mJtzfpHxvmlaUf1mObMaQePkT0Fb4iHyumpT8=; b=0vIqSI3kqh/MLOzy58pUFHFK6Z8jKjAkHfTitoErg164/KFobvPD23K9GRCAcETvSo SqykLF8WdyyVFpFKLYkjoz1ix5eAeY7x2Aeyx09DT2b5/6O5poXG7Cr/EhiCWwTfDXs8 t1L0ZEBsa6BbbK9o9j8y1p6CmXOluhVFyGb2NEzqIA5gGn+bEcgNNnTPo9sks8YloZZ4 B5X3HBPVgh7cPNY+gW739it36wMzmo6FSoYuXLV0T/JZRfidw0sNTdWlMtg0IBoOM00c /NvJdUguxGaLkb3drrRzFB3c87v/SXsNmJtGIFh1Uu8poBsNTwtNjNo3xihh5UvGDH+u XHnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@beagleboard-org.20150623.gappssmtp.com header.s=20150623 header.b=mi2pqEPF; 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 f7si1859119ejr.406.2020.06.02.11.26.32; Tue, 02 Jun 2020 11:26:58 -0700 (PDT) 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=@beagleboard-org.20150623.gappssmtp.com header.s=20150623 header.b=mi2pqEPF; 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 S1726420AbgFBSYb (ORCPT + 99 others); Tue, 2 Jun 2020 14:24:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726037AbgFBSYb (ORCPT ); Tue, 2 Jun 2020 14:24:31 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAA97C08C5C0 for ; Tue, 2 Jun 2020 11:24:30 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id e2so13704648eje.13 for ; Tue, 02 Jun 2020 11:24:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=beagleboard-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ScERK/mJtzfpHxvmlaUf1mObMaQePkT0Fb4iHyumpT8=; b=mi2pqEPFdVSVruBZqBFQglIeWbr7dHFIV04+Zs7NI9FmcMe+VIFp7FBoFzL/G8zM0q 1Ln1G/ACLb6v4L5gsIGBLJ/ot+wV2xF4Uo3QDvb3dwvV1K0XH2lpNZdiH8yO7+wodOf6 zWtnJsPDKo7LDsx2Iz14oXO9SmKNJu3072l7gxkGs0GPnRA3ghSznaV4/CWlfOeNCSyx yFLYaUf3ZehK6g0hBNBThER7lKuou/JIujr3Zp1O/07vK3JEDPg4eAPJx1+y08jawl1Z 65/GYDSKpHpsr1cXXpOSuB/cy4Ah3UljMMpiaCFUlq6cINCfWnfnRtTrQU1MyFUkiNMG fMvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ScERK/mJtzfpHxvmlaUf1mObMaQePkT0Fb4iHyumpT8=; b=RdCiJyvRVCqB2+dmDXoDps5ZkQanRB0pXVxmotJAauRk5/5vqRaoSMZvaqChcsPyca ESmoyHubj1TaosdJrG+8NjzOx2r/i9HRnjmUuJBcHmPSynq7Qd1wmiSLfNkq/zE9TyMl EZrO6YEEKRbpllj/mnT6tuIijDMiowWEjR+Pneli5NN9QrpfBGLVranUVVPQa1WnUQZ2 1vxcLwfTZcefmIz7I+aRz8l01p4LRTaMcIAZhgyDMoAJf5Jwapd2cxO2p8JxQjLVOzP8 1FOAMTRzVJBRITZ5Lsilq/2si/7Avi1gffE0uyFL5b7yT6epQQrPBT+l5smaBortDVrF 1EMg== X-Gm-Message-State: AOAM531dnfHs5Fjeg00+uxqdfMbkj1QxQ4Q1MPbCuV3y8Dy0v7gDDjuE +2RTIARERhP9xTl8DLoLCFPiZg== X-Received: by 2002:a17:906:651:: with SMTP id t17mr25633280ejb.394.1591122269431; Tue, 02 Jun 2020 11:24:29 -0700 (PDT) Received: from x1 (i59F66838.versanet.de. [89.246.104.56]) by smtp.gmail.com with ESMTPSA id v12sm1945405eda.39.2020.06.02.11.24.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2020 11:24:28 -0700 (PDT) Date: Tue, 2 Jun 2020 20:24:25 +0200 From: Drew Fustini To: Grygorii Strashko Cc: Tony Lindgren , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, =?iso-8859-1?Q?Beno=EEt?= Cousson , Rob Herring , devicetree@vger.kernel.org, Santosh Shilimkar , Suman Anna , Haojian Zhuang , Linus Walleij , linux-gpio@vger.kernel.org, jkridner@beagleboard.org, robertcnelson@gmail.com Subject: Re: [PATCH] ARM: dts: AM33xx-l4: add gpio-ranges Message-ID: <20200602182425.GA862776@x1> References: <20200602131428.GA496390@x1> <803e2d78-28ba-0816-dbb5-d441d7659a91@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <803e2d78-28ba-0816-dbb5-d441d7659a91@ti.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 02, 2020 at 04:44:03PM +0300, Grygorii Strashko wrote: > > > On 02/06/2020 16:14, Drew Fustini wrote: > > Add gpio-ranges properties to the gpio controller nodes. > > > > These gpio-ranges were created based on "Table 9-10. CONTROL_MODULE > > REGISTERS" in the "AM335x Technical Reference Manual" [0] and "Table > > 4-2. Pin Attributes" in the "AM335x Sitara Processor datasheet" [1]. > > A csv file with this data is available for reference [2]. > > It will be good if you can explain not only "what" is changed, but > also "why" it's needed in commit message. That is a good point. One reason for this patch is I think it makes sense to add gpio-ranges properties as they describe the relationship between a gpio line and pin control register that exists in the hardware. For example, GPMC_A0 pin has mode 7 which is labeled gpio1_16. The conf_gpmc_a0 register is at offset 840h which makes it pin 16. The other reason is that I would like to patch omap_gpio_set_config() to call gpiochip_generic_config() for PIN_CONFIG_PULL_{UP,DOWN}. It currently fails at pinctrl_get_device_gpio_range(): omap_gpio_set_config() |- gpiochip_generic_config() |- pinctrl_gpio_set_config() |- gpio_to_pin() |- pinctrl_get_device_gpio_range() [no gpio-ranges so fails] Thank you, Drew