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 {