Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8028168imu; Thu, 15 Nov 2018 05:33:16 -0800 (PST) X-Google-Smtp-Source: AJdET5f6RIoR3akp7pJHnGynCrCMQXG7qACaZZDsFCysqRWYCfT8N3PuDS3JkXTTgQN4pzvNaD0M X-Received: by 2002:a63:bc02:: with SMTP id q2mr5922566pge.116.1542288796199; Thu, 15 Nov 2018 05:33:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542288796; cv=none; d=google.com; s=arc-20160816; b=v8/HEg3gWCUodWN/UML0fAS+NFTq8vKpEUPjgbka1jRi5W27AssrLCHsZbjfJoEzvs HxS7+WaEgfG6y9hAoTeN6N8dJvGd7jIyHquQy4vgG8jzuOAEoBdzr9ff2/X8/2qhAfOA CvC/FAfgfrNuKJmpa0mJrNNrqVzcoDGI5l7dCUZ8yprb8KWLpAQAF7VLume3jCdib4s3 DhAqwwcWFhYu2XigtX05SIn2NvwEa5kacxCl48VcQqHzrvm47cady4Nr6cv1YSbhyJSR wVN4OMjMw5LmoUv/IjKtnfv6OhzDTBhFMfjOktrUbUlsTXbRnY+HIDzhTxSOahOmZAaB ucwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=Z16iGG0+dqGmHhfn6fudrydIPHHkLLiJTuLOhitQJJc=; b=AsoFJHEHt7YcHREP1yrJkrEXibApi1BhEMUCevqRMHvYMbhoDBWG+EcWq8+CwhTIQC yC/93Jh1V26WupmPoI3+OXlY8BgHS2xWOyLBEwKq6NMvsZ08K7PUBj9+K1n7wWV/E/AT Wvzfb9tGsGj/qaviQkAUotBriAq4k3RPmNu4qqi9vPG6o42josIpraY4Sy1SRtICRflo gi4SCVfu3bo2+NonGqqFJXxl2GNfMuIe8vybybPy0rD+/IAHAU31NA6yr57qnXo+9T3p 1QdNvrp4fn/chBYSE3XStwd5clRoE4rdd8IjekykLnITSxb10KFj6S70wCjDQNhCvL7P 194A== 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 o125-v6si26395881pgo.302.2018.11.15.05.33.00; Thu, 15 Nov 2018 05:33:16 -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; 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 S2388418AbeKOXkJ (ORCPT + 99 others); Thu, 15 Nov 2018 18:40:09 -0500 Received: from ms.tdt.de ([195.243.126.94]:34234 "EHLO mail.dev.tdt.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388290AbeKOXkI (ORCPT ); Thu, 15 Nov 2018 18:40:08 -0500 Received: from feckert01.dev.tdt.de (unknown [10.2.3.40]) by mail.dev.tdt.de (Postfix) with ESMTPSA id B156520186; Thu, 15 Nov 2018 13:32:13 +0000 (UTC) From: Florian Eckert To: linus.walleij@linaro.org, andy.shevchenko@gmail.com, piotr.krol@3mdeb.com, Eckert.Florian@googlemail.com, dvhart@infradead.org Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Florian Eckert Subject: [PATCH v4 0/2] Add device driver for APU2/APU3 GPIOs Date: Thu, 15 Nov 2018 14:31:59 +0100 Message-Id: <20181115133201.29092-1-fe@dev.tdt.de> X-Mailer: git-send-email 2.11.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dev.tdt.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes v2: - Update SPDX short identifier - Remove gpio-keys-polled device moved to arch/x86/platform - Fix styling - Use spinnlock only there where it is useful - Removed useless output on driver load - Do bit manipulation later not on IO - Add additional GPIOs handling mpci2_reset and mpcie3_reset. - Add name to GPIOs exported via sysfs Changes v3: - Add a new platform device for the frontpanel push button. - Get global variables from the heap - Fix errors/warnings generated by ./scripts/checkpatch.pl Changes v4: gpio-apu.c - Move bit shifting out of spinnlock - Change declaration of int to unsigned int - Remove redundant blank line - Use dmi table callback - Remove noise pcengines-apu-platform.c - Move platform device to drivers/platform/x86 - Remove needless include - Add dmi information so that this device is only present on APU2 APU3 boards from PC Engines Until now it was not possible to get more information to detect the MMIO_BASE address from the ACPI subsystem. Florian Eckert (2): gpio: Add driver for PC Engines APU boards platform: Add reset button device for PC Engines APU boards drivers/gpio/Kconfig | 8 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-apu.c | 299 ++++++++++++++++++++++++++ drivers/platform/x86/Kconfig | 11 + drivers/platform/x86/Makefile | 1 + drivers/platform/x86/pcengines-apu-platform.c | 114 ++++++++++ 6 files changed, 434 insertions(+) create mode 100644 drivers/gpio/gpio-apu.c create mode 100644 drivers/platform/x86/pcengines-apu-platform.c -- 2.11.0