Received: by 10.223.185.116 with SMTP id b49csp590743wrg; Fri, 23 Feb 2018 03:47:23 -0800 (PST) X-Google-Smtp-Source: AH8x225mlONyi5OJmEbYLJpAPTOa3jlFjl9jheT+E/bO84Swk1jeawV0VfWcjs+y9JhhPEuuU86H X-Received: by 10.98.202.138 with SMTP id y10mr1503383pfk.184.1519386443110; Fri, 23 Feb 2018 03:47:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519386443; cv=none; d=google.com; s=arc-20160816; b=TD/X91K5NlK/xu44JqRnyA74sZ2miN/A0PlO6RqPff1w+osnodbnvNhC1dZ7TclQeS gINTSzjfx/Q0zS2VwY6cgdYKFK9KRKyKOeBVflydjW7eRR8JaQsUlRUjqabOYqZNqXD+ obPHGHcm7HbpMB1Ea4Rg1FKW1phN3/JEKirNepVEqIrOqwLbFSryLicjWXLK9QmGs+mr DvWyQq0svWj73E2OjRBDWc0RVU5ZckSjGXzB2CwrVdcJSBWcHd5X2tkPu0uFO5GW1eou 9Lyw265vmrW+49zcAxBn3EUJkMnv6L8s/SdKpLzBy4qREoHGFcn7Z+RaRdPrjhXzgrH2 YqcA== 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=PkSNp38JsPrj2Ly+bH7PaBJjyY32FBnTFpyBn30jruk=; b=gmtuvKznXb8H5hbV51cdxnuWocWwcYYOqtCivQu6Opj0DkAEbbUF2Uzy+R2+M+M8cK /3q17qJK6hzt17NvzD7PKZQe18phU5WRO2NhslcxjmFl/6QzvxExU3Xd77ZAF92eOSz7 aeAoXdcNVIU8OJjsgVNgKkKI878gUk4Fmb2RBSoRLmCqdnT4PxenCWPXgWUhMMgCwuDA P2q2rfT00vMv0tWOZhTZr36SrHkzQm8JX+5RMKZYAr/ryGbFyRZy6S8l927TyEdNFXUH bC2zg9dsaaZUP1En/aSdtj/uKxh5XMKNyXvOvQpiBso3aV7irRjNzf4KGLf5DBQXdQG5 fRsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=LEr+EcBD; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si1663297plx.791.2018.02.23.03.47.08; Fri, 23 Feb 2018 03:47:23 -0800 (PST) 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=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=LEr+EcBD; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751584AbeBWLqK (ORCPT + 99 others); Fri, 23 Feb 2018 06:46:10 -0500 Received: from fllnx210.ext.ti.com ([198.47.19.17]:16014 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751527AbeBWLqH (ORCPT ); Fri, 23 Feb 2018 06:46:07 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w1NBj09e031799; Fri, 23 Feb 2018 05:45:00 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1519386300; bh=q0R+Uq4gtWjekuKPZVZGmObxP4MguB8bekcj3UDp3PQ=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=LEr+EcBDrw9duckaNhK/cQMtcV+djHNE+JXEouToBQpum2XWr0TJiGow3Hz47JmEm mhKciFvQTtL//uX0Sq7sXQzoWToBd+w1MwGMx1BjktDjEOkkwEIbS/wGcOZ23y/RLE vPdfxDKyROflAIJJWqp3EeYr5TGXIIIn9VVhx2y4= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1NBj0TK006676; Fri, 23 Feb 2018 05:45:00 -0600 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Fri, 23 Feb 2018 05:45:00 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Fri, 23 Feb 2018 05:45:00 -0600 Received: from [172.24.190.172] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1NBiv0w027520; Fri, 23 Feb 2018 05:44:58 -0600 Subject: Re: [PATCH] ARM: dts: da850: use gpio-ranges To: Linus Walleij , David Lechner 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: Sekhar Nori Message-ID: Date: Fri, 23 Feb 2018 17:14:56 +0530 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" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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