Home
last modified time | relevance | path

Searched hist:"1871 e6f7c5e606b97708af50a7fec83a904a761b" (Results 1 – 1 of 1) sorted by relevance

/linux/arch/arm64/boot/dts/rockchip/
H A Dpx30-ringneck.dtsi1871e6f7c5e606b97708af50a7fec83a904a761b Thu Sep 26 13:20:30 UTC 2024 Jakob Unterwurzacher <jakobunt@gmail.com> arm64: dts: rockchip: add attiny_rst_gate to Ringneck

Ringneck v1.4 can contain (placement option) an on-board ATtiny
microcontroller instead of an STM32. In normal operation, this
is transparent to the software, as both microcontrollers emulate
the same ICs (amc6821 and isl1208).

For flashing the ATtiny, the SWITCH_REG1 regulator of the board's PMIC is
used to enable the ATtiny UPDI debug interface. If the STM32 is placed, or if
we are running on an older Ringneck revision, SWITCH_REG1 is not connected
and has no effect.

Add attiny-updi-gate-regulator so userspace can control it via sysfs
(needs CONFIG_REGULATOR_USERSPACE_CONSUMER):

echo enabled > /sys/devices/platform/attiny-updi-gate-regulator/state

Signed-off-by: Jakob Unterwurzacher <jakob.unterwurzacher@cherry.de>
Tested-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Link: https://lore.kernel.org/r/20240926132028.21910-1-jakob.unterwurzacher@cherry.de
Signed-off-by: Heiko Stuebner <heiko@sntech.de>