Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9176726ybi; Wed, 10 Jul 2019 06:01:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxBe7bXt272DKZvf9jnmf/NesXza9zRLUHozGuSLWx74UPBkQ8/bfZfwg7D904QFXNC7ag+ X-Received: by 2002:a17:902:2d01:: with SMTP id o1mr39544838plb.105.1562763693411; Wed, 10 Jul 2019 06:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562763693; cv=none; d=google.com; s=arc-20160816; b=vzKSIghFzOd2SWUCWSs6tnT6wF4LDcyTPny/a3dqDfhB1loDfwPbodg50o0+CQuJ9G O9Lv8l5hsi5BoRk5FaBGglXGQ6LsnO0ra51i/YD93M33giRKOCgla9oDq1fqSGCnKd3E 8BvzdM91arRDhCaaw+XfPRzpCeFxtXz8HJgRpA3OltQsxCRiRoeNnNrM58Dr9ByrLb5t uFbjN0o/RpACW2YsvV2j3Kv8WMrLzufSfsKGPjSDD2kO/p3rzHiSkkjzl7lRCUZJ8Lgi wA1K4BphX6hBQAzb2QhhDnn3PXfmJ9Gm+eZ6xT2TYPt137Gn/J1+FVvgCsFXagjDDQPd mk7Q== 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; bh=ZmdSt8FYC+kQNFRbbNZMQg3HE1GliefyaACb0kVIkn0=; b=xDWy+/VaRGIRJGFVAJa/NqQ22hDWNDI6McxBt/EGHyp+FnCQCinYuy454EYl+Ji9mq B+dCNnOo6C9e9XWK7DKo7zjr7dnZStSCuw3etdPcZRkkEH/qQGXzBUxODS7iNphFlK83 JL12U10dSFiGMz4SCI3aRKuPW/FGkTGts8iKdDPRRllt/dL0Uo4GT+9CgXY09NH5GHJ/ Na7TJEQauz00MP8hrF0PdTGIQ5EY6KXyj3pTxWbC8nn30qb3FMrfrL3OeHg5+i4y7SP5 0/kAPzId7BQmM5xAGB/2hgu4RWSi5ekIRB5oO7Kid2JbMYnBwJFuj0ar59wScSZW56We Edxw== 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 v22si2246721pfe.275.2019.07.10.06.01.15; Wed, 10 Jul 2019 06:01:33 -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 S1727152AbfGJMyF (ORCPT + 99 others); Wed, 10 Jul 2019 08:54:05 -0400 Received: from host-88-217-225-28.customer.m-online.net ([88.217.225.28]:49022 "EHLO mail.dev.tdt.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725956AbfGJMyF (ORCPT ); Wed, 10 Jul 2019 08:54:05 -0400 Received: from mail.dev.tdt.de (localhost [IPv6:::1]) by mail.dev.tdt.de (Postfix) with ESMTP id 478B5216E4; Wed, 10 Jul 2019 12:54:03 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 10 Jul 2019 14:54:03 +0200 From: Florian Eckert To: "Enrico Weigelt, metux IT consult" Cc: Andy Shevchenko , Eckert.Florian@googlemail.com, "Enrico Weigelt, metux IT consult" , Darren Hart , Andy Shevchenko , Platform Driver , Linux Kernel Mailing List Subject: Re: [PATCH 0/3] Update pcengines-apuv2 platform device In-Reply-To: <4b43316c-3e05-0ce9-3ada-db22996205b9@metux.net> References: <20190704090205.19400-1-fe@dev.tdt.de> <4b43316c-3e05-0ce9-3ada-db22996205b9@metux.net> Message-ID: 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.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 On 2019-07-08 21:45, Enrico Weigelt, metux IT consult wrote: > On 04.07.19 15:39, Andy Shevchenko wrote: >> On Thu, Jul 4, 2019 at 12:02 PM Florian Eckert wrote: >>> >>> This patchset adds the following changes to this pcengines-apuv2 >>> platform device. >>> >> >> Before doing anything to this driver, what is the plan for previously >> upstreamed: >> >> drivers/leds/leds-apu.c > > Only supports the three front LEDs, nothing else. (we've got more gpios > that are not LEDs, eg. the front button, simsw, ...) > >> arch/x86/platform/geode/alix.c > > completely unrelated - very different chipset. > > > --mtx I'm going to sum it all what we have ALIX family boards (https://www.pcengines.ch/alix.htm): CPU -> AMD Geode LX CPU Stays as it is different because it has a different CPU APU family boards (https://www.pcengines.ch/apu.htm): CPU -> AMD G series T40E APU Remove the related APU2 family stuff from the LEDs driver https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/leds/leds-apu.c this will be handled in the future by the platform device https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/platform/x86/pcengines-apuv2.c The other GPIOs are not supported by this platform. Only LEDs are supported for now. APU2 family boards (https://www.pcengines.ch/apu2.htm): CPU -> AMD Embedded G series GX-412TC Add the additional mpcie reset pins and add additional board descriptions to https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/platform/x86/pcengines-apuv2.c?h=v5.2#n61 so we can distinguish between the APU2,APU3 and APU4 boards of the APU2 board family. My research in the pcengines documentation shows the following GPIO pins for the individual boards which we can support. APU2: front-led1 front-led2 front-led3 front-button mpcie2_reset mpcie3_reset APU3: front-led1 front-led2 front-led3 front-button mpcie2_reset mpcie3_reset simswap APU4: front-led1 front-led2 front-led3 front-button mpcie2_reset mpcie3_reset Until now we support aAPU2 and APU3 and treat it the same way. But the APU2 does not have a simswap. Kind regards Florian