Skip to content
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.

Hikey960 upstream rebase #186

Open
wants to merge 10,000 commits into
base: 96b-kernelci
Choose a base branch
from

Conversation

onlinefchen
Copy link

From d7fe9d203c0408d1f2e137ac22e1883f597fafc1 Mon Sep 17 00:00:00 2001
From: cwx232124 [email protected]
Date: Fri, 20 Jan 2017 16:07:51 +0800
Subject: [PATCH] hikey960 uart5 uart6 open.


arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 5 +++++
arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 12 +++++++++++-
2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
index b96b313..787de2b 100644
--- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
+++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
@@ -18,6 +18,7 @@

aliases {
	serial5 = &uart5;       /* console UART */
  •   serial6 = &uart6;
    

    };

    chosen {
    @@ -33,5 +34,9 @@
    uart5: serial@fdf05000 {
    status = "ok";
    };

  •   uart6: uart@fff32000 {
    
  •   	status = "ok";
    
  •   };
    

    };
    };
    diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
    index 5389799..f803f61 100644
    --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
    +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi
    @@ -279,7 +279,17 @@
    clocks = <&crg_ctrl HI3660_CLK_GATE_UART5>,
    <&crg_ctrl HI3660_CLK_GATE_UART5>;
    clock-names = "uartclk", "apb_pclk";

  •   	status = "ok";
    
  •   	status = "disabled";
    
  •   };
    
  •   uart6: uart@fff32000 {
    
  •   	compatible = "arm,pl011", "arm,primecell";
    
  •   	reg = <0x0 0xfff32000 0x0 0x1000>;
    
  •   	interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
    
  •   	clocks = <&crg_ctrl HI3660_CLK_UART6>,
    
  •   		 <&crg_ctrl HI3660_PCLK>;
    
  •   	clock-names = "uartclk", "apb_pclk";
    
  •   	status = "disabled";
      };
    
    };
    };
    --
    2.7.4

@docularxu
Copy link
Member

Chen feng,

You send pull request to a wrong place. I guess.
96boards:96b-kernelci

Please double check.

@docularxu docularxu force-pushed the hikey960-upstream-rebase branch 2 times, most recently from 4708715 to dab7bf0 Compare February 20, 2017 14:17
@docularxu docularxu force-pushed the hikey960-upstream-rebase branch 3 times, most recently from 6bf2136 to f8fb0f2 Compare March 21, 2017 07:56
@docularxu docularxu force-pushed the hikey960-upstream-rebase branch 5 times, most recently from c494729 to e17391d Compare May 9, 2017 13:51
@docularxu docularxu force-pushed the hikey960-upstream-rebase branch 6 times, most recently from ac1c424 to 4fed28d Compare May 19, 2017 03:18
@docularxu docularxu force-pushed the hikey960-upstream-rebase branch 2 times, most recently from 4b6614f to 585a58b Compare May 26, 2017 07:45
@docularxu docularxu force-pushed the hikey960-upstream-rebase branch 2 times, most recently from b791b49 to a8022c5 Compare June 8, 2017 08:50
@docularxu docularxu force-pushed the hikey960-upstream-rebase branch 2 times, most recently from 790fbab to f835ecb Compare June 14, 2017 13:54
@fboudra fboudra requested a review from docularxu June 27, 2017 06:25
@docularxu
Copy link
Member

This can be closed.

@docularxu docularxu force-pushed the hikey960-upstream-rebase branch 2 times, most recently from 5771aa4 to 76e0586 Compare June 28, 2017 14:35
johnstultz-work and others added 28 commits November 3, 2017 18:10
Just a simple import of the arm_gpu directory from the
android-hikey-linaro-4.9 branch.

Signed-off-by: John Stultz <[email protected]>
Simple build fixups for migrating to 4.13 kernel

Signed-off-by: John Stultz <[email protected]>
Without this patch, when run 'make distclean O=${OUT_DIR}', this error happens:

