Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp54121imd; Wed, 31 Oct 2018 14:31:24 -0700 (PDT) X-Google-Smtp-Source: AJdET5e6ktUo1f4HwyP/ONYytLYmwsT1Avzoy50/HhcxAuAeiThOUxDtSqN/4E1mVr/ndxAp8xTw X-Received: by 2002:a62:ee03:: with SMTP id e3-v6mr5199988pfi.2.1541021484021; Wed, 31 Oct 2018 14:31:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541021483; cv=none; d=google.com; s=arc-20160816; b=yl4UN5CqA6MbcQhSkdrszGg70/FiNrqSkqGK/djD6Guw75Yxv0qT5SwqsAiB20LnZN elre6aH3J+EiOu7IOT4iYZd2LR/02bG2J+ay16R0OpUDWnSjWWiziamEd4GlsEonqWUn YqIRlf11U+FMd/MAL6In2lSBlmz5/8MTypdg2hhaEZ5Wh7NJsY6bJRvng9ddmeMeO7Ep 4/w+ClCZ1AxrhzGjktlwboiZZG3gPD222xZ1Rtg3AI73ix522C6BNgbjrnZbDXUVqP1H RthawMAgXGuf2/jxcSxp27DByuW67XnFfHttHS8VBHVHqyAAuq9GpXjV2Jk2HXFp4p/r tPFg== 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 :in-reply-to:references:mime-version:dkim-signature; bh=1zVxuEYHA0OjT0GBGxNcDM0Kyu3TPQo/tjna7UCNe4A=; b=GQV16nHi+JXSAkqavFXzvrRrs/801MGPKJ271NJG/FxxFb1cLh/wX+h2KJAvnBZEZR 9CurBGs6w1irxjCucKB5KTrnYH682NLWYnCg6n0oq2GM7q6U99S7ZxETKnud2QIBiQQW +R21eZ17344syHiGW9fgzT0N7xS2kSu8Y0QpB0mO7cQKJ8W/U0+5xb8bSIPy8oEy1oye Qe9r8oyP4Ib1rY4D1Mx+ZX73j5In3SQp3BubfZBP6DI7gTIjWnu+YCLzy8FtfIged6x7 6S/SrNgZHE1hQ6fI7JwS9CYqTdkSFYWlXv/Koh+42EWNjmlNE5nBx8kAyQ4qldoBzm99 4lRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XQVwDx48; 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 o13-v6si15076589pfd.46.2018.10.31.14.31.06; Wed, 31 Oct 2018 14:31:23 -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=pass header.i=@linaro.org header.s=google header.b=XQVwDx48; 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 S1726161AbeKAGaY (ORCPT + 99 others); Thu, 1 Nov 2018 02:30:24 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:36754 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725999AbeKAGaY (ORCPT ); Thu, 1 Nov 2018 02:30:24 -0400 Received: by mail-lj1-f196.google.com with SMTP id s15-v6so16244294lji.3 for ; Wed, 31 Oct 2018 14:30:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1zVxuEYHA0OjT0GBGxNcDM0Kyu3TPQo/tjna7UCNe4A=; b=XQVwDx48gboYDBcFkyNV+veyMdOGbUZG4bJnNRRWpoVJQn/ZjL9j3i6FUI4PNRMX5t //UixLDMte0FI0E++uHHqQK5A+A7I8JOo5BizaXWUjvCJI21tejWBsqMZIS64Ac3BcZC 8B8icMjkqBAYC6h1HZ4h/0OYNHiwL8i8jZXTw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1zVxuEYHA0OjT0GBGxNcDM0Kyu3TPQo/tjna7UCNe4A=; b=bVbwPxlA2++xhXlrAo6w9A8txky/hGfEyuQkSM2RbAvFM9amceZtHMkMNwpjfLgkcI eCLWtiU9n/2HGtqd4GndmBerS2LKImnqm8USkV4EKZ/FbzIY4jmYmHKTsPq1CiqVaFn7 2/7HV7x/4KlQWo5q8KfwQFgFX6p4411UfcQa2lSYOcQNx+G7Hb11SWkuA12n17jUF2KM 5lbEuLr/Zj2nsymDiMoMasDLa8Xiq57Qv2zqI8GpdJMThftDVo/eBcP8ZPBJSFatBzGZ Y7Q7HU2zizzQ26wLQbgnr2AtnHEVW77cg3fBIfNlut3wHhwCFvqn9xWbkZfp+xbt73MH wHxQ== X-Gm-Message-State: AGRZ1gKaKJ4f8up+nqS/PLOMsbVzoK8wTpjzS//QRLlKLdFV8CaZIbf7 FItVxmCWy9nAl2HdsqTuqK8tZIrALnquXwW6Mwep3g== X-Received: by 2002:a2e:9107:: with SMTP id m7-v6mr3184566ljg.23.1541021432468; Wed, 31 Oct 2018 14:30:32 -0700 (PDT) MIME-Version: 1.0 References: <1539969334-24577-1-git-send-email-dan@emutex.com> <1541018689-20625-1-git-send-email-dan@emutex.com> <1541018689-20625-4-git-send-email-dan@emutex.com> In-Reply-To: <1541018689-20625-4-git-send-email-dan@emutex.com> From: Linus Walleij Date: Wed, 31 Oct 2018 22:30:20 +0100 Message-ID: Subject: Re: [PATCH v3 3/3] pinctrl: upboard: Add UP2 pinctrl and gpio driver To: "Dan O'Donovan" Cc: "linux-kernel@vger.kernel.org" , Andy Shevchenko , Mika Westerberg , Heikki Krogerus , Lee Jones , Jacek Anaszewski , Pavel Machek , "open list:GPIO SUBSYSTEM" , linux-leds@vger.kernel.org, carlos.iglesias@emutex.com 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 Hi Dan, On Wed, Oct 31, 2018 at 9:45 PM Dan O'Donovan wrote: > The UP2 board features a Raspberry Pi compatible pin header (HAT) and a > board-specific expansion connector (EXHAT). Both expose assorted > functions from either the SoC (such as GPIO, I2C, SPI, UART...) or other > on-board devices (ADC, FPGA IP blocks...). > > These lines are routed through an on-board FPGA. The platform controller > in its stock firmware provides register fields to change: > > - Line enable (FPGA pins enabled / high impedance) > - Line direction (SoC driven / FPGA driven) > > To enable using SoC GPIOs on the pin header, this arrangement requires > both configuring the platform controller, and updating the SoC pad > registers in sync. > > Add a frontend pinctrl/GPIO driver that registers a new set of GPIO > lines for the header pins. When these are requested, the driver > propagates this request to the backend SoC pinctrl/GPIO driver by > grabbing a GPIO descriptor for the matching SoC GPIO line. The needed > mapping for this is retrieved via ACPI properties. > > Signed-off-by: Dan O'Donovan It appears you missed my review comments so please read them and reply or respin the patch accordingly. Yours, Linus Walleij