05 Oct, 2011

1 commit


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

4 commits


17 Mar, 2011

1 commit

  • * 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6: (21 commits)
    tty: serial: altera_jtaguart: Add device tree support
    tty: serial: altera_uart: Add devicetree support
    dt: eliminate of_platform_driver shim code
    dt: Eliminate of_platform_{,un}register_driver
    dt/serial: Eliminate users of of_platform_{,un}register_driver
    dt/usb: Eliminate users of of_platform_{,un}register_driver
    dt/video: Eliminate users of of_platform_{,un}register_driver
    dt/net: Eliminate users of of_platform_{,un}register_driver
    dt/sound: Eliminate users of of_platform_{,un}register_driver
    dt/spi: Eliminate users of of_platform_{,un}register_driver
    dt: uartlite: merge platform and of_platform driver bindings
    dt: xilinx_hwicap: merge platform and of_platform driver bindings
    ipmi: convert OF driver to platform driver
    leds/leds-gpio: merge platform_driver with of_platform_driver
    dt/sparc: Eliminate users of of_platform_{,un}register_driver
    dt/powerpc: Eliminate users of of_platform_{,un}register_driver
    dt/powerpc: move of_bus_type infrastructure to ibmebus
    drivercore/dt: add a match table pointer to struct device
    dt: Typo fix.
    altera_ps2: Add devicetree support
    ...

    Linus Torvalds
     

16 Mar, 2011

1 commit

  • …el/git/tip/linux-2.6-tip

    * 'x86-platform-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (27 commits)
    x86: Clean up apic.c and apic.h
    x86: Remove superflous goal definition of tsc_sync
    x86: dt: Correct local apic documentation in device tree bindings
    x86: dt: Cleanup local apic setup
    x86: dt: Fix OLPC=y/INTEL_CE=n build
    rtc: cmos: Add OF bindings
    x86: ce4100: Use OF to setup devices
    x86: ioapic: Add OF bindings for IO_APIC
    x86: dtb: Add generic bus probe
    x86: dtb: Add support for PCI devices backed by dtb nodes
    x86: dtb: Add device tree support for HPET
    x86: dtb: Add early parsing of IO_APIC
    x86: dtb: Add irq domain abstraction
    x86: dtb: Add a device tree for CE4100
    x86: Add device tree support
    x86: e820: Remove conditional early mapping in parse_e820_ext
    x86: OLPC: Make OLPC=n build again
    x86: OLPC: Remove extra OLPC_OPENFIRMWARE_DT indirection
    x86: OLPC: Cleanup config maze completely
    x86: OLPC: Hide OLPC_OPENFIRMWARE config switch
    ...

    Fix up conflicts in arch/x86/platform/ce4100/ce4100.c

    Linus Torvalds
     

03 Mar, 2011

1 commit

  • Commit e2f2a93b, "of/promtree: add package-to-path support to pdt"
    changed dp->name from using the 'name' property to using
    package-to-path. This fixed /proc/device-tree creation by eliminating
    conflicts between names (the 'name' property provides names like
    'battery', whereas package-to-path provides names like
    '/foo/bar/battery@0', which we stripped to 'battery@0'). However, it
    also breaks of_device_id table matching.

    The fix that we _really_ wanted was to keep dp->name based upon
    the name property ('battery'), but based dp->full_name upon
    package-to-path ('battery@0'). This patch does just that.

    This changes all users (except SPARC) of promtree to use the full
    result from package-to-path for full_name, rather than stripping the
    directory out. In practice, the strings end up being exactly the
    same; this change saves time, code, and memory.

    SPARC continues to use the existing build_path_component() code.

    v2: combine two patches and revert of_pdt_node_name to original version
    v3: use dp->phandle instead of passing around node
    v4: warn/bail out for non-sparc archs if pkg2path is not set
    v5: split of_pdt_build_full_name into sparc & non-sparc versions
    v6: Pass NULL to pkg2path before buf gets assigned.
    Drop check for pkg2path hook on each and every node.
    v7: Don't BUG() when unable to get the full_path; create a
    known-unique name instead.

    Signed-off-by: Andres Salomon
    Signed-off-by: Grant Likely

    Andres Salomon
     

02 Mar, 2011

1 commit

  • Commit eca393016, "of: Merge of_platform_bus_type with
    platform_bus_type" added a shim to allow of_platform_drivers to get
    registers onto the platform bus so that there was time to migrate the
    existing drivers to the platform_bus_type.

    This patch removes the shim since there are no more users of the old
    interface.

    Signed-off-by: Grant Likely

    Grant Likely
     

28 Feb, 2011

1 commit

  • arch/powerpc/kernel/ibmebus.c is the only remaining user of the
    of_bus_type support code for initializing the bus and registering
    drivers. All others have either been switched to the vanilla platform
    bus or already have their own infrastructure.

    This patch moves the functionality that ibmebus is using out of
    drivers/of/{platform,device}.c and into ibmebus.c where it is actually
    used. Also renames the moved symbols from of_platform_* to
    ibmebus_bus_* to reflect the actual usage.

    This patch is part of moving all of the of_platform_bus_type users
    over to the platform_bus_type.

    Signed-off-by: Grant Likely

    Grant Likely
     

24 Feb, 2011

1 commit

  • x86_of_pci_init() does two things:

    - it provides a generic irq enable and disable function. enable queries
    the device tree for the interrupt information, calls ->xlate on the
    irq host and updates the pci->irq information for the device.

    - it walks through PCI bus(es) in the device tree and adds its children
    (device) nodes to appropriate pci_dev nodes in kernel. So the dtb
    node information is available at probe time of the PCI device.

    Adding a PCI bus based on the information in the device tree is
    currently not supported. Right now direct access via ioports is used.

    Signed-off-by: Sebastian Andrzej Siewior
    Tested-by: Dirk Brandewie
    Acked-by: Grant Likely
    Cc: sodaville@linutronix.de
    Cc: devicetree-discuss@lists.ozlabs.org
    LKML-Reference:
    Signed-off-by: Thomas Gleixner

    Sebastian Andrzej Siewior
     

05 Feb, 2011

1 commit