02 Nov, 2011

2 commits

  • * 'next/dt' of git://git.linaro.org/people/arnd/arm-soc:
    ARM: gic: use module.h instead of export.h
    ARM: gic: fix irq_alloc_descs handling for sparse irq
    ARM: gic: add OF based initialization
    ARM: gic: add irq_domain support
    irq: support domains with non-zero hwirq base
    of/irq: introduce of_irq_init
    ARM: at91: add at91sam9g20 and Calao USB A9G20 DT support
    ARM: at91: dt: at91sam9g45 family and board device tree files
    arm/mx5: add device tree support for imx51 babbage
    arm/mx5: add device tree support for imx53 boards
    ARM: msm: Add devicetree support for msm8660-surf
    msm_serial: Add devicetree support
    msm_serial: Use relative resources for iomem

    Fix up conflicts in arch/arm/mach-at91/{at91sam9260.c,at91sam9g45.c}

    Linus Torvalds
     
  • * 'next/cleanup2' of git://git.linaro.org/people/arnd/arm-soc: (31 commits)
    ARM: OMAP: Warn if omap_ioremap is called before SoC detection
    ARM: OMAP: Move set_globals initialization to happen in init_early
    ARM: OMAP: Map SRAM later on with ioremap_exec()
    ARM: OMAP: Remove calls to SRAM allocations for framebuffer
    ARM: OMAP: Avoid cpu_is_omapxxxx usage until map_io is done
    ARM: OMAP1: Use generic map_io, init_early and init_irq
    arm/dts: OMAP3+: Add mpu, dsp and iva nodes
    arm/dts: OMAP4: Add a main ocp entry bound to l3-noc driver
    ARM: OMAP2+: l3-noc: Add support for device-tree
    ARM: OMAP2+: board-generic: Add i2c static init
    ARM: OMAP2+: board-generic: Add DT support to generic board
    arm/dts: Add support for OMAP3 Beagle board
    arm/dts: Add initial device tree support for OMAP3 SoC
    arm/dts: Add support for OMAP4 SDP board
    arm/dts: Add support for OMAP4 PandaBoard
    arm/dts: Add initial device tree support for OMAP4 SoC
    ARM: OMAP: omap_device: Add a method to build an omap_device from a DT node
    ARM: OMAP: omap_device: Add omap_device_[alloc|delete] for DT integration
    of: Add helpers to get one string in multiple strings property
    ARM: OMAP2+: devices: Remove all omap_device_pm_latency structures
    ...

    Fix up trivial header file conflicts in arch/arm/mach-omap2/board-generic.c

    Linus Torvalds
     

31 Oct, 2011

2 commits

  • Conflicts:
    arch/arm/include/asm/localtimer.h
    arch/arm/mach-msm/board-msm8x60.c
    arch/arm/mach-omap2/board-generic.c

    Arnd Bergmann
     
  • of_irq_init will scan the devicetree for matching interrupt controller
    nodes. Then it calls an initialization function for each found controller
    in the proper order with parent nodes initialized before child nodes.

    Based on initial pseudo code from Grant Likely.

    Changes in v4:
    - Drop unnecessary empty list check
    - Be more verbose on errors
    - Simplify "if (!desc) WARN_ON(1)" to "if (WARN_ON(!desc))"

    Changes in v3:
    - add missing kfree's found by Jamie
    - Implement Grant's comments to simplify the init loop
    - fix function comments

    Changes in v2:
    - Complete re-write of list searching code from Grant Likely

    Signed-off-by: Rob Herring
    Reviewed-by: Jamie Iles
    Tested-by: Thomas Abraham
    Acked-by: Grant Likely

    Rob Herring
     

25 Oct, 2011

1 commit


06 Oct, 2011

1 commit


05 Oct, 2011

3 commits


23 Sep, 2011

1 commit

  • The patch adds function of_alias_scan to populate a global lookup
    table with the properties of 'aliases' node and function
    of_alias_get_id for drivers to find alias id from the lookup table.

    v3: Split out automatic addition of aliases on id lookup so that it can be
    debated separately from the core functionality.
    v2: - Add of_chosen/of_aliases populating and of_alias_scan() invocation
    for OF_PROMTREE.
    - Add locking
    - rework parse loop

    Signed-off-by: Shawn Guo
    Acked-by: David S. Miller
    Signed-off-by: Grant Likely

    Shawn Guo
     

04 Aug, 2011

1 commit


