Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1428391ybg; Tue, 2 Jun 2020 09:38:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznluzidYbAtaoaXPUeUNZMjMOrJ/R48ZIN1HSVFNlJcr5pLM8H59vLCwXk8Vy+tgxpcKpw X-Received: by 2002:a05:6402:897:: with SMTP id e23mr27711549edy.217.1591115930249; Tue, 02 Jun 2020 09:38:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591115930; cv=none; d=google.com; s=arc-20160816; b=PfCXOXtMXYo1ca9HDbQ8WoUIc+IZ6lENmsRpuBUXN5HX2F2o1QSXaunXVOBPGq6tqR LUo9dHhKzT6937MChz5VbEKjJ2rzDq9s/sblWAvTIv3EabXiuLfFAEg8vvXsdUtp9VEv 7laX7hT2WGzmw0gVxpH0fgUQfJ9bbw7NJRSFHr/W8HKlSAlcu7mxdY0STsW75L6t5SXR Gk91VTrJ25flfbqLjrp1VnhDHCgycCSVszvv6uHj/jC47XXYRKV4i1Ej4ac8R9vT1r57 3mvp+GRwLo8v+x1sfhk8JzyvGZJE74DtdddRS9gtIsnqDZz84AIq9wtl/oTbZ8V5sQl7 iN2w== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GTp3v0xs6mu5kFIbCxhtRB6gkwXEBZW6SmRoVZ5I7s8=; b=JF1MuthKP8HQg5u7A53Yt9tOkrkvulbLZTP+XRk6O+6457GoQf+YcIFZEFDfTtAKG3 /ATKe9dmct8Y4sOzvQBqLk3SFWQgaC2WI+BPF3FA06Or7GYpxMcshKPvD8Sju7l1QY/5 rWZS80iWQ0y8G0A9mSktgSoyp/3LJBVA9FS2xXV9VIj5916TUJyl4BxMSMD2evpneU5i mry+NHuQmKI7gJhYK6DJL1RlR94wfB482CfT7Z1u9uqUqufQJEawp7ZZjyQQAxWmHcX5 0pkTxcz+aWruIN9IIib8+rxVXkDJdh0i7TPqWre5PW4cX+qeFswrWKClCxd3VtlkV0/R 8hBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@beagleboard-org.20150623.gappssmtp.com header.s=20150623 header.b=bitYm4Vs; 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 ha1si1357927ejb.67.2020.06.02.09.38.26; Tue, 02 Jun 2020 09:38:50 -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=bitYm4Vs; 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 S1726809AbgFBQfE (ORCPT + 99 others); Tue, 2 Jun 2020 12:35:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726140AbgFBQfD (ORCPT ); Tue, 2 Jun 2020 12:35:03 -0400 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBE9BC08C5C1 for ; Tue, 2 Jun 2020 09:35:02 -0700 (PDT) Received: by mail-ej1-x644.google.com with SMTP id q19so8110752eja.7 for ; Tue, 02 Jun 2020 09:35:02 -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:content-transfer-encoding:in-reply-to; bh=GTp3v0xs6mu5kFIbCxhtRB6gkwXEBZW6SmRoVZ5I7s8=; b=bitYm4VsV59axD8Yyh4/9Ainp4Ejsxy3f6GGf06ZdUqBePwsXjnxUv7AmcsFBxvAy+ sDgixVmXWE6rE7BLZHD3F1/LiFked4NddpNfvEFHK/NblwSiZoc9dwiIABl4C18iogld C2nem6F99yGeMb5XU56PVEoWwTQ2o8qPyaMB6SkojPG1j908NQJhpg8LYDaPIVXxWOd9 BNm+13BoZV0nIpK21TFz6d+M7RIzMWciWSxuwtcHm9t9eGgH+irmW4Ews6p5nUE03jI5 ZQUWTlmxEzbsAJRn9CsQ34znh7kYX/db89XVj6UXQgRXDW9qCmRKCffbHNcW24DpcDlE /UVA== 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:content-transfer-encoding :in-reply-to; bh=GTp3v0xs6mu5kFIbCxhtRB6gkwXEBZW6SmRoVZ5I7s8=; b=dz2oi7UQcgNmEZ+m0GMeaTktE9I601VsWLuLe3uVRyoZ9j9QfdovNc5vOTeu8/7ujw BQFp8HNNVG8oOlR6u+Y3an5l+OK3GazWLWCsZPwa64L2b27Bk8b/0ejoWEku5sZdHz60 Bbx3Du+nQjggGsGVxMo5PSJIeA1S+dny/nDjvqJplthLq7hmgTbjY+JljVw2gIvReskQ KxWwKZJx2aa4/S4uSMINH5ASNaqAm9XiHlEmfLGd1ubX5MfHd+vq5bQ7YgsSPoy57c0Y ymLP4wn9LrxQGpQH8JX0v9MprcyFQg/ajjwAmpP+0FISCQFATLkgAE+CsBVJhyOdW+Fi 2amA== X-Gm-Message-State: AOAM5314luAofqY9Xz7TkYYNeAn9+6ToBGshKh7XFqQ6o82a68TpwxZq uF2ynsQln+5xPTFE81FUSTDsNw== X-Received: by 2002:a17:906:1c8c:: with SMTP id g12mr13519380ejh.456.1591115701447; Tue, 02 Jun 2020 09:35:01 -0700 (PDT) Received: from x1 (i59F66838.versanet.de. [89.246.104.56]) by smtp.gmail.com with ESMTPSA id ce16sm1829533ejb.76.2020.06.02.09.35.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jun 2020 09:35:00 -0700 (PDT) Date: Tue, 2 Jun 2020 18:34:58 +0200 From: Drew Fustini To: Tony Lindgren Cc: Grygorii Strashko , 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: <20200602163458.GA847883@x1> References: <20200602131428.GA496390@x1> <803e2d78-28ba-0816-dbb5-d441d7659a91@ti.com> <20200602135155.GE37466@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200602135155.GE37466@atomide.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 06:51:55AM -0700, Tony Lindgren wrote: > * Grygorii Strashko [200602 13:44]: > > > > > > 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. > > Also, please check (again) that this is the same for all the am3 > variants. For omap3, we had different pad assignments even between > SoC revisions. Different pad routings should be easy to deal with > in the dts if needed though. > > Regards, > > Tony It appears that the only usage of am33xx-l4.dtsi is for am335x for which specific parts mentioned in those dtsi files are 3352, 3358, and 3359. $ git grep am33xx-l4.dtsi arch/arm/boot/dts/am33xx.dtsi:#include "am33xx-l4.dtsi" $ git grep -l '#include "am33xx.dtsi"' arch/ |wc -l 27 $ git grep -l '#include "am33xx.dtsi"' arch/ |grep -v am335x |wc -l 0 Also, it appears that the only AM33xx parts that actually exist are [0]: AM3351, AM3352, AM3354, AM3356, AM3357, AM3358, AM3359 I clicked on the datasheet link for each product page and while the URL has the specific part number in it [1], they all end up loading the exact same PDF. The header states: "AM3359, AM3358, AM3357, AM3356, AM3354, AM3352, AM3351 SPRS717L – OCTOBER 2011 – REVISED MARCH 2020" Thus, I do believe all SoC's using am33xx-l4.dtsi would have the same memory map for the pin control registers and the same relationshop from pin to gpio line. For example, GPMC_A0 has mode 7 and it is labeled gpio1_16. conf_gpmc_a0 is at offset 840h which makes it pin 16. Maybe am33xx-l4.dtsi should have actually been named am335x-l4.dtsi? Though I suppose there is no point in changing that now. thanks, drew [0] http://www.ti.com/processors/sitara-arm/am335x-cortex-a8/overview.html [1] https://www.ti.com/lit/ds/symlink/am3359.pdf