08 Jan, 2012

1 commit

  • devicetree/next changes queued for v3.3 merge window

    * tag 'devicetree-for-linus-20120104' of git://git.secretlab.ca/git/linux-2.6:
    ARM: prom.h: Fix build error by removing unneeded header file
    irq: check domain hwirq range for DT translate
    dt: add empty of_get_node/of_put_node functions
    of/pdt: fix section mismatch warning
    i2c-designware: add OF binding support
    dt/i2c: Enumerate some of the known trivial i2c devices
    dt: reform for_each_property to for_each_property_of_node
    ARM/of: allow *machine_desc.dt_compat to be const
    of/base: Take NULL string into account for property with multiple strings
    OF/device-tree: Add some entries to vendor-prefixes.txt

    Fix up trivial add-add conflicts in include/linux/of.h

    Linus Torvalds
     

28 Dec, 2011

2 commits


13 Dec, 2011

1 commit

  • of_parse_phandle_with_args() needs to return quite a bit of data. Rather
    than making each datum a separate **out_ argument, this patch creates
    struct of_phandle_args to contain all the returned data and reworks the
    user of the function. This patch also enables of_parse_phandle_with_args()
    to return the device node pointer for the phandle node.

    This patch also ends up being fairly major surgery to
    of_parse_handle_with_args(). The existing structure didn't work well
    when extending to use of_phandle_args, and I discovered bugs during testing.
    I also took the opportunity to rename the function to be like the
    existing of_parse_phandle().

    v2: - moved declaration of of_phandle_args to fix compile on non-DT builds
    - fixed incorrect index in example usage
    - fixed incorrect return code handling for empty entries

    Reviewed-by: Shawn Guo
    Signed-off-by: Grant Likely

    Grant Likely
     

07 Nov, 2011

1 commit

  • * 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux: (230 commits)
    Revert "tracing: Include module.h in define_trace.h"
    irq: don't put module.h into irq.h for tracking irqgen modules.
    bluetooth: macroize two small inlines to avoid module.h
    ip_vs.h: fix implicit use of module_get/module_put from module.h
    nf_conntrack.h: fix up fallout from implicit moduleparam.h presence
    include: replace linux/module.h with "struct module" wherever possible
    include: convert various register fcns to macros to avoid include chaining
    crypto.h: remove unused crypto_tfm_alg_modname() inline
    uwb.h: fix implicit use of asm/page.h for PAGE_SIZE
    pm_runtime.h: explicitly requires notifier.h
    linux/dmaengine.h: fix implicit use of bitmap.h and asm/page.h
    miscdevice.h: fix up implicit use of lists and types
    stop_machine.h: fix implicit use of smp.h for smp_processor_id
    of: fix implicit use of errno.h in include/linux/of.h
    of_platform.h: delete needless include
    acpi: remove module.h include from platform/aclinux.h
    miscdevice.h: delete unnecessary inclusion of module.h
    device_cgroup.h: delete needless include
    net: sch_generic remove redundant use of
    net: inet_timewait_sock doesnt need
    ...

    Fix up trivial conflicts (other header files, and removal of the ab3550 mfd driver) in
    - drivers/media/dvb/frontends/dibx000_common.c
    - drivers/media/video/{mt9m111.c,ov6650.c}
    - drivers/mfd/ab3550-core.c
    - include/linux/dmaengine.h

    Linus Torvalds
     

04 Nov, 2011

2 commits


02 Nov, 2011

1 commit

  • * '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
     

01 Nov, 2011

1 commit

  • It shows up as a build failure on MIPS, as it is used in
    three of_property function stubs.

    include/linux/of.h:275: error: 'ENOSYS' undeclared (first use in this function)
    include/linux/of.h:282: error: 'ENOSYS' undeclared (first use in this function)
    include/linux/of.h:295: error: 'ENOSYS' undeclared (first use in this function)

    Signed-off-by: Paul Gortmaker

    Paul Gortmaker
     

29 Oct, 2011

2 commits

  • Add function of_alias_get_id() reporting -ENOSYS
    for non-dt builds, so that drivers migrating to dt
    can save some '#ifdef CONFIG_OF'.

    Signed-off-by: Nicolas Ferre
    Acked-by: Rob Herring
    Signed-off-by: Grant Likely

    Nicolas Ferre
     
  • When compiling ath6kl for beagleboard (omap2plus_defconfig plus
    CONFIG_ATH6KL, CONFIG_OF disable) with current linux-next compilation
    fails:

    include/linux/of.h:269: error: 'ENOSYS' undeclared (first use in this function)
    include/linux/of.h:276: error: 'ENOSYS' undeclared (first use in this function)
    include/linux/of.h:289: error: 'ENOSYS' undeclared (first use in this function)

    Fix this by including errno.h from of.h.

    Signed-off-by: Kalle Valo
    Acked-by: Geert Uytterhoeven
    Signed-off-by: Grant Likely

    Kalle Valo
     

24 Oct, 2011

1 commit

  • Add an empty macro for of_match_node() that will save
    some '#ifdef CONFIG_OF' for non-dt builds.

    I have chosen to use a macro instead of a function to
    be able to avoid defining the first parameter.
    In fact, this "struct of_device_id *" first parameter
    is usualy not defined as well on non-dt builds.

    Signed-off-by: Nicolas Ferre
    Acked-by: Grant Likely

    Nicolas Ferre
     

14 Oct, 2011

1 commit


05 Oct, 2011

2 commits


30 Sep, 2011

1 commit

  • Add a macro of_match_ptr() that allows the .of_match_table
    entry in the driver structures to be assigned without having
    an #ifdef xxx NULL for the case that OF is not enabled

    Signed-off-by: Ben Dooks
    Signed-off-by: Grant Likely

    Ben Dooks
     

23 Sep, 2011

2 commits

  • The patch adds a couple empty functions for non-dt build, so that
    drivers migrating to dt can save some '#ifdef CONFIG_OF'.

    Signed-off-by: Stephen Warren
    Signed-off-by: Grant Likely

    Stephen Warren
     
  • 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
     

10 Aug, 2011

1 commit

  • The patch adds empty function of_get_property for non-dt build, so that
    drivers migrating to dt can save some '#ifdef CONFIG_OF'.

    This also fixes the current Tegra compile problem in linux-next.

    Signed-off-by: Stephen Warren
    Signed-off-by: Grant Likely

    Stephen Warren
     

04 Aug, 2011

1 commit


03 Aug, 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.

    Signed-off-by: Shawn Guo
    [grant.likely: add locking and rework parse loop]
    Signed-off-by: Grant Likely

    Shawn Guo
     

02 Aug, 2011

1 commit


09 Jul, 2011

1 commit

  • The patch adds empty functions of_property_read_u32 and
    of_property_read_u32_array for non-dt build, so that drivers
    migrating to dt can save some '#ifdef CONFIG_OF'.

    Signed-off-by: Shawn Guo
    [grant.likely: Moved things around so only one new static inline is needed]
    [grant.likely: Added _string variant]
    Signed-off-by: Grant Likely

    Shawn Guo
     

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
     

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
     

28 Feb, 2011

1 commit


24 Feb, 2011

1 commit

  • This allows to load the OF driver based informations from the device
    tree. Systems without BIOS may need to perform some initialization.
    PowerPC creates a PNP device from the OF information and performs this
    kind of initialization in their private PCI quirk. This looks more
    generic.

    This patch also avoids registering the platform RTC driver on X86 if
    we have a device tree blob. Otherwise we would setup the device based
    on the hardcoded information in arch/x86 rather than the device tree
    based one.

    [ tglx: Changed "int of_have_populated_dt()" to bool as recommended by
    Grant ]

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

    Sebastian Andrzej Siewior
     

22 Jan, 2011

1 commit


30 Jul, 2010

1 commit


15 Jul, 2010

1 commit


18 Mar, 2010

1 commit

  • Commit 7c7b60cb87547b1664a4385c187f029bf514a737
    "of: put default string compare and #a/s-cell values into common header"

    Breaks various things on powerpc due to using strncasecmp instead of
    strcasecmp for comparing against "compatible" strings.

    This causes things like the 4xx PCI code to fail miserably due to the
    partial matches in code like this:

    for_each_compatible_node(np, NULL, "ibm,plb-pcix")
    ppc4xx_probe_pcix_bridge(np);
    for_each_compatible_node(np, NULL, "ibm,plb-pci")
    ppc4xx_probe_pci_bridge(np);

    It's not quite right to do partial name match. Entries in a compatible
    list are meant to be matched whole. If a device is compatible with both
    "foo" and "foo1", then the device should have both strings in its
    "compatible" property.

    This patch reverts powerpc and microblaze us to use strcasecmp.

    Signed-off-by: Benjamin Herrenschmidt
    (for patch description)
    Signed-off-by: Grant Likely
    Acked-by: David S. Miller
    Acked-by: Michal Simek

    Grant Likely
     

15 Feb, 2010

1 commit

  • Both allnodes and devtree_lock are defined in common code. The
    extern declaration should be in the common header too so that the
    compiler can type check. allnodes is already in of.h, but
    devtree_lock should be declared there too.

    This patch removes the SPARC declarations and uses decls in of.h instead.

    Signed-off-by: Grant Likely
    Acked-by: Benjamin Herrenschmidt
    Acked-by: Michal Simek
    Acked-by: David S. Miller

    Grant Likely
     

14 Feb, 2010

4 commits


09 Feb, 2010

2 commits

  • Currently, we're using u32 for cell values, and hence assuming
    host-endian device trees.

    As we'd like to support little-endian platforms, use a __be32 for cell
    values, and convert in the cell accessors.

    Signed-off-by: Jeremy Kerr
    Signed-off-by: Grant Likely

    Jeremy Kerr
     
  • We only need set_node_proc_entry in proc_devtree.c, so move it there.

    This fixes the !HAVE_ARCH_DEVTREE_FIXUPS build, as we can't make make
    the definition in linux/of.h conditional on this #define (definitions in
    asm/prom.h can't be exposed to linux/of.h, due to the enforced #include
    ordering).

    Signed-off-by: Jeremy Kerr
    Signed-off-by: Grant Likely

    Jeremy Kerr