Page MenuHomeFreeBSD

gpiopps support patch
ClosedPublic

Authored by yamori813_yahoo.co.jp on Feb 24 2017, 7:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 2, 7:42 PM
Unknown Object (File)
Tue, Apr 2, 5:58 PM
Unknown Object (File)
Mar 17 2024, 2:34 AM
Unknown Object (File)
Mar 16 2024, 6:43 PM
Unknown Object (File)
Mar 16 2024, 6:40 PM
Unknown Object (File)
Mar 16 2024, 6:40 PM
Unknown Object (File)
Mar 16 2024, 6:40 PM
Unknown Object (File)
Mar 14 2024, 3:46 AM
Subscribers

Details

Summary

This is dev/gpio/gpiopps.c support patch. I added code base on
arm/freescale/imx/imx_gpio.c. I add this to my dts.

pps {
        compatible = "pps-gpio";
        gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
        status = "okay";
        assert-falling-edge;
};

Also add gpiopps device to kernel configuration.

I check use this module. Sorry only Japanes page.

http://akizukidenshi.com/catalog/g/gK-09991/

Test Plan

FON2405(RT3050) with 8M SPI Flash

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

yamori813_yahoo.co.jp retitled this revision from to gpiopps support patch.
yamori813_yahoo.co.jp updated this object.
yamori813_yahoo.co.jp edited the test plan for this revision. (Show Details)
mizhka edited edge metadata.

@sgalabov , could you please have a look? Thanks!

sys/mips/mediatek/mtk_gpio_v1.c
294–297 ↗(On Diff #25648)

sc->pins[i].pin_caps |= GPIO_PIN_INPUT | GPIO_PIN_OUTPUT |

GPIO_PIN_INVIN | GPIO_PIN_INVOUT | 
GPIO_INTR_EDGE_RISING | GPIO_INTR_EDGE_FALLING;
508 ↗(On Diff #25648)

uint32_t?

571–573 ↗(On Diff #25648)

error may be EINVAL. It's better to printf error before lost of context.

This revision is now accepted and ready to land.Feb 27 2017, 8:36 PM
This revision now requires review to proceed.Mar 4 2017, 4:03 AM
This revision was automatically updated to reflect the committed changes.