summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
688ae1c)
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>
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
- cs-gpios = <&tlmm 54 0>;
+ cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
m25p80@0 {
#address-cells = <1>;
m25p80@0 {
#address-cells = <1>;
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
- cs-gpios = <&tlmm 54 0>,
- <&tlmm 59 0>;
+ cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
+ <&tlmm 59 GPIO_ACTIVE_HIGH>;
m25p80@0 {
#address-cells = <1>;
m25p80@0 {
#address-cells = <1>;
*/
#include "qcom-ipq4019.dtsi"
*/
#include "qcom-ipq4019.dtsi"
+#include <dt-bindings/gpio/gpio.h>
/ {
model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK04.1";
/ {
model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK04.1";
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
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>;
mx25l25635e@0 {
#address-cells = <1>;
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
- cs-gpios = <&tlmm 54 0>;
+ cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
mx25l25635f@0 {
compatible = "jedec,spi-nor";
mx25l25635f@0 {
compatible = "jedec,spi-nor";
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
- cs-gpios = <&tlmm 54 0>;
+ cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
m25p80@0 {
#address-cells = <1>;
m25p80@0 {
#address-cells = <1>;
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
status = "okay";
- cs-gpios = <&tlmm 54 0>;
+ cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
mx25l25635f@0 {
compatible = "jedec,spi-nor";
mx25l25635f@0 {
compatible = "jedec,spi-nor";
status = "okay";
pinctrl-0 = <&mdio_pins>;
pinctrl-names = "default";
status = "okay";
pinctrl-0 = <&mdio_pins>;
pinctrl-names = "default";
- phy-reset-gpio = <&tlmm 47 0>;
+ phy-reset-gpio = <&tlmm 47 GPIO_ACTIVE_HIGH>;
/delete-node/ ethernet-phy@0;
/delete-node/ ethernet-phy@2;
/delete-node/ ethernet-phy@3;
/delete-node/ ethernet-phy@0;
/delete-node/ ethernet-phy@2;
/delete-node/ ethernet-phy@3;