[Letux-kernel] X1600 / LX16 support - here: adding MMC
Andreas Kemnade
andreas at kemnade.info
Sat Feb 10 17:58:31 CET 2024
On Sat, 10 Feb 2024 14:53:47 +0100
"H. Nikolaus Schaller" <hns at goldelico.com> wrote:
> > Am 10.02.2024 um 12:45 schrieb Andreas Kemnade <andreas at kemnade.info>:
> >
> > On Sat, 10 Feb 2024 11:40:52 +0100
> > "H. Nikolaus Schaller" <hns at goldelico.com> wrote:
> >>
> >> Can you see /sys/class/leds? Then it should be possible to manually control
> >> the heartbeat LED gpio.
> >>
> > / # date ; sleep 60 ; date
> > Thu Jan 1 12:57:29 UTC 1970
> > Thu Jan 1 12:58:29 UTC 1970
> > / #
> > / # cd /sys/class/leds/led-0/
> > device/ power/ subsystem/
> > / # cd /sys/class/leds/led-0/
> > /sys/devices/platform/leds/leds/led-0 # ls
> > brightness max_brightness subsystem uevent
> > device power trigger
> > /sys/devices/platform/leds/leds/led-0 # cat brightness
> > 0
> > /sys/devices/platform/leds/leds/led-0 # cat trigger
> > [none] rfkill-any rfkill-none kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock timer oneshot heartbeat cpu cpu0 default-on transient mmc0
> > /sys/devices/platform/leds/leds/led-0 # echo 1 >brightness
> > /sys/devices/platform/leds/leds/led-0 # echo 0 >brightness
> > /sys/devices/platform/leds/leds/led-0 # cat max_brightness
> > 1
> > /sys/devices/platform/leds/leds/led-0 #
> >
> > no effect, the middle led is constantly on, the others are
> > constantly off.
> > /sys/devices/platform/leds/leds/led-0 # echo heartbeat >trigger
> >
> > no effect either.
>
> I think that's a hot lead!
>
> If pinctrl is broken, this can explain other problems. Like no clock at msc1.
> Or why we have to disable the UART DTS nodes. In that case the U-Boot defaults likely survive.
>
> Despite the pinctrl driver being part of the working 5.10.y it has got some (un)tested
> upstream work and adaptations for v6.8.
>
> Some ideas:
> * check /sys/kernel/debug/gpio (if the gpio is configured as output)
# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-31, parent: platform/10010000.pinctrl, GPIOA:
gpiochip1: GPIOs 32-63, parent: platform/10010000.pinctrl, GPIOB:
gpiochip2: GPIOs 64-95, parent: platform/10010000.pinctrl, GPIOC:
gpio-64 ( |led-0 ) in lo
gpio-92 ( |bootsel1 ) in lo IRQ
gpio-95 ( |WAKEUP ) in hi IRQ ACTIVE LOW
gpiochip3: GPIOs 96-127, parent: platform/10010000.pinctrl, GPIOD:
after unbinding led-gpio:
/sys/devices/platform/apb/10010000.pinctrl/gpiochip2/gpio/gpio64 # echo out >dir
ection
/sys/devices/platform/apb/10010000.pinctrl/gpiochip2/gpio/gpio64 # cat direction
in
Regards,
Andreas
More information about the Letux-kernel
mailing list