2019-08-19 23:49:54

by John Stultz

[permalink] [raw]
Subject: [PATCH 0/3] dt-bindings for lima support on HiKey

Peter sent a patchset out back in April to enable Lima support
on HiKey, but there's not been much action on it since since.

I've been carrying the patchset in my tree, and figured I'd send
out just these three dt-bindings changes just so hopefully they
can go in and the dependent driver changes can be more easily
pushed later on.

thanks
-john

Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Philipp Zabel <[email protected]>
Cc: Peter Griffin <[email protected]>
Cc: [email protected]
Cc: [email protected]


Peter Griffin (3):
dt-bindings: gpu: mali-utgard: add hisilicon,hi6220-mali compatible
dt-bindings: reset: hisilicon: Update compatible documentation
dt-bindings: reset: hisilicon: Add ao reset controller

Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt | 5 +++++
.../devicetree/bindings/reset/hisilicon,hi6220-reset.txt | 1 +
include/dt-bindings/reset/hisi,hi6220-resets.h | 7 +++++++
3 files changed, 13 insertions(+)

--
2.17.1


2019-08-19 23:51:08

by John Stultz

[permalink] [raw]
Subject: [PATCH 2/3] dt-bindings: reset: hisilicon: Update compatible documentation

From: Peter Griffin <[email protected]>

The reset driver now supports the ao reset controller, so update the
documentation to match.

Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Philipp Zabel <[email protected]>
Cc: [email protected]
Cc: [email protected]
Reviewed-by: Rob Herring <[email protected]>
Signed-off-by: Peter Griffin <[email protected]>
Signed-off-by: John Stultz <[email protected]>
---
.../devicetree/bindings/reset/hisilicon,hi6220-reset.txt | 1 +
1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt b/Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt
index c25da39df707..ea0a6a9734c1 100644
--- a/Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt
+++ b/Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt
@@ -11,6 +11,7 @@ Required properties:
- compatible: should be one of the following:
- "hisilicon,hi6220-sysctrl", "syscon" : For peripheral reset controller.
- "hisilicon,hi6220-mediactrl", "syscon" : For media reset controller.
+ - "hisilicon,hi6220-aoctrl", "syscon" : For ao reset controller.
- reg: should be register base and length as documented in the
datasheet
- #reset-cells: 1, see below
--
2.17.1

2019-08-19 23:51:08

by John Stultz

[permalink] [raw]
Subject: [PATCH 1/3] dt-bindings: gpu: mali-utgard: add hisilicon,hi6220-mali compatible

From: Peter Griffin <[email protected]>

The Hisilicon hi6220 uses a Mali-450MP4 with 4 PPs, so add
a compatible for it.

Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Philipp Zabel <[email protected]>
Cc: [email protected]
Cc: [email protected]
Reviewed-by: Rob Herring <[email protected]>
Signed-off-by: Peter Griffin <[email protected]>
Signed-off-by: John Stultz <[email protected]>
---
Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt
index b352a6851a06..ba895efe3039 100644
--- a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt
+++ b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt
@@ -24,6 +24,7 @@ Required properties:
+ rockchip,rk3228-mali
+ rockchip,rk3328-mali
+ stericsson,db8500-mali
+ + hisilicon,hi6220-mali

- reg: Physical base address and length of the GPU registers

@@ -98,6 +99,10 @@ to specify one more vendor-specific compatible, among:
* interrupt-names and interrupts:
+ combined: combined interrupt of all of the above lines

+ - hisilicon,hi6220-mali
+ Required properties:
+ * resets: phandles to the reset lines for the GPU
+
Example:

mali: gpu@1c40000 {
--
2.17.1

2019-08-19 23:51:22

by John Stultz

[permalink] [raw]
Subject: [PATCH 3/3] dt-bindings: reset: hisilicon: Add ao reset controller

From: Peter Griffin <[email protected]>

This is required to bring Mali450 gpu out of reset.

Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Philipp Zabel <[email protected]>
Cc: [email protected]
Cc: [email protected]
Reviewed-by: Rob Herring <[email protected]>
Signed-off-by: Peter Griffin <[email protected]>
Signed-off-by: John Stultz <[email protected]>
---
include/dt-bindings/reset/hisi,hi6220-resets.h | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/include/dt-bindings/reset/hisi,hi6220-resets.h b/include/dt-bindings/reset/hisi,hi6220-resets.h
index e7c362a81a97..63aff7d8aa45 100644
--- a/include/dt-bindings/reset/hisi,hi6220-resets.h
+++ b/include/dt-bindings/reset/hisi,hi6220-resets.h
@@ -73,4 +73,11 @@
#define MEDIA_MMU 6
#define MEDIA_XG2RAM1 7

+#define AO_G3D 1
+#define AO_CODECISP 2
+#define AO_MCPU 4
+#define AO_BBPHARQMEM 5
+#define AO_HIFI 8
+#define AO_ACPUSCUL2C 12
+
#endif /*_DT_BINDINGS_RESET_CONTROLLER_HI6220*/
--
2.17.1

2019-08-20 13:24:05

by Rob Herring

[permalink] [raw]
Subject: Re: [PATCH 0/3] dt-bindings for lima support on HiKey

On Mon, Aug 19, 2019 at 6:48 PM John Stultz <[email protected]> wrote:
>
> Peter sent a patchset out back in April to enable Lima support
> on HiKey, but there's not been much action on it since since.
>
> I've been carrying the patchset in my tree, and figured I'd send
> out just these three dt-bindings changes just so hopefully they
> can go in and the dependent driver changes can be more easily
> pushed later on.

As it's all binding changes, I've applied them to the DT tree.

Rob