Received: by 10.223.185.116 with SMTP id b49csp2061654wrg; Thu, 22 Feb 2018 07:35:47 -0800 (PST) X-Google-Smtp-Source: AH8x224+1FsPIvY3ouJ0TcnnvjpkPPAL0hQWK1cp7pjyfL+Bd0yasNzgiZnPx8IIMcmS9cw48SG/ X-Received: by 10.99.117.89 with SMTP id f25mr5895252pgn.18.1519313747401; Thu, 22 Feb 2018 07:35:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519313747; cv=none; d=google.com; s=arc-20160816; b=T4D3ZFLS7N1Y+bjsUiDh7A/DlKw/Nb12Y+xIG3wspMz9rq+6Stj05DAFV3/g5DDdnu TAAwLfKu6XVjlkLNr+zR6HM+2RgWoxmtj9ZAITN/ELhek4Pu81k5AVjAOC066yD8EF/d izjhHQA2ekuBvXJBb8KRL7QsEUaAHTfbN2mw3bAO3Ne5U24YvFOMOYyui/FkFwTVzguR L6vHUXCxzAvJ2qIACe8gLbUlC9l8LH1nJBjlkwy2xc3v0Ro8WOFtL3ztshvkjclU2/7U iBlL54SawuqqpP/lqOZFM5jELjj1kXFPg3Avjwi3W9Q8onhCVfT7bBVoZuu4dx6/GVpU Vz+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=r6DEXC74D/mEtT0GEgNG+WiKkIABVlpbDG69xplK9Po=; b=gjZSO9GtsoTtoQWMEEqScnpCzbsBwW5nxoTNaYDSJJwSvWaMRrWkejwz03/1ouv4FH sO14vX7EFVS3xuow/kEfgL0NauQivfRxWekAKjHSQbDzCqD9ooo5aiAYRWSqzkgHvFxK 9LcwRSjCMOq3JtDBE4imTRky6BVoP68XYM891Y95CVI4/JoX8GYHACMoSHCRUmV+ZvBc 7gI6rcMZwe41RwUYc56c61P4tJuiCtzKO6ROXDz500qdjIFzF+xYB4CI+DLKBZacoNKd 0u1tRXEx+uTVql4kqDZTWUIBi8IuRchW+eqrPlU4mvfRpqUm+yFxfHyS2i8uWqC0V2to k67g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SVvvyfpH; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si176248pll.459.2018.02.22.07.35.32; Thu, 22 Feb 2018 07:35:47 -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=@linaro.org header.s=google header.b=SVvvyfpH; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933057AbeBVPe0 (ORCPT + 99 others); Thu, 22 Feb 2018 10:34:26 -0500 Received: from mail-it0-f68.google.com ([209.85.214.68]:39078 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932897AbeBVPeX (ORCPT ); Thu, 22 Feb 2018 10:34:23 -0500 Received: by mail-it0-f68.google.com with SMTP id l187so6925087ith.4 for ; Thu, 22 Feb 2018 07:34:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=r6DEXC74D/mEtT0GEgNG+WiKkIABVlpbDG69xplK9Po=; b=SVvvyfpHZyVALET7FJE839va7ybDThe8YkFI4SD2UYVQvqPX1ucEhCT1ycs9QErzM2 oY2emExZmhn3mpEtU3B0I5aK8bOlFX7TTrnJHPEMl8/gyGdG49SuTg1ciBoy5T/avAzz pCyaNv3hKtf80vlZusbnhG22JQhruuWzh7XWA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=r6DEXC74D/mEtT0GEgNG+WiKkIABVlpbDG69xplK9Po=; b=WZ34F/uKtz3dPyK9sS90HBhWIpOZwwij9Zm7cAm9UUm3h4LO25LNwUhwaZTZYJ4hJ8 NrSJi/LfHYVjt5UBpztialwaa9Xe7ip4BeMO2XzPWNgrmo3N9XFsqwW6MY18FhtvVota 9O1UQPvVjNdIaTI7WhM3lsE8tlGJ9SG+cwV38pQsAK0yzkSJq4KN/NLQBzOVOpqjJx3E oT1XpyxIYM5b69wFXdRFpytYSRendpdwHhfr+NCIasrydSUnfwMdFNQ0eHx7R6wX9F1f uLsoFgfH3bwoJOmOYt5BZvdNq4HDcXa3qg6E8FTFkLqS8PmE0pZjMg8cIvWswj1l7sl7 wn7A== X-Gm-Message-State: APf1xPCWtL6nea4R31th9FwIfFUIe7ITuILnmdbnpqrvQLW+QoTu9s2R s6rYHuqZb9rc0pVTQAPKX1CRVpM7p0LGDPgCgnU/tA== X-Received: by 10.36.73.18 with SMTP id z18mr8684814ita.132.1519313662540; Thu, 22 Feb 2018 07:34:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.79.230.25 with HTTP; Thu, 22 Feb 2018 07:34:22 -0800 (PST) In-Reply-To: <1519079371-25493-1-git-send-email-david@lechnology.com> References: <1519079371-25493-1-git-send-email-david@lechnology.com> From: Linus Walleij Date: Thu, 22 Feb 2018 16:34:22 +0100 Message-ID: Subject: Re: [PATCH] ARM: dts: da850: use gpio-ranges To: David Lechner Cc: Linux ARM , Sekhar Nori , Kevin Hilman , Haojian Zhuang , Tony Lindgren , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > + gpio-ranges = <&pmx_core 0 15 1>, > + <&pmx_core 1 14 1>, > + <&pmx_core 2 13 1>, > + <&pmx_core 3 12 1>, > + <&pmx_core 4 11 1>, > + <&pmx_core 5 10 1>, > + <&pmx_core 6 9 1>, > + <&pmx_core 7 8 1>, > + <&pmx_core 8 7 1>, > + <&pmx_core 9 6 1>, > + <&pmx_core 10 5 1>, > + <&pmx_core 11 4 1>, > + <&pmx_core 12 3 1>, > + <&pmx_core 13 2 1>, > + <&pmx_core 14 1 1>, > + <&pmx_core 15 0 1>, Heh the map moves backward how funny. Sorry that we don't have an option to map that any better in the ranges but hey, this works. Yours, Linus Walleij