Integrate mangoh with legato


#1

on my fresh 7607-1 mounted in mangoh-green module I had yocto and legato working with all sx1509x chipsets, and there were no strange mounts coming from mangOH.wp76xx.update

after flashing my build of yocto.cwe and legato.cwe support for all muxed stuff disapeared

now I’ve found there is an mangoh update but sx1509x chips are still not detected

Q1: how to integrate mangoh-update and legato.cwe in one image ?
Q2: why gpio-i2c is not working ?
Q3: do I need to apply some patches/changes to yocto ?

original yocto messages:
[ 11.221314] pca954x 4-0071: GPIO lookup for consumer reset
[ 11.221337] pca954x 4-0071: using lookup tables for GPIO lookup
[ 11.221349] pca954x 4-0071: lookup for GPIO reset failed
[ 11.221491] i2c-msm-v2 78b8000.i2c: msm_bus_scale_register_client(mstr-id:86):0xa (ok)
[ 11.229308] i2c i2c-4: Added multiplexed i2c bus 5
[ 11.229699] i2c i2c-4: Added multiplexed i2c bus 6
[ 11.230690] i2c i2c-4: Added multiplexed i2c bus 7
[ 11.231129] i2c i2c-4: Added multiplexed i2c bus 8
[ 11.231514] i2c i2c-4: Added multiplexed i2c bus 9
[ 11.231888] i2c i2c-4: Added multiplexed i2c bus 10
[ 11.232258] i2c i2c-4: Added multiplexed i2c bus 11
[ 11.232620] i2c i2c-4: Added multiplexed i2c bus 12
[ 11.232634] pca954x 4-0071: registered 8 multiplexed busses for I2C switch pca9548
[ 11.232993] mdm9607-asoc-snd soc:sound-wm8944: Defering mdm_asoc_machine_probe, q6_state 0
[ 11.240441] mangoh-iot mangoh-green: Detected WP76 or compatible.
[ 11.248349] gpiochip_find_base: found new base at 804
[ 11.248570] gpiochip_add: registered GPIOs 804 to 819 on device: sx1509q
[ 11.256396] gpiochip_find_base: found new base at 788
[ 11.256612] gpiochip_add: registered GPIOs 788 to 803 on device: sx1509q
[ 11.264568] gpiochip_find_base: found new base at 772
[ 11.264784] gpiochip_add: registered GPIOs 772 to 787 on device: sx1509q

now I have:

[ 17.800430] pca954x 4-0071: GPIO lookup for consumer reset
[ 17.800450] pca954x 4-0071: using lookup tables for GPIO lookup
[ 17.800462] pca954x 4-0071: lookup for GPIO reset failed
[ 17.801283] i2c i2c-4: Added multiplexed i2c bus 5
[ 17.801646] i2c i2c-4: Added multiplexed i2c bus 6
[ 17.802074] i2c i2c-4: Added multiplexed i2c bus 7
[ 17.802432] i2c i2c-4: Added multiplexed i2c bus 8
[ 17.802780] i2c i2c-4: Added multiplexed i2c bus 9
[ 17.803133] i2c i2c-4: Added multiplexed i2c bus 10
[ 17.803468] i2c i2c-4: Added multiplexed i2c bus 11
[ 17.803814] i2c i2c-4: Added multiplexed i2c bus 12
[ 17.803828] pca954x 4-0071: registered 8 multiplexed busses for I2C switch pca9548
[ 17.804448] mdm9607-asoc-snd soc:sound-wm8944: Defering mdm_asoc_machine_probe, q6_state 0
[ 17.812840] input: ST LSM6DS3 Accelerometer Sensor as /devices/78b8000.i2c/i2c-4/4-006a/input/input1
[ 17.813402] input: ST LSM6DS3 Gyroscope Sensor as /devices/78b8000.i2c/i2c-4/4-006a/input/input2
[ 17.813883] input: ST LSM6DS3 Significant Motion Sensor as /devices/78b8000.i2c/i2c-4/4-006a/input/input3
[ 17.814327] input: ST LSM6DS3 Step Counter Sensor as /devices/78b8000.i2c/i2c-4/4-006a/input/input4
[ 17.814785] input: ST LSM6DS3 Step Detector Sensor as /devices/78b8000.i2c/i2c-4/4-006a/input/input5
[ 17.815726] input: ST LSM6DS3 Tilt Sensor as /devices/78b8000.i2c/i2c-4/4-006a/input/input6
[ 17.828098] lsm6ds3 4-006a: lsm6ds3: probed
[ 17.862829] Executing example_init(), param1=‘Legato’ param2=‘loadable kernel module’.
[ 17.908835] mdm9607-asoc-snd soc:sound-wm8944: Defering mdm_asoc_machine_probe, q6_state 0
[ 18.046916] sps:BAM 0x07884000 (va:0xd09c0000) enabled: ver:0x18, number of pipes:24
[ 18.090790] mdm9607-asoc-snd soc:sound-wm8944: Defering mdm_asoc_machine_probe, q6_state 0
[ 22.175278] gpio_sync_ri: RI owner is Modem
[ 22.175303] gpio_map_name_to_num: find GPIO 38
[ 22.175312] export_store: Export GPIO: 38
[ 22.175336] gpio_sync_ri: RI owner is Modem
[ 22.175348] gpiod_export: sierra–find GPIO,chipdev = -822253552,chipngpio = 80,chipbase = 0
[ 24.598078] pil-q6v5-mss 4080000.qcom,mss: modem: Brought out of reset
[ 24.675900] pil-q6v5-mss 4080000.qcom,mss: Subsystem error monitoring/handling services are up
[ 24.676040] pil-q6v5-mss 4080000.qcom,mss: modem: Power/Clock ready interrupt received