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

Upgrade to v5.14 and some fixes #2

Closed
wants to merge 123 commits into from
Closed

Commits on Aug 8, 2021

  1. RISC-V: Use SBI SRST extension when available

    The SBI SRST extension provides a standard way to poweroff and
    reboot the system irrespective to whether Linux RISC-V S-mode
    is running natively (HS-mode) or inside Guest/VM (VS-mode).
    
    The SBI SRST extension is available in latest SBI v0.3-draft
    specification at: https://github.com/riscv/riscv-sbi-doc.
    
    This patch extends Linux RISC-V SBI implementation to detect
    and use SBI SRST extension.
    
    Signed-off-by: Anup Patel <[email protected]>
    Reviewed-by: Atish Patra <[email protected]>
    avpatel authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    fd555dc View commit details
    Browse the repository at this point in the history
  2. RISC-V: Enable CPU_IDLE drivers

    We force select CPU_PM and provide asm/cpuidle.h so that we can
    use CPU IDLE drivers for Linux RISC-V kernel.
    
    Signed-off-by: Anup Patel <[email protected]>
    avpatel authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    a8f9da3 View commit details
    Browse the repository at this point in the history
  3. RISC-V: Rename relocate() and make it global

    The low-level relocate() function enables mmu and relocates
    execution to link-time addresses. We rename relocate() function
    to relocate_enable_mmu() function which is more informative.
    
    Also, the relocate_enable_mmu() function will be used in the
    resume path when a CPU wakes-up from a non-retentive suspend
    so we make it global symbol.
    
    Signed-off-by: Anup Patel <[email protected]>
    avpatel authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    7a44e45 View commit details
    Browse the repository at this point in the history
  4. RISC-V: Add arch functions for non-retentive suspend entry/exit

    The hart registers and CSRs are not preserved in non-retentative
    suspend state so we provide arch specific helper functions which
    will save/restore hart context upon entry/exit to non-retentive
    suspend state. These helper functions can be used by cpuidle
    drivers for non-retentive suspend entry/exit.
    
    Signed-off-by: Anup Patel <[email protected]>
    avpatel authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    e9b62bc View commit details
    Browse the repository at this point in the history
  5. RISC-V: Add SBI HSM suspend related defines

    We add defines related to SBI HSM suspend call and also
    update HSM states naming as-per latest SBI specification.
    
    Signed-off-by: Anup Patel <[email protected]>
    avpatel authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    7c99495 View commit details
    Browse the repository at this point in the history
  6. cpuidle: Factor-out power domain related code from PSCI domain driver

    The generic power domain related code in PSCI domain driver is largely
    independent of PSCI and can be shared with RISC-V SBI domain driver
    hence we factor-out this code into dt_idle_genpd.c and dt_idle_genpd.h.
    
    Signed-off-by: Anup Patel <[email protected]>
    avpatel authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    e87de21 View commit details
    Browse the repository at this point in the history
  7. cpuidle: Add RISC-V SBI CPU idle driver

    The RISC-V SBI HSM extension provides HSM suspend call which can
    be used by Linux RISC-V to enter platform specific low-power state.
    
    This patch adds a CPU idle driver based on RISC-V SBI calls which
    will populate idle states from device tree and use SBI calls to
    entry these idle states.
    
    Signed-off-by: Anup Patel <[email protected]>
    avpatel authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    2aeeefb View commit details
    Browse the repository at this point in the history
  8. cpuidle: sbi: Fix build with !CONFIG_SMP

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    b3f391d View commit details
    Browse the repository at this point in the history
  9. dt-bindings: Add common bindings for ARM and RISC-V idle states

    The RISC-V CPU idle states will be described in under the
    /cpus/idle-states DT node in the same way as ARM CPU idle
    states.
    
    This patch adds common bindings documentation for both ARM
    and RISC-V idle states.
    
    Signed-off-by: Anup Patel <[email protected]>
    Reviewed-by: Rob Herring <[email protected]>
    avpatel authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    afd096c View commit details
    Browse the repository at this point in the history
  10. RISC-V: Enable RISC-V SBI CPU Idle driver for QEMU virt machine

    We enable RISC-V SBI CPU Idle driver for QEMU virt machine to test
    SBI HSM Supend on QEMU.
    
    Signed-off-by: Anup Patel <[email protected]>
    avpatel authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    d0042e8 View commit details
    Browse the repository at this point in the history
  11. riscv: Introduce CONFIG_RELOCATABLE

    This config allows to compile 64b kernel as PIE and to relocate it at
    any virtual address at runtime: this paves the way to KASLR.
    Runtime relocation is possible since relocation metadata are embedded into
    the kernel.
    
    Note that relocating at runtime introduces an overhead even if the
    kernel is loaded at the same address it was linked at and that the compiler
    options are those used in arm64 which uses the same RELA relocation
    format.
    
    Signed-off-by: Alexandre Ghiti <[email protected]>
    AlexGhiti authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    904f70f View commit details
    Browse the repository at this point in the history
  12. powerpc: Move script to check relocations at compile time in scripts/

    Relocating kernel at runtime is done very early in the boot process, so
    it is not convenient to check for relocations there and react in case a
    relocation was not expected.
    
    Powerpc architecture has a script that allows to check at compile time
    for such unexpected relocations: extract the common logic to scripts/
    so that other architectures can take advantage of it.
    
    Signed-off-by: Alexandre Ghiti <[email protected]>
    Reviewed-by: Anup Patel <[email protected]>
    Acked-by: Michael Ellerman <[email protected]> (powerpc)
    AlexGhiti authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    57aadbd View commit details
    Browse the repository at this point in the history
  13. riscv: Check relocations at compile time

    Relocating kernel at runtime is done very early in the boot process, so
    it is not convenient to check for relocations there and react in case a
    relocation was not expected.
    
    There exists a script in scripts/ that extracts the relocations from
    vmlinux that is then used at postlink to check the relocations.
    
    Signed-off-by: Alexandre Ghiti <[email protected]>
    Reviewed-by: Anup Patel <[email protected]>
    AlexGhiti authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    37d4140 View commit details
    Browse the repository at this point in the history
  14. riscv: pgtable: Fixup _PAGE_CHG_MASK usage

    We should masks all attributes BITS first, and then
    using '>> _PAGE_PFN_SHIFT' to get the final PFN value.
    
    Adding '& _PAGE_CHG_MASK' makes the code semantics more accurate.
    
    Signed-off-by: Guo Ren <[email protected]>
    Signed-off-by: Liu Shaohua <[email protected]>
    Cc: Anup Patel <[email protected]>
    Cc: Arnd Bergmann <[email protected]>
    Cc: Chen-Yu Tsai <[email protected]>
    Cc: Christoph Hellwig <[email protected]>
    Cc: Drew Fustini <[email protected]>
    Cc: Maxime Ripard <[email protected]>
    Cc: Palmer Dabbelt <[email protected]>
    Cc: Wei Fu <[email protected]>
    Cc: Wei Wu <[email protected]>
    guoren83 authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    1197dbd View commit details
    Browse the repository at this point in the history
  15. riscv: pgtable: Add custom protection_map init

    Some RISC-V CPU vendors have defined their own PTE attributes to
    solve non-coherent DMA bus problems. That makes _P/SXXX definitions
    contain global variables which could be initialized at the early
    boot stage before setup_vm.
    
    This patch is similar to 316d097  (x86/pti: Filter at
    vma->vm_page_prot population) which give a choice for arch custom
    implementation.
    
    Signed-off-by: Guo Ren <[email protected]>
    Cc: Andrew Morton <[email protected]>
    Cc: Arnd Bergmann <[email protected]>
    Cc: Palmer Dabbelt <[email protected]>
    guoren83 authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    036c88f View commit details
    Browse the repository at this point in the history
  16. riscv: pgtable: Add DMA_COHERENT with custom PTE attributes

    The dma-noncoherent SOCs need different virtual memory mappings
    with different attributes:
     - noncached + Strong Order (for IO/DMA descriptor)
     - noncached + Weak Order (for writecombine usage, eg: frame
       buffer)
    
    All above base on PTE attributes by MMU hardware. That means
    address attributes are determined by PTE entry, not PMA. RISC-V
    soc vendors have defined their own custom PTE attributes for
    dma-noncoherency.
    
    Signed-off-by: Guo Ren <[email protected]>
    Signed-off-by: Liu Shaohua <[email protected]>
    Cc: Palmer Dabbelt <[email protected]>
    Cc: Christoph Hellwig <[email protected]>
    Cc: Anup Patel <[email protected]>
    Cc: Arnd Bergmann <[email protected]>
    Cc: Drew Fustini <[email protected]>
    Cc: Wei Fu <[email protected]>
    Cc: Wei Wu <[email protected]>
    Cc: Chen-Yu Tsai <[email protected]>
    Cc: Maxime Ripard <[email protected]>
    guoren83 authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    b789c51 View commit details
    Browse the repository at this point in the history
  17. riscv: cmo: Add dma-noncoherency support

    To support DMA device in a non-coherent interconnect SOC system,
    we need the below facilities:
     - Changing a virtual memory mapping region attributes from
       cacheable to noncache + strong order which used in DMA
       descriptors.
     - Add noncache + weakorder virtual memory attributes for dma
       mapping.
     - Syncing the cache with memory before DMA start and after DMA
       end with vendor custom CMO instructions.
    
    This patch enables linux kernel generic dma-noncoherency
    infrastructure and introduces new sbi_ecall API for dma_sync.
    
    @@ -27,6 +27,7 @@ enum sbi_ext_id {
    +       SBI_EXT_DMA = 0xAB150401,
    
    Signed-off-by: Guo Ren <[email protected]>
    Signed-off-by: Liu Shaohua <[email protected]>
    Cc: Palmer Dabbelt <[email protected]>
    Cc: Christoph Hellwig <[email protected]>
    Cc: Anup Patel <[email protected]>
    Cc: Arnd Bergmann <[email protected]>
    Cc: Drew Fustini <[email protected]>
    Cc: Wei Fu <[email protected]>
    Cc: Wei Wu <[email protected]>
    Cc: Chen-Yu Tsai <[email protected]>
    Cc: Maxime Ripard <[email protected]>
    guoren83 authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    01a3fe9 View commit details
    Browse the repository at this point in the history
  18. riscv: cmo: Add vendor custom icache sync

    It's a draft version to show you how T-HEAD C9xx work with the
    icache sync (We use hardware broadcast mechanism, and our icache
    is VIPT):
     - icache.i(v/p)a will broadcast all harts' icache invalidtion
     - sync.is will broadcast all harts' pipeline flush and ensure all
       broadcasts finished.
    
    This patch could improve the performance of OpenJDK on JIT and
    reduce flush_icache_all in linux.
    
    Epecially:
    static inline void set_pte_at(struct mm_struct *mm,
            unsigned long addr, pte_t *ptep, pte_t pteval)
    {
    	if (pte_present(pteval) && pte_exec(pteval))
    		flush_icache_pte(pteval);
    
    	set_pte(ptep, pteval);
    }
    
    Different from sbi_dma_sync, it can't be hidden in SBI and we must
    set up a framework to hold all vendors' implementations in
    linux/arch/riscv.
    
    Signed-off-by: Guo Ren <[email protected]>
    Signed-off-by: Liu Shaohua <[email protected]>
    Cc: Anup Patel <[email protected]>
    Cc: Atish Patra <[email protected]>
    Cc: Palmer Dabbelt <[email protected]>
    Cc: Chen-Yu Tsai <[email protected]>
    Cc: Drew Fustini <[email protected]>
    Cc: Maxime Ripard <[email protected]>
    Cc: Palmer Dabbelt <[email protected]>
    Cc: Wei Fu <[email protected]>
    Cc: Wei Wu <[email protected]>
    guoren83 authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    0100aa7 View commit details
    Browse the repository at this point in the history
  19. [HACK] Enable T-HEAD MMU extensions unconditionally

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    b3f6800 View commit details
    Browse the repository at this point in the history
  20. riscv: cacheinfo: Remind myself to fix this

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    d1e94c7 View commit details
    Browse the repository at this point in the history
  21. bus: sun50i-de2: Use devm_of_platform_populate

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    c193219 View commit details
    Browse the repository at this point in the history
  22. dt-bindings: clk: sunxi-ccu: Add compatibles for D1 CCUs

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    885ac1d View commit details
    Browse the repository at this point in the history
  23. clk: sunxi-ng: Add missing dependency for A83T CCU

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    21cd100 View commit details
    Browse the repository at this point in the history
  24. clk: sunxi-ng: div: Add macros using CLK_HW_INIT_HWS

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    4c39efc View commit details
    Browse the repository at this point in the history
  25. clk: sunxi-ng: Add macros for gates with fixed dividers

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    4718a73 View commit details
    Browse the repository at this point in the history
  26. clk: sunxi-ng: mux: Remove unused field

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    9c03f58 View commit details
    Browse the repository at this point in the history
  27. clk: sunxi-ng: Allow muxes to have keys

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    4bf6056 View commit details
    Browse the repository at this point in the history
  28. clk: sunxi-ng: Add support for newer sun50i RTCs

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    9510ca9 View commit details
    Browse the repository at this point in the history
  29. clk: sunxi-ng: Add support for the D1 SoC clocks

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    f4fea1b View commit details
    Browse the repository at this point in the history
  30. clocksource: riscv: Prefer it over MMIO clocksources

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    d989270 View commit details
    Browse the repository at this point in the history
  31. [STUB] riscv: Enable cpufreq

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    cea41b6 View commit details
    Browse the repository at this point in the history
  32. cpufreq: sun50i: add efuse_xlate to get efuse version.

    It's better to use efuse_xlate to extract the differentiated part
    regarding different SoC.
    
    Signed-off-by: Shuosheng Huang <[email protected]>
    Signed-off-by: Samuel Holland <[email protected]>
    Shuosheng Huang authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    195547d View commit details
    Browse the repository at this point in the history
  33. cpufreq: sun50i: add A100 cpufreq support

    Add nvmem based cpufreq for Allwinner A100 SoC, which is similar to H6.
    
    Signed-off-by: Shuosheng Huang <[email protected]>
    Signed-off-by: Samuel Holland <[email protected]>
    Shuosheng Huang authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    338d56d View commit details
    Browse the repository at this point in the history
  34. cpufreq: sun50i: Move out of ARM-specific section

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    a6ffa79 View commit details
    Browse the repository at this point in the history
  35. [STUB] cpufreq: sun50i: Add D1 cpufreq support

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    68d5f6c View commit details
    Browse the repository at this point in the history
  36. crypto: sun8i-ce: add support for sun20i-d1

    The Allwinner D1 SoC has a crypto engine compatible with sun8i-ce.
    Add support for it.
    
    Signed-off-by: Corentin Labbe <[email protected]>
    Signed-off-by: Samuel Holland <[email protected]>
    montjoie authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    3cccee5 View commit details
    Browse the repository at this point in the history
  37. dt-bindings: dma: Add Allwinner D1 compatible

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    7d6ba1d View commit details
    Browse the repository at this point in the history
  38. dmaengine: sun6i: Add support for 34-bit physical addresses

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    1d8c2dd View commit details
    Browse the repository at this point in the history
  39. dmaengine: sun6i: Stop using virt_to_phys

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    5d7149f View commit details
    Browse the repository at this point in the history
  40. dmaengine: sun6i: Changes from BSP

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    2fbfb06 View commit details
    Browse the repository at this point in the history
  41. dmaengine: sun6i: Add support for D1 DMA

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    1a3ca84 View commit details
    Browse the repository at this point in the history
  42. hwspinlock: sun6i: Update driver to match binding

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    3a1011d View commit details
    Browse the repository at this point in the history
  43. hwspinlock: sun6i: Register layout is known

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    fc70767 View commit details
    Browse the repository at this point in the history
  44. hwspinlock: sun6i: Fix debugfs leak

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    d06bc35 View commit details
    Browse the repository at this point in the history
  45. dt-bindings: input: Add D1 support to LRADC keys

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    c1acad0 View commit details
    Browse the repository at this point in the history
  46. Input: sun4i-lradc-keys: Add clock/reset support for D1

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    aeddd11 View commit details
    Browse the repository at this point in the history
  47. Input: sun4i-lradc-keys: Add support for D1

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    5806ca1 View commit details
    Browse the repository at this point in the history
  48. dt-bindings: iommu: Add compatible for D1 IOMMU

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    5da41e9 View commit details
    Browse the repository at this point in the history
  49. [WIP] iommu/sun50i: Add support for D1 IOMMU

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    d796e5f View commit details
    Browse the repository at this point in the history
  50. irqchip/sun20i: Add an Allwinner D1 stacked driver

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    6038cb9 View commit details
    Browse the repository at this point in the history
  51. leds-sun20i: New driver for the sun20i internal LED controller

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    a7088e0 View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    1ad05ba View commit details
    Browse the repository at this point in the history
  53. dt-bindings: media: Add compatible for D1 video engine

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    96ee3f8 View commit details
    Browse the repository at this point in the history
  54. media: cedrus: Add D1 variant

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    d867a5c View commit details
    Browse the repository at this point in the history
  55. dt-bindings: mmc: sunxi: Add D1 MMC and eMMC compatibles

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    982b375 View commit details
    Browse the repository at this point in the history
  56. mmc: sunxi-mmc: Correct the maximum transfer size

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    09b0cf6 View commit details
    Browse the repository at this point in the history
  57. mmc: sunxi-mmc: Fix DMA descriptors above 32 bits

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    b8630c8 View commit details
    Browse the repository at this point in the history
  58. mmc: sunxi-mmc: Add D1 MMC compatible

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    d65ada5 View commit details
    Browse the repository at this point in the history
  59. mmc: sunxi-mmc: Add more registers

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    0e00698 View commit details
    Browse the repository at this point in the history
  60. net: stmmac: dwmac-sun8i: Add D1 variant

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    d4c8de1 View commit details
    Browse the repository at this point in the history
  61. nvmem: sunxi_sid: Add D1 variant

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    56df1ca View commit details
    Browse the repository at this point in the history
  62. of/irq: Use interrupts-extended to find parent

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    9c8d031 View commit details
    Browse the repository at this point in the history
  63. phy: sun4i-usb: Rework HCI PHY (aka. "pmu_unk1") handling

    As Icenowy pointed out, newer manuals (starting with H6) actually
    document the register block at offset 0x800 as "HCI controller and PHY
    interface", also describe the bits in our "PMU_UNK1" register.
    Let's put proper names to those "unknown" variables and symbols.
    
    While we are at it, generalise the existing code by allowing a bitmap
    of bits to clear and set, to cover newer SoCs: The A100 and H616 use a
    different bit for the SIDDQ control.
    
    Signed-off-by: Andre Przywara <[email protected]>
    Andre-ARM authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    41eb276 View commit details
    Browse the repository at this point in the history
  64. phy: sun4i-usb: Remove disc_thresh where not applicable

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    4826f27 View commit details
    Browse the repository at this point in the history
  65. phy: sun4i-usb: Add D1 variant

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    ba22d61 View commit details
    Browse the repository at this point in the history
  66. dt-bindings: pinctrl: Add compatible for Allwinner D1

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    de2b245 View commit details
    Browse the repository at this point in the history
  67. pinctrl: sunxi: Support new 2.5V I/O bias mode

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    3bd5882 View commit details
    Browse the repository at this point in the history
  68. [HACK] pinctrl: sunxi: Adapt for D1 register layout

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    b44da17 View commit details
    Browse the repository at this point in the history
  69. pinctrl: sunxi: Add support for Allwinner D1 SoC

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    1d89790 View commit details
    Browse the repository at this point in the history
  70. pwm: sun8i-v536: document device tree bindings

    This adds binding documentation for sun8i-v536 SoC PWM driver.
    
    Signed-off-by: Ban Tao <[email protected]>
    Ban Tao authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    0f0a827 View commit details
    Browse the repository at this point in the history
  71. pwm: sunxi: Add Allwinner SoC PWM controller driver

    The Allwinner R818, A133, R329, V536 and V833 has a new PWM controller
    IP compared to the older Allwinner SoCs.
    
    Signed-off-by: Ban Tao <[email protected]>
    Ban Tao authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    3de9d17 View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    ecc0e91 View commit details
    Browse the repository at this point in the history
  73. pwm: sun8i-v536: Add support for the Allwinner D1

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    a39d672 View commit details
    Browse the repository at this point in the history
  74. remoteproc: sun8i-dsp: Add a driver for the DSPs in sunxi SoCs

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    d5b2dfc View commit details
    Browse the repository at this point in the history
  75. rtc: sun6i: Add support for linear day storage

    Newer versions of the Allwinner RTC, as for instance found in the H616
    SoC, no longer store a broken-down day/month/year representation in the
    RTC_DAY_REG, but just a linear day number.
    The user manual does not give any indication about the expected epoch
    time of this day count, but the BSP kernel uses the UNIX epoch, which
    allows easy support due to existing conversion functions in the kernel.
    
    Allow tagging a compatible string with a flag, and use that to mark
    those new RTCs. Then convert between a UNIX day number (converted into
    seconds) and the broken-down day representation using mktime64() and
    time64_to_tm() in the set_time/get_time functions.
    
    That enables support for the RTC in those new chips.
    
    Reviewed-by: Andre Przywara <[email protected]>
    Andre-ARM authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    3524ea0 View commit details
    Browse the repository at this point in the history
  76. rtc: sun6i: Add Allwinner H616 support

    The H616 RTC changes its day storage to the newly introduced linear day
    scheme, so pair the new compatible string with this feature flag.
    So far the clock parts seem to be the same as the H6, so combine the
    compatible string with the existing H6 support bits.
    
    Signed-off-by: Andre Przywara <[email protected]>
    Andre-ARM authored and smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    3d4e09a View commit details
    Browse the repository at this point in the history
  77. [WIP] rtc: sun6i: Make fw_devlink happy

    This doesn't work, but it is good enough to let clock consumers probe.
    
    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    6744fe8 View commit details
    Browse the repository at this point in the history
  78. soc: sunxi: sram: Actually marked claimed regions as claimed

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    4406d2e View commit details
    Browse the repository at this point in the history
  79. soc: sunxi: sram: Map SRAM back to CPU on release

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    de67022 View commit details
    Browse the repository at this point in the history
  80. soc: sunxi: sram: Fix debugfs file leak

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    9ac742b View commit details
    Browse the repository at this point in the history
  81. soc: sunxi: sram: Use devm_of_platform_populate

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    368ec7b View commit details
    Browse the repository at this point in the history
  82. soc: sunxi: sram: Add support for D1 LDOs

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    7e6a802 View commit details
    Browse the repository at this point in the history
  83. soc: sunxi: sram: Fix debugfs for A64 SRAM C

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    7117844 View commit details
    Browse the repository at this point in the history
  84. soc: sunxi: sram: Add D1 DSP SRAM

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    292cc81 View commit details
    Browse the repository at this point in the history
  85. soc: sunxi: sram: Add D1 syscon variant

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    d61e28a View commit details
    Browse the repository at this point in the history
  86. spi: spi-sun6i: Use a struct for quirks

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    a13eb4a View commit details
    Browse the repository at this point in the history
  87. spi: spi-sun6i: Add Allwinner R329 support

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    b203363 View commit details
    Browse the repository at this point in the history
  88. thermal/of: Remove duplicate null check

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    3e272aa View commit details
    Browse the repository at this point in the history
  89. dt-bindings: thermal: sun8i: Add compatible for D1 thermal sensor

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    1f563b3 View commit details
    Browse the repository at this point in the history
  90. thermal: sun8i: Fill in the unknown field name

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    b569c6e View commit details
    Browse the repository at this point in the history
  91. thermal: sun8i: Set the event type for new samples

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    2070d3d View commit details
    Browse the repository at this point in the history
  92. thermal: sun8i: Use optional clock/reset getters

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    53df343 View commit details
    Browse the repository at this point in the history
  93. thermal: sun8i: Ensure vref is powered

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    f5f58e8 View commit details
    Browse the repository at this point in the history
  94. thermal: sun8i: Add support for the D1 thermal sensor

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    9f05fdd View commit details
    Browse the repository at this point in the history
  95. dt-bindings: watchdog: Add compatible for Allwinner D1

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    496cfd0 View commit details
    Browse the repository at this point in the history
  96. watchdog: sunxi_wdt: Add support for the D1 SoC

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    ed37440 View commit details
    Browse the repository at this point in the history
  97. ASoC: simple-card-utils: Fix overallocation of DLCs

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    78b13a9 View commit details
    Browse the repository at this point in the history
  98. ASoC: sun4i-i2s: Correct registers for multiple data pins

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    1b1e31b View commit details
    Browse the repository at this point in the history
  99. ASoC: sun4i-i2s: Also set capture DMA width

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    2455f65 View commit details
    Browse the repository at this point in the history
  100. ASoC: sun4i-i2s: Add D1 variant

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    601976d View commit details
    Browse the repository at this point in the history
  101. [WIP] ASoC: sun4i-spdif: Add support for separate resets

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    1251376 View commit details
    Browse the repository at this point in the history
  102. [WIP] ASoC: sun4i-spdif: Add support for separate clocks

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    8d7e577 View commit details
    Browse the repository at this point in the history
  103. [WIP] ASoC: sun4i-spdif: Add D1 variant

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    527e685 View commit details
    Browse the repository at this point in the history
  104. ASoC: sun20i-codec: New driver for D1 internal codec

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    5087f1f View commit details
    Browse the repository at this point in the history
  105. [WIP] ASoC: sun20i-codec: What is this ramp thing?

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    589dbed View commit details
    Browse the repository at this point in the history
  106. [SPLIT] dt-bindings: Add compatibles for D1

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    407dfbe View commit details
    Browse the repository at this point in the history
  107. [SPLIT] treewide: ARCH_SUNXI += SOC_SUNXI

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    7841e5c View commit details
    Browse the repository at this point in the history
  108. dt-bindings: riscv: Add compatible for D1 PLIC

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    9451b65 View commit details
    Browse the repository at this point in the history
  109. dt-bindings: riscv: Add compatible for T-HEAD C906

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    139b576 View commit details
    Browse the repository at this point in the history
  110. [WIP] riscv: Add Allwinner D1 SoC support

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    4bb15bb View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2021

  1. [WIP] riscv: Add Allwinner D1 SoC device tree

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 9, 2021
    Configuration menu
    Copy the full SHA
    7e062d9 View commit details
    Browse the repository at this point in the history
  2. [TEMP] Add static memory info to the D1 device tree

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 9, 2021
    Configuration menu
    Copy the full SHA
    eccf985 View commit details
    Browse the repository at this point in the history
  3. [WIP] riscv: Add D1 Nezha board device tree

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 9, 2021
    Configuration menu
    Copy the full SHA
    29457d2 View commit details
    Browse the repository at this point in the history
  4. [DO NOT MERGE] misc changes

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 9, 2021
    Configuration menu
    Copy the full SHA
    8e6d0e6 View commit details
    Browse the repository at this point in the history
  5. [WIP] spi: spi-sun6i: Dual/Quad RX Support

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 9, 2021
    Configuration menu
    Copy the full SHA
    d895cf7 View commit details
    Browse the repository at this point in the history
  6. [DO NOT MERGE] Add a defconfig for the NeZha

    Signed-off-by: Samuel Holland <[email protected]>
    smaeul committed Aug 9, 2021
    Configuration menu
    Copy the full SHA
    319b62e View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2021

  1. pinctrl: sunxi: sunxi_pinctrl_irq_ack avoid build warning

    Avoid a build warning
    
    drivers/pinctrl/sunxi/pinctrl-sunxi.c:
    In function ‘sunxi_pinctrl_irq_ack’:
    drivers/pinctrl/sunxi/pinctrl-sunxi.c:1035:2: warning:
    ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     1035 |  u32 new = readl(pctl->membase + status_reg);
          |  ^~~
    
    Signed-off-by: Heinrich Schuchardt <[email protected]>
    xypron authored and smaeul committed Oct 12, 2021
    Configuration menu
    Copy the full SHA
    012f5a3 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2021

  1. Configuration menu
    Copy the full SHA
    6677454 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bae5890 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d45fe47 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e635dfa View commit details
    Browse the repository at this point in the history
  5. Revert "PTE workaround, now pthread works"

    This reverts commit e635dfa.
    cyyself committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    a57d71b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1ed5834 View commit details
    Browse the repository at this point in the history