// SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* * Copyright (c) 2024 Rockchip Electronics Co., Ltd. * */ #include #include &i2c0 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&rm_io0_i2c0_scl &rm_io2_i2c0_sda>; rk801: rk801@27 { compatible = "rockchip,rk801"; status = "okay"; reg = <0x27>; interrupt-parent = <&gpio0>; interrupts = ; pwrctrl-gpios = <&gpio0 RK_PC1 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&pmic_int>; rockchip,system-power-controller; wakeup-source; vcc1-supply = <&vcc12v_dc>; vcc2-supply = <&vcc12v_dc>; vcc3-supply = <&vcc5v0_sys>; vcc4-supply = <&vcc5v0_sys>; vcc5-supply = <&vcc3v3_sys>; vcc6-supply = <&vcc3v3_sys>; vcc7-supply = <&vcc3v3_sys>; regulators { vcc3v3_sys: DCDC_REG1 { regulator-name = "vcc3v3_sys"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-initial-mode = <0x1>; regulator-boot-on; regulator-always-on; regulator-state-mem { regulator-mode = <0x2>; regulator-on-in-suspend; regulator-suspend-microvolt = <3300000>; }; }; vcc5v0_sys: DCDC_REG2 { regulator-name = "vcc5v0_sys"; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; regulator-initial-mode = <0x1>; regulator-boot-on; regulator-always-on; regulator-state-mem { regulator-mode = <0x2>; regulator-on-in-suspend; regulator-suspend-microvolt = <5000000>; }; }; vcc_ddr: DCDC_REG3 { regulator-name = "vcc_ddr"; regulator-boot-on; regulator-always-on; regulator-state-mem { regulator-mode = <0x2>; regulator-on-in-suspend; }; }; vdd_cpu: DCDC_REG4 { regulator-name = "vdd_cpu"; regulator-min-microvolt = <500000>; regulator-max-microvolt = <1500000>; regulator-initial-mode = <0x1>; regulator-boot-on; regulator-always-on; regulator-state-mem { regulator-mode = <0x2>; regulator-off-in-suspend; }; }; vdd0v9_sys: LDO_REG1 { regulator-name = "vdd0v9_sys"; regulator-min-microvolt = <900000>; regulator-max-microvolt = <900000>; regulator-boot-on; regulator-always-on; regulator-state-mem { regulator-on-in-suspend; regulator-suspend-microvolt = <900000>; }; }; vcc_1v8: LDO_REG2 { regulator-name = "vcc_1v8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-boot-on; regulator-always-on; regulator-state-mem { regulator-on-in-suspend; regulator-suspend-microvolt = <1800000>; }; }; vcc_3v3: SWITCH_REG { regulator-name = "vcc_3v3"; regulator-boot-on; regulator-always-on; regulator-state-mem { regulator-on-in-suspend; }; }; }; }; };