10 Jan, 2019

1 commit

  • commit bec0de4cfad21bd284dbddee016ed1767a5d2823 upstream.

    KEXEC needs the new kernel's load address to be aligned on a page
    boundary (see sanity_check_segment_list()), but on MIPS the default
    vmlinuz load address is only explicitly aligned to 16 bytes.

    Since the largest PAGE_SIZE supported by MIPS kernels is 64KB, increase
    the alignment calculated by calc_vmlinuz_load_addr to 64KB.

    Signed-off-by: Huacai Chen
    Signed-off-by: Paul Burton
    Patchwork: https://patchwork.linux-mips.org/patch/21131/
    Cc: Ralf Baechle
    Cc: James Hogan
    Cc: Steven J . Hill
    Cc: linux-mips@linux-mips.org
    Cc: Fuxin Zhang
    Cc: Zhangjin Wu
    Cc: # 2.6.36+
    Signed-off-by: Greg Kroah-Hartman

    Huacai Chen
     

04 Oct, 2018

1 commit

  • [ Upstream commit 67e09db507db3e1642ddce512a4313d20addd6e5 ]

    As Documentation/kbuild/makefile.txt says, it is a typical mistake
    to forget the FORCE prerequisite for the rule invoked by if_changed.

    Add the FORCE to the prerequisite, but it must be filtered-out from
    the files passed to the 'cat' command. Because this rule generates
    .vmlinux.its.S.cmd, vmlinux.its.S must be specified as targets so
    that the .cmd file is included.

    Signed-off-by: Masahiro Yamada
    Patchwork: https://patchwork.linux-mips.org/patch/19097/
    Signed-off-by: Paul Burton
    Cc: Kees Cook
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: Sasha Levin
    Signed-off-by: Greg Kroah-Hartman

    Masahiro Yamada
     

21 Jun, 2018

1 commit

  • [ Upstream commit 2c2bf522ed8cbfaac666f7dc65cfd38de2b89f0f ]

    dtc recently (v1.4.4-8-g756ffc4f52f6) added PCI bus checks. Fix the
    warnings now emitted:

    arch/mips/boot/dts/img/boston.dtb: Warning (pci_bridge): /pci@10000000: missing bus-range for PCI bridge
    arch/mips/boot/dts/img/boston.dtb: Warning (pci_bridge): /pci@12000000: missing bus-range for PCI bridge
    arch/mips/boot/dts/img/boston.dtb: Warning (pci_bridge): /pci@14000000: missing bus-range for PCI bridge

    Signed-off-by: Matt Redfearn
    Cc: Ralf Baechle
    Cc: Paul Burton
    Cc: Rob Herring
    Cc: Mark Rutland
    Cc: linux-mips@linux-mips.org
    Cc: devicetree@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/19070/
    Signed-off-by: James Hogan
    Signed-off-by: Sasha Levin
    Signed-off-by: Greg Kroah-Hartman

    Matt Redfearn
     

26 Apr, 2018

1 commit

  • [ Upstream commit 5f2483eb2423152445b39f2db59d372f523e664e ]

    Make doesn't expand shell style "vmlinuz.{32,ecoff,bin,srec}" to the 4
    separate files, so none of these files get cleaned up by make clean.
    List the files separately instead.

    Fixes: ec3352925b74 ("MIPS: Remove all generated vmlinuz* files on "make clean"")
    Signed-off-by: James Hogan
    Cc: Ralf Baechle
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/18491/
    Signed-off-by: Sasha Levin
    Signed-off-by: Greg Kroah-Hartman

    James Hogan
     

28 Feb, 2018

1 commit

  • commit 0f9da844d87796ac31b04e81ee95e155e9043132 upstream.

    The MIPS %.its.S compiler command did not define __ASSEMBLY__, which meant
    when compiler_types.h was added to kconfig.h, unexpected things appeared
    (e.g. struct declarations) which should not have been present. As done in
    the general %.S compiler command, __ASSEMBLY__ is now included here too.

    The failure was:

    Error: arch/mips/boot/vmlinux.gz.its:201.1-2 syntax error
    FATAL ERROR: Unable to parse input tree
    /usr/bin/mkimage: Can't read arch/mips/boot/vmlinux.gz.itb.tmp: Invalid argument
    /usr/bin/mkimage Can't add hashes to FIT blob

    Reported-by: kbuild test robot
    Fixes: 28128c61e08e ("kconfig.h: Include compiler types to avoid missed struct attributes")
    Signed-off-by: Kees Cook
    Signed-off-by: Linus Torvalds
    Signed-off-by: Greg Kroah-Hartman

    Kees Cook
     

13 Feb, 2018

1 commit

  • commit 10b62a2f785ab55857380f0c63d9fa468fd8c676 upstream.

    Most of DT files are compiled under arch/*/boot/dts/, but we have some
    other directories, like drivers/of/unittest-data/. We often miss to
    add gitignore patterns per directory. Since there are no source files
    that end with .dtb or .dtb.S, we can ignore the patterns globally.

    Signed-off-by: Masahiro Yamada
    Signed-off-by: Rob Herring
    Signed-off-by: Greg Kroah-Hartman

    Masahiro Yamada
     

30 Nov, 2017

1 commit

  • commit 3cad14d56adbf7d621fc5a35db42f3acc0a2d6e8 upstream.

    arch/mips/boot/dts/brcm/bcm96358nb4ser.dts does not exist, so
    we cannot build bcm96358nb4ser.dtb .

    Signed-off-by: Masahiro Yamada
    Fixes: 695835511f96 ("MIPS: BMIPS: rename bcm96358nb4ser to bcm6358-neufbox4-sercom")
    Acked-by: James Hogan
    Signed-off-by: Rob Herring
    Signed-off-by: Greg Kroah-Hartman

    Masahiro Yamada
     

02 Nov, 2017

1 commit

  • Many source files in the tree are missing licensing information, which
    makes it harder for compliance tools to determine the correct license.

    By default all files without license information are under the default
    license of the kernel, which is GPL version 2.

    Update the files which contain no license information with the 'GPL-2.0'
    SPDX license identifier. The SPDX identifier is a legally binding
    shorthand, which can be used instead of the full boiler plate text.

    This patch is based on work done by Thomas Gleixner and Kate Stewart and
    Philippe Ombredanne.

    How this work was done:

    Patches were generated and checked against linux-4.14-rc6 for a subset of
    the use cases:
    - file had no licensing information it it.
    - file was a */uapi/* one with no licensing information in it,
    - file was a */uapi/* one with existing licensing information,

    Further patches will be generated in subsequent months to fix up cases
    where non-standard license headers were used, and references to license
    had to be inferred by heuristics based on keywords.

    The analysis to determine which SPDX License Identifier to be applied to
    a file was done in a spreadsheet of side by side results from of the
    output of two independent scanners (ScanCode & Windriver) producing SPDX
    tag:value files created by Philippe Ombredanne. Philippe prepared the
    base worksheet, and did an initial spot review of a few 1000 files.

    The 4.13 kernel was the starting point of the analysis with 60,537 files
    assessed. Kate Stewart did a file by file comparison of the scanner
    results in the spreadsheet to determine which SPDX license identifier(s)
    to be applied to the file. She confirmed any determination that was not
    immediately clear with lawyers working with the Linux Foundation.

    Criteria used to select files for SPDX license identifier tagging was:
    - Files considered eligible had to be source code files.
    - Make and config files were included as candidates if they contained >5
    lines of source
    - File already had some variant of a license header in it (even if
    Reviewed-by: Philippe Ombredanne
    Reviewed-by: Thomas Gleixner
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

06 Sep, 2017

1 commit

  • The jz4740-rtc driver supports both jz4740 & jz4780, setup the compatible
    string to jz4780.

    Signed-off-by: Mathieu Malaterre
    Cc: Rob Herring
    Cc: Mark Rutland
    Cc: Linus Walleij
    Cc: Paul Cercueil
    Cc: Krzysztof Kozlowski
    Cc: devicetree@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/17237/
    Signed-off-by: Ralf Baechle

    Mathieu Malaterre
     

29 Aug, 2017

6 commits

  • The Onion Omega2+ is an MT7688A based board that has 128MB RAM and
    multiple peripherals.

    The MT7688A is pin compatible with the MT7628A, although the former
    supports a 1T1R antenna whereas the MT7628A supports a 2R2T antenna.

    Signed-off-by: Harvey Hunt
    Cc: robh+dt@kernel.org
    Cc: mark.rutland@arm.com
    Cc: john@phrozen.org
    Cc: linux-kernel@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/17137/
    Signed-off-by: Ralf Baechle

    Harvey Hunt
     
  • The VoCore2 board is a low cost MT7628A based board with 128MB RAM, 16MB
    flash and multiple external peripherals.

    This initial DTS provides enough support to get to userland and use the USB
    port.

    Signed-off-by: Harvey Hunt
    Cc: robh+dt@kernel.org
    Cc: mark.rutland@arm.com
    Cc: john@phrozen.org
    Cc: linux-kernel@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/17134/
    Signed-off-by: Ralf Baechle

    Harvey Hunt
     
  • The MT7628A is the successor to the MT7620 and pin compatible with the
    MT7688A, although the latter supports only a 1T1R antenna rather than
    a 2T2R antenna.

    This commit adds support for the following features:

    - UART
    - USB PHY
    - EHCI
    - Interrupt controller
    - System controller
    - Memory controller
    - Reset controller

    Signed-off-by: Harvey Hunt
    Cc: robh+dt@kernel.org
    Cc: mark.rutland@arm.com
    Cc: john@phrozen.org
    Cc: Harvey Hunt
    Cc: linux-mips@linux-mips.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Cc: linux-mediatek@lists.infradead.org
    Patchwork: https://patchwork.linux-mips.org/patch/17133/
    Signed-off-by: Ralf Baechle

    Harvey Hunt
     
  • Add devicetree nodes for the DM9000 and the ethernet power regulator.
    Additionally, add a new pinctrl node for the ethernet chip's pins.

    Signed-off-by: Harvey Hunt
    Cc: Zubair Lutfullah Kakakhel
    Cc: Paul Burton
    Cc: Rob Herring
    Cc: Mark Rutland
    Cc: Paul Cercueil
    Cc: Linus Walleij
    Cc: devicetree@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/16752/
    Signed-off-by: Ralf Baechle

    Harvey Hunt
     
  • In preparation for splitting arch/mips/generic/vmlinux.its.S into
    multiple files such that it doesn't become a conflict magnet as boards
    are added, allow platforms to specify a list of image tree source files
    which will be concatenated to form the final source used to build the
    image tree.

    Signed-off-by: Paul Burton
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/16938/
    Signed-off-by: Ralf Baechle

    Paul Burton
     
  • Support the National Instruments 169445 board.

    Signed-off-by: Nathan Sullivan
    Acked-by: Rob Herring
    Cc: devicetree@vger.kernel.org
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/16782/
    Signed-off-by: Ralf Baechle

    Nathan Sullivan
     

07 Aug, 2017

1 commit


16 Jul, 2017

1 commit

  • Pull MIPS updates from Ralf Baechle:
    "Boston platform support:
    - Document DT bindings
    - Add CLK driver for board clocks

    CM:
    - Avoid per-core locking with CM3 & higher
    - WARN on attempt to lock invalid VP, not BUG

    CPS:
    - Select CONFIG_SYS_SUPPORTS_SCHED_SMT for MIPSr6
    - Prevent multi-core with dcache aliasing
    - Handle cores not powering down more gracefully
    - Handle spurious VP starts more gracefully

    DSP:
    - Add lwx & lhx missaligned access support

    eBPF:
    - Add MIPS support along with many supporting change to add the
    required infrastructure

    Generic arch code:
    - Misc sysmips MIPS_ATOMIC_SET fixes
    - Drop duplicate HAVE_SYSCALL_TRACEPOINTS
    - Negate error syscall return in trace
    - Correct forced syscall errors
    - Traced negative syscalls should return -ENOSYS
    - Allow samples/bpf/tracex5 to access syscall arguments for sane
    traces
    - Cleanup from old Kconfig options in defconfigs
    - Fix PREF instruction usage by memcpy for MIPS R6
    - Fix various special cases in the FPU eulation
    - Fix some special cases in MIPS16e2 support
    - Fix MIPS I ISA /proc/cpuinfo reporting
    - Sort MIPS Kconfig alphabetically
    - Fix minimum alignment requirement of IRQ stack as required by
    ABI / GCC
    - Fix special cases in the module loader
    - Perform post-DMA cache flushes on systems with MAARs
    - Probe the I6500 CPU
    - Cleanup cmpxchg and add support for 1 and 2 byte operations
    - Use queued read/write locks (qrwlock)
    - Use queued spinlocks (qspinlock)
    - Add CPU shared FTLB feature detection
    - Handle tlbex-tlbp race condition
    - Allow storing pgd in C0_CONTEXT for MIPSr6
    - Use current_cpu_type() in m4kc_tlbp_war()
    - Support Boston in the generic kernel

    Generic platform:
    - yamon-dt: Pull YAMON DT shim code out of SEAD-3 board
    - yamon-dt: Support > 256MB of RAM
    - yamon-dt: Use serial* rather than uart* aliases
    - Abstract FDT fixup application
    - Set RTC_ALWAYS_BCD to 0
    - Add a MAINTAINERS entry

    core kernel:
    - qspinlock.c: include linux/prefetch.h

    Loongson 3:
    - Add support

    Perf:
    - Add I6500 support

    SEAD-3:
    - Remove GIC timer from DT
    - Set interrupt-parent per-device, not at root node
    - Fix GIC interrupt specifiers

    SMP:
    - Skip IPI setup if we only have a single CPU

    VDSO:
    - Make comment match reality
    - Improvements to time code in VDSO"

    * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: (86 commits)
    locking/qspinlock: Include linux/prefetch.h
    MIPS: Fix MIPS I ISA /proc/cpuinfo reporting
    MIPS: Fix minimum alignment requirement of IRQ stack
    MIPS: generic: Support MIPS Boston development boards
    MIPS: DTS: img: Don't attempt to build-in all .dtb files
    clk: boston: Add a driver for MIPS Boston board clocks
    dt-bindings: Document img,boston-clock binding
    MIPS: Traced negative syscalls should return -ENOSYS
    MIPS: Correct forced syscall errors
    MIPS: Negate error syscall return in trace
    MIPS: Drop duplicate HAVE_SYSCALL_TRACEPOINTS select
    MIPS16e2: Provide feature overrides for non-MIPS16 systems
    MIPS: MIPS16e2: Report ASE presence in /proc/cpuinfo
    MIPS: MIPS16e2: Subdecode extended LWSP/SWSP instructions
    MIPS: MIPS16e2: Identify ASE presence
    MIPS: VDSO: Fix a mismatch between comment and preprocessor constant
    MIPS: VDSO: Add implementation of gettimeofday() fallback
    MIPS: VDSO: Add implementation of clock_gettime() fallback
    MIPS: VDSO: Fix conversions in do_monotonic()/do_monotonic_coarse()
    MIPS: Use current_cpu_type() in m4kc_tlbp_war()
    ...

    Linus Torvalds
     

11 Jul, 2017

2 commits

  • Add support for the MIPS Boston development board to generic kernels,
    which essentially amounts to:

    - Adding the device tree source for the MIPS Boston board.

    - Adding a Kconfig fragment which enables the appropriate drivers for
    the MIPS Boston board.

    With these changes in place generic kernels will support the board by
    default, and kernels with only the drivers needed for Boston enabled can
    be configured by setting BOARDS=boston during configuration. For
    example:

    $ make ARCH=mips 64r6el_defconfig BOARDS=boston

    Signed-off-by: Paul Burton
    Reviewed-by: James Hogan
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/16485/
    Signed-off-by: Ralf Baechle

    Paul Burton
     
  • When building a FIT image we may want the kernel to build multiple .dtb
    files, but we don't want to build them all into the kernel binary as
    object files since they'll instead be included in the FIT image.

    Commit daa10170da27 ("MIPS: DTS: img: add device tree for Marduk board")
    however created arch/mips/boot/dts/img/Makefile with a line that builds
    any enabled .dtb files into the kernel. Remove this & build the
    pistachio object specifically, in preparation for adding .dtb targets
    which we don't want to build into the kernel.

    Signed-off-by: Paul Burton
    Cc: Rahul Bedarkar
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/16484/
    Signed-off-by: Ralf Baechle

    Paul Burton
     

29 Jun, 2017

1 commit


28 Jun, 2017

4 commits

  • The various interrupt specifiers in the device tree are not in a valid
    format for the MIPS GIC interrupt controller binding. Where each
    interrupt should provide 3 values - GIC_LOCAL or GIC_SHARED, the
    pin number & the type of interrupt - the device tree was only providing
    the pin number. This causes interrupts for those devices to not be used
    when a GIC is present. SEAD-3 systems without a GIC are unaffected since
    the DT fixup code generates interrupt specifiers that are valid for the
    CPU interrupt controller.

    Fix this by adding the GIC_SHARED & IRQ_TYPE_LEVEL_HIGH values to each
    interrupt specifier.

    Signed-off-by: Paul Burton
    Fixes: c11e3b48dbc3 ("MIPS: SEAD3: Probe UARTs using DT")
    Fixes: a34e93882de4 ("MIPS: SEAD3: Probe ethernet controller using DT")
    Fixes: 7afd2a5aec2e ("MIPS: SEAD3: Probe EHCI controller using DT")
    Cc: linux-mips@linux-mips.org
    Cc: stable@vger.kernel.org # v4.9+
    Patchwork: https://patchwork.linux-mips.org/patch/16189/
    Signed-off-by: Ralf Baechle

    Paul Burton
     
  • The SEAD-3 board may be configured with or without a MIPS Global
    Interrupt Controller (GIC). Because of this we have a device tree with a
    default case of a GIC present, and code to fixup the device tree based
    upon a configuration register that indicates the presence of the GIC.

    In order to keep this DT fixup code simple, the interrupt-parent
    property was specified at the root node of the SEAD-3 DT, allowing the
    fixup code to simply change this property to the phandle of the CPU
    interrupt controller if a GIC is not present & affect all
    interrupt-using devices at once. This however causes a problem if we do
    have a GIC & the device tree is used as-is, because the interrupt-parent
    property of the root node applies to the CPU interrupt controller node.
    This causes a cycle when of_irq_init() attempts to probe interrupt
    controllers in order and boots fail due to a lack of configured
    interrupts, with this message printed on the kernel console:

    [ 0.000000] OF: of_irq_init: children remain, but no parents

    Fix this by removing the interrupt-parent property from the DT root node
    & instead setting it for each device which uses interrupts, ensuring
    that the CPU interrupt controller node has no interrupt-parent &
    allowing of_irq_init() to identify it as the root interrupt controller.

    Signed-off-by: Paul Burton
    Reported-by: Keng Koh
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/16187/
    Signed-off-by: Ralf Baechle

    Paul Burton
     
  • Name aliases in the SEAD-3 device tree serial0 & serial1, rather than
    uart0 & uart1. This allows the core serial code to make use of the
    aliases to ensure that the UARTs are consistently numbered as expected
    rather than having the numbering depend upon probe order.

    When translating YAMON-provided serial configuration to a device tree
    stdout-path property adjust accordingly, such that we continue to
    reference a valid alias.

    Signed-off-by: Paul Burton
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/16183/
    Signed-off-by: Ralf Baechle

    Paul Burton
     
  • The SEAD-3 board doesn't & never has configured the GIC frequency.
    Remove the timer node from the DT in order to avoid attempting to probe
    the GIC clocksource/clockevent driver which will produce error messages
    such as these during boot:

    [ 0.000000] GIC frequency not specified.
    [ 0.000000] Failed to initialize '/interrupt-controller@1b1c0000/timer': -22
    [ 0.000000] clocksource_probe: no matching clocksources found

    Signed-off-by: Paul Burton
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/16188/
    Signed-off-by: Ralf Baechle

    Paul Burton
     

15 Jun, 2017

1 commit

  • The .its targets require information about the kernel binary, such as
    its entry point, which is extracted from the vmlinux ELF. We therefore
    require that the ELF is built before the .its files are generated.
    Declare this requirement in the Makefile such that make will ensure this
    is always the case, otherwise in corner cases we can hit issues as the
    .its is generated with an incorrect (either invalid or stale) entry
    point.

    Signed-off-by: Paul Burton
    Fixes: cf2a5e0bb4c6 ("MIPS: Support generating Flattened Image Trees (.itb)")
    Cc: linux-mips@linux-mips.org
    Cc: stable # v4.9+
    Patchwork: https://patchwork.linux-mips.org/patch/16179/
    Signed-off-by: Ralf Baechle

    Paul Burton
     

22 May, 2017

4 commits


19 May, 2017

1 commit

  • We use a directory under arch/$ARCH/boot/dts as an include path
    that has links outside of the subtree to find dt-bindings from under
    include/dt-bindings. That's been working well, but new DT architectures
    haven't been adding them by default.

    Recently there's been a desire to share some of the DT material between
    arm and arm64, which originally caused developers to create symlinks or
    relative includes between the subtrees. This isn't ideal -- it breaks
    if the DT files aren't stored in the exact same hierarchy as the kernel
    tree, and generally it's just icky.

    As a somewhat cleaner solution we decided to add a $ARCH/ prefix link
    once, and allow DTS files to reference dtsi (and dts) files in other
    architectures that way.

    Original approach was to create these links under each architecture,
    but it lead to the problem of recursive symlinks.

    As a remedy, move the include link directories out of the architecture
    trees into a common location. At the same time, they can now share one
    directory and one dt-bindings/ link as well.

    Fixes: 4027494ae6e3 ('ARM: dts: add arm/arm64 include symlinks')
    Reported-by: Russell King
    Reported-by: Omar Sandoval
    Reviewed-by: Heiko Stuebner
    Reviewed-by: Masahiro Yamada
    Tested-by: Heiko Stuebner
    Acked-by: Rob Herring
    Cc: Heiko Stuebner
    Cc: Mark Rutland
    Cc: Russell King
    Cc: Catalin Marinas
    Cc: Will Deacon
    Cc: Mikael Starvik
    Cc: Jesper Nilsson
    Cc: James Hogan
    Cc: Ralf Baechle
    Cc: Benjamin Herrenschmidt
    Cc: Paul Mackerras
    Cc: Michael Ellerman
    Cc: Frank Rowand
    Cc: linux-arch
    Signed-off-by: Olof Johansson

    Olof Johansson
     

17 Feb, 2017

1 commit

  • An img directory exists for the Pistchio SoC device tree but the
    directory itself isn't in the dts Makefile meaning the dtbs never get
    built.

    Fixes: daa10170da27 ("MIPS: DTS: img: add device tree for Marduk board")
    Signed-off-by: Ian Pozella
    Reviewed-by: Rahul Bedarkar
    Cc: Ralf Baechle
    Cc: linux-mips@linux-mips.org
    Patchwork: https://patchwork.linux-mips.org/patch/15309/
    Signed-off-by: James Hogan

    Ian Pozella
     

25 Jan, 2017

1 commit

  • Adds SPI device nodes to BCM7xxx MIPS based SoCs.

    Signed-off-by: Jaedon Shin
    Reviewed-by: Florian Fainelli
    Cc: Kevin Cernekee
    Cc: Rob Herring
    Cc: linux-mips@linux-mips.org
    Cc: devicetree@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/14990/
    Signed-off-by: Ralf Baechle

    Jaedon Shin
     

03 Jan, 2017

8 commits

  • Al Viro noticed that we were using two different methods to filter out
    flags from KBUILD_CFLAGS.

    Signed-off-by: Ralf Baechle
    Reported-by: Al Viro

    Ralf Baechle
     
  • Add support for Imagination Technologies' Marduk board which is based
    on Pistachio SoC. It is also known as Creator Ci40. Marduk is legacy
    name and will be there for decades.

    Documentation for this board can be found on
    https://docs.creatordev.io/ci40/

    This patch adds initial support for board with following peripherals:

    * PWM based heartbeat LED
    * GPIO based buttons
    * SPI NOR flash on SPI1
    * UART0 and UART1
    * SD card
    * Ethernet
    * USB
    * PWM
    * ADC
    * I2C

    Signed-off-by: Rahul Bedarkar
    Acked-by: Rob Herring
    Acked-by: James Hartley
    Cc: Mark Rutland
    Cc: linux-mips@linux-mips.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/14394/
    Signed-off-by: Ralf Baechle

    Rahul Bedarkar
     
  • Add support for the base Device Tree for Imagination Technologies'
    Pistachio SoC.

    This commit supports the following peripherals:

    * Clocks
    * Pinctrl and GPIO
    * UART
    * SPI
    * I2C
    * PWM
    * ADC
    * Watchdog
    * Ethernet
    * MMC
    * DMA engine
    * Crypto
    * I2S
    * SPDIF
    * Internal DAC
    * Timer
    * USB
    * IR
    * Interrupt Controller

    Signed-off-by: Rahul Bedarkar
    Acked-by: James Hartley
    Cc: Rob Herring
    Cc: Mark Rutland
    Cc: linux-mips@linux-mips.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/14393/
    Signed-off-by: Ralf Baechle

    Rahul Bedarkar
     
  • The xilfpga platform has a Xilinx AXI emaclite block.

    Add the DT node to use it.

    Signed-off-by: Zubair Lutfullah Kakakhel
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/14596/
    Signed-off-by: Ralf Baechle

    Zubair Lutfullah Kakakhel
     
  • The xilfpga platform has an AXI I2C Bus master with a temperature
    sensor connected to it.

    Add the device tree node to use them.

    Signed-off-by: Zubair Lutfullah Kakakhel
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/14594/
    Signed-off-by: Ralf Baechle

    Zubair Lutfullah Kakakhel
     
  • Update the DT node with the UART irq

    Signed-off-by: Zubair Lutfullah Kakakhel
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/14593/
    Signed-off-by: Ralf Baechle

    Zubair Lutfullah Kakakhel
     
  • IRQs from peripherals such as i2c/uart/ethernet come via
    the AXI Interrupt controller.

    Select it in Kconfig for xilfpga and add the DT node

    Signed-off-by: Zubair Lutfullah Kakakhel
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/14592/
    Signed-off-by: Ralf Baechle

    Zubair Lutfullah Kakakhel
     
  • The make variables KBUILD_CFLAGS and KBUILD_AFLAGS both contain
    $(LINUXINCLUDE). But the build already picks up $(LINUXINCLUDE) from
    scripts/Makefile.lib. The net effect is that the (long) list of include
    directories is used twice.

    This is harmless but pointless. So stop using $(LINUXINCLUDE) twice.

    Signed-off-by: Paul Bolle
    Cc: Masahiro Yamada
    Cc: linux-mips@linux-mips.org
    Cc: linux-kernel@vger.kernel.org
    Patchwork: https://patchwork.linux-mips.org/patch/14622/
    Signed-off-by: Ralf Baechle

    Paul Bolle