* Re: Strange bug with supply dependency
2026-11-19 16:02 ` Ahmad Fatoum
@ 2026-11-19 16:18 ` Alexander Shiyan
2026-11-19 19:00 ` Ahmad Fatoum
0 siblings, 1 reply; 7+ messages in thread
From: Alexander Shiyan @ 2026-11-19 16:18 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: Marco Felsch, Barebox List
Hello.
barebox@Diasom DS-RK3588-SMARC-EVB:/ devinfo
`-- global
`-- nv
`-- platform
`-- feae0000.timer@feae0000.of
`-- timer.of
`-- fd7c0000.clock-controller@fd7c0000.of
`-- pinctrl.of
`-- fd8a0000.gpio@fd8a0000.of
`-- fec20000.gpio@fec20000.of
`-- fec30000.gpio@fec30000.of
`-- fec40000.gpio@fec40000.of
`-- fec50000.gpio@fec50000.of
`-- feb50000.serial@feb50000.of
`-- cs0
`-- 0x00000000-0xffffffffffffffff ( 0 Bytes): /dev/cs0
`-- memory-controller.of
`-- mem0
`-- 0x00000000-0xef5fffff ( 3.7 GiB): /dev/ram0
`-- mem1
`-- 0x00000000-0x2fbffffff ( 11.9 GiB): /dev/ram1
`-- mem2
`-- 0x00000000-0x039fffff ( 58 MiB): /dev/ram2
`-- mem3
`-- 0x00000000-0xffffffffffffffff ( 0 Bytes): /dev/mem
`-- netconsole
`-- 0x00000000-0xffffffffffffffff ( 0 Bytes): /dev/netconsole-1
`-- feaa0000.i2c@feaa0000.of
`-- i2c2
`-- rk86020
`-- m41t620
`-- evb-12v0-regulator.of
`-- vcc4v0-sys-regulator.of
`-- fd880000.i2c@fd880000.of
`-- i2c0
`-- pcal65240
`-- rk86021
`-- rk86030
`-- fd880000.i2c@fd880000:pmic@23.of
`-- fec10000.adc@fec10000.of
`-- machine
`-- firmware:scmi.of
`-- scmi_dev0
`-- scmi_dev1
`-- scmi_dev2
`-- firmware:optee.of
`-- tee0
`-- l3-cache.of
`-- display-subsystem.of
`-- pmu-a55.of
`-- pmu-a76.of
`-- psci.of
`-- clock-0.of
`-- clock-1.of
`-- fb000000.gpu@fb000000.of
`-- fc900000.iommu@fc900000.of
`-- fd58a000.syscon@fd58a000.of
`-- fd58c000.syscon@fd58c000.of
`-- fd5e8000.syscon@fd5e8000.of
`-- fd5ec000.syscon@fd5ec000.of
`-- fd5a4000.syscon@fd5a4000.of
`-- fd5a6000.syscon@fd5a6000.of
`-- fd5a8000.syscon@fd5a8000.of
`-- fd5ac000.syscon@fd5ac000.of
`-- fd5b0000.syscon@fd5b0000.of
`-- fd5b4000.syscon@fd5b4000.of
`-- fd5b5000.syscon@fd5b5000.of
`-- fd5bc000.syscon@fd5bc000.of
`-- fd5c4000.syscon@fd5c4000.of
`-- fd5c8000.syscon@fd5c8000.of
`-- fd5d0000.syscon@fd5d0000.of
`-- fd5d8000.syscon@fd5d8000.of
`-- fd5dc000.syscon@fd5dc000.of
`-- fd5e0000.syscon@fd5e0000.of
`-- fd5f0000.syscon@fd5f0000.of
`-- fd600000.sram@fd600000.of
`-- 0x00000000-0x000fffff ( 1 MiB): /dev/sram0
`-- fd8d8000.power-management@fd8d8000.of
`-- fd8d8000.power-management@fd8d8000:power-controller.of
`-- fdab0000.npu@fdab0000.of
`-- fdab9000.iommu@fdab9000.of
`-- fdac0000.npu@fdac0000.of
`-- fdaca000.iommu@fdaca000.of
`-- fdad0000.npu@fdad0000.of
`-- fdada000.iommu@fdada000.of
`-- fdb50000.video-codec@fdb50000.of
`-- fdb50800.iommu@fdb50800.of
`-- fdb60000.rga@fdb60000.of
`-- fdb60f00.iommu@fdb60f00.of
`-- fdb70f00.iommu@fdb70f00.of
`-- fdb80000.rga@fdb80000.of
`-- fdba0000.video-codec@fdba0000.of
`-- fdba0800.iommu@fdba0800.of
`-- fdba4800.iommu@fdba4800.of
`-- fdba8800.iommu@fdba8800.of
`-- fdbac800.iommu@fdbac800.of
`-- fdc38000.video-codec@fdc38000.of
`-- fdc38700.iommu@fdc38700.of
`-- fdc40700.iommu@fdc40700.of
`-- fdc70000.video-codec@fdc70000.of
`-- fdca0000.iommu@fdca0000.of
`-- fdf35000.qos@fdf35000.of
`-- fdf35200.qos@fdf35200.of
`-- fdf35400.qos@fdf35400.of
`-- fdf35600.qos@fdf35600.of
`-- fdf36000.qos@fdf36000.of
`-- fdf39000.qos@fdf39000.of
`-- fdf3d800.qos@fdf3d800.of
`-- fdf3e000.qos@fdf3e000.of
`-- fdf3e200.qos@fdf3e200.of
`-- fdf3e400.qos@fdf3e400.of
`-- fdf3e600.qos@fdf3e600.of
`-- fdf40000.qos@fdf40000.of
`-- fdf40200.qos@fdf40200.of
`-- fdf40400.qos@fdf40400.of
`-- fdf40500.qos@fdf40500.of
`-- fdf40600.qos@fdf40600.of
`-- fdf40800.qos@fdf40800.of
`-- fdf41000.qos@fdf41000.of
`-- fdf41100.qos@fdf41100.of
`-- fdf60000.qos@fdf60000.of
`-- fdf60200.qos@fdf60200.of
`-- fdf60400.qos@fdf60400.of
`-- fdf61000.qos@fdf61000.of
`-- fdf61200.qos@fdf61200.of
`-- fdf61400.qos@fdf61400.of
`-- fdf62000.qos@fdf62000.of
`-- fdf63000.qos@fdf63000.of
`-- fdf64000.qos@fdf64000.of
`-- fdf66000.qos@fdf66000.of
`-- fdf66200.qos@fdf66200.of
`-- fdf66400.qos@fdf66400.of
`-- fdf66600.qos@fdf66600.of
`-- fdf66800.qos@fdf66800.of
`-- fdf66a00.qos@fdf66a00.of
`-- fdf66c00.qos@fdf66c00.of
`-- fdf66e00.qos@fdf66e00.of
`-- fdf67000.qos@fdf67000.of
`-- fdf67200.qos@fdf67200.of
`-- fdf70000.qos@fdf70000.of
`-- fdf71000.qos@fdf71000.of
`-- fdf72000.qos@fdf72000.of
`-- fdf72200.qos@fdf72200.of
`-- fdf72400.qos@fdf72400.of
`-- fdf80000.qos@fdf80000.of
`-- fdf81000.qos@fdf81000.of
`-- fdf81200.qos@fdf81200.of
`-- fdf82000.qos@fdf82000.of
`-- fdf82200.qos@fdf82200.of
`-- fe060000.dfi@fe060000.of
`-- fe2b0000.spi@fe2b0000.of
`-- vcc-3v3-sys-regulator.of
`-- vcc-sdmmc0-regulator.of
`-- fe2c0000.mmc@fe2c0000.of
`-- mmc1
`-- 0x00000000-0x39d4fffff ( 14.5 GiB): /dev/mmc1
`-- 0x00008000-0x00287fff ( 2.5 MiB): /dev/mmc1.0, mmc1.boot
`-- 0x00288000-0x00387fff ( 1 MiB): /dev/mmc1.1, mmc1.env
`-- 0x00388000-0x5ad87fff ( 1.4 GiB): /dev/mmc1.2, mmc1.root
`-- fe2e0000.mmc@fe2e0000.of
`-- mmc0
`-- 0x00000000-0x003fffff ( 4 MiB): /dev/mmc0.boot0
`-- 0x00000000-0x003fffff ( 4 MiB): /dev/mmc0.boot1
`-- 0x00000000-0x7487fffff ( 29.1 GiB): /dev/mmc0
`-- fe378000.rng@fe378000.of
`-- fe600000.interrupt-controller@fe600000.of
`-- fea10000.dma-controller@fea10000.of
`-- fea30000.dma-controller@fea30000.of
`-- feac0000.i2c@feac0000.of
`-- i2c4
`-- fead0000.i2c@fead0000.of
`-- i2c5
`-- 24c020
`-- eeprom0
`-- 0x00000000-0x000000ff ( 256 Bytes): /dev/eeprom0
`-- 0x00000000-0x00000005 ( 6 Bytes):
/dev/eeprom0.mac-address@fa
`-- 24c021
`-- eeprom1
`-- 0x00000000-0x000000ff ( 256 Bytes): /dev/eeprom1
`-- 0x00000000-0x00000005 ( 6 Bytes):
/dev/eeprom1.mac-address@fa
`-- feaf0000.watchdog@feaf0000.of
`-- wdog0
`-- feb30000.spi@feb30000.of
`-- spi@00
`-- spi@10
`-- fec00000.tsadc@fec00000.of
`-- fec90000.i2c@fec90000.of
`-- i2c7
`-- fecc0000.efuse@fecc0000.of
`-- rockchip-otp0
`-- 0x00000000-0x000003ff ( 1 KiB): /dev/rockchip-otp0
`-- 0x00000000-0x00000001 ( 2 Bytes): /dev/rockchip-otp0.cpu-code@2
`-- 0x00000000-0x0000000f ( 16 Bytes): /dev/rockchip-otp0.id@7
`-- 0x00000000-0x00000000 ( 1 Bytes):
/dev/rockchip-otp0.cpu-leakage@17
`-- 0x00000000-0x00000000 ( 1 Bytes):
/dev/rockchip-otp0.cpu-leakage@18
`-- 0x00000000-0x00000000 ( 1 Bytes):
/dev/rockchip-otp0.cpu-leakage@19
`-- 0x00000000-0x00000000 ( 1 Bytes):
/dev/rockchip-otp0.log-leakage@1a
`-- 0x00000000-0x00000000 ( 1 Bytes):
/dev/rockchip-otp0.gpu-leakage@1b
`-- 0x00000000-0x00000000 ( 1 Bytes):
/dev/rockchip-otp0.cpu-version@1c
`-- 0x00000000-0x00000000 ( 1 Bytes):
/dev/rockchip-otp0.npu-leakage@28
`-- 0x00000000-0x00000000 ( 1 Bytes):
/dev/rockchip-otp0.codec-leakage@29
`-- fed10000.dma-controller@fed10000.of
`-- ff001000.sram@ff001000.of
`-- 0x00000000-0x000eefff ( 956 KiB): /dev/sram1
`-- fd5b8000.syscon@fd5b8000.of
`-- fd5c0000.syscon@fd5c0000.of
`-- fd5cc000.syscon@fd5cc000.of
`-- fd5d4000.syscon@fd5d4000.of
`-- fd5e4000.syscon@fd5e4000.of
`-- opp-table-cluster0.of
`-- opp-table-cluster1.of
`-- opp-table-cluster2.of
`-- opp-table-gpu.of
`-- adc-keys-1.of
`-- gpio-keys.of
`-- gpio-restart.of
`-- leds.of
`-- vcc1v1-nldo-regulator.of
`-- evb-3v3-regulator.of
`-- evb-5v0-regulator.of
`-- chosen:environment-sd.of
`-- mdio_bus
`-- usb
`-- usbotg
`-- spi
`-- i2c
`-- nvmem-layout
`-- pci
`-- scmi_protocol
`-- tee
`-- fs
`-- ramfs0
`-- genpd
`-- mipi-dsi
`-- gadget
barebox@Diasom DS-RK3588-SMARC-EVB:/ drvinfo
Driver Device(s)
--------------------
rockchip-gate-link-clk
clk-rk3568
clk-rk3588
fd7c0000.clock-controller@fd7c0000.of
scmi-clocks
scmi_dev1
gated-fixed-clk
gpio-gate-clock
syscon
rockchip-gpio
fd8a0000.gpio@fd8a0000.of
fec20000.gpio@fec20000.of
fec30000.gpio@fec30000.of
fec40000.gpio@fec40000.of
fec50000.gpio@fec50000.of
rockchip-pinctrl
pinctrl.of
simple-pm-bus
scmi-regulator
scmi-reset
scmi_dev2
arm-scmi
firmware:scmi.of
scmi-power-domain
optee
firmware:optee.of
arm-architected-timer
timer.of
rockchip-pm-domain
fd8d8000.power-management@fd8d8000:power-controller.of
ns16550_serial
feb50000.serial@feb50000.of
rockchip-dmc
memory-controller.of
rockchip-spi
feb30000.spi@feb30000.of
rk3x-i2c
feaa0000.i2c@feaa0000.of
fd880000.i2c@fd880000.of
feac0000.i2c@feac0000.of
fead0000.i2c@fead0000.of
fec90000.i2c@fec90000.of
rk808
rk808
regulator-fixed
vcc4v0-sys-regulator.of
evb-12v0-regulator.of
vcc-sdmmc0-regulator.of
vcc-3v3-sys-regulator.of
vcc1v1-nldo-regulator.of
evb-3v3-regulator.of
evb-5v0-regulator.of
rockchip-usb2phy
naneng-combphy
rockchip-snps-pcie3-phy
rockchip-usbdp-phy
rockchip-iodomain
ext4
ramfs
ramfs0
tftp
nfs
fat
psci
psci.of
board-ds-rk3568-som
board-ds-rk3588
machine
Generic PHY
RTL8201CP Ethernet
RTL8201F Fast Ethernet
RTL8226B_RTL8221B 2.5Gbps PHY
RTL8208 Fast Ethernet
RTL8211 Gigabit Ethernet
RTL8211B Gigabit Ethernet
RTL8211C Gigabit Ethernet
RTL8211DN Gigabit Ethernet
RTL8211E Gigabit Ethernet
RTL8211F Gigabit Ethernet
Generic FE-GE Realtek PHY
RTL8211F-VD Gigabit Ethernet
RTL8226-CG 2.5Gbps PHY
RTL8226B-CG_RTL8221B-CG 2.5Gbps PHY
RTL8221B-VB-CG 2.5Gbps PHY
RTL8221B-VM-CG 2.5Gbps PHY
RTL8366RB Gigabit Ethernet
RTL8365MB-VC Gigabit Ethernet
RTL8366S Gigabit Ethernet
mdio-gpio
eqos-rockchip
rtl8169_eth
usb-hub
dwc3
usb-storage
ehci
xHCI
onboard-usb-dev
pca954x
rk3568-dwcmshc-sdhci
fe2e0000.mmc@fe2e0000.of
dw_mmc
fe2c0000.mmc@fe2c0000.of
pwm-backlight
diasom-panel
rockchip-vop2
dwhdmi-rockchip
dw-mipi-dsi-rockchip
gpio-leds
leds.of
at24
24c020
24c021
rockchip-pwm
mmio-sram
fd600000.sram@fd600000.of
ff001000.sram@ff001000.of
mem
mem0
mem1
mem2
mem3
nvmem_cells
nvmem-rmem
rockchip-otp
fecc0000.efuse@fecc0000.of
dw-wdt
feaf0000.watchdog@feaf0000.of
pca953x
pcal65240
optee-rng
rockchip-rng
fan53555-regulator
rk86020
rk86021
rk86030
rk808-regulator
rockchip-dw-pcie
inno-dsidphy
rockchip_saradc
nvme
restart-gpio
gpio-restart.of
barebox-environment
chosen:environment-sd.of
Use 'devinfo DEVICE' for more information
чт, 19 нояб. 2026 г. в 19:02, Ahmad Fatoum <a.fatoum@pengutronix.de>:
>
> Hello Alexander,
>
> On 11/19/26 4:30 PM, Alexander Shiyan wrote:
> > Hello.
> > I meant that the PMIC driver prints no errors in this case.
> > Only GPIO driver print the error.
> > Currently, it looks like this:
> >
> > Board: Diasom DS-RK3588-SMARC-EVB
> > rockchip-dmc memory-controller.of: Detected memory size: 0x400000000
> > netconsole: registered as netconsole-1
> > fan53555-regulator rk86020: FAN53555 Option[10] Rev[1] Detected!
> > WARNING: pca953x pcal65240: Failed to get 'vcc' regulator with
> > Requested probe deferral (ignored).
> > fan53555-regulator rk86021: FAN53555 Option[10] Rev[1] Detected!
> > fan53555-regulator rk86030: FAN53555 Option[10] Rev[1] Detected!
> > ERROR: rockchip_saradc fec10000.adc@fec10000.of: can't get
> > vref-supply: Requested probe deferral
> > ERROR: rockchip_saradc fec10000.adc@fec10000.of: probe permanently deferred
> > ERROR: Could not find ADC channel "aiodev0.in_value1_mV": -2!
> > ERROR: Could not find ADC channel "aiodev0.in_value7_mV": -2!
>
> Do you reach a shell afterwards? Can you share the devinfo/drvinfo output?
>
> Cheers,
> Ahmad
>
> >
> > чт, 19 нояб. 2026 г. в 18:08, Marco Felsch <m.felsch@pengutronix.de>:
> >>
> >> On 26-11-19 17:19, Alexander Shiyan wrote:
> >>> Hello All.
> >>>
> >>> I have the following DTS fragment:
> >>>
> >>> exp: gpio@22 {
> >>> compatible = "nxp,pcal6524";
> >>> reg = <0x22>;
> >>> gpio-controller;
> >>> #gpio-cells = <2>;
> >>> // vcc-supply = <&vcc_1v8>;
> >>> };
> >>>
> >>> pmic@23 {
> >>> pinctrl-names = "default";
> >>> pinctrl-0 = <&pmic_pins &rk806_dvs1 &rk806_dvs2 &rk806_dvs3>;
> >>> compatible = "rockchip,rk806";
> >>> reg = <0x23>;
> >>> ...
> >>> regulators {
> >>> ...
> >>> vcc_1v8: dcdc-reg10 {
> >>> regulator-name = "vcc_1v8";
> >>> regulator-always-on;
> >>> regulator-boot-on;
> >>> regulator-min-microvolt = <1800000>;
> >>> regulator-max-microvolt = <1800000>;
> >>>
> >>> regulator-state-mem {
> >>> regulator-on-in-suspend;
> >>> regulator-suspend-microvolt = <1800000>;
> >>> };
> >>> };
> >>> ...
> >>>
> >>> Uncommenting the "vcc-supply" line causes the PMIC driver to silently
> >>> fail to load,
> >>
> >> What do you mean by silently? Are there no error messages?
> >>
> >> You extend the driver error message from:
> >>
> >> dev_warn(dev, "Failed to get 'vcc' regulator (ignored).\n");
> >>
> >> to
> >>
> >> dev_warn(dev, "Failed to get 'vcc' regulator with %pe (ignored).\n", reg);
> >>
> >> Regards,
> >> Marco
> >>
> >>> which in turn breaks all devices powered by the PMIC.
> >>> None of the expander's GPIOs are used anywhere.
> >>> When this line is commented out, everything works as expected.
> >>> Is there some sort of dependency from sharing the same bus?
> >>>
> >>> Thanks!
> >>>
> >
>
> --
> Pengutronix e.K. | |
> Steuerwalder Str. 21 | http://www.pengutronix.de/ |
> 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
>
^ permalink raw reply [flat|nested] 7+ messages in thread