Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: qcom: Add led and gpio-button nodes to ipq8064 boards

Add the dt nodes for enabling the leds and gpio-buttons.

Signed-off-by: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>

authored by

Sricharan R and committed by
Andy Gross
14e63a95 2e7a2c91

+87
+8
arch/arm/boot/dts/qcom-ipq8064-ap148.dts
··· 12 12 function = "gsbi4"; 13 13 bias-disable; 14 14 }; 15 + 16 + buttons_pins: buttons_pins { 17 + mux { 18 + pins = "gpio54", "gpio65"; 19 + drive-strength = <2>; 20 + bias-pull-up; 21 + }; 22 + }; 15 23 }; 16 24 17 25 gsbi@16300000 {
+60
arch/arm/boot/dts/qcom-ipq8064-v1.0.dtsi
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 #include "qcom-ipq8064.dtsi" 3 + #include <dt-bindings/input/input.h> 3 4 4 5 / { 5 6 model = "Qualcomm Technologies, Inc. IPQ8064-v1.0"; ··· 63 62 sata@29000000 { 64 63 ports-implemented = <0x1>; 65 64 status = "ok"; 65 + }; 66 + 67 + gpio_keys { 68 + compatible = "gpio-keys"; 69 + pinctrl-0 = <&buttons_pins>; 70 + pinctrl-names = "default"; 71 + 72 + button@1 { 73 + label = "reset"; 74 + linux,code = <KEY_RESTART>; 75 + gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>; 76 + linux,input-type = <1>; 77 + debounce-interval = <60>; 78 + }; 79 + button@2 { 80 + label = "wps"; 81 + linux,code = <KEY_WPS_BUTTON>; 82 + gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>; 83 + linux,input-type = <1>; 84 + debounce-interval = <60>; 85 + }; 86 + }; 87 + 88 + leds { 89 + compatible = "gpio-leds"; 90 + pinctrl-0 = <&leds_pins>; 91 + pinctrl-names = "default"; 92 + 93 + led@7 { 94 + label = "led_usb1"; 95 + gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>; 96 + linux,default-trigger = "usbdev"; 97 + default-state = "off"; 98 + }; 99 + 100 + led@8 { 101 + label = "led_usb3"; 102 + gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>; 103 + linux,default-trigger = "usbdev"; 104 + default-state = "off"; 105 + }; 106 + 107 + led@9 { 108 + label = "status_led_fail"; 109 + gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>; 110 + default-state = "off"; 111 + }; 112 + 113 + led@26 { 114 + label = "sata_led"; 115 + gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>; 116 + default-state = "off"; 117 + }; 118 + 119 + led@53 { 120 + label = "status_led_pass"; 121 + gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>; 122 + default-state = "off"; 123 + }; 66 124 }; 67 125 }; 68 126 };
+19
arch/arm/boot/dts/qcom-ipq8064.dtsi
··· 153 153 bias-none; 154 154 }; 155 155 }; 156 + 157 + leds_pins: leds_pins { 158 + mux { 159 + pins = "gpio7", "gpio8", "gpio9", 160 + "gpio26", "gpio53"; 161 + function = "gpio"; 162 + drive-strength = <2>; 163 + bias-pull-down; 164 + output-low; 165 + }; 166 + }; 167 + 168 + buttons_pins: buttons_pins { 169 + mux { 170 + pins = "gpio54"; 171 + drive-strength = <2>; 172 + bias-pull-up; 173 + }; 174 + }; 156 175 }; 157 176 158 177 intc: interrupt-controller@2000000 {