Skip to content

Commit

Permalink
arm64: dts: tegra: Fix boolean properties with values
Browse files Browse the repository at this point in the history
Boolean properties in DT are present or not present and don't take a value.
A property such as 'foo = <0>;' evaluated to true. IOW, the value doesn't
matter.

It may have been intended that 0 values are false, but there is no change
in behavior with this patch.

Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/Yk3nShkFzNJaI3/Z@robh.at.kernel.org'
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Rob Herring authored and Arnd Bergmann committed Apr 7, 2022
1 parent 0dc23d1 commit 1a67653
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 27 deletions.
8 changes: 4 additions & 4 deletions arch/arm64/boot/dts/nvidia/tegra186-p3310.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -262,25 +262,25 @@
gpio4 {
pins = "gpio4";
function = "32k-out1";
drive-push-pull = <1>;
drive-push-pull;
};

gpio5 {
pins = "gpio5";
function = "gpio";
drive-push-pull = <0>;
drive-push-pull;
};

gpio6 {
pins = "gpio6";
function = "gpio";
drive-push-pull = <1>;
drive-push-pull;
};

gpio7 {
pins = "gpio7";
function = "gpio";
drive-push-pull = <0>;
drive-push-pull;
};
};

Expand Down
8 changes: 4 additions & 4 deletions arch/arm64/boot/dts/nvidia/tegra186-p3509-0000+p3636-0001.dts
Original file line number Diff line number Diff line change
Expand Up @@ -462,25 +462,25 @@
gpio4 {
pins = "gpio4";
function = "32k-out1";
drive-push-pull = <1>;
drive-push-pull;
};

gpio5 {
pins = "gpio5";
function = "gpio";
drive-push-pull = <0>;
drive-push-pull;
};

gpio6 {
pins = "gpio6";
function = "gpio";
drive-push-pull = <1>;
drive-push-pull;
};

gpio7 {
pins = "gpio7";
function = "gpio";
drive-push-pull = <1>;
drive-push-pull;
};
};

Expand Down
6 changes: 3 additions & 3 deletions arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -174,19 +174,19 @@
gpio4 {
pins = "gpio4";
function = "32k-out1";
drive-push-pull = <1>;
drive-push-pull;
};

gpio6 {
pins = "gpio6";
function = "gpio";
drive-push-pull = <1>;
drive-push-pull;
};

gpio7 {
pins = "gpio7";
function = "gpio";
drive-push-pull = <0>;
drive-push-pull;
};
};

Expand Down
6 changes: 3 additions & 3 deletions arch/arm64/boot/dts/nvidia/tegra194-p3668.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,19 @@
gpio4 {
pins = "gpio4";
function = "32k-out1";
drive-push-pull = <1>;
drive-push-pull;
};

gpio6 {
pins = "gpio6";
function = "gpio";
drive-push-pull = <1>;
drive-push-pull;
};

gpio7 {
pins = "gpio7";
function = "gpio";
drive-push-pull = <0>;
drive-push-pull;
};
};

Expand Down
6 changes: 3 additions & 3 deletions arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
gpio1 {
pins = "gpio1";
function = "fps-out";
drive-push-pull = <1>;
drive-push-pull;
maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
maxim,active-fps-power-up-slot = <7>;
maxim,active-fps-power-down-slot = <0>;
Expand All @@ -68,7 +68,7 @@
gpio2_3 {
pins = "gpio2", "gpio3";
function = "fps-out";
drive-open-drain = <1>;
drive-open-drain;
maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
};

Expand All @@ -80,7 +80,7 @@
gpio5_6_7 {
pins = "gpio5", "gpio6", "gpio7";
function = "gpio";
drive-push-pull = <1>;
drive-push-pull;
};
};

Expand Down
8 changes: 4 additions & 4 deletions arch/arm64/boot/dts/nvidia/tegra210-p2894.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,7 @@
gpio1 {
pins = "gpio1";
function = "fps-out";
drive-push-pull = <1>;
drive-push-pull;
maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
maxim,active-fps-power-up-slot = <7>;
maxim,active-fps-power-down-slot = <0>;
Expand All @@ -1360,14 +1360,14 @@
gpio2 {
pins = "gpio2";
function = "fps-out";
drive-open-drain = <1>;
drive-open-drain;
maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
};

gpio3 {
pins = "gpio3";
function = "fps-out";
drive-open-drain = <1>;
drive-open-drain;
maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
};

Expand All @@ -1379,7 +1379,7 @@
gpio5_6_7 {
pins = "gpio5", "gpio6", "gpio7";
function = "gpio";
drive-push-pull = <1>;
drive-push-pull;
};
};

Expand Down
8 changes: 4 additions & 4 deletions arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
gpio1 {
pins = "gpio1";
function = "fps-out";
drive-push-pull = <1>;
drive-push-pull;
maxim,active-fps-source = <MAX77620_FPS_SRC_NONE>;
maxim,active-fps-power-up-slot = <0>;
maxim,active-fps-power-down-slot = <7>;
Expand All @@ -204,7 +204,7 @@
gpio2 {
pins = "gpio2";
function = "fps-out";
drive-open-drain = <1>;
drive-open-drain;
maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
maxim,active-fps-power-up-slot = <0>;
maxim,active-fps-power-down-slot = <7>;
Expand All @@ -213,7 +213,7 @@
gpio3 {
pins = "gpio3";
function = "fps-out";
drive-open-drain = <1>;
drive-open-drain;
maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
maxim,active-fps-power-up-slot = <4>;
maxim,active-fps-power-down-slot = <3>;
Expand All @@ -227,7 +227,7 @@
gpio5_6_7 {
pins = "gpio5", "gpio6", "gpio7";
function = "gpio";
drive-push-pull = <1>;
drive-push-pull;
};
};

Expand Down
4 changes: 2 additions & 2 deletions arch/arm64/boot/dts/nvidia/tegra210-smaug.dts
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,7 @@
gpio3 {
pins = "gpio3";
function = "fps-out";
drive-open-drain = <1>;
drive-open-drain;
maxim,active-fps-source = <MAX77620_FPS_SRC_0>;
maxim,active-fps-power-up-slot = <4>;
maxim,active-fps-power-down-slot = <2>;
Expand All @@ -1395,7 +1395,7 @@
gpio5_6 {
pins = "gpio5", "gpio6";
function = "gpio";
drive-push-pull = <1>;
drive-push-pull;
};

gpio4 {
Expand Down

0 comments on commit 1a67653

Please sign in to comment.