Hi,

I've installed the latest OpenWRT trunk version. Everything
seems to be fine except the port numbering:

~# cat /sys/kernel/debug/gpio
gpiochip2: GPIOs 416-447, parent: platform/10000600.gpio, 10000600.gpio-bank2:

gpiochip1: GPIOs 448-479, parent: platform/10000600.gpio, 10000600.gpio-bank1:
 gpio-454 (                    |reset               ) in  lo IRQ
 gpio-460 (                    |omega2p:amber:system) out hi ACTIVE LOW

gpiochip0: GPIOs 480-511, parent: platform/10000600.gpio, 10000600.gpio-bank0:
 gpio-498 (                    |omega2p:green:link  ) out hi ACTIVE LOW
 gpio-499 (                    |omega2p:amber:activi) out hi ACTIVE LOW

The DTS file looks like:

        leds {
                compatible = "gpio-leds";

                system_led: system {
                        gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
                };
                network1 {
                        label = "omega2p:green:link";
                        gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                };
                network2 {
                        label = "omega2p:amber:activity";
                        gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
                };
        };

        keys {
                compatible = "gpio-keys";

                reset {
                        label = "reset";
                        gpios = <&gpio 38 GPIO_ACTIVE_HIGH>;
                        linux,code = <KEY_RESTART>;
                };



Is this common to the new kernel versions or is there
something missing ?

Here the kernel log:

~# dmesg  | head ; dmesg | grep gpio
[ 0.000000] Linux version 5.4.36 (misterx@ding) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r12975-9fd36f54f5)) #0 PREEMPT Thu Apr 30 19:51:12 2020
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7688 ver:1 eco:2
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is Onion Omega2+
[    0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.287441] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.294177] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.300558] mt7621_gpio 10000600.gpio: registering 32 gpios


Regards

Gerd

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to