#21892: Oxnas pincontrol (GPIO) does not work
------------------------+-----------------------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: kernel | Version: Trunk
Resolution: | Keywords: oxnas ox820 gpio pincontrol
------------------------+-----------------------------------------
Comment (by dangole):
Ok, this sets debounce for GPIOB 9 and GPIOB 10. The equivalent device-
tree snippet with the pinctrl section corresponding to the pins MF_B9 and
MF_B10 being GPIOs with debounce masked looks like this:
{{{
pinctrl {
i2c {
pinctrl_i2c: i2c-0 {
plxtech,pins =
<1 9 0 4 /* MF_B9 GPIO
debounce */
1 10 0 4>; /* MF_B10 GPIO
debounce *
};
};
};
i2c-gpio {
compatible = "i2c-gpio";
gpios = <&GPIOB 9 0 &GPIOB 10 0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c>;
i2c-gpio,delay-us = <10>;
#address-cells = <1>;
#size-cells = <0>;
ds1307: rtc@68 {
compatible = "dallas,ds1307";
reg = <0x68>;
};
};
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/21892#comment:22>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets