diff options
author | Sven Eckelmann <sven.eckelmann@openmesh.com> | 2018-03-19 14:52:38 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-03-23 20:31:49 +0100 |
commit | 9ca81646b9235f8963c5264f15597a9b61c029d4 (patch) | |
tree | 9962e89808b3c6d09a7daa8b465585b2b4568ad0 /target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi | |
parent | 688ae1c4c0591508540f231512c3a0c81bc51586 (diff) | |
download | upstream-9ca81646b9235f8963c5264f15597a9b61c029d4.tar.gz upstream-9ca81646b9235f8963c5264f15597a9b61c029d4.tar.bz2 upstream-9ca81646b9235f8963c5264f15597a9b61c029d4.zip |
ipq40xx: Use constant to set gpio active low/high
The GPIO configuration in the DTS have as third parameter the active
low/high configuration. This parameter is not easy to parse by humans when
it is only set to 0/1. It is better to use the predefined constants
GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW.
Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
Diffstat (limited to 'target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi')
-rw-r--r-- | target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi b/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi index 753adf9373..eeadc075dd 100644 --- a/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi +++ b/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi @@ -15,6 +15,7 @@ */ #include "qcom-ipq4019.dtsi" +#include <dt-bindings/gpio/gpio.h> / { model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK04.1"; @@ -101,7 +102,7 @@ pinctrl-0 = <&spi_0_pins>; pinctrl-names = "default"; status = "okay"; - cs-gpios = <&tlmm 12 0>; + cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>; mx25l25635e@0 { #address-cells = <1>; |