From patchwork Mon Jun 7 03:12:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 12302463 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 318D8C4743F for ; Mon, 7 Jun 2021 03:17:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EDE2261208 for ; Mon, 7 Jun 2021 03:17:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EDE2261208 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=N2YP28//N2UkXJpgXDZ+C3mQ5X3ThY1Cf0dtjooqHs4=; b=N88p38SlLHaqN7 WbP5b2WCd5DcekzSz3Zx1C7LqZh6K3V+FvaLgu+QWEWj15c+/fyboBouTjww0+DWwUsbixF9CXt3/ OeFLNNFmcTwDT/q3s2ffUhgh/icQKLL9VT44O1SE0CiYLJgnIwXsbLcgh2wNCZY2iskb8g225/SBI CPx1VSUTg4FwvvdXEpWt2YZPlxvRN/BBSGIP3deUSGbQY0oiUTPWX9ovRgiPFbsB+Hs1DEcIMVmzL Z7uYfTHKMSDCmGoPRwbbF6p3FocENNXw+PX6jOSIjiZy3e5dcoUgEMgpYB3GVlzk2u9DD6pTB1kl8 97+l1Ij2kaD3fJ9qgNGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq5hu-001Jkd-5v; Mon, 07 Jun 2021 03:13:42 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq5hk-001JjE-DI for linux-arm-kernel@lists.infradead.org; Mon, 07 Jun 2021 03:13:33 +0000 Received: by mail-pg1-x52a.google.com with SMTP id j12so12738459pgh.7 for ; Sun, 06 Jun 2021 20:13:32 -0700 (PDT) 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 :mime-version:content-transfer-encoding; bh=Rdd1cyo8NhjciIDXNShJmJIc+MDEMKHy4XucTuV1PW0=; b=oeREX2FL6Jr5YwFBAZ0rK0YzuywG1R1FseFrk4aDul7Jl5S5TcZW2i3cBTnby+M587 A3gpEs45HvDoz9KzRscteG/gcScJXWS+TAj2rWaymB1r9uPtbNdMu0dfHOYxlCC4jl6u bWNaeF9WxW7NRH0IGts9sYYnq6NmR1Br5MGrjwT4ICvraYiLjcdxwq5ywDzaD773OLuW D8IWw6ME/57ft5UjJ9cC1ag40fGJZc4p5Db5LZMWPE+AjL+F+XTPIflGZs8Q1z87n+Q4 eHwXPpV4jxJ0k/WQqtYLNJFDewE67SSn9EZokwXd6Pb6bpgy3B/eaq1fLxG0xP6QWk5o LQxg== 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:mime-version:content-transfer-encoding; bh=Rdd1cyo8NhjciIDXNShJmJIc+MDEMKHy4XucTuV1PW0=; b=CCacqKOhKoOvMPtQJOgMxxiRvqK+DnM4dLPSeDCDJYNKQzvONKyS5aIfrV3SFz8NV/ cJwiZ8UmyCwBOgQYviMupiLA1KJMPaXkbQ7UApE2oaMzmQgGv4i3zRxNP+MW+uz2hq0y tfxBVjoR/22m/QFlImBXgBdfVE5Nrs65qbHVUIjU5LJmuCIKHFSR00LwDTs53LyGXy46 fnSjNySuzzw2EM6SldnkeZ5LBNDLFckAhkzqRl4fNqAJm9Odobk2Wjkrf4xrZFvqMoJ7 YVqhs9bEB9R+29J+l0umAF6KTebUnIRCbB/aNB1v14HBJKZgVgkDRwk2QFq6mZ+xndvt raow== X-Gm-Message-State: AOAM5311RDScZ7EUNX4oz2munde8nYJB9RtmQFkY9gUV9rfoVPFAW77O pTgVD0NKaOmDYkLDB68OBg8= X-Google-Smtp-Source: ABdhPJy5CLAszmZnDH7QVcxxFYC645JtYLY3vQ7R2p5ghWSb/PRxRDr9pvdc909BAiiJzqwml8qmHQ== X-Received: by 2002:a05:6a00:b83:b029:2ec:7400:ae59 with SMTP id g3-20020a056a000b83b02902ec7400ae59mr15364417pfj.11.1623035611618; Sun, 06 Jun 2021 20:13:31 -0700 (PDT) Received: from voyager.lan ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id x33sm5763751pfh.108.2021.06.06.20.13.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 20:13:30 -0700 (PDT) From: Joel Stanley To: Andrew Jeffery , Eddie James , Brad Bishop Cc: linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, Vishwanatha Subbanna Subject: [PATCH 3/6] ARM: dts: aspeed: everest: Add pcie slot indicator leds Date: Mon, 7 Jun 2021 12:42:56 +0930 Message-Id: <20210607031259.475020-4-joel@jms.id.au> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210607031259.475020-1-joel@jms.id.au> References: <20210607031259.475020-1-joel@jms.id.au> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210606_201332_477858_9EFF0B63 X-CRM114-Status: UNSURE ( 9.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Vishwanatha Subbanna These are pcie slot indicator leds driven by PCA9552. Signed-off-by: Vishwanatha Subbanna Signed-off-by: Joel Stanley --- arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts | 123 +++++++++++++++++++ 1 file changed, 123 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts index 03c26812c909..aa960186796d 100644 --- a/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts +++ b/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts @@ -721,6 +721,129 @@ eeprom@51 { }; }; }; + + pca_pcie_slot: pca9552@65 { + compatible = "nxp,pca9552"; + reg = <0x65>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + gpio@0 { + reg = <0>; + type = ; + }; + + led@1 { + label = "pcieslot-c01"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@2 { + label = "pcieslot-c02"; + reg = <2>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@3 { + label = "pcieslot-c03"; + reg = <3>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@4 { + label = "pcieslot-c04"; + reg = <4>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@5 { + label = "pcieslot-c05"; + reg = <5>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@6 { + label = "pcieslot-c06"; + reg = <6>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@7 { + label = "pcieslot-c07"; + reg = <7>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@8 { + label = "pcieslot-c08"; + reg = <8>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@9 { + label = "pcieslot-c09"; + reg = <9>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@10 { + label = "pcieslot-c10"; + reg = <10>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@11 { + label = "pcieslot-c11"; + reg = <11>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + gpio@12 { + reg = <12>; + type = ; + }; + + gpio@13 { + reg = <13>; + type = ; + }; + + gpio@14 { + reg = <14>; + type = ; + }; + + gpio@15 { + reg = <15>; + type = ; + }; + }; }; &i2c7 {