Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jz4780: 3.18 ADC fixes #39

Merged
merged 6 commits into from
Jul 7, 2015
Merged

jz4780: 3.18 ADC fixes #39

merged 6 commits into from
Jul 7, 2015

Commits on Jun 29, 2015

  1. dt: mfd: jz4740-adc: Add binding documentation

    This patch adds a simple binding documentation file for the
    Ingenic JZ4740-ADC driver
    
    Signed-off-by: Zubair Lutfullah Kakakhel <[email protected]>
    Zubair Lutfullah Kakakhel authored and mpredfearn committed Jun 29, 2015
    Configuration menu
    Copy the full SHA
    3f51fb9 View commit details
    Browse the repository at this point in the history
  2. mfd: jz4740-adc: Add DT support to driver

    Only needs of_match and compatible string.
    Probe needs no modifications
    
    Signed-off-by: Zubair Lutfullah Kakakhel <[email protected]>
    Zubair Lutfullah Kakakhel authored and mpredfearn committed Jun 29, 2015
    Configuration menu
    Copy the full SHA
    6d704db View commit details
    Browse the repository at this point in the history
  3. mfd: jz4740--adc: clk_prepare_enable during probe

    Clock is prepared and enabled during probe.
    Otherwise, subsequent writes to the ADC module don't work.
    
    Tested on JZ4780.
    
    Signed-off-by: Zubair Lutfullah Kakakhel <[email protected]>
    Zubair Lutfullah Kakakhel authored and mpredfearn committed Jun 29, 2015
    Configuration menu
    Copy the full SHA
    dbb4bce View commit details
    Browse the repository at this point in the history
  4. mfd: hwmon: jz4740-adc: Add jz4780 support.

    The adc module is similar. But there are key differences that are
    not apparent in the manuals. Usually the manual makes the text
    blue in cases of changes between SoCs. But not for the ADC
    module.
    
    The differences found are:
    
    1: More ADC lines
    2: Another register instead of a few bits for CLK_DIV
    3: More CLK_DIV settings
    4: Bits for choosing AUX1/AUX2 sampling.
    
    Signed-off-by: Zubair Lutfullah Kakakhel <[email protected]>
    Zubair Lutfullah Kakakhel authored and mpredfearn committed Jun 29, 2015
    Configuration menu
    Copy the full SHA
    25caa76 View commit details
    Browse the repository at this point in the history
  5. Add node for ADC driver in the jz4780 dt file.

        The jz4780 adc relies on the same driver used by the jz4740
        with some modifications
    
    Signed-off-by: Matt Redfearn <[email protected]>
    mpredfearn committed Jun 29, 2015
    Configuration menu
    Copy the full SHA
    1d7bd19 View commit details
    Browse the repository at this point in the history
  6. jz4740: mfd: Allocate IRQs using irq_alloc_descs

    The ADC IRQ line is multiplexed to 6 ADC interrupt sources
    Change the ADC base interrupt number to one that is available
    Define the number of ADC interrupts sources
    Allocate the IRQs using irq_alloc_descs during probe
    
    Signed-off-by: Matt Redfearn <[email protected]>
    mpredfearn committed Jun 29, 2015
    Configuration menu
    Copy the full SHA
    2029a20 View commit details
    Browse the repository at this point in the history