From patchwork Mon Feb 12 07:43:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 10211929 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2154560153 for ; Mon, 12 Feb 2018 07:46:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13B6628BBB for ; Mon, 12 Feb 2018 07:46:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 079A128C01; Mon, 12 Feb 2018 07:46:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8E18028BBB for ; Mon, 12 Feb 2018 07:46:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=NgDsBtQNOXteCLsOSNYQPDMpxMdwapUr8jv/IZymHiQ=; b=c6V4rxYSajTOp4+fayl9plFKpV cIVxk0tKEOnkY1K64KV457b7K3Z3wP/3YLtkkV8ZU3zK446v2ImXCW98o6yegD8hcf5tBHDaf/CAa xnrUNIpxYNk+P5OC5uGXVCNDTwe0H+PT+EdZSJi32isflwFGYo7SJmu6s+M5EwI7yS7eTm369SG86 cQltYj2/mXab5g7FALJ4kYRZqPHL/H0AynGuyFQwIqa/eyIeLYkxyE49tGov6Jnou9L7lRfQbRGgc MEnW1QFi63PRyJREf+Ug64ANwQjUl1X1VALcVjYhC/MecMTkSRqh9Gmf5WjXzhUg7SWWgF4rH4x80 XJ+rD1tw==; Received: from [198.137.202.133] (helo=bombadil.infradead.org) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1el8os-0000NE-Md for patchwork-linux-arm@patchwork.kernel.org; Mon, 12 Feb 2018 07:46:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=NgDsBtQNOXteCLsOSNYQPDMpxMdwapUr8jv/IZymHiQ=; b=Rs1rTVneuBNjLbX8htI1PsfcJZ ipifVypxFIKlTzrj2zetNg4wa/lHLIFc0xo3ctlu3qw2lGfhUswE0VfV8U0dAc7vXvAHuR/iatb2m RR1OaIHV+55QshkKi1rjQpKqY5inVULj/8mwBucVoM53dYFFapRPXZf01ZrmNbYJHGHU6p+XM1Y1J Xn26huTULSWqG86Gg7Fm2g3GbcHC7LMVDc0lvXhI6/9X2IgfauayM/DY/W8cGgyEWGuWPx+KtBJYs vByGEPKnFMjSEpKSTw2antfOvwgv8+woIEbwn82W8NCrz+PcKia3ptdT5QdgQ51W5ZoYvKfvP1W04 Hv0yMhLg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1el8oj-0007iA-6U; Mon, 12 Feb 2018 07:46:25 +0000 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1el8mo-0003V6-Fk for linux-arm-kernel@lists.infradead.org; Mon, 12 Feb 2018 07:44:27 +0000 Received: by mail-pg0-x242.google.com with SMTP id j9so5925801pgv.3 for ; Sun, 11 Feb 2018 23:44:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=jrdFpJcb/o4SiOAA6jo+Wkcy7DEVVmg0dVRu8DZUy4E=; b=OUTypOUlJVD8Rq/cdGZpNhaYapu6COXxkh3UnNGp0Y6CUFkd0Xwuo6+3vGAkhXgygE 2/O5dF7LY8uq4XJlKLK34zkOsH4naYiHQY7KWqwLvleHn6u3XOQnWzV/K1f3LrXBtYRS /0euyb0QN0Ua4qMo0a6t0bZR42yyVEymlfraibWe4RXbjfUxiIIS0xu8dcOCvOdL2EFF t4jFeRV7UC3sxJ8vKLYS2HC6W14/Y7xPlayyBOY1070ynkoL9WNFxRlbLnuOKon4BtTG P9LiG8DkRyhTIKEPf0NKmZ0b5j2M6LUJmfD6Ru314xu7YVL4kZwZVgcoTjNscOymieZp PigA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=jrdFpJcb/o4SiOAA6jo+Wkcy7DEVVmg0dVRu8DZUy4E=; b=iG0BCp5rc6+pBUt5acTUxaxgMRKW9IXqg3kAIyC9Z+nVz7zkUPeDiPC+ZXKg/KIVL1 rakkoxTR047b8JSDZDDsoAU1ZNgGFp+OhFzBZFAtXPwo8xfe+2Kp42yT2MLPSLd+93Hj 45kGHLAGu8B+Oac8vi+79Ph+DznZ/WkO28xGE0tSeI+O+I/MMW9UIOYyPeBgIdmQhLc/ jG1Ub5S3ngEOvXmbv6rFBKsjaj/wuDZIs9zkxl4PzlzvY0ELrjjMuLxByBkYJjRS8/JG oPyOfemrTxBv5hCIzXpttBXbyaypWQ29Y8MuBaFhK6C6Y3ZSZl5FBjN57OQV1c0htRXV 7Itw== X-Gm-Message-State: APf1xPC9gaxH7d7+dQrJA7fRKLWimP2oSVftqONMT62iLhMjQzUqArgT sQScpSa9mjWRRGxzEpOWttkHmqSQJ78= X-Google-Smtp-Source: AH8x225R1Whgksdt97z8M3kht+fjXP9La7IelsKUQ2ydKTbzuACxOvyTQPeE389Vz2aWl/6RRlG91g== X-Received: by 10.99.96.206 with SMTP id u197mr8502101pgb.261.1518421455426; Sun, 11 Feb 2018 23:44:15 -0800 (PST) Received: from aurora.jms.id.au ([203.0.153.9]) by smtp.gmail.com with ESMTPSA id j25sm31948087pfk.38.2018.02.11.23.44.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Feb 2018 23:44:14 -0800 (PST) Received: by aurora.jms.id.au (sSMTP sendmail emulation); Mon, 12 Feb 2018 18:14:08 +1030 From: Joel Stanley To: linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, Joel Stanley Subject: [PATCH 5/6] ARM: dts: palmetto: Add LEDs and GPIO keys Date: Mon, 12 Feb 2018 18:13:24 +1030 Message-Id: <20180212074325.23436-6-joel@jms.id.au> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180212074325.23436-1-joel@jms.id.au> References: <20180212074325.23436-1-joel@jms.id.au> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Jeffery , Benjamin Herrenschmidt , Lei YU , Jeremy Kerr MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP These describe the front panel LEDs that are present on a Palmetto chassis, and the checkstop GPIO that comes from the Power8 CPU to indicate a host error. Signed-off-by: Joel Stanley Acked-by: Andrew Jeffery --- arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts b/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts index 5115247e5e59..2a4a355a779d 100644 --- a/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts +++ b/arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dts @@ -2,6 +2,7 @@ /dts-v1/; #include "aspeed-g4.dtsi" +#include / { model = "Palmetto BMC"; @@ -26,6 +27,32 @@ reg = <0x5f000000 0x01000000>; /* 16M */ }; }; + + leds { + compatible = "gpio-leds"; + + heartbeat { + gpios = <&gpio ASPEED_GPIO(R, 4) GPIO_ACTIVE_LOW>; + }; + + power { + gpios = <&gpio ASPEED_GPIO(R, 5) GPIO_ACTIVE_LOW>; + }; + + identify { + gpios = <&gpio ASPEED_GPIO(A, 2) GPIO_ACTIVE_LOW>; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + checkstop { + label = "checkstop"; + gpios = <&gpio ASPEED_GPIO(P, 5) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; }; &fmc {