Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp783865imu; Tue, 27 Nov 2018 06:17:44 -0800 (PST) X-Google-Smtp-Source: AFSGD/VAy47L0JpFfGGDGVs68kcSDx2sjStOtE7sEKywG2QbWT6B/ZEgfreSAyydxpy1f5+U+nuB X-Received: by 2002:a63:2c0e:: with SMTP id s14mr29891962pgs.132.1543328263963; Tue, 27 Nov 2018 06:17:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543328263; cv=none; d=google.com; s=arc-20160816; b=YJD0gSHniWGnQTYb457qvRWTcUiDta8SE8S5wtmt10sBVI0v1cflYDci4zv+we0DMg TVrYrzPX/FA919Jl7AtBeLqvnCAiEimW9ien4MTYcGGiASLDOKCcChEi1VzVXFIJ71zi soDaWHTUo03p4sTJOkUOgtS0ehRICLnYzZvYF7mNvqOyG2dt19vNs+ymXPgnDoXtimdX zhJnDHMZr6ZtUZmC0MLh5fSuU57lG/niWHcgnIQYSRPC+d2pc20jYS+TIG8OWvKM3p18 mjnR/mBuQzC3U8hz//IUbZmWAQyuBnLg17VUyLsDgPoDGmKhXVYCHBzcKQTwJayyXB7m e8EA== 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=lCZIdqmZnYKUwrMgNgKmWgJWlqIVOVKb82D5vvzgC8c=; b=OcIvjQoN+BUXtjwSYFlbapN3aSngdAGu5x2O69n7hVZHQLSVlokj52g5LF1Q5fhWo6 I65seXXn37xXFoQ2F+UnG818TQAm8dDnYag/p5oapl8JTxLvu459tn25PTZZuX4Ppw25 10F4Dt08+ezHTehIeu+GtfHw5ZXYuGlUDx8LBmM3x8V52tP0QZ49E0Vx4UyuMPxTg5pU ijOX4GJOFWdU9JM40baMrhfTYPqMAR026VtTzLZLbNXKmcrJaDkQlHFdW4QBIuhtHLaA Gs2REqXOSm4p0vJlSZiGBKGRuZ2vbn/thcYx4a4lvqNl5kQAQfc9phzDyiH+MvhtYXC3 oFVw== 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 w17si3770369pgl.6.2018.11.27.06.16.48; Tue, 27 Nov 2018 06:17:43 -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 S1727115AbeK1AXY (ORCPT + 99 others); Tue, 27 Nov 2018 19:23:24 -0500 Received: from ms.tdt.de ([195.243.126.94]:58662 "EHLO mail.dev.tdt.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726961AbeK1AXY (ORCPT ); Tue, 27 Nov 2018 19:23:24 -0500 Received: from feckert01.dev.tdt.de (unknown [10.2.3.40]) by mail.dev.tdt.de (Postfix) with ESMTPSA id 726E7207F3; Tue, 27 Nov 2018 13:25:23 +0000 (UTC) From: Florian Eckert To: linus.walleij@linaro.org, bgolaszewski@baylibre.com, dvhart@infradead.org, andy@infradead.org, Eckert.Florian@googlemail.com Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, platform-driver-x86@vger.kernel.org, Florian Eckert Subject: [PATCH v5 0/2] Add device driver for APU2/APU3 GPIOs Date: Tue, 27 Nov 2018 14:25:06 +0100 Message-Id: <20181127132508.5501-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 Changes v5: gpio-apu.c - Remove GPIO_GENERIC select from Kconfig - Make gpio_chip real member of apu_gpio_pdata - Use BIT macro for get_data and get_dir functions - Pass platform data to devm_gpiochip_add_data to get data per-instance state container - Remove DEVNAME define - Remove platfrom_device member from apu_gpio_pdata this - Clean up init function - Remove MODULE_ALIAS 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 | 7 + drivers/gpio/Makefile | 1 + drivers/gpio/gpio-apu.c | 288 ++++++++++++++++++++++++++ drivers/platform/x86/Kconfig | 11 + drivers/platform/x86/Makefile | 1 + drivers/platform/x86/pcengines-apu-platform.c | 114 ++++++++++ 6 files changed, 422 insertions(+) create mode 100644 drivers/gpio/gpio-apu.c create mode 100644 drivers/platform/x86/pcengines-apu-platform.c -- 2.11.0