From patchwork Mon Jun 7 03:12:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 12302461 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 41F45C4743D for ; Mon, 7 Jun 2021 03:17:39 +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 07DD660240 for ; Mon, 7 Jun 2021 03:17:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 07DD660240 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=5y0ZOJ7XYdIVqY7GR7+ZXOWVQ08wpHIK03DALTbbD/I=; b=Ay+DIMpMu5IMVm eu1AT9miGSDnfCA0ffMn67JhLcg8m0NeXH0LzOE1I+6HHDpPaikXJ906M+n1lqt6pPgam674R2Bcf izWanUoA0zSEuz2atO1zkntq9vgwQrroFui+z1VpW+X2m3XhJDQIbqTOhAQwaYa8sbxXLSQpW92QF wOXwa+pocOla0eZx5kAFU/AlLiY1KrrCo0vvNt5LVyJKep+klhNeIZPFREKU/+ZeE9wXm18LEYg3d /8OTLAFVzzRtu5ILnn5CmyRTjdDAbSctIXDUPgIRr6DBMcclTPX/laDZ82tGfwCQ/5MUGMij5cHKe f4bfuszXg1Cq9FekXaEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq5hi-001Jj9-1H; Mon, 07 Jun 2021 03:13:30 +0000 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq5he-001JiU-40 for linux-arm-kernel@lists.infradead.org; Mon, 07 Jun 2021 03:13:27 +0000 Received: by mail-pg1-x52f.google.com with SMTP id r1so12735081pgk.8 for ; Sun, 06 Jun 2021 20:13:24 -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=tja2eEKRLdtZx1+yDf5N9kFI3VpM2P40hbwrYRqxeDs=; b=b13FwupJemHzLwD8SPxER+JyLyjyeUH0Na+gXlXsT3Am6A9NH6NPAJ6nMvPhoG+Nij lufeUeH8EW+J8Cu84ZFFuFwsxNT2QgOljEQXrntX+ANvbmWQoVE2BOl4RtXcl+kL7fUZ 2IR9oiA7Ir1Rnfk3YcivCzROpaGucauNdLxBQKZvkhEX5XwLthSfBXtupAZ5Z5aZqzTk 2c0fAkRPlkStAKGs37rRNEsDvMUQvEVB2RmH7rMf1JYg6IzLaeriMA2I7Zt3m2qKHvWD LWwCkqsdI3vkXLSIyPGVPNMtyulHBSBujjQUwn7QC2jEcU7MN6ZydXd89o00CvOa3UVu 5g+g== 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=tja2eEKRLdtZx1+yDf5N9kFI3VpM2P40hbwrYRqxeDs=; b=c4bbBTTmN22iPD2MM9BNgEI/aSXkiEYrrcw2ujVTzqz/7zAEYwiSazMpbySjt1RJLa kGfAchOEzuqGXqPMbdw5HOfNcKSJckM1vmRdgzpY8V2K2Qp2ncYu1zuoRd1GhsyHFecb Vz8echpc+a6zPUHZVVohRQO67k7eHCCVepyKKINncEBkIm7X9n5eLtGAktADQc/MJM3/ gHeV8xXp0JCa2r0SiILm681QWZCEIDrFKMWvVv90b/5fjsKjy9F5WhaJi/R8/ZEvVol3 rRNYd6ZhoMlqzRU27THkWEjf09arzLUsLSwZmmiA7C427w00HKhCuy0JmIjIyjsaGGdt kOzA== X-Gm-Message-State: AOAM531BpQkKE3VtvbNHl/nloE9poNxhaTEEqhadVBS2TLSd/s2ALL66 vM8Bw5RZbaN+qBo/WprNu+Q= X-Google-Smtp-Source: ABdhPJwoSjxJE0jdTVPwIAGkiR3+9aZa/+hKhDDsbd6B+3V84okEaeYiIxajeWL++e9FCvHscWyRKg== X-Received: by 2002:aa7:96d0:0:b029:2e9:fea1:c9c1 with SMTP id h16-20020aa796d00000b02902e9fea1c9c1mr14997535pfq.67.1623035603821; Sun, 06 Jun 2021 20:13:23 -0700 (PDT) Received: from voyager.lan ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id x33sm5763751pfh.108.2021.06.06.20.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 20:13:23 -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 1/6] ARM: dts: aspeed: everest: Add system level indicator leds Date: Mon, 7 Jun 2021 12:42:54 +0930 Message-Id: <20210607031259.475020-2-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_201326_204506_C6E03222 X-CRM114-Status: GOOD ( 10.03 ) 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 the system level indicator leds that are driven by PCA9551 connected to the Operator Panel. Signed-off-by: Vishwanatha Subbanna Signed-off-by: Joel Stanley --- arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts | 42 ++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts index 2ddd10e93a80..6a17b75b5d5b 100644 --- a/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts +++ b/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts @@ -890,6 +890,48 @@ eeprom@50 { compatible = "atmel,24c32"; reg = <0x50>; }; + + pca_oppanel: pca9551@60 { + compatible = "nxp,pca9551"; + reg = <0x60>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led@0 { + label = "front-sys-id0"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@1 { + label = "front-check-log0"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@2 { + label = "front-enc-fault1"; + reg = <2>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@3 { + label = "front-sys-pwron0"; + reg = <3>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + }; }; i2c14mux0chn3: i2c@3 { From patchwork Mon Jun 7 03:12:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 12302471 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 0980FC4743D for ; Mon, 7 Jun 2021 03:18:25 +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 BD4A860240 for ; Mon, 7 Jun 2021 03:18:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BD4A860240 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=IVRDDmz3Dz7KPw5ZZK9VOnmExznAtyyxDB9rRKqdBV0=; b=WG+FjshrqGKXZp sgqODnUwySxsn3F+Xj60NUsYryOMK3s6X1W35/oN8ffccwahz7c+stMgMfApJeKCrS0gPcBzvEQRE Wdan8rSC8rlNFCCEzzsICzqWoXqPyZK7wlzoBwqkBA4dXlMmCHunmjriNKSIWumUaJNFXWBsRjNQL +hqjw15EJ9fKombYPTPq+5zcQbdgW/QMazFYk6MWZFErAM/M2qB/YxYxTytr3+aFMlRu/Ftb0gipS dskHEsY1m7QJKeexY9grBAMcFp9W3Eq9J6HPXkfIjFKh/ms/uO0IrvLDC23DKZUYq72XFf4Ys0Qs0 qfTRFvtG5/+J7p/e7LFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq5im-001JxH-M0; Mon, 07 Jun 2021 03:14:36 +0000 Received: from mail-pg1-f177.google.com ([209.85.215.177]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq5ie-001Juv-Gb for linux-arm-kernel@lists.infradead.org; Mon, 07 Jun 2021 03:14:29 +0000 Received: by mail-pg1-f177.google.com with SMTP id q15so12728216pgg.12 for ; Sun, 06 Jun 2021 20:14:28 -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=ctdDGDWzUFSI032y96oflocptITS0jwu9qlP3dNJZfU=; b=IkUpkw/4K698JCUeyV2PlF1q56sIjEU7VzYVzRNK4GA1KEdzSEaK3QY+ziCAxmUinU txs5iZxZYJXOB5v/wFG1SviIhuK56K7Q9jIVLuEcpyhLGGCRfcJGDNPz/HscfbCnyGs6 Zsw46nf92yv+PmofYRyemHjn1JNydhkmi21vX+0NTTSqIZ1UoR3leeMzwCHvSe2Sj1DK i9kIZ23CnLcB9TBm6ZFHl17kS9JHSEOfR/5Qx9aZKAPP5jnlHLYuniiV2Sj88t56o2m5 2bYlE1RpPPFDTxo43UhXfrvywGNdZgPOWmmsNZTfy9t/sv2tsoFT0htv+SAH9numYaSK 92/Q== 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=ctdDGDWzUFSI032y96oflocptITS0jwu9qlP3dNJZfU=; b=uLPDMPixagxhwm0hSplkQ/c2byqmk6u+OESzAll6rhHRi7FQUh7ihNNdJybBbzjPAZ XoA6exuXb+ynfqMFBntQqJOsQN85zgOgWYiqOxSW/SEoYXkJv+XHCIo1FkkxzeLHIJpV 2eu5yEsULbXbQeZaoSu9JzIBY/26bcKLF2+VGegUAE6fodW2Fkl8M8SW6IbsgUTY+gFf 9aNwqVJ4Su7teNZbXA5iiMmC2yR/XvKsWAVovK9TjaK1GDuNe0j8oJfGVTRYYgxzPXcw wPkl3pdsrYRL3l7rLinoph1OnEEPuAVvHaE/A+y3C0HZT+l9MfOsk2DLyjfPHG4fMJme C1iA== X-Gm-Message-State: AOAM530KAXVMYeJGYcsv56xERMX00Chi4QsUD+eMFvVoIJLsrYWSXoAu FES3mOTM0RueOj4ONncaUQk= X-Google-Smtp-Source: ABdhPJzMx+ahqjdBDlwRql1smD7YZqwBJZ+kFPZIZZASf0UrwlxyF1lHB9Bo8bkMUIlblior1uTvDw== X-Received: by 2002:a63:1021:: with SMTP id f33mr1099661pgl.236.1623035607844; Sun, 06 Jun 2021 20:13:27 -0700 (PDT) Received: from voyager.lan ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id x33sm5763751pfh.108.2021.06.06.20.13.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 20:13:26 -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 2/6] ARM: dts: aspeed: everest: Add nvme and fan indicator leds Date: Mon, 7 Jun 2021 12:42:55 +0930 Message-Id: <20210607031259.475020-3-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_201428_591176_78DC2CB2 X-CRM114-Status: GOOD ( 10.01 ) 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 the indicator leds for nvme slots and fans and are driven by PCA9552. Signed-off-by: Vishwanatha Subbanna Signed-off-by: Joel Stanley --- arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts | 132 +++++++++++++++++++ 1 file changed, 132 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts index 6a17b75b5d5b..03c26812c909 100644 --- a/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts +++ b/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts @@ -970,6 +970,138 @@ fan@3 { }; }; + pca_fan_nvme: pca9552@60 { + compatible = "nxp,pca9552"; + reg = <0x60>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led@0 { + label = "nvme0"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@1 { + label = "nvme1"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@2 { + label = "nvme2"; + reg = <2>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@3 { + label = "nvme3"; + reg = <3>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@4 { + label = "nvme4"; + reg = <4>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@5 { + label = "nvme5"; + reg = <5>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@6 { + label = "nvme6"; + reg = <6>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@7 { + label = "nvme7"; + reg = <7>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@8 { + label = "nvme8"; + reg = <8>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@9 { + label = "nvme9"; + reg = <9>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@10 { + label = "fan0"; + reg = <10>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@11 { + label = "fan1"; + reg = <11>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@12 { + label = "fan2"; + reg = <12>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@13 { + label = "fan3"; + reg = <13>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + gpio@14 { + reg = <14>; + type = ; + }; + + gpio@15 { + reg = <15>; + type = ; + }; + }; + pca0: pca9552@61 { compatible = "nxp,pca9552"; #address-cells = <1>; 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 { From patchwork Mon Jun 7 03:12:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 12302465 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 44125C4743E for ; Mon, 7 Jun 2021 03:17:47 +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 0FCDB61208 for ; Mon, 7 Jun 2021 03:17:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0FCDB61208 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=Nkz177MwQBHL2t7m1G3tjb6SGBGFqBo7EZU9Q2SbbEY=; b=Zfw/7nQgFbZO/t 0+cd6I4XfYdYyxP16udskAIjKWYoiQiQpi58NnKJLXdFceEjBrk0dm8ke3KO76/yR3MvBdsqZCirh jAV1wCjJbtUltgdV94L4v4FPKtDZhMC2yDj5xJTV2tY8uVrd1HLcp2+UbZwyO6wtEQRd9QhZjztaF azUQJfKGQ1Kue8r5z0eguQFetgI8mcT3DKR0cDvsrjV1FQTLIYYku3jW/DSubDvFklSBHZTuGJidk UTYI+GQddZQ6wWK6sPEn1hFNS1XKrGK6KXuMGw6d7ddjjlMhPr0hh6uwPKd421X9zJRr3WTCddQhO Amr8jR6OVIdiAkvbri7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq5i5-001Jlt-2M; Mon, 07 Jun 2021 03:13:53 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq5ho-001Jja-FU for linux-arm-kernel@lists.infradead.org; Mon, 07 Jun 2021 03:13:38 +0000 Received: by mail-pj1-x1032.google.com with SMTP id ei4so8930025pjb.3 for ; Sun, 06 Jun 2021 20:13:36 -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=cdmKx+JU3TspIBxYPYaHMRSUsnXAAcBEFIOScceogkQ=; b=SlspYJZsfa4WBDrLKzEblV6uvjh1yMoi6wpbzVZAPTmFvJjTGm0nw/vpMavZvxUdDa SymRNTy23o6AcVOXNmbCDqreKwb+d8Ic0sLycZnh3sNzLoW1cD8z6kBdxvIUFwbhG791 dPv1UlqmOC+B0A0vi8KNfoHVg9qfGK5Sv8NiTzqTySSJBfTkjeVVl2smg2aGFykA9o6D FffNaZJVQWUI9Ai/Yy5kUO6cAgVHxKUPF5Hc3tTSeEbDOZq0+Q1av2nQziTAD07135VP 2dSry5DfJb8xRGEQHW5QPmJAYJt+v5k2YN0lLM1/JxfHuSRtYuMQzVBSVBBAFYaQp6Fo d5FA== 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=cdmKx+JU3TspIBxYPYaHMRSUsnXAAcBEFIOScceogkQ=; b=UmIcGz9NTWR4xuBrIEp4gR4kuDoqIotkZxuSPtUWxAzXrRty1sxUKro5sw1Cq62vhj c1jEvVhNTMm9DmwlLbnjwq6Xgu3BNizBytNYv+F+bvLnyTR/s1tGNEcISfOFEFAy6OqA vwOMEREzjBIL9m12sqLVMAuxtcqAXfsWHlFMaUEfoS0+lQDARk70Wj7LovluAkh9M6+r v3jjMPadPfqI0KZcvYQ4X1CPJBrY9lFBx1MgRkT+WtouV2YDClrlA+Ss/s1cNdF3BwGC oLfceJr7sIc9MOl7ZLX/niN46wvL6hzV180+15cov/rKfS/NTYep2csZksJk/D2ozTbD UK/A== X-Gm-Message-State: AOAM533rgHP2wKTdttUPmWP4CWzIiVckIjDo4gIBLJdOb74xuNhN4AVg 1ObV4R47lnYLDtHFosG0ZlQ= X-Google-Smtp-Source: ABdhPJzcNhGYD0rHQ3G1DbXUz3397gP9d3R7Dzl6MsmFcrcfBP9HWRIkFVTkW5CeYv58PqQqD6hAXA== X-Received: by 2002:a17:902:ea02:b029:111:75b5:439f with SMTP id s2-20020a170902ea02b029011175b5439fmr6356704plg.85.1623035615605; Sun, 06 Jun 2021 20:13:35 -0700 (PDT) Received: from voyager.lan ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id x33sm5763751pfh.108.2021.06.06.20.13.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 20:13:34 -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 4/6] ARM: dts: aspeed: everest: Add dimm indicator leds Date: Mon, 7 Jun 2021 12:42:57 +0930 Message-Id: <20210607031259.475020-5-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_201336_553628_37137819 X-CRM114-Status: UNSURE ( 9.96 ) 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 dimm indicator leds driven by PIC16F882. Signed-off-by: Vishwanatha Subbanna Signed-off-by: Joel Stanley --- arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts | 552 +++++++++++++++++++ 1 file changed, 552 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts index aa960186796d..db8555e7abf9 100644 --- a/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts +++ b/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts @@ -848,6 +848,558 @@ gpio@15 { &i2c7 { status = "okay"; + + pic0_dimm: pca9552@31 { + compatible = "ibm,pca9552"; + reg = <0x31>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led@0 { + label = "ddimm0"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@1 { + label = "ddimm1"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@2 { + label = "ddimm2"; + reg = <2>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@3 { + label = "ddimm3"; + reg = <3>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@4 { + label = "ddimm4"; + reg = <4>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@5 { + label = "ddimm5"; + reg = <5>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@6 { + label = "ddimm6"; + reg = <6>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@7 { + label = "ddimm7"; + reg = <7>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@8 { + label = "ddimm8"; + reg = <8>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@9 { + label = "ddimm9"; + reg = <9>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@10 { + label = "ddimm10"; + reg = <10>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@11 { + label = "ddimm11"; + reg = <11>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@12 { + label = "ddimm12"; + reg = <12>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@13 { + label = "ddimm13"; + reg = <13>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@14 { + label = "ddimm14"; + reg = <14>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@15 { + label = "ddimm15"; + reg = <15>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + }; + + pic1_dimm: pca9552@32 { + compatible = "ibm,pca9552"; + reg = <0x32>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led@0 { + label = "ddimm16"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@1 { + label = "ddimm17"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@2 { + label = "ddimm18"; + reg = <2>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@3 { + label = "ddimm19"; + reg = <3>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@4 { + label = "ddimm20"; + reg = <4>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@5 { + label = "ddimm21"; + reg = <5>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@6 { + label = "ddimm22"; + reg = <6>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@7 { + label = "ddimm23"; + reg = <7>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@8 { + label = "ddimm24"; + reg = <8>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@9 { + label = "ddimm25"; + reg = <9>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@10 { + label = "ddimm26"; + reg = <10>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@11 { + label = "ddimm27"; + reg = <11>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@12 { + label = "ddimm28"; + reg = <12>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@13 { + label = "ddimm29"; + reg = <13>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@14 { + label = "ddimm30"; + reg = <14>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@15 { + label = "ddimm31"; + reg = <15>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + }; + + pic2_dimm: pca9552@33 { + compatible = "ibm,pca9552"; + reg = <0x33>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led@0 { + label = "ddimm32"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@1 { + label = "ddimm33"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@2 { + label = "ddimm34"; + reg = <2>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@3 { + label = "ddimm35"; + reg = <3>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@4 { + label = "ddimm36"; + reg = <4>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@5 { + label = "ddimm37"; + reg = <5>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@6 { + label = "ddimm38"; + reg = <6>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@7 { + label = "ddimm39"; + reg = <7>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@8 { + label = "ddimm40"; + reg = <8>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@9 { + label = "ddimm41"; + reg = <9>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@10 { + label = "ddimm42"; + reg = <10>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@11 { + label = "ddimm43"; + reg = <11>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@12 { + label = "ddimm44"; + reg = <12>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@13 { + label = "ddimm45"; + reg = <13>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@14 { + label = "ddimm46"; + reg = <14>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@15 { + label = "ddimm47"; + reg = <15>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + }; + + pic3_dimm: pca9552@30 { + compatible = "ibm,pca9552"; + reg = <0x30>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led@0 { + label = "ddimm48"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@1 { + label = "ddimm49"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@2 { + label = "ddimm50"; + reg = <2>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@3 { + label = "ddimm51"; + reg = <3>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@4 { + label = "ddimm52"; + reg = <4>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@5 { + label = "ddimm53"; + reg = <5>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@6 { + label = "ddimm54"; + reg = <6>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@7 { + label = "ddimm55"; + reg = <7>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@8 { + label = "ddimm56"; + reg = <8>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@9 { + label = "ddimm57"; + reg = <9>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@10 { + label = "ddimm58"; + reg = <10>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@11 { + label = "ddimm59"; + reg = <11>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@12 { + label = "ddimm60"; + reg = <12>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@13 { + label = "ddimm61"; + reg = <13>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@14 { + label = "ddimm62"; + reg = <14>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@15 { + label = "ddimm63"; + reg = <15>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + }; }; &i2c8 { From patchwork Mon Jun 7 03:12:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 12302467 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 5AE89C4743E for ; Mon, 7 Jun 2021 03:17:52 +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 1B50260240 for ; Mon, 7 Jun 2021 03:17:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1B50260240 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=zcoTROdg+4ARUlUmyi2+5ICj0rHTjTx3G890kfEGVq8=; b=nfAs5Xe8werJgQ i5ydlU17vOqsnqZIdN5EdmT4rftPsam2DP07EFwrcUdBPWYcL2Y3YZT9dikUv2a5nQMf5nD2fJ6B/ NCkUOxoounUinujpJ8Qde8YEcU0ld8jvT9oP10IBJagwV2Fz6NCkDkrvNrFnqrIrEJTJr0tOmincj DI6UzL9mckSgd2hxF+Ks7OtxA3+MKsnbt6Zn0n9wH1/TD312j9ilY0Cy6dyRacrobSY6ZW6TDn0Ff aX6K39pIK5xcXUlMttjGEGTEswWT61DH9g9D33hRZyBM4xgnVLMV1LxXoTKKL4T8x6TE95jjgDu68 fn3Ctw5rHfpkSGuGr6ag==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq5iG-001Jnw-CZ; Mon, 07 Jun 2021 03:14:04 +0000 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq5hs-001JkJ-Ek for linux-arm-kernel@lists.infradead.org; Mon, 07 Jun 2021 03:13:42 +0000 Received: by mail-pj1-x1035.google.com with SMTP id d5-20020a17090ab305b02901675357c371so10665056pjr.1 for ; Sun, 06 Jun 2021 20:13:40 -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=/DK+LzxMzq0wBGnPJSo6/RsQE1ihBrpOb6kLc3n55jE=; b=XnsM54/qkjl2E0a3iShg2NexBn9mvgmWdpGOYKpfCIdIwyY6a++rTQfqWNmmUze3zr 3fi8f+dA1l1AG7UMCE+yyBjASoUC+dCj1AJsLNU/DDEDsZsy2stgZhvuGCCaFi97SZQO nz92vlmuFTMd2GMk454wIQ+yLYnTpyHO2gpFY2KmEJi2gUEkZFqnN53/OAhnKrAa84yo wfbcS5DI5tTDt82qL3VfYYw2f6qyY37f5qd1oStunC8ngsBztUrR78ixeqRScvLPXQ1H KwUJoQ6yLzkjdgjENy54oDkcT4U0UeugEsQZ4u1k4W7twtgGJ1U4os2ekKCpOWlMGabS K+IA== 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=/DK+LzxMzq0wBGnPJSo6/RsQE1ihBrpOb6kLc3n55jE=; b=qgMxaGCTw/I7TG7f5XmptKIHIHzVlG2JkZjIL7Fncas6+N/bVkyW5OEhRwrg1Yt2ou UIj4KQd8T3nofT8jOzwuAEp95cKMkYy1CFqdbtBI5pqzIZD89vAy8zROX9T/x3GHMw5J 9MfkzO6jCTDP8QExKNshCY+xGmAnmHnzBtHldsPAW/RXJj3zt+SNnfdH6jJO5QoHXePJ SWZUp6oF5E/WJisrqPuY+UJGanscvtsDyvUTNKUKTujJIiIdcyjsQDarjtkfgohtthGH b54lCPEhsYZwuWCQgDQaETQ0o0WgXHJbKuks7/1SduDHYXAn+GMoJ+AZHN/oZPoffe38 BAZg== X-Gm-Message-State: AOAM531daCm3OmKiFhaNNftgEDNiNfFOq8Wwl2Hm4dBuBpPGNfxUS7h6 CsagWZMUAC1I2PtXATbSjn4zFfd2RRw= X-Google-Smtp-Source: ABdhPJxp+Lua5lWWlOdwzAqaymiSn9BGe7NHWIhRr3/2rq3ssg/jd892+kC6QbGKeRZT8NM9ERMKzA== X-Received: by 2002:a17:90b:1a8b:: with SMTP id ng11mr30375171pjb.93.1623035619635; Sun, 06 Jun 2021 20:13:39 -0700 (PDT) Received: from voyager.lan ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id x33sm5763751pfh.108.2021.06.06.20.13.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 20:13:38 -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 5/6] ARM: dts: aspeed: everest: Add vrm and other indicator leds Date: Mon, 7 Jun 2021 12:42:58 +0930 Message-Id: <20210607031259.475020-6-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_201340_527284_8BF2E4B1 X-CRM114-Status: GOOD ( 10.07 ) 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 This commit adds indicator leds for vrms, processors, opencapi connectors, tpm, planar, power distribution card and dasd backplane and are driven by PIC16F882. Signed-off-by: Vishwanatha Subbanna Signed-off-by: Joel Stanley --- arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts | 270 +++++++++++++++++++ 1 file changed, 270 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts index db8555e7abf9..2bac7d1f8a03 100644 --- a/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts +++ b/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts @@ -1400,6 +1400,276 @@ led@15 { type = ; }; }; + + pic0_vrm_misc: pca9552@34 { + compatible = "ibm,pca9552"; + reg = <0x34>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led@0 { + label = "planar"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@1 { + label = "tpm"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@2 { + label = "cpu3-c61"; + reg = <2>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@3 { + label = "cpu0-c14"; + reg = <3>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@4 { + label = "opencapi-connector3"; + reg = <4>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@5 { + label = "opencapi-connector4"; + reg = <5>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@6 { + label = "opencapi-connector5"; + reg = <6>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + gpio@7 { + reg = <7>; + type = ; + }; + + led@8 { + label = "vrm4"; + reg = <8>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@9 { + label = "vrm5"; + reg = <9>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@10 { + label = "vrm6"; + reg = <10>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@11 { + label = "vrm7"; + reg = <11>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@12 { + label = "vrm12"; + reg = <12>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@13 { + label = "vrm13"; + reg = <13>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@14 { + label = "vrm14"; + reg = <14>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@15 { + label = "vrm15"; + reg = <15>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + }; + + pic1_vrm_misc: pca9552@35 { + compatible = "ibm,pca9552"; + reg = <0x35>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led@0 { + label = "dasd-backplane"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@1 { + label = "power-distribution"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@2 { + label = "cpu1-c19"; + reg = <2>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@3 { + label = "cpu2-c56"; + reg = <3>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@4 { + label = "opencapi-connector0"; + reg = <4>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@5 { + label = "opencapi-connector1"; + reg = <5>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@6 { + label = "opencapi-connector2"; + reg = <6>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + gpio@7 { + reg = <7>; + type = ; + }; + + led@8 { + label = "vrm0"; + reg = <8>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@9 { + label = "vrm1"; + reg = <9>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@10 { + label = "vrm2"; + reg = <10>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@11 { + label = "vrm3"; + reg = <11>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@12 { + label = "vrm8"; + reg = <12>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@13 { + label = "vrm9"; + reg = <13>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@14 { + label = "vrm10"; + reg = <14>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@15 { + label = "vrm11"; + reg = <15>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + }; }; &i2c8 { From patchwork Mon Jun 7 03:12:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 12302473 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 B2FEEC4743D for ; Mon, 7 Jun 2021 03:18:31 +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 80A8061208 for ; Mon, 7 Jun 2021 03:18:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 80A8061208 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=s6lpXPOdoPFjF7mL7LZVThT/7q3k5fJGahxjfVhUosw=; b=Eo4LidVUJMtKDo PQ/CzbvVylWeiEeMP3zJzwSPJ0hZiWNQDb9zI5P6DCyJaUwdpnrAYPZ9vQTuyx9ALsFWVZzzu7fTI blajO1b/PyXwI1uwm0dF5JV32pEHQ0RaN5ityGs3v1colI4SKCReXIvUld+eVHzq9e60bSYtS+Yb4 B29C+2oXCZZn2hfaRn6WL/alv0bUdJ/Qp4ww0ruO0CvSkLT04QSMqi64hFmFt/5xRthaUB7+RmAKU EqtFu6aF/3N/al0XalLksZeF9l9rVJKcEy7MsRB0mFLz25XdRwaZrnC/ehgfB6ypHjTm5N/ee5+OJ vF7ODvZnqacVYl7YElog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq5iz-001K0r-C7; Mon, 07 Jun 2021 03:14:49 +0000 Received: from mail-pg1-f173.google.com ([209.85.215.173]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lq5iu-001JzZ-Ca for linux-arm-kernel@lists.infradead.org; Mon, 07 Jun 2021 03:14:46 +0000 Received: by mail-pg1-f173.google.com with SMTP id r1so12735491pgk.8 for ; Sun, 06 Jun 2021 20:14:44 -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=HVCBVMc69erOuRG8XUaSGmJQO0+Pu+V6joDzV/LgecM=; b=oJv32b0j6blJ+a8HoYypEviWZI+3/t9/IhhXi60MHQT4w9km9CxFdZy/91ZUbNJyU5 wNRQ0CoRIt6KhrdGsDuecrmpFE6hR4yg792INsJe3vYenL1hFjDEd+6a5SckfIbUMNnV ziBwd8APYWiktw8Fa5GXovo+2jP3ReBzYWox1piBNYVf3w5ivWKuntwySiZMfTrqKCsM XxWx5T11lvSQrYAZd3D8JfEf1xP4VZ/yL2kIbylJneGLlHR2UvORzvs0LkAA76GUgDSh jlQ2kejAdv+liV5WVxENsv5Tt0yszsE3OeYeolAhUTM0jtKpjEeVrFgCxIrZnN68xzKE sb0Q== 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=HVCBVMc69erOuRG8XUaSGmJQO0+Pu+V6joDzV/LgecM=; b=qo8KF5dIYRyjwq8X6UdaUx/tuN3aUpSwcO77Fed5E8+y64G1X+TLuG2vCMxoNYOTnk 5AlWn6s/t0Fg+OouG8nNOSdjuzCVFjWQ6ausK8wCjC6OMBd7KEpKlJQeLdNZGqBUiQ8d QW72su7lUzOqIh4ZN36yEf0zIy5+WhL1yPcM2GXhCMwpbaS/o4IxlWuWf8RIRIrqSgp2 Dmi9S2I8UCYj7kOunZ2PjHHUIeBHdWYXWDmAqmqBJ5MmWezjRvh4jy4lXrTq7CEE1PiG FYwVaVmwLlFMA+gn2kEzEbWXmb95Sn1ataBrrTVDsRRJBQNH4U1c+RdxU2vDDmri+LHJ Fu4g== X-Gm-Message-State: AOAM530Ww/bBD+s+LdCTYfwP0HjJ4JOk+HgwrUcREWwjcopC3HfKL1fO 8rz095Rh6U/ukiC4/QqiTe4= X-Google-Smtp-Source: ABdhPJxsd71Rqr5dCUuG/RBhhd5tFjgfkSvewl41s4rp6wkwNC4NdACHAVnmW6xkAm6YRY8Xya07gg== X-Received: by 2002:aa7:9118:0:b029:2eb:2ef3:f197 with SMTP id 24-20020aa791180000b02902eb2ef3f197mr14984557pfh.27.1623035623650; Sun, 06 Jun 2021 20:13:43 -0700 (PDT) Received: from voyager.lan ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id x33sm5763751pfh.108.2021.06.06.20.13.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 20:13:42 -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 6/6] ARM: dts: aspeed: everest: Add pcie cable card indicator leds Date: Mon, 7 Jun 2021 12:42:59 +0930 Message-Id: <20210607031259.475020-7-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_201444_471775_9528B914 X-CRM114-Status: GOOD ( 11.44 ) 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 leds on the IBM proprietary PCIE cards called cable cards. Cable cards have 2 ports on them and each port has an indicator led. Signed-off-by: Vishwanatha Subbanna Signed-off-by: Joel Stanley --- arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts | 714 +++++++++++++++++-- 1 file changed, 665 insertions(+), 49 deletions(-) diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts index 2bac7d1f8a03..d26a9e16ff7c 100644 --- a/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts +++ b/arch/arm/boot/dts/aspeed-bmc-ibm-everest.dts @@ -508,6 +508,62 @@ eeprom@52 { compatible = "atmel,24c64"; reg = <0x52>; }; + + pca_cable_card_c01: pca9551@62 { + compatible = "nxp,pca9551"; + reg = <0x62>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led@0 { + label = "cablecard-c01-cxp-top"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@1 { + label = "cablecard-c01-cxp-bot"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + gpio@2 { + reg = <2>; + type = ; + }; + + gpio@3 { + reg = <3>; + type = ; + }; + + gpio@4 { + reg = <4>; + type = ; + }; + + gpio@5 { + reg = <5>; + type = ; + }; + + gpio@6 { + reg = <6>; + type = ; + }; + + gpio@7 { + reg = <7>; + type = ; + }; + }; }; i2c4mux0chn1: i2c@1 { @@ -518,6 +574,62 @@ eeprom@50 { compatible = "atmel,24c64"; reg = <0x50>; }; + + pca_cable_card_c02: pca9551@60 { + compatible = "nxp,pca9551"; + reg = <0x60>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led@0 { + label = "cablecard-c02-cxp-top"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@1 { + label = "cablecard-c02-cxp-bot"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + gpio@2 { + reg = <2>; + type = ; + }; + + gpio@3 { + reg = <3>; + type = ; + }; + + gpio@4 { + reg = <4>; + type = ; + }; + + gpio@5 { + reg = <5>; + type = ; + }; + + gpio@6 { + reg = <6>; + type = ; + }; + + gpio@7 { + reg = <7>; + type = ; + }; + }; }; i2c4mux0chn2: i2c@2 { @@ -528,6 +640,62 @@ eeprom@51 { compatible = "atmel,24c64"; reg = <0x51>; }; + + pca_cable_card_c03: pca9551@61 { + compatible = "nxp,pca9551"; + reg = <0x61>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led@0 { + label = "cablecard-c03-cxp-top"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@1 { + label = "cablecard-c03-cxp-bot"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + gpio@2 { + reg = <2>; + type = ; + }; + + gpio@3 { + reg = <3>; + type = ; + }; + + gpio@4 { + reg = <4>; + type = ; + }; + + gpio@5 { + reg = <5>; + type = ; + }; + + gpio@6 { + reg = <6>; + type = ; + }; + + gpio@7 { + reg = <7>; + type = ; + }; + }; }; }; }; @@ -636,68 +804,404 @@ eeprom@50 { compatible = "atmel,24c64"; reg = <0x50>; }; - }; - i2c5mux0chn1: i2c@1 { - #address-cells = <1>; - #size-cells = <0>; - reg = <1>; - eeprom@51 { - compatible = "atmel,24c64"; - reg = <0x51>; - }; - }; + pca_cable_card_c04: pca9551@60 { + compatible = "nxp,pca9551"; + reg = <0x60>; + #address-cells = <1>; + #size-cells = <0>; - i2c5mux0chn2: i2c@2 { - #address-cells = <1>; - #size-cells = <0>; - reg = <2>; - eeprom@52 { - compatible = "atmel,24c64"; - reg = <0x52>; - }; - }; + gpio-controller; + #gpio-cells = <2>; - i2c5mux0chn3: i2c@3 { - #address-cells = <1>; - #size-cells = <0>; - reg = <3>; - eeprom@53 { - compatible = "atmel,24c64"; - reg = <0x53>; - }; - }; - }; -}; + led@0 { + label = "cablecard-c04-cxp-top"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; -&i2c6 { - status = "okay"; + led@1 { + label = "cablecard-c04-cxp-bot"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; - i2c-switch@70 { - compatible = "nxp,pca9546"; - reg = <0x70>; - #address-cells = <1>; - #size-cells = <0>; - status = "okay"; - i2c-mux-idle-disconnect; + gpio@2 { + reg = <2>; + type = ; + }; - i2c6mux0chn0: i2c@0 { - #address-cells = <1>; - #size-cells = <0>; - reg = <0>; - eeprom@50 { - compatible = "atmel,24c64"; - reg = <0x50>; + gpio@3 { + reg = <3>; + type = ; + }; + + gpio@4 { + reg = <4>; + type = ; + }; + + gpio@5 { + reg = <5>; + type = ; + }; + + gpio@6 { + reg = <6>; + type = ; + }; + + gpio@7 { + reg = <7>; + type = ; + }; }; }; - i2c6mux0chn1: i2c@1 { + i2c5mux0chn1: i2c@1 { #address-cells = <1>; #size-cells = <0>; reg = <1>; - eeprom@52 { + eeprom@51 { compatible = "atmel,24c64"; - reg = <0x52>; + reg = <0x51>; + }; + + pca_cable_card_c05: pca9551@61 { + compatible = "nxp,pca9551"; + reg = <0x61>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led@0 { + label = "cablecard-c05-cxp-top"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@1 { + label = "cablecard-c05-cxp-bot"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + gpio@2 { + reg = <2>; + type = ; + }; + + gpio@3 { + reg = <3>; + type = ; + }; + + gpio@4 { + reg = <4>; + type = ; + }; + + gpio@5 { + reg = <5>; + type = ; + }; + + gpio@6 { + reg = <6>; + type = ; + }; + + gpio@7 { + reg = <7>; + type = ; + }; + }; + }; + + i2c5mux0chn2: i2c@2 { + #address-cells = <1>; + #size-cells = <0>; + reg = <2>; + eeprom@52 { + compatible = "atmel,24c64"; + reg = <0x52>; + }; + + pca_cable_card_c06: pca9551@62 { + compatible = "nxp,pca9551"; + reg = <0x62>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led@0 { + label = "cablecard-c06-cxp-top"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@1 { + label = "cablecard-c06-cxp-bot"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + gpio@2 { + reg = <2>; + type = ; + }; + + gpio@3 { + reg = <3>; + type = ; + }; + + gpio@4 { + reg = <4>; + type = ; + }; + + gpio@5 { + reg = <5>; + type = ; + }; + + gpio@6 { + reg = <6>; + type = ; + }; + + gpio@7 { + reg = <7>; + type = ; + }; + }; + }; + + i2c5mux0chn3: i2c@3 { + #address-cells = <1>; + #size-cells = <0>; + reg = <3>; + eeprom@53 { + compatible = "atmel,24c64"; + reg = <0x53>; + }; + + pca_cable_card_c07: pca9551@63 { + compatible = "nxp,pca9551"; + reg = <0x63>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led@0 { + label = "cablecard-c07-cxp-top"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@1 { + label = "cablecard-c07-cxp-bot"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + gpio@2 { + reg = <2>; + type = ; + }; + + gpio@3 { + reg = <3>; + type = ; + }; + + gpio@4 { + reg = <4>; + type = ; + }; + + gpio@5 { + reg = <5>; + type = ; + }; + + gpio@6 { + reg = <6>; + type = ; + }; + + gpio@7 { + reg = <7>; + type = ; + }; + }; + }; + }; +}; + +&i2c6 { + status = "okay"; + + i2c-switch@70 { + compatible = "nxp,pca9546"; + reg = <0x70>; + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + i2c-mux-idle-disconnect; + + i2c6mux0chn0: i2c@0 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + eeprom@50 { + compatible = "atmel,24c64"; + reg = <0x50>; + }; + + pca_cable_card_c08: pca9551@60 { + compatible = "nxp,pca9551"; + reg = <0x60>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led@0 { + label = "cablecard-c08-cxp-top"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@1 { + label = "cablecard-c08-cxp-bot"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + gpio@2 { + reg = <2>; + type = ; + }; + + gpio@3 { + reg = <3>; + type = ; + }; + + gpio@4 { + reg = <4>; + type = ; + }; + + gpio@5 { + reg = <5>; + type = ; + }; + + gpio@6 { + reg = <6>; + type = ; + }; + + gpio@7 { + reg = <7>; + type = ; + }; + }; + }; + + i2c6mux0chn1: i2c@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + eeprom@52 { + compatible = "atmel,24c64"; + reg = <0x52>; + }; + + pca_cable_card_c09: pca9551@62 { + compatible = "nxp,pca9551"; + reg = <0x62>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led@0 { + label = "cablecard-c09-cxp-top"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@1 { + label = "cablecard-c09-cxp-bot"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + gpio@2 { + reg = <2>; + type = ; + }; + + gpio@3 { + reg = <3>; + type = ; + }; + + gpio@4 { + reg = <4>; + type = ; + }; + + gpio@5 { + reg = <5>; + type = ; + }; + + gpio@6 { + reg = <6>; + type = ; + }; + + gpio@7 { + reg = <7>; + type = ; + }; }; }; @@ -709,6 +1213,62 @@ eeprom@53 { compatible = "atmel,24c64"; reg = <0x53>; }; + + pca_cable_card_c10: pca9551@63 { + compatible = "nxp,pca9551"; + reg = <0x63>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led@0 { + label = "cablecard-c10-cxp-top"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@1 { + label = "cablecard-c10-cxp-bot"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + gpio@2 { + reg = <2>; + type = ; + }; + + gpio@3 { + reg = <3>; + type = ; + }; + + gpio@4 { + reg = <4>; + type = ; + }; + + gpio@5 { + reg = <5>; + type = ; + }; + + gpio@6 { + reg = <6>; + type = ; + }; + + gpio@7 { + reg = <7>; + type = ; + }; + }; }; i2c6mux0chn3: i2c@3 { @@ -719,6 +1279,62 @@ eeprom@51 { compatible = "atmel,24c64"; reg = <0x51>; }; + + pca_cable_card_c11: pca9551@61 { + compatible = "nxp,pca9551"; + reg = <0x61>; + #address-cells = <1>; + #size-cells = <0>; + + gpio-controller; + #gpio-cells = <2>; + + led@0 { + label = "cablecard-c11-cxp-top"; + reg = <0>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + led@1 { + label = "cablecard-c11-cxp-bot"; + reg = <1>; + retain-state-shutdown; + default-state = "keep"; + type = ; + }; + + gpio@2 { + reg = <2>; + type = ; + }; + + gpio@3 { + reg = <3>; + type = ; + }; + + gpio@4 { + reg = <4>; + type = ; + }; + + gpio@5 { + reg = <5>; + type = ; + }; + + gpio@6 { + reg = <6>; + type = ; + }; + + gpio@7 { + reg = <7>; + type = ; + }; + }; }; };