1. 25 Nov, 2015 9 commits
  2. 24 Nov, 2015 5 commits
    • Johan Hovold's avatar
      greybus: Documentation/sysfs: update the example sysfs tree · f6f8aeaa
      Johan Hovold authored
      Update the example sysfs-tree layout under Documentation.
      
      The new layout reflects changes to the kernel device-model that are
      needed to eventually be able to handle multiple AP-bridges.
      
      The example tree has two AP-bridges, each with its own view of the
      UniPro network, the bus.
      
      .
      ├── greybus1
      │   ├── 1-2
      │   │   ├── 1-2.1
      │   │   │   ├── class
      │   │   │   ├── id
      │   │   │   └── state
      │   │   ├── 1-2.2
      │   │   │   ├── class
      │   │   │   ├── id
      │   │   │   └── state
      │   │   ├── id
      │   │   ├── product_id
      │   │   ├── unique_id
      │   │   └── vendor_id
      │   ├── 1-4
      │   │   ├── 1-4.2
      │   │   │   ├── class
      │   │   │   ├── gpbridge0
      │   │   │   │   ├── gpio
      │   │   │   │   │   └── gpiochip490
      │   │   │   │   └── i2c-4
      │   │   │   ├── id
      │   │   │   └── state
      │   │   ├── id
      │   │   ├── product_id
      │   │   ├── unique_id
      │   │   └── vendor_id
      │   └── 1-svc
      │       ├── ap_intf_id
      │       ├── eject
      │       ├── endo_id
      │       └── unique_id
      └── greybus2
          ├── 2-3
          │   ├── 2-3.1
          │   │   ├── class
          │   │   ├── id
          │   │   └── state
          │   ├── id
          │   ├── product_id
          │   ├── unique_id
          │   └── vendor_id
          └── 2-svc
              ├── ap_intf_id
              ├── eject
              ├── endo_id
              └── unique_id
      
      Every bus has exactly one svc device (1-svc and 2-svc). For our system,
      the svc device of each bus will be a representation of the same
      network-unique SVC device (e.g. endo_id and unique_id will be
      identical).
      
      The first bus has two registered interfaces (1-2 and 1-4), while the
      second bus has a single interface (2-3). Note that the interface ids (2,
      4, and 3) are necessarily unique as these are interfaces on the same
      network.
      
      Interface 1-2 has two bundles (1-2.1 and 1-2.2) and interface 1-4 has
      a single bundle (1-4.2). The bundle ids are interface-unique and reflect
      the ids found in each manifest.
      
      In the example, bundle 1-4.2 has a gbbridge-device, which is the parent
      device for a gpiochip device and an i2c bus.
      Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      f6f8aeaa
    • Sachin Pandhare's avatar
      greybus: manifest: simplify descriptor address calculation · fc25d906
      Sachin Pandhare authored
      This patch doesn't change any functionality. It just improves the
      readability of the code.
      Current code to get 'descriptors' pointer looks as if we are forcing the
      pointer type change. To simplify the address calculations, use
      'descriptors' member directly from greybus_manifest structure.
      Signed-off-by: default avatarSachin Pandhare <sachin.pandhare@linaro.org>
      Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      fc25d906
    • Johan Hovold's avatar
      greybus: hd: fix cport-count check · bfe2c99c
      Johan Hovold authored
      Fix off-by-one error when checking the number of cports a host-device
      supports.
      
      The CPORT_ID_MAX is the largest valid cport id so the maximum number of
      cports a host-device can use is CPORT_ID_MAX + 1.
      Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
      Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      bfe2c99c
    • Johan Hovold's avatar
      greybus: connection: fix cport-id range · 39f36c8f
      Johan Hovold authored
      Fix cport-id allocation that failed to include the highest port id in the
      available cport-id range.
      Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      39f36c8f
    • Vaibhav Agarwal's avatar
      greybus: Audio: Add skeleton code for GB virtual codec driver · d3d2af51
      Vaibhav Agarwal authored
      This patch adds gb-codec driver with static information for
      DAPM widgets, controls & dapm_routes.
      
      Including some changes in kernel code(machine driver):
      - Able to register codec and glue it with existing sound card successfully.
      - Able to view & modify mixer controls:
              (volume/mute[left/right][input/output])
      - Able to view DAPM widgets registered via /debug interface.
      - Able to establish DAPM path for playback.
      
      Since, FE<->BE path not yet verified with default jetson build,
      registering GB DAI as normal DAI link to verify GB virtual codec
      specific DAPM path.
      Signed-off-by: default avatarVaibhav Agarwal <vaibhav.agarwal@linaro.org>
      Reviewed-by: default avatarMark Greer <mgreer@animalcreek.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
      d3d2af51
  3. 22 Nov, 2015 6 commits
  4. 20 Nov, 2015 5 commits
  5. 17 Nov, 2015 4 commits
  6. 13 Nov, 2015 4 commits
  7. 12 Nov, 2015 1 commit
  8. 11 Nov, 2015 6 commits