mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yang Chen <yangchen.openbmc@gmail.com>
To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org,
	conor+dt@kernel.org, joel@jms.id.au, andrew@codeconstruct.com.au,
	patrick@stwcx.xyz, devicetree@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org
Cc: Jerry.Lin@quantatw.com, EasonChen1@quantatw.com,
	Leslie.Tong@quantatw.com, yangchen.openbmc@gmail.com
Subject: [PATCH 09/11] ARM: dts: aspeed: minerva: Add led-fan-fault gpio
Date: Tue, 12 Dec 2023 15:51:58 +0800	[thread overview]
Message-ID: <20231212075200.983536-10-yangchen.openbmc@gmail.com> (raw)
In-Reply-To: <20231212075200.983536-1-yangchen.openbmc@gmail.com>

Add led-fan-fault gpio pin on the PCA9555 on the i2c bus 0.

Signed-off-by: Yang Chen <yangchen.openbmc@gmail.com>
---
 .../dts/aspeed/aspeed-bmc-facebook-minerva.dts  | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts
index c7445c819baf..090fe2f6b1d8 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-minerva.dts
@@ -39,6 +39,16 @@ iio-hwmon {
 			<&adc0 4>, <&adc0 5>, <&adc0 6>, <&adc0 7>,
 			<&adc1 2>;
 	};
+
+	leds {
+		compatible = "gpio-leds";
+
+		led-fan-fault {
+			label = "led-fan-fault";
+			gpios = <&leds_gpio 9 GPIO_ACTIVE_HIGH>;
+			default-state = "off";
+		};
+	};
 };
 
 &uart6 {
@@ -118,6 +128,13 @@ power-monitor@68 {
 		compatible = "adi,ltc2945";
 		reg = <0x68>;
 	};
+
+	leds_gpio: gpio@19 {
+		compatible = "nxp,pca9555";
+		reg = <0x19>;
+		gpio-controller;
+		#gpio-cells = <2>;
+	};
 };
 
 &i2c1 {
-- 
2.34.1


  parent reply	other threads:[~2023-12-12  7:55 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-12  7:51 [PATCH 00/11] Modify DTS of META Minerva CMM BMC(AST2600) Yang Chen
2023-12-12  7:51 ` [PATCH 01/11] ARM: dts: aspeed: minerva: Revise the name of DTS Yang Chen
2023-12-12  7:51 ` [PATCH 02/11] ARM: dts: aspeed: minerva: Modify mac3 setting Yang Chen
2023-12-12  7:51 ` [PATCH 03/11] ARM: dts: aspeed: minerva: Change sgpio use Yang Chen
2023-12-12  7:51 ` [PATCH 04/11] ARM: dts: aspeed: minerva: Enable power monitor device Yang Chen
2023-12-12  7:51 ` [PATCH 05/11] ARM: dts: aspeed: minerva: Add temperature sensor Yang Chen
2023-12-12  7:51 ` [PATCH 06/11] ARM: dts: aspeed: minerva: correct the address of eeprom Yang Chen
2023-12-12  7:51 ` [PATCH 07/11] ARM: dts: aspeed: minerva: add bus labels and aliases Yang Chen
2023-12-12  7:51 ` [PATCH 08/11] ARM: dts: aspeed: minerva: add fan rpm controller Yang Chen
2023-12-12  7:51 ` Yang Chen [this message]
2023-12-12  7:51 ` [PATCH 10/11] ARM: dts: aspeed: minerva: add gpio line name Yang Chen
2023-12-12  7:52 ` [PATCH 11/11] ARM: dts: aspeed: minerva: add sgpio " Yang Chen
2023-12-14  0:43 ` [PATCH 00/11] Modify DTS of META Minerva CMM BMC(AST2600) Joel Stanley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231212075200.983536-10-yangchen.openbmc@gmail.com \
    --to=yangchen.openbmc@gmail.com \
    --cc=EasonChen1@quantatw.com \
    --cc=Jerry.Lin@quantatw.com \
    --cc=Leslie.Tong@quantatw.com \
    --cc=andrew@codeconstruct.com.au \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=joel@jms.id.au \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-aspeed@lists.ozlabs.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patrick@stwcx.xyz \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®