Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp12162imd; Wed, 31 Oct 2018 13:47:22 -0700 (PDT) X-Google-Smtp-Source: AJdET5eIlSag7gHd3OmgFEMQgLvAitvT6xZ8jNSJxauKxXLdSz9eI23D6Y/42C/ypMUnVCO4ZXzq X-Received: by 2002:a65:664e:: with SMTP id z14-v6mr4401707pgv.347.1541018842619; Wed, 31 Oct 2018 13:47:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541018842; cv=none; d=google.com; s=arc-20160816; b=1D+VWbxql8btkb4/tHRfhGc7c2AP2Epl74JLd6H2ZVG9uLtjjo9HJfkF2k/BHScJKx dfFqLm4kX0HRGD7oQoVzT2AKywieaQVqG7C9aDlvFChcdmrQzy3CFbcZJw75goPRl2q4 kb7u6Xs6XQJstDeGfDavMptzas/9OVFpov0Rwni6DBDmDZ9Dk7RV1qwfN/mtyns+K+iO qg7xMNO8az6y58P6C84Mysrzfmv/CcEu3/EM2Jdd74Mtpq0Y1b5WPJSUX0K4H1aXSTbJ Ly/9qOjfjAy6nbyLLVCl6H0V0Li+ZMN1KOn83CkEQJDpMIpQynTGvpN2CtDEJ3WrjQt8 4PFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=UZeZFkYt94pWx+xeoeBp4oScwoL7NIYnT70yEG4sE68=; b=WlOySpaIb2QRfkSX3XNepn1QYdyNovpH5LQxQhmpCRRQJDCWx5UNVyqKgvqmVIlagL bCe5ZGgjiiJiTe5RdJpDkQgioxcF4hLkQ3/yZvPOoFrxKmhHILz1piU1JE7jUONvtqSk wjgzHZ7YKkyhrNo34BVKCql14NK5fEt+Oe7vg5I5pKSMbIUOXs/PO9dfb/sfR5f7dAdi AkQViC3wZSIytRwMLT4xaIVTfDXmKUt7yD/6B1Euv3yZ42vCsbaFKmsv78MtcRuN/kAq tZxAjIT+GI+TVhrTVoKGxmsBRP2uJx81e1kTITeU4tC0ohORy1M/17gjyBHVDqwyEJ7i BnqQ== 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 y11-v6si28327082pgj.195.2018.10.31.13.47.04; Wed, 31 Oct 2018 13:47:22 -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 S1730102AbeKAFpT (ORCPT + 99 others); Thu, 1 Nov 2018 01:45:19 -0400 Received: from mr40.theemaillaundry.net ([109.169.43.35]:33152 "EHLO mr40.theemaillaundry.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726318AbeKAFpT (ORCPT ); Thu, 1 Nov 2018 01:45:19 -0400 Received: from mr32.theemaillaundry.net (mr32.theemaillaundry.net [46.4.73.163]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mr40.theemaillaundry.net (Postfix) with ESMTPS id 6470040307; Wed, 31 Oct 2018 20:45:35 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by mr32.theemaillaundry.net (Postfix) with ESMTP id 338571C0916; Wed, 31 Oct 2018 20:45:33 +0000 (GMT) X-Amavis-Modified: Mail body modified (using disclaimer) - mr32.theemaillaundry.net X-Virus-Scanned: amavisd-new at theemaillaundry.net Received: from mr32.theemaillaundry.net ([127.0.0.1]) by localhost (mr32.theemaillaundry.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CaWCSfFWiJPg; Wed, 31 Oct 2018 20:45:26 +0000 (GMT) Received: from statler.emutex.com (unknown [92.51.199.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mr32.theemaillaundry.net (Postfix) with ESMTPS id B43A91C122D; Wed, 31 Oct 2018 20:45:26 +0000 (GMT) Received: from [10.10.68.81] (helo=dan-Latitude-E5450.emutex.com) by statler.emutex.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA256:128) (Exim 4.84) (envelope-from ) id 1gHxMj-0007KU-LW; Wed, 31 Oct 2018 20:45:26 +0000 From: Dan O'Donovan To: linux-kernel@vger.kernel.org Cc: Andy Shevchenko , Mika Westerberg , Heikki Krogerus , Lee Jones , Linus Walleij , Jacek Anaszewski , Pavel Machek , linux-gpio@vger.kernel.org, linux-leds@vger.kernel.org, Carlos Iglesias , Dan O'Donovan Subject: [PATCH v3 0/3] UP Squared board drivers Date: Wed, 31 Oct 2018 20:44:46 +0000 Message-Id: <1541018689-20625-1-git-send-email-dan@emutex.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1539969334-24577-1-git-send-email-dan@emutex.com> References: <1539969334-24577-1-git-send-email-dan@emutex.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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. V1 was originally submitted by Javier Arteaga in April 2018 as an RFC [4]. The relevant ACPI SSDT from UP Squared can be found here: [5] [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 [4]: https://lore.kernel.org/lkml/20180421085009.28773-1-javier@emutex.com/ [5]: https://gist.github.com/Dan-Emutex/6382c25f4b8b8cdd80e6056889cdf48b V3: * Javier's address is no longer valid. Replaced From: with my own address. * Added error checks in LEDs driver, suggested by Jacek Anaszewski * Added minor tidy-ups in MFD and pinctrl drivers, suggested by Andy Shevchenko * Added link to relevant ACPI extract above [5] V2: * Rewrote regmap r/w handlers to avoid duplication and improve readability * Simplified data passing between MFD parent and child device drivers * Removed incorrect __init attribute from probe functions * Moved MFD cell definitions into same patch as MFD driver and simplified them * Promoted some dev_dbg instances to dev_err for probe error cases * Decoupled MFD cell reference from ACPI driver data * Miscellanous coding style improvements * Fixed license mismatches Dan O'Donovan (3): mfd: upboard: Add UP2 platform controller driver leds: upboard: Add LED support pinctrl: upboard: Add UP2 pinctrl and gpio driver drivers/leds/Kconfig | 10 + drivers/leds/Makefile | 1 + drivers/leds/leds-upboard.c | 103 ++++++++ drivers/mfd/Kconfig | 17 ++ drivers/mfd/Makefile | 1 + drivers/mfd/upboard.c | 336 ++++++++++++++++++++++++++ drivers/pinctrl/Kconfig | 13 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-upboard.c | 496 ++++++++++++++++++++++++++++++++++++++ include/linux/mfd/upboard.h | 44 ++++ 10 files changed, 1022 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 -- 2.7.4 ------ This email has been scanned for spam and malware by The Email Laundry.