Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7563974ybi; Thu, 1 Aug 2019 10:04:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdgFZaQTe3eIVbub40rLrlZoJLzTlVSMuU83PBf4Kq7NpaYeqRRLZNmvozSYlRmEcxhnX5 X-Received: by 2002:a62:1807:: with SMTP id 7mr53563788pfy.149.1564679068952; Thu, 01 Aug 2019 10:04:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564679068; cv=none; d=google.com; s=arc-20160816; b=F6jtPqRL/xG2/TGr/bi7aG9/a3bm9cqcKuhKmv6S8R153ZL7lWTLZyZyCK2ZJdl0qO E7hCRdPJxzM7nVkhHKgt5DqXbLsrC/Kg9PP8lWGc7GyGRtQXO2mAAPam9Ghg9rnnXooK BKZud3B2muReLKkpAxd/IErjkgpHej5rXPEc1vI2b1ws0VzceiBby6I9YyfrYEaRxQA0 oTKKd9djI2zT+VUvzX4BcMh0gybnH9hjP7LWnyh0eMjS89N+5Y6y/QPaZwyMxJxjA4me mtT4JlAOWLPtxKBqZJ8/tQphglur78wEHYfq+qRvHToMQpYeqZ8t2d0TkUkkFvgn1+CO jWsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ltf46IwQlfq1FBahfTxmlTfSaIAN4qkQArqQHX7t5zs=; b=M7u29UepAvjrWKJaW5+wAsT1n+OScAxgsqR1BnO2l1gl3hJGZUA3hyVHSqr6U7KWBW 0VV7IN6Lv016A5J8GXYHMyGouDrGgbJKiDlcREJkUHJV0CHDIZuj7eI969s7txFd0x7B ISTJWY+7XNeGxVxIeZaS9U02ixalS15c4HFs5YN/Vi6hWBSc/6ogtPilfiumyRQ2TNi5 TF/s84atNbyqnXYrk7dJmkPuV+P82YYz2rfOfnGubTJrFAts3/MPD1OrQgEt4XZD4upb va5DCt4mmKKmRWvMiv4xhFtOsvHQpjotuGyJ2qDySYnOW+3zSW8g8czq/axbMndsLJxB 4apQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A0jFp1Oq; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si2415287pgp.320.2019.08.01.10.04.12; Thu, 01 Aug 2019 10:04:28 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A0jFp1Oq; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731308AbfHAPB0 (ORCPT + 99 others); Thu, 1 Aug 2019 11:01:26 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:33621 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726017AbfHAPB0 (ORCPT ); Thu, 1 Aug 2019 11:01:26 -0400 Received: by mail-pg1-f194.google.com with SMTP id n190so2919968pgn.0; Thu, 01 Aug 2019 08:01:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ltf46IwQlfq1FBahfTxmlTfSaIAN4qkQArqQHX7t5zs=; b=A0jFp1OqpbASNBgS/jaAK+wEp6H+pvrecdn6c4F5TtqRW7BibGhS35S9BRhSmpK/tj PqXwIzhKQ/RBiFalPxtnhjXBSRrYFnD6DF6IK74QruSOw2fYAbygqpRrwOlO5I/3kJ7Z NHgfW9DLMBOb3KIi3BsLbHRPgXTaUHmVHb9XTlZg7/J3EOHxURaY3kZzo1k8eHjvpGp7 2AmjauA52aVaLav4bFG6UfP5SxQ09lKBmxj/DexLZegvN7RvXINtHHEy7UEmd2eLAVwd a81zY9Spm2fc1+ThdoiH7dYSTF/OvpsKbo1NSOWffRrXv61slYUvKJkAZ0BCIhQL/z1x kSlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ltf46IwQlfq1FBahfTxmlTfSaIAN4qkQArqQHX7t5zs=; b=Q+Nh/YFGezX8qQ7iRRtsRvpSSsYU97dDyxOj8kVahp0bv910ZZnckTLQ1YXwmZUBGC a/Ux6z27v8D5Ll3vU/1r33aSD+ZGzUgFZ2ytgdlWJmaMaH2THWC9F+L3HAC6VmC70jfx wxyefQfXg0C0oFTaa5BtGNTeyiCUp5Jfcdi4uPr40cHQ2ndZfLlP7u0Ri4MAbKOmGgEv Q50fY3YsZ5NdrcIBKAamiRphRTFfkBAMhNaZF6mVn13Pl8ba4v+QNN14VY38mBItvjB/ Z/MG2NevC/oX6XkDQQRKQog3gqCX5UAt6pdSMAzM76z/1upSodBGuRp1WJ40d8gtPKJX F57A== X-Gm-Message-State: APjAAAVT5p/3Ao7M91GEY5BVGP1R7HSqRQuh1kZ8hR4ezjqPIL6jgUQY flBHXqkFjNX6k+moKvAvD3XuAsQaTKk9qXtssX1DVbWN X-Received: by 2002:a17:90a:35e6:: with SMTP id r93mr9225297pjb.20.1564671685391; Thu, 01 Aug 2019 08:01:25 -0700 (PDT) MIME-Version: 1.0 References: <1564411166-23693-1-git-send-email-info@metux.net> In-Reply-To: <1564411166-23693-1-git-send-email-info@metux.net> From: Andy Shevchenko Date: Thu, 1 Aug 2019 18:01:13 +0300 Message-ID: Subject: Re: [PATCH] platform: x86: pcengines-apu2: wire up simswitch gpio as led To: "Enrico Weigelt, metux IT consult" Cc: Linux Kernel Mailing List , Darren Hart , Andy Shevchenko , Platform Driver Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 29, 2019 at 5:39 PM Enrico Weigelt, metux IT consult wrote: > > From: Enrico Weigelt > > The APU3+ boards have two SIM sockets, while only one of them > can be routed to the mpcie slots at a time. Selection is done > via simswap gpio. > > We currently don't have a fitting subsystem for those cases yet, > so just wire it up to a LED for the time being. While this isn't > really semantically correct, it's a good compromise. > Applied, thanks! > Signed-off-by: Enrico Weigelt > --- > drivers/platform/x86/pcengines-apuv2.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/platform/x86/pcengines-apuv2.c b/drivers/platform/x86/pcengines-apuv2.c > index b0d3110..adecd6a 100644 > --- a/drivers/platform/x86/pcengines-apuv2.c > +++ b/drivers/platform/x86/pcengines-apuv2.c > @@ -69,7 +69,8 @@ > static const struct gpio_led apu2_leds[] = { > { .name = "apu:green:1" }, > { .name = "apu:green:2" }, > - { .name = "apu:green:3" } > + { .name = "apu:green:3" }, > + { .name = "apu:simswap" }, > }; > > static const struct gpio_led_platform_data apu2_leds_pdata = { > @@ -86,6 +87,8 @@ > NULL, 1, GPIO_ACTIVE_LOW), > GPIO_LOOKUP_IDX(AMD_FCH_GPIO_DRIVER_NAME, APU2_GPIO_LINE_LED3, > NULL, 2, GPIO_ACTIVE_LOW), > + GPIO_LOOKUP_IDX(AMD_FCH_GPIO_DRIVER_NAME, APU2_GPIO_REG_SIMSWAP, > + NULL, 3, GPIO_ACTIVE_LOW), > } > }; > > -- > 1.9.1 > -- With Best Regards, Andy Shevchenko