Skip to content

Commit f1ebfae

Browse files
akemnademmind
authored andcommitted
arm64: dts: rockchip: Add TPS65185 for PineNote
As the TPS65185 driver is now upsteram, add it to the PineNote devietrees. This is based on https://ayakael.net/forge/linux-pinenote but modified to the binding requirements. Without any other out-of-tree materials applied, this enables the hwmon temperature reporting and the interrupt counter increments by one per reading. Signed-off-by: Andreas Kemnade <andreas@kemnade.info> Link: https://patch.msgid.link/20260121-rk-tps-v1-1-bc867e1dd200@kemnade.info Signed-off-by: Heiko Stuebner <heiko@sntech.de>
1 parent b18247f commit f1ebfae

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3566-pinenote.dtsi

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,40 @@
499499
};
500500
};
501501
};
502+
503+
ebc_pmic: pmic@68 {
504+
compatible = "ti,tps65185";
505+
reg = <0x68>;
506+
interrupt-parent = <&gpio3>;
507+
interrupts = <RK_PA6 IRQ_TYPE_LEVEL_LOW>;
508+
enable-gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_HIGH>;
509+
pinctrl-0 = <&ebc_pmic_pins>;
510+
pinctrl-names = "default";
511+
pwr-good-gpios = <&gpio3 RK_PA7 GPIO_ACTIVE_HIGH>;
512+
vcom-ctrl-gpios = <&gpio4 RK_PB2 GPIO_ACTIVE_HIGH>;
513+
vin-supply = <&vcc_bat>;
514+
wakeup-gpios = <&gpio3 RK_PA5 GPIO_ACTIVE_HIGH>;
515+
516+
regulators {
517+
v3p3: v3p3 {
518+
regulator-name = "v3p3";
519+
/* Keep it always on because IRQ is pulled up against this line */
520+
regulator-always-on;
521+
regulator-min-microvolt = <3300000>;
522+
regulator-max-microvolt = <3300000>;
523+
};
524+
525+
vcom: vcom {
526+
regulator-name = "vcom";
527+
};
528+
529+
vposneg: vposneg {
530+
regulator-name = "vposneg";
531+
regulator-min-microvolt = <15000000>;
532+
regulator-max-microvolt = <15000000>;
533+
};
534+
};
535+
};
502536
};
503537

504538
&i2c5 {
@@ -563,6 +597,21 @@
563597
};
564598
};
565599

600+
ebc-pmic {
601+
ebc_pmic_pins: ebc-pmic-pins {
602+
rockchip,pins = /* wakeup */
603+
<3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>,
604+
/* int */
605+
<3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_up>,
606+
/* pwr_good */
607+
<3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>,
608+
/* pwrup */
609+
<3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>,
610+
/* vcom_ctrl */
611+
<4 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
612+
};
613+
};
614+
566615
led {
567616
led_pin: led-pin {
568617
rockchip,pins = <3 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;

0 commit comments

Comments
 (0)