/home/docularxu/Huawei/hikey960/kernel-2/scripts/Makefile.clean:14: /home/docularxu/Huawei/hikey960/kernel-2/drivers/gpu/arm_gpu/tests/Makefile: No such file or directory
make[5]: *** No rule to make target '/home/docularxu/Huawei/hikey960/kernel-2/drivers/gpu/arm_gpu/tests/Makefile'.  Stop.
/home/docularxu/Huawei/hikey960/kernel-2/scripts/Makefile.clean:88: recipe for target 'drivers/gpu/arm_gpu/tests' failed
make[4]: *** [drivers/gpu/arm_gpu/tests] Error 2
/home/docularxu/Huawei/hikey960/kernel-2/scripts/Makefile.clean:88: recipe for target 'drivers/gpu/arm_gpu' failed
make[3]: *** [drivers/gpu/arm_gpu] Error 2
/home/docularxu/Huawei/hikey960/kernel-2/scripts/Makefile.clean:88: recipe for target 'drivers/gpu' failed
make[2]: *** [drivers/gpu] Error 2
/home/docularxu/Huawei/hikey960/kernel-2/Makefile:1299: recipe for target '_clean_drivers' failed
make[1]: *** [_clean_drivers] Error 2
make[1]: Leaving directory '/home/docularxu/Huawei/hikey960/kernel-2-out'
Makefile:145: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2

Signed-off-by: Guodong Xu <[email protected]>
The ION abi has been changed to allow it to be upstreamed,
but this unfortunately breaks userspace gralloc/libion code
in AOSP. So until that code can be updated to support 4.12+
kernels, revert the ION code back to 4.11.

Signed-off-by: John Stultz <[email protected]>
This enable configs for Hi3660 UFS driver.

Reviewed-by: Chen Feng <[email protected]>
Signed-off-by: Zhangfei Gao <[email protected]>
Signed-off-by: Chen Jun <[email protected]>
Signed-off-by: Guodong Xu <[email protected]>
Partitions in HiKey960 are formatted as f2fs and squashfs.
f2fs is for userdata; squashfs is for system. Both partitions are required
by Android.

Signed-off-by: Zhangfei Gao <[email protected]>
Signed-off-by: Chen Jun <[email protected]>
Signed-off-by: Guodong Xu <[email protected]>
Signed-off-by: Fan Ning <[email protected]>
Signed-off-by: Guodong Xu <[email protected]>
+CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y

Signed-off-by: Guodong Xu <[email protected]>
Add a hikey960_defconfig for targeting AOSP.

Signed-off-by: John Stultz <[email protected]>
Defaults CONFIG_DRM_CMA_FBDEV_BUFFER_NUM to 1.

Previously, CONFIG_DRM_CMA_FBDEV_BUFFER_NUM is set to 2, which is useful
to AOSP. But it broke other linux distributions, such as OpenEmbedded.
So, remove and restore it to default value.

Signed-off-by: Guodong Xu <[email protected]>
Add ARM Cortex A-73 ETM PIDs to the known ETM ips. While at it
also add description of the CPU to which the ETM belongs, to make
it easier to identify the ETM devices.

Cc: Mathieu Poirier <[email protected]>
Signed-off-by: Suzuki K Poulose <[email protected]>
…stream-rebase-v4.14-rc7-2017-11-03-18-10-36

* working-hikey960-upstream-dts:
  dts: arm64: Add CoreSight trace support for hi3660
  arm64: dts: hi3660: add display driver dts
  dts: arm64: add thermal zone for Hi3660
  dts: arm64: bind CPUs OPP table for Hi3660
  dts: arm64: bind stub clock driver for Hi3660
  dt-bindings: clk: hi3660-clock: add bindings for stub clock
  dts: arm64: add mailbox binding for hi3660
  arm64: dts: enable gpu
  FIX: arm64: dts: hi3660: enable gpio_hubv2 by default for usb
  FIX: arm64: dts: hi3660: usb update
  TODO: arm64: dts: hi3660: add usb nodes for hikey960
  arm64: dts: Add ufs dts node
  dt-bindings: scsi: ufs: add document for hi3660-ufs
  arm64: dts: register Hi3660's thermal sensor
  dt-bindings: Document the hi3660 thermal sensor bindings