03 Aug, 2011

2 commits


02 Aug, 2011

2 commits

  • The helper functions for reading u32 integers, u32 arrays and strings
    should have the property name as a const pointer.

    Cc: Grant Likely
    Signed-off-by: Jamie Iles
    Signed-off-by: Grant Likely

    Jamie Iles
     
  • * 'gpio/next' of git://git.secretlab.ca/git/linux-2.6:
    gpio_msm: Move Qualcomm MSM v2 gpio driver into drivers
    gpio_msm: Move Qualcomm v6 MSM driver into drivers
    msm: gpio: Fold register defs into C file
    msm: gpiomux: Move public API to public header
    msm: gpio: Remove ifdefs on gpio chip registers
    msm: gpio: Remove chip-specific register definitions
    msm: Remove chip-ifdefs for GPIO io mappings
    msm: gpio: Remove unsupported devices
    gpio: ab8500: fix MODULE_ALIAS for ab8500
    of/gpio: export of_gpio_simple_xlate

    Linus Torvalds
     

01 Aug, 2011

1 commit


29 Jul, 2011

1 commit

  • Allow GPIO drivers to use of_gpio_simple_xlate. This is useful for the
    generic GPIO driver for example where gpio_chip is embedded in
    bgpio_chip and doesn't need of_mm_gpio_chip but has a simple 1:1 GPIO
    mapping.

    Cc: Anton Vorontsov
    Cc: Grant Likely
    Signed-off-by: Jamie Iles
    Signed-off-by: Grant Likely

    Jamie Iles
     

27 Jul, 2011

2 commits

  • The patch extends 'enum phy_interface_t' and of_get_phy_mode a little
    bit with PHY_INTERFACE_MODE_NA and PHY_INTERFACE_MODE_SMII added,
    and then converts ibm_newemac net driver to use of_get_phy_mode
    getting phy mode from device tree.

    It also resolves the namespace conflict on phy_read/write between
    common mdiobus interface and ibm_newemac private one.

    Signed-off-by: Shawn Guo
    Cc: David S. Miller
    Cc: Grant Likely
    Acked-by: Grant Likely
    Acked-by: David Miller

    Shawn Guo
     
  • It adds the helper function of_get_phy_mode getting phy interface
    from device tree.

    Signed-off-by: Shawn Guo
    Cc: Grant Likely
    Acked-by: Grant Likely
    Acked-by: David Miller

    Shawn Guo
     

26 Jul, 2011

1 commit

  • * 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (99 commits)
    drivers/virt: add missing linux/interrupt.h to fsl_hypervisor.c
    powerpc/85xx: fix mpic configuration in CAMP mode
    powerpc: Copy back TIF flags on return from softirq stack
    powerpc/64: Make server perfmon only built on ppc64 server devices
    powerpc/pseries: Fix hvc_vio.c build due to recent changes
    powerpc: Exporting boot_cpuid_phys
    powerpc: Add CFAR to oops output
    hvc_console: Add kdb support
    powerpc/pseries: Fix hvterm_raw_get_chars to accept < 16 chars, fixing xmon
    powerpc/irq: Quieten irq mapping printks
    powerpc: Enable lockup and hung task detectors in pseries and ppc64 defeconfigs
    powerpc: Add mpt2sas driver to pseries and ppc64 defconfig
    powerpc: Disable IRQs off tracer in ppc64 defconfig
    powerpc: Sync pseries and ppc64 defconfigs
    powerpc/pseries/hvconsole: Fix dropped console output
    hvc_console: Improve tty/console put_chars handling
    powerpc/kdump: Fix timeout in crash_kexec_wait_realmode
    powerpc/mm: Fix output of total_ram.
    powerpc/cpufreq: Add cpufreq driver for Momentum Maple boards
    powerpc: Correct annotations of pmu registration functions
    ...

    Fix up trivial Kconfig/Makefile conflicts in arch/powerpc, drivers, and
    drivers/cpufreq

    Linus Torvalds
     

24 Jul, 2011

1 commit


23 Jul, 2011

