arm64: dts: rockchip: rk1808-compute: use i2c bus to set tcs452x regulator

after fix hardware error, we can use i2c bus to set tcs452x voltage,
so drop gpio-i2c setting, and use i2c bus.

Change-Id: I9fbec370c815a8451c00e782c1e186849827ea9e
Signed-off-by: Lin Huang <hl@rock-chips.com>
This commit is contained in:
Lin Huang
2019-07-23 16:56:26 +08:00
committed by Tao Huang
parent 5a8813571c
commit 423b76f854

View File

@@ -21,39 +21,6 @@
poll-interval = <100>;
};
i2c@0 {
compatible = "i2c-gpio";
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>, /* sda */
<&gpio0 8 GPIO_ACTIVE_HIGH>; /* scl */
i2c-gpio,delay-us = <2>; /* ~100 kHz */
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&i2c0_gpio>;
status = "okay";
vdd_npu: tcs4525@1c {
compatible = "tcs,tcs452x";
reg = <0x1c>;
vin-supply = <&vcc5v0_sys>;
regulator-compatible = "fan53555-reg";
pinctrl-names = "default";
pinctrl-0 = <&en_gpio &vsel_gpio>;
vsel-gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
regulator-name = "vdd_npu";
regulator-min-microvolt = <750000>;
regulator-max-microvolt = <880000>;
regulator-init-microvolt = <880000>;
regulator-ramp-delay = <2300>;
fcs,suspend-voltage-selector = <0>;
regulator-boot-on;
regulator-state-mem {
regulator-off-in-suspend;
};
};
};
fiq-debugger {
compatible = "rockchip,fiq-debugger";
rockchip,serial-id = <2>;
@@ -163,6 +130,31 @@
status = "disabled";
};
&i2c0 {
status = "okay";
clock-frequency = <400000>;
vdd_npu: tcs4525@1c {
compatible = "tcs,tcs452x";
reg = <0x1c>;
vin-supply = <&vcc5v0_sys>;
regulator-compatible = "fan53555-reg";
pinctrl-names = "default";
pinctrl-0 = <&en_gpio &vsel_gpio>;
vsel-gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
regulator-name = "vdd_npu";
regulator-min-microvolt = <750000>;
regulator-max-microvolt = <880000>;
regulator-init-microvolt = <880000>;
regulator-ramp-delay = <2300>;
fcs,suspend-voltage-selector = <0>;
regulator-boot-on;
regulator-state-mem {
regulator-off-in-suspend;
};
};
};
&npu {
npu-supply = <&vdd_npu>;
status = "okay";
@@ -232,12 +224,5 @@
rockchip,pins =
<0 RK_PA5 0 &pcfg_pull_down>;
};
i2c0_gpio: i2c0-gpio {
rockchip,pins =
/* i2c0_sda */
<0 RK_PB1 0 &pcfg_pull_up>,
/* i2c0_scl */
<0 RK_PB0 0 &pcfg_pull_up>;
};
};
};