The CoreSight TPIU should be disabled when tracing to other sinks to allow
them to operate at full bandwidth.

This patch fixes tpiu_disable_hw() to correctly disable the TPIU by
configuring the TPIU to stop on flush, initiating a manual flush, waiting
for the flush to complete and then waits for the TPIU to indicate it has
stopped.

Signed-off-by: Robert Walker <[email protected]>
…stream-rebase-v4.14-rc7-2017-11-03-18-10-36

* working-hikey960-upstream-clk:
  clk: hi3660: fix incorrect uart3 clock freqency
…stream-rebase-v4.14-rc7-2017-11-03-18-10-36

* working-hikey960-upstream-ufs:
  scsi: ufs: add hi3660 ufs driver code
…-upstream-rebase-v4.14-rc7-2017-11-03-18-10-36

* working-hikey960-upstream-reboot:
  reset: hisi-reboot: adb reboot bootloader
…stream-rebase-v4.14-rc7-2017-11-03-18-10-36

* working-hikey960-upstream-usb:
  Usb-host:xhci fix usb panic when usb disconnect
  usb: support usb gadget for hikey960
  usb: add pd support for hikey960
  usb: add dwc3 driver for hikey960
  usb: add hub_usb5734 driver for hikey960
…0-upstream-rebase-v4.14-rc7-2017-11-03-18-10-36

* working-hikey960-upstream-cpuidle:
  cpuidle: Fix NULL driver checking
…tream-rebase-v4.14-rc7-2017-11-03-18-10-36

* working-hikey960-upstream-pm:
  thermal/drivers/step_wise: Fix temperature regulation misbehavior
  thermal: hisilicon: add thermal sensor driver for Hi3660
  clk: hisilicon: add stub clock driver for Hi3660
  driver: mailbox: add support for Hi3660
…stream-rebase-v4.14-rc7-2017-11-03-18-10-36

* working-hikey960-upstream-drm:
  HACK: Readd adv7511 mode limiting (this needs to go into drm driver)
  drm: kirin960: Build fixups for 4.14
  drm: kirin960: Set prefered color modes
  drm: hikey960: Add hikey960 display driver code
…pstream-rebase-v4.14-rc7-2017-11-03-18-10-36

* working-hikey960-upstream-mali:
  MALI: fixup for make distclean
  MALI: Build fixups for 4.13
  MALI: Add mali bifrost code from android-hikey-linaro-4.9 branch
  MALI: drm/cma-helper: Add multi buffer support for cma fbdev
…stream-rebase-v4.14-rc7-2017-11-03-18-10-36

* working-hikey960-upstream-ion:
  HACK: ion: Revert ION to 4.11 era code to avoid ABI break
…960-upstream-rebase-v4.14-rc7-2017-11-03-18-10-36

* working-hikey960-upstream-defconfig:
  FIX: arm64: defconfig: set CONFIG_DRM_CMA_FBDEV_BUFFER_NUM to default
  hikey960_defconfig: Initial hikey960_defconfig
  arm64: defconfig: enable ondemand cpufreq governor and set as default
  arm64: defconfig: enable DRM and hikey960 display driver
  arm64: defconfig: add configs for power management on Hi3660
  FIX: arm64: defconfig: update for USB
  arm64: defconfig: enable usb for hikey960
  HACK: arm64: defconfig: setting localversion to linaro-hikey960
  arm64: defconfig: enable f2fs and squashfs
  arm64: defconfig: enable configs for hi3660 ufs
…960-upstream-rebase-v4.14-rc7-2017-11-03-18-10-36

* working-hikey960-upstream-coresight:
  coresight: Fix disabling of CoreSight TPIU
  coresight: ETM: Add support for ARM Cortex-A73
As a correction, in this commit:
 - Update the property name from "reset-gpios" to "reset-gpio".

Change-Id: I978bd06e1a06c591ad52a5f0af044294dab8b9bd
Cc: Guodong Xu <[email protected]>
Signed-off-by: Loic Poulain <[email protected]>
Signed-off-by: Xiaowei Song <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.