Commit 676b306c authored by Roger Shimizu's avatar Roger Shimizu Committed by Kleber Sacilotto de Souza

ARM: dts: orion5x: gpio pin fixes for linkstation lswtgl

BugLink: https://bugs.launchpad.net/bugs/1878232

commit ff61ee84 upstream.

Here're a few gpio pin related fixes:
  - remove pinctrl-0 definition from pinctrl, since those pins are used
    in other places such as gpio-fan and regulators.
  - keep initial state of power led
  - fix for alarm pin of gpio-fan.

Fixes: dc57844a ("ARM: dts: orion5x: add buffalo linkstation ls-wtgl")
Signed-off-by: default avatarRoger Shimizu <rogershimizu@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarGregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarIan May <ian.may@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent efeff00e
/* /*
* Device Tree file for Buffalo Linkstation LS-WTGL * Device Tree file for Buffalo Linkstation LS-WTGL
* *
* Copyright (C) 2015, Roger Shimizu <rogershimizu@gmail.com> * Copyright (C) 2015, 2016
* Roger Shimizu <rogershimizu@gmail.com>
* *
* This file is dual-licensed: you can use it either under the terms * This file is dual-licensed: you can use it either under the terms
* of the GPL or the X11 license, at your option. Note that this dual * of the GPL or the X11 license, at your option. Note that this dual
...@@ -69,8 +70,6 @@ soc { ...@@ -69,8 +70,6 @@ soc {
internal-regs { internal-regs {
pinctrl: pinctrl@10000 { pinctrl: pinctrl@10000 {
pinctrl-0 = <&pmx_usb_power &pmx_power_hdd
&pmx_fan_low &pmx_fan_high &pmx_fan_lock>;
pinctrl-names = "default"; pinctrl-names = "default";
pmx_led_power: pmx-leds { pmx_led_power: pmx-leds {
...@@ -162,6 +161,7 @@ gpio_leds { ...@@ -162,6 +161,7 @@ gpio_leds {
led@1 { led@1 {
label = "lswtgl:blue:power"; label = "lswtgl:blue:power";
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
default-state = "keep";
}; };
led@2 { led@2 {
...@@ -188,7 +188,7 @@ gpio_fan { ...@@ -188,7 +188,7 @@ gpio_fan {
3250 1 3250 1
5000 0>; 5000 0>;
alarm-gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; alarm-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
}; };
restart_poweroff { restart_poweroff {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment