Re: [LEDE-DEV] [PATCH 2/3] ramips-mt7621: add GPIO-config for Ubiquiti-EdgeRouterX(-SFP)

2018-03-23 Thread Gagan Sidhu
his amasing (lol) guidance. > On Mar 23, 2018, at 3:51 PM, Gagan Sidhu wrote: > > update: > > it seems the pins are supposed to be 11 and 4, and not 3 and 4: > >> i2c-gpio 1e00.palmbus:i2c-gpio@900: using pins 11 (SDA) and 4 (SCL) > > this results in the

Re: [LEDE-DEV] [PATCH 2/3] ramips-mt7621: add GPIO-config for Ubiquiti-EdgeRouterX(-SFP)

2018-03-23 Thread Gagan Sidhu
to see if he has any additional insights. these are the combinations i tried for SDA/SDL: 3/4 (failure) 4/11 (same as OF I2C approach, no RTC_RD_TIME) 4/5 (same as the above). thx > On Mar 23, 2018, at 3:16 PM, Gagan Sidhu wrote: > > >> On Mar 23, 2018, at 2:20 PM, Andrey Me

Re: [LEDE-DEV] [PATCH 2/3] ramips-mt7621: add GPIO-config for Ubiquiti-EdgeRouterX(-SFP)

2018-03-22 Thread Gagan Sidhu
hi guys, sorry for bumping this thread, but i found Sven’s approach interesting. in 4.x, it does not seem i can simply enable CONFIG_I2C_GPIO=y, add the i2c-gpio node: > i2c-gpio { > compatible = "i2c-gpio"; > gpios = <&gpio0 3 0 > &gpio0 4 0>; >

Re: [LEDE-DEV] [PATCH] ramips: Add I2C driver to the default kernel config

2018-03-03 Thread Gagan Sidhu
hey man, i was wondering if you could help me out with my RTC problem. currently, i’ve managed to get the rtc/i2c drivers to load but they’re not functioning properly. specifically, i cannot ‘get’ any value from the rtc without an “invalid argument” being returned. i have seen your patch post