Received: by 10.192.165.148 with SMTP id m20csp1132807imm; Sat, 21 Apr 2018 01:49:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/6MyfnimbtDZQOKzh62Dmqc9Z7JiMTQMFmD/CVBHzzOPKLYpWIRBFWMiAGJbonq1Wp6v5f X-Received: by 2002:a17:902:125:: with SMTP id 34-v6mr13300312plb.42.1524300592660; Sat, 21 Apr 2018 01:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524300592; cv=none; d=google.com; s=arc-20160816; b=wzv0e+zMfr2D5H4QUYgSXB9x1yEeDp9cc4VXF6Yyv+PBc1swqAen5Md/WD1c+KKQh9 sYApwzMams6xKZvES1LVv1cE1sQiBL2S9dbkEkyikLD/aNkmvnj7+jJK1hFbdC5xzK1J YbvO2IyU/M84dAa8n2k7GVXOfR2e85lofI2nAXdwjC0RST8gTKIs/AklWQKuvp4mxbrq mtEaU0c8CucL0KyQtXcMrWAV1sL17jiMp1+cUDWS8Eh8zpsbhmtOrLCOea5Aucspa6TL qsTZQfZH+rtYVs8WwFOxO59BeZEq7ZN8wm73XX5MpN2XjS6sJcyO8b804stl1/Z8XRzQ 6FGg== 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:arc-authentication-results; bh=JYPNr92IIwhkeXm7Sbd/KOu6f1XtM6xuxGupa3VWV5w=; b=0WODngzR5jSTocq3wZ3D4UUkhaL/cQ4XKaJ44jpTHrY63o55d4exdrrwcVAD848fn1 VG9MZsvK2CzKxJv99Sr5N78iWYVjUrg6UrsB/TMeyYPSJ4kOrDWbdh7dxUJ23rweg/gR HSvLrQW8KC1CEYiz4wlUantlhVUnvcRVIMp+QnN0urTkDD5944q5uvnK7pFj+hMEqkVN wTQy6APHiOwbT49AkolzOgU8f4vthrOFQc0LL7l+O1sPGxTnEpkkT2QknIf6tS44Yx/O 61ktQcfRKsBw7A953lZmj9kM/Zpbr+IEO1pVcWGes979KY7zl2a5AGqylqekayrJbFgY l/+A== ARC-Authentication-Results: i=1; mx.google.com; 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 e15-v6si7491439pli.163.2018.04.21.01.49.15; Sat, 21 Apr 2018 01:49:52 -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; 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 S1752712AbeDUIqc (ORCPT + 99 others); Sat, 21 Apr 2018 04:46:32 -0400 Received: from bert.emutex.com ([91.103.1.109]:53848 "EHLO bert.emutex.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751052AbeDUIq1 (ORCPT ); Sat, 21 Apr 2018 04:46:27 -0400 X-Greylist: delayed 936 seconds by postgrey-1.27 at vger.kernel.org; Sat, 21 Apr 2018 04:46:26 EDT Received: from [92.51.199.138] (helo=statler.emutex.com) by bert.emutex.com with esmtp (Exim 4.84) (envelope-from ) id 1f9oAh-0005dH-6k; Sat, 21 Apr 2018 09:47:03 +0100 Received: from 182.red-79-157-43.dynamicip.rima-tde.net ([79.157.43.182] helo=[192.168.1.60]) by statler.emutex.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1f9oA2-0006LF-Us; Sat, 21 Apr 2018 09:46:23 +0100 Subject: Re: [RFC PATCH 0/3] UP Squared board drivers To: linux-kernel@vger.kernel.org Cc: Dan O'Donovan , Andy Shevchenko , Mika Westerberg , Heikki Krogerus , Lee Jones , Linus Walleij , Jacek Anaszewski , Pavel Machek , linux-gpio@vger.kernel.org, linux-leds@vger.kernel.org References: <20180421083008.27411-1-javier@emutex.com> From: Javier Arteaga Message-ID: <86d9e499-2ec9-fc15-8745-951158c74a47@emutex.com> Date: Sat, 21 Apr 2018 09:46:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <20180421083008.27411-1-javier@emutex.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 (-) X-Spam-Report: Spam detection software, running on the system "statler.emutex.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Sorry, I messed up this submission: linux-kernel is only Cc'd on the cover letter. I'll repost right away - please ignore this thread. On 21/04/2018 09:30, Javier Arteaga wrote: > Hi all, > > This series adds platform support for AAEON's UP Squared, a x86 SBC > based on Apollo Lake [1]. Specifically, it enables control for the board > pin headers and for the LEDs, as both of these features are only > available behind a FPGA-based platform controller. > > This is structured around a MFD driver that provides a regmap interface > to that platform controller to each MFD cell. > > The series is carved out from an out-of-tree support patchset, initially > written by Dan O'Donovan for the original UP Board [2] and then extended > through the past year to support new entries in the lineup (UP Board, UP > Squared and UP Core) [3]. > > Here we only submit support for UP Squared to simplify review. Still, > the driver is designed so that it can easily gain support for the other > boards. > > Questions: > > * Is MFD the right fit for the platform controller? > The intention here is to encapsulate the custom GPIO-bitbanged control > protocol by sharing the regmap between the drivers. > > * Is our use of two chained pinctrls (in patch 3/3) valid? > > Thank you! > > [1]: http://www.up-board.org/upsquared/specifications-up2/ > [2]: https://lkml.kernel.org/r/1467648434-29080-1-git-send-email-dan@emutex.com > [3]: https://github.com/emutex/ubilinux-kernel/commits/upboard-4.9 > > Javier Arteaga (3): > mfd: upboard: Add UP2 platform controller driver > leds: upboard: Add LED support > pinctrl: upboard: Add pinctrl and gpio driver > > drivers/leds/Kconfig | 10 + > drivers/leds/Makefile | 1 + > drivers/leds/leds-upboard.c | 87 +++++ > drivers/mfd/Kconfig | 17 + > drivers/mfd/Makefile | 1 + > drivers/mfd/upboard.c | 273 ++++++++++++++++ > drivers/pinctrl/Kconfig | 13 + > drivers/pinctrl/Makefile | 1 + > drivers/pinctrl/pinctrl-upboard.c | 523 ++++++++++++++++++++++++++++++ > include/linux/mfd/upboard.h | 70 ++++ > 10 files changed, 996 insertions(+) > create mode 100644 drivers/leds/leds-upboard.c > create mode 100644 drivers/mfd/upboard.c > create mode 100644 [...] Content analysis details: (-1.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Sorry, I messed up this submission: linux-kernel is only Cc'd on the cover letter. I'll repost right away - please ignore this thread. On 21/04/2018 09:30, Javier Arteaga wrote: > Hi all, > > This series adds platform support for AAEON's UP Squared, a x86 SBC > based on Apollo Lake [1]. Specifically, it enables control for the board > pin headers and for the LEDs, as both of these features are only > available behind a FPGA-based platform controller. > > This is structured around a MFD driver that provides a regmap interface > to that platform controller to each MFD cell. > > The series is carved out from an out-of-tree support patchset, initially > written by Dan O'Donovan for the original UP Board [2] and then extended > through the past year to support new entries in the lineup (UP Board, UP > Squared and UP Core) [3]. > > Here we only submit support for UP Squared to simplify review. Still, > the driver is designed so that it can easily gain support for the other > boards. > > Questions: > > * Is MFD the right fit for the platform controller? > The intention here is to encapsulate the custom GPIO-bitbanged control > protocol by sharing the regmap between the drivers. > > * Is our use of two chained pinctrls (in patch 3/3) valid? > > Thank you! > > [1]: http://www.up-board.org/upsquared/specifications-up2/ > [2]: https://lkml.kernel.org/r/1467648434-29080-1-git-send-email-dan@emutex.com > [3]: https://github.com/emutex/ubilinux-kernel/commits/upboard-4.9 > > Javier Arteaga (3): > mfd: upboard: Add UP2 platform controller driver > leds: upboard: Add LED support > pinctrl: upboard: Add pinctrl and gpio driver > > drivers/leds/Kconfig | 10 + > drivers/leds/Makefile | 1 + > drivers/leds/leds-upboard.c | 87 +++++ > drivers/mfd/Kconfig | 17 + > drivers/mfd/Makefile | 1 + > drivers/mfd/upboard.c | 273 ++++++++++++++++ > drivers/pinctrl/Kconfig | 13 + > drivers/pinctrl/Makefile | 1 + > drivers/pinctrl/pinctrl-upboard.c | 523 ++++++++++++++++++++++++++++++ > include/linux/mfd/upboard.h | 70 ++++ > 10 files changed, 996 insertions(+) > create mode 100644 drivers/leds/leds-upboard.c > create mode 100644 drivers/mfd/upboard.c > create mode 100644 drivers/pinctrl/pinctrl-upboard.c > create mode 100644 include/linux/mfd/upboard.h >