Received: by 10.192.165.156 with SMTP id m28csp2907418imm; Sun, 15 Apr 2018 12:01:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx48WE0FXy/l5kannT8yjocDwf0uPvwMpbs+g7EbWq8YhhebNt5qrKV01rMj34BbUPFYYl6FP X-Received: by 10.98.69.217 with SMTP id n86mr19068414pfi.41.1523818866132; Sun, 15 Apr 2018 12:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523818866; cv=none; d=google.com; s=arc-20160816; b=dJJHMd5yk6vV1b2QgIHjYXknALbRfpHcdMb7G1W3382NCnJllZsQs8bojmd6mM4+ic qmF9uttKWMhtApna5FKL4DQ26E85DYDZS0dKXyvdNvk5mjEH9Evxuj+9iW41ALWO0mnE qVG3sjhZeWWsnzc4om/svItNySu2TN2ar6uGbi8ShHiuBusecfGA8saS1MLo9g+KwrOE 7619E2F/1wZCGKuZdHE6yljk4Xnj4kwVw7tSLH8z2aROd0xkWOl6TJE1saKOZlG86C44 XbQ2ZHy4ZhuiFeQq5jjySWA/4OcAmQ53LoUBdZVVb3dwtUGnrTf/Vuqxd8UbSUsSPEjS 8wSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=CDdjYTFkx/Wb7euZ1bVhx7xXAyxXGXn8yp/JDPX2gwc=; b=KprjeBZrqIcQSyHyhnQBAL1SmPBlEqQuviWsqpZFGN8rNngkYoDqtmmbCvIXNqX/7D 9BxlnnGe+MX80r0VDOpmms7ppMRPT2Ag3MniOpvog4q2mI1stz+Q7OrBRBmzoUZpM0lN 9l/Pl3w8WklUBxN0zQuCNNUv079OvmxDTDuqSaISbes2P2fqrKpRAx6SnLLStOmN0hyW pE2TOorG2hebdzMXySDr6jTnGAnPkwTW78tC1UaIHeV5vcuK99DyTp4+MxyuJO8+KIMq 3/ZQWnJcN9abrcJX/hu+mqRxzenYgVd63FDQkk84Tzyq0h9q7AEDUEA+djG8Z0zewDT2 6b5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=0jTKT8RP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e23si9358490pfl.112.2018.04.15.12.00.51; Sun, 15 Apr 2018 12:01:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=0jTKT8RP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752865AbeDOS52 (ORCPT + 99 others); Sun, 15 Apr 2018 14:57:28 -0400 Received: from vern.gendns.com ([206.190.152.46]:53053 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752554AbeDOS50 (ORCPT ); Sun, 15 Apr 2018 14:57:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=CDdjYTFkx/Wb7euZ1bVhx7xXAyxXGXn8yp/JDPX2gwc=; b=0jTKT8RPSWbw34xTOoRMM9FtRQ NMbisuzj7FlPrndIs6Nd724fSoz81PODDKWDQCsXRKefEcRXXKirhKIADWzy7Z2usvYMPLeA7Z62x HNqa5BItsVSinoERHp9V6ApBvRhIlmnxis7s6PHVpWDlll/+oC2ytkjz4jaakNeQvI/M7cSLMVWoc uBGS/2uozT6iEVdl4z9W6pPVGBYQx3xXXsrKVFwmyqWfmaFBzUHVjWHhv2JRpFZ52ESucQrSwRoT3 toROmHj+nrVL0lLYWiXecN/XtI02EVGycINeZ8j5SnP9X5SML6M15brmfl850gIU+0p6UYBhJeJkh wC8gJ9ng==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:58344 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1f7mq4-002dcR-6g; Sun, 15 Apr 2018 14:57:24 -0400 Subject: Re: [PATCH] ARM: dts: da850: use gpio-ranges To: Sekhar Nori , Linus Walleij Cc: Linux ARM , Kevin Hilman , Haojian Zhuang , Tony Lindgren , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" References: <1519079371-25493-1-git-send-email-david@lechnology.com> From: David Lechner Message-ID: Date: Sun, 15 Apr 2018 13:57:22 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/23/2018 05:44 AM, Sekhar Nori wrote: > On Thursday 22 February 2018 09:04 PM, Linus Walleij wrote: >> On Mon, Feb 19, 2018 at 11:29 PM, David Lechner wrote: >> >>> This makes use of the gpio-ranges feature that connects GPIO >>> controllers and PINMUX controllers. >>> >>> In da850.dtsi, pinctrl-single,gpio-range is added to the pinmux node >>> and gpio-ranges is added to the GPIO node. Unfortunately, the way the >>> pinctrl-single driver enumerates the pins (starting with LSB) causes >>> them to be in reverse order compared to the way the gpios are assigned. >>> As a result, we have to declare the mapping for each GPIO individually. >>> >>> This also lets us remove all of the GPIO pinmuxes from >>> da850-lego-ev3.dts. (Other da850 boards do not currently have any >>> GPIO pinmuxes declared.) >>> >>> Signed-off-by: David Lechner >> >> Nice, >> Acked-by: Linus Walleij > > Looks good to me too. And quite painstakingly done! > > I suppose this needs to wait a bit due to the dependencies? Let me know > once its okay to merge. > > Thanks, > Sekhar > Hi Sekhar, The dependencies are in v4.17-rc1 so you can pick up this patch now.