Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp322061imm; Wed, 29 Aug 2018 22:56:49 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZCtnjtaDKEGlJH9D3yX0HOwg66inj0tMeNRu6c5We+OiTdRLJNwEAIGYOZYr1EfpZrCwGb X-Received: by 2002:a17:902:4403:: with SMTP id k3-v6mr8624715pld.243.1535608609924; Wed, 29 Aug 2018 22:56:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535608609; cv=none; d=google.com; s=arc-20160816; b=yCP18qQgWJq3P/HkUBejvqLxvtaWvJT/aYr5oQ2XwUJic9A5Sg5qpzvg7kP4dRrG4R v5ddLGvuDj7Pl36uuJJWjGMEHLqZSrGz9t7Y3I/LAaw9p2PXb/vPOEaUN0hcxmdeLLRb V9gpihWFyfYJ4EOFhEZPvgXLfzi2if7ylAk8VuMh89pyZpA0c4fR1e/jYI9L8N51xpIU NS4CxaAYQcT6zaTH8BneCZJmN4kfiBgkHcftYP1VisR2Gaa/gFuyldtOT7qhhNEBY/CH nVjmXuzLqb1GaOY2EiRIo4rnfP6Lyea4nLK7WV3x6yJ+raYu7tgFsCrXmC9mEy725f2R 8xyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:arc-authentication-results; bh=saKZvxUvyxII5bm3uap1GaggGL6juUssWL1ctX0HdhI=; b=oxbGJfRHXR/M51eNNdMX6jhLzpIiwg0KE2EfoKugP3C9Q6W2KNtZOCz2/7UjaFOhv5 mUxFq+C0ZPQ0KyC4kiZ/w1VRk6O1xe0/5AtPE+Q2bwBPsRjclKmY5nwCPCb++JfAhAoq dTOC0quPoXigJtEfAR6hYL+CZhWEO69W75i0p3iInrEFz/vSRU6fFnRvRNcFYv9t42K5 IdSK9+/Lq2E5+9Bi41OTnDFhnFnXkSwv8X6vGGRhHU+cT02TGJNZx5lYl34CeKQVOCif rglPyRtC9JtkqhZKkcoHUKvohp7ZE79aOMPnXJtrt8tbi1Eh/ikk1HHg0ysvSg8br4eW u6uQ== 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 e6-v6si5620289pfh.64.2018.08.29.22.56.21; Wed, 29 Aug 2018 22:56:49 -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 S1727363AbeH3JzC (ORCPT + 99 others); Thu, 30 Aug 2018 05:55:02 -0400 Received: from ms.tdt.de ([195.243.126.94]:55129 "EHLO mail.dev.tdt.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725904AbeH3JzB (ORCPT ); Thu, 30 Aug 2018 05:55:01 -0400 Received: from mail.dev.tdt.de (localhost [IPv6:::1]) by mail.dev.tdt.de (Postfix) with ESMTP id 6302A20060; Thu, 30 Aug 2018 05:54:31 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 30 Aug 2018 07:54:31 +0200 From: Florian Eckert To: =?UTF-8?Q?Piotr_Kr=C3=B3l?= Cc: Andy Shevchenko , "open list:GPIO SUBSYSTEM" , Linus Walleij , Linux Kernel Mailing List Subject: Re: [PATCH] gpio: Add driver for PC Engines APU2/APU3 GPIOs In-Reply-To: References: <20180801111243.2848-1-fe@dev.tdt.de> Message-ID: <105943b718ecffbd17a34082130e0f31@dev.tdt.de> X-Sender: fe@dev.tdt.de User-Agent: Roundcube Webmail/1.1.5 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 On 2018-08-24 12:56, Piotr Król wrote: > On 08/03/2018 09:08 PM, Andy Shevchenko wrote: > > Hi Andy, > > (...) > >>> +#define APU_FCH_ACPI_MMIO_BASE 0xFED80000 >>> +#define APU_FCH_GPIO_BASE (APU_FCH_ACPI_MMIO_BASE + 0x1500) >> >> Wow! Can we see ACPI tables for these boards? Care to share (via some >> file share service) output of `acpidump -o tables.dat` ? > > Please find acpidump [1]. FYI I'm PC Engines firmware maintainer > (firmware is coreboot based), so I can fix required things. I'm pretty > sure that ACPI tables are not in best shape. > Thanks for the dump, By the way I have seen that the driver https://github.com/torvalds/linux/blob/master/drivers/gpio/gpio-amdpt.c is using the acpi to get the mmio address. I think this is the way to go to get the acpi mmio address in the gpio-apu driver as well. What is the right "acpi_device_id" for the APU3? https://github.com/torvalds/linux/blob/master/drivers/gpio/gpio-amdpt.c#L146