2 commits

  • * 'of-pci' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
    pci/of: Consolidate pci_bus_to_OF_node()
    pci/of: Consolidate pci_device_to_OF_node()
    x86/devicetree: Use generic PCI OF matching
    microblaze/pci: Move the remains of pci_32.c to pci-common.c
    microblaze/pci: Remove powermac originated cruft
    pci/of: Match PCI devices to OF nodes dynamically

    Linus Torvalds
     
  • * 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6:
    dt: include linux/errno.h in linux/of_address.h
    of/address: Add of_find_matching_node_by_address helper
    dt: remove extra xsysace platform_driver registration
    tty/serial: Add devicetree support for nVidia Tegra serial ports
    dt: add empty of_property_read_u32[_array] for non-dt
    dt: bindings: move SEC node under new crypto/
    dt: add helper function to read u32 arrays
    tty/serial: change of_serial to use new of_property_read_u32() api
    dt: add 'const' for of_property_read_string parameter **out_string
    dt: add helper functions to read u32 and string property values
    tty: of_serial: support for 32 bit accesses
    dt: document the of_serial bindings
    dt/platform: allow device name to be overridden
    drivers/amba: create devices from device tree
    dt: add of_platform_populate() for creating device from the device tree
    dt: Add default match table for bus ids

    Linus Torvalds
     

19 Jul, 2011

1 commit


08 Jul, 2011

1 commit

  • We have a long standing issues with platform devices not have a valid
    dma_mask pointer. This hasn't been an issue to date as no platform
    device has tried to set its dma_mask value to a non-default value.

    Acked-by: Greg Kroah-Hartman
    Signed-off-by: Kumar Gala

    Kumar Gala
     

07 Jul, 2011

1 commit


04 Jul, 2011

1 commit


01 Jul, 2011

1 commit

  • Add helper functions to retrieve unsigned integer and string property
    values from properties of a device node. These helper functions can be
    used to lookup a property in a device node, perform error checking and
    read the property value.

    [grant.likely@secretlab.ca: Proposal and initial implementation]
    Signed-off-by: Thomas Abraham
    [grant.likely: some word smithing and be more defensive validating the string]
    Signed-off-by: Grant Likely

    Thomas Abraham
     

29 Jun, 2011

1 commit


22 Jun, 2011

4 commits

  • Some platform code has specific requirements on the naming of devices.
    This patch allows callers of of_platform_populate() to provide a
    device name lookup table.

    Signed-off-by: Grant Likely

    Grant Likely
     
  • Add a function to create amba_devices (i.e. primecell peripherals)
    from device tree nodes. The device tree scanning is done by the
    of_platform_populate() function which can call of_amba_device_create
    based on a match table entry.

    Nodes with a "arm,primecell-periphid" property can override the h/w
    peripheral id value.

    Based on the original work by Jeremy Kerr.

    Signed-off-by: Jeremy Kerr
    Acked-by: Linus Walleij
    Signed-off-by: Rob Herring
    Reviewed-by: Arnd Bergmann
    [grant.likely: add Jeremy's original s-o-b line, changes from review
    comments, and moved all code to drivers/of/platform.c]
    Signed-off-by: Grant Likely

    Grant Likely
     
  • of_platform_populate() is similar to of_platform_bus_probe() except
    that it strictly enforces that all device nodes must have a compatible
    property, and it can be used to register devices (not buses) which are
    children of the root node.

    Signed-off-by: Grant Likely

    Grant Likely
     
  • No need for most platforms to define their own bus table when calling
    of_platform_populate(). Supply a stock one.

    Signed-off-by: Grant Likely

    Grant Likely
     

08 Jun, 2011

1 commit

  • powerpc has two different ways of matching PCI devices to their
    corresponding OF node (if any) for historical reasons. The ppc64 one
    does a scan looking for matching bus/dev/fn, while the ppc32 one does a
    scan looking only for matching dev/fn on each level in order to be
    agnostic to busses being renumbered (which Linux does on some
    platforms).

    This removes both and instead moves the matching code to the PCI core
    itself. It's the most logical place to do it: when a pci_dev is created,
    we know the parent and thus can do a single level scan for the matching
    device_node (if any).

    The benefit is that all archs now get the matching for free. There's one
    hook the arch might want to provide to match a PHB bus to its device
    node. A default weak implementation is provided that looks for the
    parent device device node, but it's not entirely reliable on powerpc for
    various reasons so powerpc provides its own.

    Signed-off-by: Benjamin Herrenschmidt
    Acked-by: Michal Simek
    Acked-by: Jesse Barnes

    Benjamin Herrenschmidt
     

25 May, 2011

1 commit


11 May, 2011

1 commit


20 Apr, 2011

1 commit


31 Mar, 2011

1 commit


24 Mar, 2011

2 commits