该平台使用kernel-5.4 不知道高通咋想的,想掏空linux么 kernel\msm-5.4\arch\arm64\configs\vendor\holi_QGKI.config 中打开下面的宏就可以了 CONFIG_GPIO_SYSFS=y
它的地址偏移量是355:
holi:/ # ls sys/class/gpio/
export gpiochip299 gpiochip318 gpiochip322 gpiochip334 gpiochip346 gpiochip355 unexport
holi:/ # cat /d/gpio
gpiochip5: GPIOs 299-317, parent: platform/soc:qcom,msm-audio-apr:qcom,q6core-audio:lpi_pinctrl@a7c0000, soc:qcom,msm-audio-apr:qcom,q6core-audio:lpi_pinctrl@a7c0000:
gpio0 : in 1 10mA pull down
gpio1 : in 1 10mA keeper
gpio2 : in 1 10mA pull down
gpio3 : in 1 10mA pull down
。。。
gpiochip4: GPIOs 318-321, parent: platform/1c40000.qcom,spmi:qcom,pmk8350@0:pinctrl@b000, 1c40000.qcom,spmi:qcom,pmk8350@0:pinctrl@b000:
gpio1 : in low normal vin-0 pull-down 10uA push-pull high atest-1 dtest-0
gpio2 : out low func1 vin-0 pull-down 10uA push-pull high atest-1 dtest-0
gpio3 : in low normal vin-0 pull-down 10uA push-pull high atest-1 dtest-0
gpio4 : in low normal vin-0 pull-down 10uA push-pull high atest-1 dtest-0
gpiochip3: GPIOs 322-333, parent: platform/1c40000.qcom,spmi:qcom,pm6150l@4:pinctrl@c000, 1c40000.qcom,spmi:qcom,pm6150l@4:pinctrl@c000:
gpio1 : in low normal vin-0 pull-down 10uA push-pull high atest-1 dtest-0
gpio2 : in low normal vin-0 pull-down 10uA push-pull high atest-1 dtest-0
。。。
gpiochip2: GPIOs 334-345, parent: platform/1c40000.qcom,spmi:qcom,pm7250b@2:pinctrl@c000, 1c40000.qcom,spmi:qcom,pm7250b@2:pinctrl@c000:
gpio1 : in low normal vin-0 pull-down 10uA push-pull high atest-1 dtest-0
gpio2 : in low normal vin-0 pull-down 10uA push-pull high atest-1 dtest-0
gpio3 : in low normal vin-0 pull-down 10uA push-pull high atest-1 dtest-0
。。。
gpiochip1: GPIOs 346-354, parent: platform/1c40000.qcom,spmi:qcom,pm6350@0:pinctrl@c000, 1c40000.qcom,spmi:qcom,pm6350@0:pinctrl@c000:
gpio1 : in low normal vin-0 pull-down 10uA push-pull high atest-1 dtest-0
gpio2 : in high normal vin-0 pull-up 30uA push-pull high atest-1 dtest-0
。。。
//CPU gpio
gpiochip0: GPIOs 355-511, parent: platform/400000.pinctrl, 400000.pinctrl:
gpio0 : in high func0 2mA no pull egpio_present:0 egpio_enable:0
gpio1 : in high func0 2mA no pull egpio_present:0 egpio_enable:0
gpio2 : out low func0 2mA pull down egpio_present:0 egpio_enable:0
gpio3 : in low func0 2mA pull down egpio_present:0 egpio_enable:0
。。。
|