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>;