本文共 3985 字,大约阅读时间需要 13 分钟。
mount -t debugfs debugfs /tmp
cat /tmp/gpio
GPIOs 0-127, platform/gpio.0, ambarella-gpio:
GPIO[0]: [0 - 31]
GPIO_BASE: 0xE8009000
GPIO_AFSEL: 0x18000004
GPIO_DIR: 0x07000000
GPIO_MASK: 0x02000000:0xE7FFFFFB
GPIO_DATA: 0x84000010
IOMUX_REG0_0: 0x18000004
IOMUX_REG0_1: 0x00000000
IOMUX_REG0_2: 0x00000000
gpio-0 [GPIO] ( ) in lo
gpio-1 [GPIO] ( ) in lo
gpio-2 [HW ] (alt1)
gpio-3 [GPIO] ( ) in lo
gpio-4 [GPIO] ( ) in hi
gpio-5 [GPIO] ( ) in lo
gpio-6 [GPIO] ( ) in lo
gpio-7 [GPIO] ( ) in lo
gpio-8 [GPIO] ( ) in lo
gpio-9 [GPIO] ( ) in lo
gpio-10 [GPIO] ( ) in lo
gpio-11 [GPIO] ( ) in lo
gpio-12 [GPIO] ( ) in lo
gpio-13 [GPIO] ( ) in lo
gpio-14 [GPIO] ( ) in lo
gpio-15 [GPIO] ( ) in lo
gpio-16 [GPIO] ( ) in lo
gpio-17 [GPIO] ( ) in lo
gpio-18 [GPIO] ( ) in lo
gpio-19 [GPIO] ( ) in lo
gpio-20 [GPIO] ( ) in lo
gpio-21 [GPIO] ( ) in lo
gpio-22 [GPIO] ( ) in lo
gpio-23 [GPIO] ( ) in lo
gpio-24 [GPIO] ( ) out lo
gpio-25 [GPIO] ( ) out lo
gpio-26 [GPIO] ( ) out hi
gpio-27 [HW ] (alt1)
gpio-28 [HW ] (alt1)
gpio-29 [GPIO] ( ) in lo
gpio-30 [GPIO] ( ) in lo
gpio-31 [GPIO] (sysfs ) in hi
GPIO[1]: [32 - 63]
GPIO_BASE: 0xE800A000
GPIO_AFSEL: 0xE1C03F8C
GPIO_DIR: 0x006D4052
GPIO_MASK: 0x00000001:0x1E3FC073
GPIO_DATA: 0x16354003
IOMUX_REG1_0: 0x0012BF8C
IOMUX_REG1_1: 0xFFC0000C
IOMUX_REG1_2: 0x00000000
gpio-32 [GPIO] (sysfs ) in hi
gpio-33 [GPIO] ( ) out hi
gpio-34 [HW ] (alt3)
gpio-35 [HW ] (alt3)
gpio-36 [GPIO] ( ) out lo
gpio-37 [GPIO] ( ) in lo
gpio-38 [GPIO] ( ) out lo
gpio-39 [HW ] (alt1)
gpio-40 [HW ] (alt1)
gpio-41 [HW ] (alt1)
gpio-42 [HW ] (alt1)
gpio-43 [HW ] (alt1)
gpio-44 [HW ] (alt1)
gpio-45 [HW ] (alt1)
gpio-46 [GPIO] ( ) out hi
gpio-47 [HW ] (alt1)
gpio-48 [GPIO] ( ) out hi
gpio-49 [HW ] (alt1)
gpio-50 [GPIO] ( ) out hi
gpio-51 [GPIO] ( ) out lo
gpio-52 [HW ] (alt1)
gpio-53 [GPIO] ( ) out hi
gpio-54 [HW ] (alt2)
gpio-55 [HW ] (alt2)
gpio-56 [HW ] (alt2)
gpio-57 [HW ] (alt2)
gpio-58 [HW ] (alt2)
gpio-59 [HW ] (alt2)
gpio-60 [HW ] (alt2)
gpio-61 [HW ] (alt2)
gpio-62 [HW ] (alt2)
gpio-63 [HW ] (alt2)
GPIO[2]: [64 - 95]
GPIO_BASE: 0xE800E000
GPIO_AFSEL: 0x000001FF
GPIO_DIR: 0x58004000
GPIO_MASK: 0xFFFFFE00:0xFFFFFE00
GPIO_DATA: 0x10001E00
IOMUX_REG2_0: 0xE0000000
IOMUX_REG2_1: 0x00001FFF
IOMUX_REG2_2: 0x00000000
gpio-64 [HW ] (alt2)
gpio-65 [HW ] (alt2)
gpio-66 [HW ] (alt2)
gpio-67 [HW ] (alt2)
gpio-68 [HW ] (alt2)
gpio-69 [HW ] (alt2)
gpio-70 [HW ] (alt2)
gpio-71 [HW ] (alt2)
gpio-72 [HW ] (alt2)
gpio-73 [HW ] (alt2)
gpio-74 [HW ] (alt2)
gpio-75 [HW ] (alt2)
gpio-76 [HW ] (alt2)
gpio-77 [GPIO] ( ) in lo
gpio-78 [GPIO] ( ) out lo
gpio-79 [GPIO] ( ) in lo
gpio-80 [GPIO] ( ) in lo
gpio-81 [GPIO] ( ) in lo
gpio-82 [GPIO] ( ) in lo
gpio-83 [GPIO] ( ) in lo
gpio-84 [GPIO] ( ) in lo
gpio-85 [GPIO] ( ) in lo
gpio-86 [GPIO] ( ) in lo
gpio-87 [GPIO] ( ) in lo
gpio-88 [GPIO] ( ) in lo
gpio-89 [GPIO] ( ) in lo
gpio-90 [GPIO] ( ) in lo
gpio-91 [GPIO] ( ) out lo
gpio-92 [GPIO] ( ) out hi
gpio-93 [HW ] (alt1)
gpio-94 [HW ] (alt1)
gpio-95 [HW ] (alt1)
GPIO[3]: [96 - 127]
GPIO_BASE: 0xE8010000
GPIO_AFSEL: 0x00020000
GPIO_DIR: 0x00027E1D
GPIO_MASK: 0xFFFDFFFF:0xFFFDFFFF
GPIO_DATA: 0x0000EE15
IOMUX_REG3_0: 0x000387EE
IOMUX_REG3_1: 0x00000000
IOMUX_REG3_2: 0x00000000
gpio-96 [GPIO] ( ) out hi
gpio-97 [HW ] (alt1)
gpio-98 [HW ] (alt1)
gpio-99 [HW ] (alt1)
gpio-100 [GPIO] ( ) out hi
gpio-101 [HW ] (alt1)
gpio-102 [HW ] (alt1)
gpio-103 [HW ] (alt1)
gpio-104 [HW ] (alt1)
gpio-105 [HW ] (alt1)
gpio-106 [HW ] (alt1)
gpio-107 [GPIO] ( ) out hi
gpio-108 [GPIO] ( ) out lo
gpio-109 [GPIO] ( ) out hi
gpio-110 [GPIO] ( ) out hi
gpio-111 [HW ] (alt1)
gpio-112 [HW ] (alt1)
gpio-113 [HW ] (alt1)
gpio-114 [GPIO] ( ) in lo
gpio-115 [GPIO] ( ) in lo
gpio-116 [GPIO] ( ) in lo
gpio-117 [GPIO] ( ) in lo
gpio-118 [GPIO] ( ) in lo
gpio-119 [GPIO] ( ) in lo
gpio-120 [GPIO] ( ) in lo
gpio-121 [GPIO] ( ) in lo
gpio-122 [GPIO] ( ) in lo
gpio-123 [GPIO] ( ) in lo
gpio-124 [GPIO] ( ) in lo
gpio-125 [GPIO] ( ) in lo
gpio-126 [GPIO] ( ) in lo
gpio-127 [GPIO] ( ) in lo
转载地址:http://lqhiv.baihongyu.com/