Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6361519imu; Tue, 13 Nov 2018 23:38:20 -0800 (PST) X-Google-Smtp-Source: AJdET5eRO6iCH4GUgSAxhy4tTBaW3tfpmwyOT5rDPLvKQI9VYozF3vto4MHbeli1RYTowliEM+17 X-Received: by 2002:a62:43c1:: with SMTP id l62mr906032pfi.22.1542181100323; Tue, 13 Nov 2018 23:38:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542181100; cv=none; d=google.com; s=arc-20160816; b=BkpTd9LNBzp/WMelOpIzwxsKkW8/loF6cM5DKBnrGQW4xhaXCwyPnQMJ8hn1fdPsEl 7uuxureduZ/UeyD2lBCXyB3IZpX/9p5OBvH0YcBIDrng7nIptZiyQj+PO+0rhpsrLVT/ v28z6e2gk+UoYMd6dRJFcAfI9JQK5D046wblQI4JGomSQYg+G4rG43VwdfvLkN3Ki6dr e2gwm8dcRDwMdnutJBRb6C6VqnGMrBekZ79sd4CO31W2HFzZ838jRWrga2Yt5tO10MW/ fmlAD1xbbDXqUbkcOiI78YZvr6jbCi3O5hCMMstCDLuH3YNidLHGaPpqbDEB+D5fnzap 4UyQ== 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=OSbuJULTwKHvx62LRa5JojBdSoxhGNILPpb+iXHGqKE=; b=bGWFOfA6691Bk4lCmp922UroD+2Q8n0M6G4CW1S/6d8ibQdFwnT1TJHmisc9PJH099 3WsvndqfCEzFk6kljhKBSckjQiBesxd06OATBML7IwUVBZ3Dmx5cn6tHsZpYqrr4MqH4 Kcg+LON5fdzBklvVZRUPSXzyTMA0ga2tYoWNoQP5hAEmqn99flPJQSoDrGA1Yb+SLWng xzXl78w4eaFpDA+3m8k2ss/BZ9JmX2nJpAqSzI4TGm1lOwjgFXwmEl++pXFY/HAD6S5P O3lSBnpV6/a1px1F5yzdNRFOKdlZY2JyQ2WTteqGnx2VhLYmL5alMAohpqHbR3tMIWuf dUTQ== 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 o14-v6si21192183pgi.52.2018.11.13.23.38.05; Tue, 13 Nov 2018 23:38:20 -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 S1731321AbeKNRhv (ORCPT + 99 others); Wed, 14 Nov 2018 12:37:51 -0500 Received: from ms.tdt.de ([195.243.126.94]:57817 "EHLO mail.dev.tdt.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726927AbeKNRhu (ORCPT ); Wed, 14 Nov 2018 12:37:50 -0500 X-Greylist: delayed 523 seconds by postgrey-1.27 at vger.kernel.org; Wed, 14 Nov 2018 12:37:50 EST Received: from feckert01.dev.tdt.de (unknown [10.2.3.40]) by mail.dev.tdt.de (Postfix) with ESMTPSA id 4D1ED20ABC; Wed, 14 Nov 2018 07:27:05 +0000 (UTC) From: Florian Eckert To: linus.walleij@linaro.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, andy.shevchenko@gmail.com, joe@perches.com, chunkeey@gmail.com, piotr.krol@3mdeb.com, dvhart@infradead.org Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Subject: [PATCH v3 0/2] Add device driver for APU2/APU3 GPIOs Date: Wed, 14 Nov 2018 08:26:56 +0100 Message-Id: <20181114072658.11457-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.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) 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 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 APU2/APU3 GPIOs kernel: Add reset button platform device for APU2/APU3 arch/x86/Kconfig | 14 ++ arch/x86/platform/Makefile | 1 + arch/x86/platform/amd/Makefile | 1 + arch/x86/platform/amd/apu.c | 72 ++++++++++ drivers/gpio/Kconfig | 8 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-apu.c | 316 +++++++++++++++++++++++++++++++++++++++++ 7 files changed, 413 insertions(+) create mode 100644 arch/x86/platform/amd/Makefile create mode 100644 arch/x86/platform/amd/apu.c create mode 100644 drivers/gpio/gpio-apu.c -- 2.11.0