summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2018-05-14 03:18:25 -0500
committerRaptor Engineering Development Team <support@raptorengineering.com>2018-05-14 04:43:58 -0500
commit0387c354d342b76ad2fac1d240a4ea2a60863cb3 (patch)
tree00ca74548f8b06a20f99e3587809b29069819621
parent11b87bda75223a04ffe86a2a6e1e474de0f25196 (diff)
downloadtalos-obmc-linux-0387c354d342b76ad2fac1d240a4ea2a60863cb3.tar.gz
talos-obmc-linux-0387c354d342b76ad2fac1d240a4ea2a60863cb3.zip
Move Talos II power LED to software generated PWM
-rw-r--r--arch/arm/boot/dts/aspeed-bmc-opp-talos.dts20
1 files changed, 16 insertions, 4 deletions
diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-talos.dts b/arch/arm/boot/dts/aspeed-bmc-opp-talos.dts
index 5b716da29804..09427d7066d5 100644
--- a/arch/arm/boot/dts/aspeed-bmc-opp-talos.dts
+++ b/arch/arm/boot/dts/aspeed-bmc-opp-talos.dts
@@ -38,10 +38,6 @@
gpios = <&gpio ASPEED_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
};
- power {
- gpios = <&gpio ASPEED_GPIO(R, 5) GPIO_ACTIVE_LOW>;
- };
-
bmc_ready {
gpios = <&gpio ASPEED_GPIO(R, 1) GPIO_ACTIVE_LOW>;
};
@@ -51,6 +47,22 @@
};
};
+ power_soft_pwm: pwm@5 {
+ compatible = "pwm-gpio";
+
+ #pwm-cells = <3>;
+ pwm-gpios = <&gpio ASPEED_GPIO(R, 5) GPIO_ACTIVE_LOW>;
+ };
+
+ pwmleds {
+ compatible = "pwm-leds";
+
+ power {
+ pwms = <&power_soft_pwm 0 10000000 1>;
+ max-brightness = <255>;
+ };
+ };
+
fsi: gpio-fsi {
compatible = "fsi-master-gpio", "fsi-master";
#address-cells = <2>;
OpenPOWER on IntegriCloud