提交 b4cbf4fe 编写于 作者: J Johan Jonker 提交者: Zheng Zengkai

arm64: dts: rockchip: fix regulator-gpio states array

stable inclusion
from stable-5.10.53
commit ff9ef21bb6fb9ce4c17a1035048fa01db8bc0abf
bugzilla: 175574 https://gitee.com/openeuler/kernel/issues/I4DTUX

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ff9ef21bb6fb9ce4c17a1035048fa01db8bc0abf

--------------------------------

[ Upstream commit b82f8e29 ]

A test with the command below gives this error:

/arch/arm64/boot/dts/rockchip/rk3328-nanopi-r2s.dt.yaml:
sdmmcio-regulator: states:0:
[1800000, 1, 3300000, 0] is too long

dtbs_check expects regulator-gpio states in a format
of 2 per item, so fix them all.

make ARCH=arm64 dtbs_check
DT_SCHEMA_FILES=Documentation/devicetree/bindings/
regulator/gpio-regulator.yaml
Signed-off-by: NJohan Jonker <jbx6244@gmail.com>
Link: https://lore.kernel.org/r/20210510215840.16270-1-jbx6244@gmail.comSigned-off-by: NHeiko Stuebner <heiko@sntech.de>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 a276e469
...@@ -78,8 +78,8 @@ ...@@ -78,8 +78,8 @@
regulator-min-microvolt = <1800000>; regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_HIGH>; gpios = <&gpio0 RK_PA7 GPIO_ACTIVE_HIGH>;
states = <1800000 0x0 states = <1800000 0x0>,
3300000 0x1>; <3300000 0x1>;
vin-supply = <&vcc5v0_sys>; vin-supply = <&vcc5v0_sys>;
}; };
......
...@@ -71,8 +71,8 @@ ...@@ -71,8 +71,8 @@
regulator-settling-time-us = <5000>; regulator-settling-time-us = <5000>;
regulator-type = "voltage"; regulator-type = "voltage";
startup-delay-us = <2000>; startup-delay-us = <2000>;
states = <1800000 0x1 states = <1800000 0x1>,
3300000 0x0>; <3300000 0x0>;
vin-supply = <&vcc_io_33>; vin-supply = <&vcc_io_33>;
}; };
......
...@@ -45,8 +45,8 @@ ...@@ -45,8 +45,8 @@
vcc_sdio: sdmmcio-regulator { vcc_sdio: sdmmcio-regulator {
compatible = "regulator-gpio"; compatible = "regulator-gpio";
gpios = <&grf_gpio 0 GPIO_ACTIVE_HIGH>; gpios = <&grf_gpio 0 GPIO_ACTIVE_HIGH>;
states = <1800000 0x1 states = <1800000 0x1>,
3300000 0x0>; <3300000 0x0>;
regulator-name = "vcc_sdio"; regulator-name = "vcc_sdio";
regulator-type = "voltage"; regulator-type = "voltage";
regulator-min-microvolt = <1800000>; regulator-min-microvolt = <1800000>;
......
...@@ -245,7 +245,7 @@ pp1800_pcie: &pp1800_s0 { ...@@ -245,7 +245,7 @@ pp1800_pcie: &pp1800_s0 {
}; };
&ppvar_sd_card_io { &ppvar_sd_card_io {
states = <1800000 0x0 3300000 0x1>; states = <1800000 0x0>, <3300000 0x1>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
}; };
......
...@@ -247,8 +247,8 @@ ...@@ -247,8 +247,8 @@
enable-active-high; enable-active-high;
enable-gpio = <&gpio2 2 GPIO_ACTIVE_HIGH>; enable-gpio = <&gpio2 2 GPIO_ACTIVE_HIGH>;
gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>; gpios = <&gpio2 28 GPIO_ACTIVE_HIGH>;
states = <1800000 0x1 states = <1800000 0x1>,
3000000 0x0>; <3000000 0x0>;
regulator-min-microvolt = <1800000>; regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3000000>; regulator-max-microvolt = <3000000>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册