* [PATCH v3 0/5] Add ARM Mali Midgard device tree bindings and gpu node for rk3288 @ 2017-04-19 8:06 Guillaume Tucker [not found] ` <cover.1492588180.git.guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> ` (3 more replies) 0 siblings, 4 replies; 11+ messages in thread From: Guillaume Tucker @ 2017-04-19 8:06 UTC (permalink / raw) To: Rob Herring, Mark Rutland, Heiko Stübner, Neil Armstrong Cc: Sjoerd Simons, Enric Balletbo i Serra, John Reitan, Wookey, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Guillaume Tucker The ARM Mali Midgard GPU kernel driver is only available out-of-tree and is not going to be merged in its current form. However, it would be useful to have its device tree bindings merged. In particular, this would enable distributions to create working driver packages (dkms...) without having to patch the kernel. The bindings for the earlier Mali Utgard GPU family have already been merged, so this is essentially the same scenario but for newer GPUs (Mali-T604 ~ Mali-T880). This series of patches first imports the bindings from the latest driver release with some clean-up then adds a gpu node for the rk3288 SoC. This was successfully tested on Radxa Rock2 Square, Firefly, Veyron Minnie and Jerry boards board using Mali kernel driver r16p0 and r12p0 user-space binary. Changes since v1: - enabled gpu on rk3288-veyron boards Changes since v2: - removed "clk-names" property and "clk_mali" name - converted values of "interrupt-names" property to lower-case: "job", "mmu" and "gpu" - replaced dt compatible strings with list of all Midgard GPU variants and optional vendors - cleaned up gpu node example Enric Balletbo i Serra (1): ARM: dts: rockchip: enable ARM Mali GPU on rk3288-veyron Guillaume Tucker (4): dt-bindings: gpu: add bindings for the ARM Mali Midgard GPU ARM: dts: rockchip: add ARM Mali GPU node for rk3288 ARM: dts: rockchip: enable ARM Mali GPU on rk3288-rock2-som ARM: dts: rockchip: enable ARM Mali GPU on rk3288-firefly .../devicetree/bindings/gpu/arm,mali-midgard.txt | 57 ++++++++++++++++++++++ arch/arm/boot/dts/rk3288-firefly.dtsi | 5 ++ arch/arm/boot/dts/rk3288-rock2-som.dtsi | 5 ++ arch/arm/boot/dts/rk3288-veyron.dtsi | 5 ++ arch/arm/boot/dts/rk3288.dtsi | 22 +++++++++ 5 files changed, 94 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <cover.1492588180.git.guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>]
* [PATCH v3 1/5] dt-bindings: gpu: add bindings for the ARM Mali Midgard GPU [not found] ` <cover.1492588180.git.guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> @ 2017-04-19 8:06 ` Guillaume Tucker [not found] ` <96021d989387d9aaff039efebd66aa3bfe667941.1492588180.git.guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> 2017-04-19 8:06 ` [PATCH v3 5/5] ARM: dts: rockchip: enable ARM Mali GPU on rk3288-veyron Guillaume Tucker 1 sibling, 1 reply; 11+ messages in thread From: Guillaume Tucker @ 2017-04-19 8:06 UTC (permalink / raw) To: Rob Herring, Mark Rutland, Heiko Stübner, Neil Armstrong Cc: Sjoerd Simons, Enric Balletbo i Serra, John Reitan, Wookey, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Guillaume Tucker The ARM Mali Midgard GPU family is present in a number of SoCs from many different vendors such as Samsung Exynos and Rockchip. Import the device tree bindings documentation from the r16p0 release of the Mali Midgard GPU kernel driver: https://developer.arm.com/-/media/Files/downloads/mali-drivers/kernel/mali-midgard-gpu/TX011-SW-99002-r16p0-00rel0.tgz The "compatible" property strings have been redesigned to explicitly list all the Mali Midgard GPU types and include optional vendor ones. The "clock-names" property has been dropped as only one clock is used by the Mali Midgard driver which now needs to call clk_get with NULL. The "interrupt-names" property values have been converted to lower-case: "job", "mmu" and "gpu". The following optional bindings have been omitted in this initial version as they are only used in very specific cases: * snoop_enable_smc * snoop_disable_smc * jm_config * power_model * system-coherency * ipa-model The example has been simplified accordingly. The copyright and GPL licence header has been removed as deemed not necessary. CC: John Reitan <john.reitan-5wv7dgnIgG8@public.gmane.org> Tested-by: Enric Balletbo i Serra <enric.balletbo-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> Signed-off-by: Guillaume Tucker <guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> --- .../devicetree/bindings/gpu/arm,mali-midgard.txt | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt b/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt new file mode 100644 index 000000000000..917c4f8d178f --- /dev/null +++ b/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt @@ -0,0 +1,57 @@ +ARM Mali Midgard GPU +==================== + +Required properties: + +- compatible : + * Must be one of the following: + + "arm,mali-t60x" + + "arm,mali-t62x" + + "arm,mali-t720" + + "arm,mali-t760" + + "arm,mali-t820" + + "arm,mali-t830" + + "arm,mali-t860" + + "arm,mali-t880" + * And, optionally, one of the vendor specific compatible: + + "amlogic,meson-gxm-mali" + +- reg : Physical base address of the device and length of the register area. + +- interrupts : Contains the three IRQ lines required by Mali Midgard devices. + +- interrupt-names : Contains the names of IRQ resources in the order they were + provided in the interrupts property. Must contain: "job", "mmu", "gpu". + + +Optional properties: + +- clocks : Phandle to clock for the Mali Midgard device. + +- mali-supply : Phandle to regulator for the Mali device. Refer to + Documentation/devicetree/bindings/regulator/regulator.txt for details. + +- operating-points : Refer to Documentation/devicetree/bindings/power/opp.txt + for details. + + +Example for a Mali-T602: + +gpu@fc010000 { + compatible = "arm,mali-t60x", "arm,mali-midgard"; + reg = <0xfc010000 0x4000>; + interrupts = <0 36 4>, <0 37 4>, <0 38 4>; + interrupt-names = "job", "mmu", "gpu"; + clocks = <&pclk_mali>; + mali-supply = <&vdd_mali>; + operating-points = < + /* KHz uV */ + 533000 1250000, + 450000 1150000, + 400000 1125000, + 350000 1075000, + 266000 1025000, + 160000 925000, + 100000 912500, + >; +}; -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 11+ messages in thread
[parent not found: <96021d989387d9aaff039efebd66aa3bfe667941.1492588180.git.guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>]
* Re: [PATCH v3 1/5] dt-bindings: gpu: add bindings for the ARM Mali Midgard GPU [not found] ` <96021d989387d9aaff039efebd66aa3bfe667941.1492588180.git.guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> @ 2017-04-19 9:02 ` Heiko Stuebner 2017-04-20 5:58 ` Guillaume Tucker 0 siblings, 1 reply; 11+ messages in thread From: Heiko Stuebner @ 2017-04-19 9:02 UTC (permalink / raw) To: Guillaume Tucker Cc: Mark Rutland, devicetree-u79uwXL29TY76Z2rM5mHXA, Neil Armstrong, Sjoerd Simons, Wookey, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, John Reitan, Rob Herring, Enric Balletbo i Serra, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Am Mittwoch, 19. April 2017, 09:06:17 CEST schrieb Guillaume Tucker: > The ARM Mali Midgard GPU family is present in a number of SoCs > from many different vendors such as Samsung Exynos and Rockchip. > > Import the device tree bindings documentation from the r16p0 > release of the Mali Midgard GPU kernel driver: > > https://developer.arm.com/-/media/Files/downloads/mali-drivers/kernel/mali-midgard-gpu/TX011-SW-99002-r16p0-00rel0.tgz > > The "compatible" property strings have been redesigned to explicitly > list all the Mali Midgard GPU types and include optional vendor ones. > > The "clock-names" property has been dropped as only one clock is used > by the Mali Midgard driver which now needs to call clk_get with NULL. > > The "interrupt-names" property values have been converted to > lower-case: "job", "mmu" and "gpu". > > The following optional bindings have been omitted in this initial > version as they are only used in very specific cases: > > * snoop_enable_smc > * snoop_disable_smc > * jm_config > * power_model > * system-coherency > * ipa-model > > The example has been simplified accordingly. > > The copyright and GPL licence header has been removed as deemed not > necessary. > > CC: John Reitan <john.reitan-5wv7dgnIgG8@public.gmane.org> > Tested-by: Enric Balletbo i Serra <enric.balletbo-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> > Signed-off-by: Guillaume Tucker <guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> > --- > .../devicetree/bindings/gpu/arm,mali-midgard.txt | 57 ++++++++++++++++++++++ > 1 file changed, 57 insertions(+) > create mode 100644 Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt > > diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt b/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt > new file mode 100644 > index 000000000000..917c4f8d178f > --- /dev/null > +++ b/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt > @@ -0,0 +1,57 @@ > +ARM Mali Midgard GPU > +==================== > + > +Required properties: > + > +- compatible : > + * Must be one of the following: > + + "arm,mali-t60x" > + + "arm,mali-t62x" > + + "arm,mali-t720" > + + "arm,mali-t760" > + + "arm,mali-t820" > + + "arm,mali-t830" > + + "arm,mali-t860" > + + "arm,mali-t880" > + * And, optionally, one of the vendor specific compatible: > + + "amlogic,meson-gxm-mali" Please add a "rockchip,rk3288-mali" as well :-) , as I don't trust that the generic compatible will be enough for all time and having that already defined makes fixing the per soc things later a lot easier. Thanks Heiko > + > +- reg : Physical base address of the device and length of the register area. > + > +- interrupts : Contains the three IRQ lines required by Mali Midgard devices. > + > +- interrupt-names : Contains the names of IRQ resources in the order they were > + provided in the interrupts property. Must contain: "job", "mmu", "gpu". > + > + > +Optional properties: > + > +- clocks : Phandle to clock for the Mali Midgard device. > + > +- mali-supply : Phandle to regulator for the Mali device. Refer to > + Documentation/devicetree/bindings/regulator/regulator.txt for details. > + > +- operating-points : Refer to Documentation/devicetree/bindings/power/opp.txt > + for details. > + > + > +Example for a Mali-T602: > + > +gpu@fc010000 { > + compatible = "arm,mali-t60x", "arm,mali-midgard"; > + reg = <0xfc010000 0x4000>; > + interrupts = <0 36 4>, <0 37 4>, <0 38 4>; > + interrupt-names = "job", "mmu", "gpu"; > + clocks = <&pclk_mali>; > + mali-supply = <&vdd_mali>; > + operating-points = < > + /* KHz uV */ > + 533000 1250000, > + 450000 1150000, > + 400000 1125000, > + 350000 1075000, > + 266000 1025000, > + 160000 925000, > + 100000 912500, > + >; > +}; > ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v3 1/5] dt-bindings: gpu: add bindings for the ARM Mali Midgard GPU 2017-04-19 9:02 ` Heiko Stuebner @ 2017-04-20 5:58 ` Guillaume Tucker 0 siblings, 0 replies; 11+ messages in thread From: Guillaume Tucker @ 2017-04-20 5:58 UTC (permalink / raw) To: Heiko Stuebner Cc: Rob Herring, Mark Rutland, Neil Armstrong, Sjoerd Simons, Enric Balletbo i Serra, John Reitan, Wookey, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA Hi Heiko, On 19/04/17 10:02, Heiko Stuebner wrote: > Am Mittwoch, 19. April 2017, 09:06:17 CEST schrieb Guillaume Tucker: >> diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt b/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt >> new file mode 100644 >> index 000000000000..917c4f8d178f >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/gpu/arm,mali-midgard.txt >> @@ -0,0 +1,57 @@ >> +ARM Mali Midgard GPU >> +==================== >> + >> +Required properties: >> + >> +- compatible : >> + * Must be one of the following: >> + + "arm,mali-t60x" >> + + "arm,mali-t62x" >> + + "arm,mali-t720" >> + + "arm,mali-t760" >> + + "arm,mali-t820" >> + + "arm,mali-t830" >> + + "arm,mali-t860" >> + + "arm,mali-t880" >> + * And, optionally, one of the vendor specific compatible: >> + + "amlogic,meson-gxm-mali" > > Please add a "rockchip,rk3288-mali" as well :-) , as I don't trust that the > generic compatible will be enough for all time and having that already > defined makes fixing the per soc things later a lot easier. Sure, will do in patch v4. >> + >> +- reg : Physical base address of the device and length of the register area. >> + >> +- interrupts : Contains the three IRQ lines required by Mali Midgard devices. >> + >> +- interrupt-names : Contains the names of IRQ resources in the order they were >> + provided in the interrupts property. Must contain: "job", "mmu", "gpu". >> + >> + >> +Optional properties: >> + >> +- clocks : Phandle to clock for the Mali Midgard device. >> + >> +- mali-supply : Phandle to regulator for the Mali device. Refer to >> + Documentation/devicetree/bindings/regulator/regulator.txt for details. >> + >> +- operating-points : Refer to Documentation/devicetree/bindings/power/opp.txt >> + for details. So I can simply change that to operating-points-v2. Both versions can be used in practice but it sounds like operating-points can just be ignored in this binding's documentation. Could you please confirm? Thanks, Guillaume -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v3 5/5] ARM: dts: rockchip: enable ARM Mali GPU on rk3288-veyron [not found] ` <cover.1492588180.git.guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> 2017-04-19 8:06 ` [PATCH v3 1/5] dt-bindings: gpu: add bindings for the ARM Mali Midgard GPU Guillaume Tucker @ 2017-04-19 8:06 ` Guillaume Tucker 1 sibling, 0 replies; 11+ messages in thread From: Guillaume Tucker @ 2017-04-19 8:06 UTC (permalink / raw) To: Rob Herring, Mark Rutland, Heiko Stübner, Neil Armstrong Cc: Sjoerd Simons, Enric Balletbo i Serra, John Reitan, Wookey, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA, Guillaume Tucker From: Enric Balletbo i Serra <enric.balletbo-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> Add reference to the Mali GPU device tree node on rk3288-veyron. Tested on Minnie and Jerry boards. Signed-off-by: Enric Balletbo i Serra <enric.balletbo-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> Signed-off-by: Guillaume Tucker <guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> --- arch/arm/boot/dts/rk3288-veyron.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-veyron.dtsi b/arch/arm/boot/dts/rk3288-veyron.dtsi index 5d1eb0a25827..9847d5c6db3b 100644 --- a/arch/arm/boot/dts/rk3288-veyron.dtsi +++ b/arch/arm/boot/dts/rk3288-veyron.dtsi @@ -447,6 +447,11 @@ status = "okay"; }; +&gpu { + mali-supply = <&vdd_gpu>; + status = "okay"; +}; + &wdt { status = "okay"; }; -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v3 2/5] ARM: dts: rockchip: add ARM Mali GPU node for rk3288 2017-04-19 8:06 [PATCH v3 0/5] Add ARM Mali Midgard device tree bindings and gpu node for rk3288 Guillaume Tucker [not found] ` <cover.1492588180.git.guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> @ 2017-04-19 8:06 ` Guillaume Tucker [not found] ` <f6f127efb44fb1012f18c483fa522918f8f82d7c.1492588180.git.guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> 2017-04-19 8:06 ` [PATCH v3 3/5] ARM: dts: rockchip: enable ARM Mali GPU on rk3288-rock2-som Guillaume Tucker 2017-04-19 8:06 ` [PATCH v3 4/5] ARM: dts: rockchip: enable ARM Mali GPU on rk3288-firefly Guillaume Tucker 3 siblings, 1 reply; 11+ messages in thread From: Guillaume Tucker @ 2017-04-19 8:06 UTC (permalink / raw) To: Rob Herring, Mark Rutland, Heiko Stübner, Neil Armstrong Cc: Sjoerd Simons, Enric Balletbo i Serra, John Reitan, Wookey, devicetree, linux-rockchip, linux-arm-kernel, linux-kernel, Guillaume Tucker Add Mali GPU device tree node for the rk3288 SoC, with devfreq opp table. Tested-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com> --- arch/arm/boot/dts/rk3288.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index df8a0dbe9d91..187eed528f83 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -43,6 +43,7 @@ #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/pinctrl/rockchip.h> #include <dt-bindings/clock/rk3288-cru.h> +#include <dt-bindings/power/rk3288-power.h> #include <dt-bindings/thermal/thermal.h> #include <dt-bindings/power/rk3288-power.h> #include <dt-bindings/soc/rockchip,boot-mode.h> @@ -227,6 +228,27 @@ ports = <&vopl_out>, <&vopb_out>; }; + gpu: mali@ffa30000 { + compatible = "arm,mali-t760", "arm,mali-midgard"; + reg = <0xffa30000 0x10000>; + interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "job", "mmu", "gpu"; + clocks = <&cru ACLK_GPU>; + operating-points = < + /* KHz uV */ + 100000 950000 + 200000 950000 + 300000 1000000 + 400000 1100000 + 500000 1200000 + 600000 1250000 + >; + power-domains = <&power RK3288_PD_GPU>; + status = "disabled"; + }; + sdmmc: dwmmc@ff0c0000 { compatible = "rockchip,rk3288-dw-mshc"; max-frequency = <150000000>; -- 2.11.0 ^ permalink raw reply related [flat|nested] 11+ messages in thread
[parent not found: <f6f127efb44fb1012f18c483fa522918f8f82d7c.1492588180.git.guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>]
* Re: [PATCH v3 2/5] ARM: dts: rockchip: add ARM Mali GPU node for rk3288 [not found] ` <f6f127efb44fb1012f18c483fa522918f8f82d7c.1492588180.git.guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> @ 2017-04-19 8:59 ` Heiko Stuebner 2017-04-20 5:44 ` Guillaume Tucker 0 siblings, 1 reply; 11+ messages in thread From: Heiko Stuebner @ 2017-04-19 8:59 UTC (permalink / raw) To: Guillaume Tucker Cc: Rob Herring, Mark Rutland, Neil Armstrong, Sjoerd Simons, Enric Balletbo i Serra, John Reitan, Wookey, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA Am Mittwoch, 19. April 2017, 09:06:18 CEST schrieb Guillaume Tucker: > Add Mali GPU device tree node for the rk3288 SoC, with devfreq > opp table. > > Tested-by: Enric Balletbo i Serra <enric.balletbo-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> > Signed-off-by: Guillaume Tucker <guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> > --- > arch/arm/boot/dts/rk3288.dtsi | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi > index df8a0dbe9d91..187eed528f83 100644 > --- a/arch/arm/boot/dts/rk3288.dtsi > +++ b/arch/arm/boot/dts/rk3288.dtsi > @@ -43,6 +43,7 @@ > #include <dt-bindings/interrupt-controller/arm-gic.h> > #include <dt-bindings/pinctrl/rockchip.h> > #include <dt-bindings/clock/rk3288-cru.h> > +#include <dt-bindings/power/rk3288-power.h> > #include <dt-bindings/thermal/thermal.h> > #include <dt-bindings/power/rk3288-power.h> > #include <dt-bindings/soc/rockchip,boot-mode.h> > @@ -227,6 +228,27 @@ > ports = <&vopl_out>, <&vopb_out>; > }; > > + gpu: mali@ffa30000 { please sort nodes by address. ffa30000 should be placed below hdmi@ff980000 and above qos@ffaa0000 . > + compatible = "arm,mali-t760", "arm,mali-midgard"; As indicated before I don't trust that a generic binding will work for everything, so I would feel safer if we had a "rockchip,rk3288-mali" in front for future purposes, making it a compatible = "rockchip,rk3288-mali", "arm,mali-t760", "arm,mali-midgard"; > + reg = <0xffa30000 0x10000>; > + interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "job", "mmu", "gpu"; > + clocks = <&cru ACLK_GPU>; > + operating-points = < > + /* KHz uV */ > + 100000 950000 > + 200000 950000 > + 300000 1000000 > + 400000 1100000 > + 500000 1200000 > + 600000 1250000 > + >; Wasn't there a wish for opp-v2 in a previous version? Thanks Heiko > + power-domains = <&power RK3288_PD_GPU>; > + status = "disabled"; > + }; > + > sdmmc: dwmmc@ff0c0000 { > compatible = "rockchip,rk3288-dw-mshc"; > max-frequency = <150000000>; > -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v3 2/5] ARM: dts: rockchip: add ARM Mali GPU node for rk3288 2017-04-19 8:59 ` Heiko Stuebner @ 2017-04-20 5:44 ` Guillaume Tucker [not found] ` <319a2a72-ca25-08d7-68dc-7eae74f1a622-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> 0 siblings, 1 reply; 11+ messages in thread From: Guillaume Tucker @ 2017-04-20 5:44 UTC (permalink / raw) To: Heiko Stuebner Cc: Rob Herring, Mark Rutland, Neil Armstrong, Sjoerd Simons, Enric Balletbo i Serra, John Reitan, Wookey, devicetree-u79uwXL29TY76Z2rM5mHXA, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA Hi Heiko, On 19/04/17 09:59, Heiko Stuebner wrote: > Am Mittwoch, 19. April 2017, 09:06:18 CEST schrieb Guillaume Tucker: >> Add Mali GPU device tree node for the rk3288 SoC, with devfreq >> opp table. >> >> Tested-by: Enric Balletbo i Serra <enric.balletbo-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> >> Signed-off-by: Guillaume Tucker <guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> >> --- >> arch/arm/boot/dts/rk3288.dtsi | 22 ++++++++++++++++++++++ >> 1 file changed, 22 insertions(+) >> >> diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi >> index df8a0dbe9d91..187eed528f83 100644 >> --- a/arch/arm/boot/dts/rk3288.dtsi >> +++ b/arch/arm/boot/dts/rk3288.dtsi >> @@ -43,6 +43,7 @@ >> #include <dt-bindings/interrupt-controller/arm-gic.h> >> #include <dt-bindings/pinctrl/rockchip.h> >> #include <dt-bindings/clock/rk3288-cru.h> >> +#include <dt-bindings/power/rk3288-power.h> >> #include <dt-bindings/thermal/thermal.h> >> #include <dt-bindings/power/rk3288-power.h> >> #include <dt-bindings/soc/rockchip,boot-mode.h> >> @@ -227,6 +228,27 @@ >> ports = <&vopl_out>, <&vopb_out>; >> }; >> >> + gpu: mali@ffa30000 { > > please sort nodes by address. ffa30000 should be placed below hdmi@ff980000 > and above qos@ffaa0000 . Sure, will fix that in v4. >> + compatible = "arm,mali-t760", "arm,mali-midgard"; > > As indicated before I don't trust that a generic binding will work for > everything, so I would feel safer if we had a "rockchip,rk3288-mali" in > front for future purposes, making it a > > compatible = "rockchip,rk3288-mali", "arm,mali-t760", "arm,mali-midgard"; OK, sorry I overlooked this part. I'll add it in v4 with a vendor compatible string in the binding documentation. >> + reg = <0xffa30000 0x10000>; >> + interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>, >> + <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>, >> + <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; >> + interrupt-names = "job", "mmu", "gpu"; >> + clocks = <&cru ACLK_GPU>; >> + operating-points = < >> + /* KHz uV */ >> + 100000 950000 >> + 200000 950000 >> + 300000 1000000 >> + 400000 1100000 >> + 500000 1200000 >> + 600000 1250000 >> + >; > > Wasn't there a wish for opp-v2 in a previous version? Well it wasn't entirely clear to me in Rob's email whether it was necessary to use opp-v2 now or rather if it would be a potential option whenever opp-v2 was needed. If operating-points (v1) are being deprecated then I can change that in my next patch v4. Using operating-points-v2 with the Mali driver works as far as I can tell on rk3288 so that's not an issue. Thanks, Guillaume -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 11+ messages in thread
[parent not found: <319a2a72-ca25-08d7-68dc-7eae74f1a622-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>]
* Re: [PATCH v3 2/5] ARM: dts: rockchip: add ARM Mali GPU node for rk3288 [not found] ` <319a2a72-ca25-08d7-68dc-7eae74f1a622-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> @ 2017-04-20 6:43 ` Heiko Stuebner 0 siblings, 0 replies; 11+ messages in thread From: Heiko Stuebner @ 2017-04-20 6:43 UTC (permalink / raw) To: Guillaume Tucker Cc: Mark Rutland, devicetree-u79uwXL29TY76Z2rM5mHXA, Neil Armstrong, Sjoerd Simons, Wookey, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, John Reitan, Rob Herring, Enric Balletbo i Serra, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Hi Guillaume, Am Donnerstag, 20. April 2017, 06:44:56 CEST schrieb Guillaume Tucker: > On 19/04/17 09:59, Heiko Stuebner wrote: > > Am Mittwoch, 19. April 2017, 09:06:18 CEST schrieb Guillaume Tucker: > >> Add Mali GPU device tree node for the rk3288 SoC, with devfreq > >> opp table. > >> > >> Tested-by: Enric Balletbo i Serra <enric.balletbo-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> > >> Signed-off-by: Guillaume Tucker <guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> > >> --- > >> arch/arm/boot/dts/rk3288.dtsi | 22 ++++++++++++++++++++++ > >> 1 file changed, 22 insertions(+) > >> > >> diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi > >> index df8a0dbe9d91..187eed528f83 100644 > >> --- a/arch/arm/boot/dts/rk3288.dtsi > >> +++ b/arch/arm/boot/dts/rk3288.dtsi > >> @@ -43,6 +43,7 @@ > >> #include <dt-bindings/interrupt-controller/arm-gic.h> > >> #include <dt-bindings/pinctrl/rockchip.h> > >> #include <dt-bindings/clock/rk3288-cru.h> > >> +#include <dt-bindings/power/rk3288-power.h> > >> #include <dt-bindings/thermal/thermal.h> > >> #include <dt-bindings/power/rk3288-power.h> > >> #include <dt-bindings/soc/rockchip,boot-mode.h> > >> @@ -227,6 +228,27 @@ > >> ports = <&vopl_out>, <&vopb_out>; > >> }; > >> > >> + gpu: mali@ffa30000 { > > > > please sort nodes by address. ffa30000 should be placed below hdmi@ff980000 > > and above qos@ffaa0000 . > > Sure, will fix that in v4. > > >> + compatible = "arm,mali-t760", "arm,mali-midgard"; > > > > As indicated before I don't trust that a generic binding will work for > > everything, so I would feel safer if we had a "rockchip,rk3288-mali" in > > front for future purposes, making it a > > > > compatible = "rockchip,rk3288-mali", "arm,mali-t760", "arm,mali-midgard"; > > OK, sorry I overlooked this part. I'll add it in v4 with a > vendor compatible string in the binding documentation. great, thanks :-) > > >> + reg = <0xffa30000 0x10000>; > >> + interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>, > >> + <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>, > >> + <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; > >> + interrupt-names = "job", "mmu", "gpu"; > >> + clocks = <&cru ACLK_GPU>; > >> + operating-points = < > >> + /* KHz uV */ > >> + 100000 950000 > >> + 200000 950000 > >> + 300000 1000000 > >> + 400000 1100000 > >> + 500000 1200000 > >> + 600000 1250000 > >> + >; > > > > Wasn't there a wish for opp-v2 in a previous version? > > Well it wasn't entirely clear to me in Rob's email whether it was > necessary to use opp-v2 now or rather if it would be a potential > option whenever opp-v2 was needed. If operating-points (v1) are > being deprecated then I can change that in my next patch v4. > Using operating-points-v2 with the Mali driver works as far as I > can tell on rk3288 so that's not an issue. I don't care to much either way, just remembered it being mentioned in the previous version. So lets see what Rob says. Heiko ^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v3 3/5] ARM: dts: rockchip: enable ARM Mali GPU on rk3288-rock2-som 2017-04-19 8:06 [PATCH v3 0/5] Add ARM Mali Midgard device tree bindings and gpu node for rk3288 Guillaume Tucker [not found] ` <cover.1492588180.git.guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> 2017-04-19 8:06 ` [PATCH v3 2/5] ARM: dts: rockchip: add ARM Mali GPU node for rk3288 Guillaume Tucker @ 2017-04-19 8:06 ` Guillaume Tucker 2017-04-19 8:06 ` [PATCH v3 4/5] ARM: dts: rockchip: enable ARM Mali GPU on rk3288-firefly Guillaume Tucker 3 siblings, 0 replies; 11+ messages in thread From: Guillaume Tucker @ 2017-04-19 8:06 UTC (permalink / raw) To: Rob Herring, Mark Rutland, Heiko Stübner, Neil Armstrong Cc: devicetree, Guillaume Tucker, Sjoerd Simons, Wookey, linux-kernel, linux-rockchip, John Reitan, Enric Balletbo i Serra, linux-arm-kernel Add reference to the Mali GPU device tree node on the rk3288-rock2-som platform. Tested on a Radxa Rock2 Square board. Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com> --- arch/arm/boot/dts/rk3288-rock2-som.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-rock2-som.dtsi b/arch/arm/boot/dts/rk3288-rock2-som.dtsi index 1c0bbc9b928b..f694867fa46a 100644 --- a/arch/arm/boot/dts/rk3288-rock2-som.dtsi +++ b/arch/arm/boot/dts/rk3288-rock2-som.dtsi @@ -301,3 +301,8 @@ &wdt { status = "okay"; }; + +&gpu { + mali-supply = <&vdd_gpu>; + status = "okay"; +}; -- 2.11.0 ^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v3 4/5] ARM: dts: rockchip: enable ARM Mali GPU on rk3288-firefly 2017-04-19 8:06 [PATCH v3 0/5] Add ARM Mali Midgard device tree bindings and gpu node for rk3288 Guillaume Tucker ` (2 preceding siblings ...) 2017-04-19 8:06 ` [PATCH v3 3/5] ARM: dts: rockchip: enable ARM Mali GPU on rk3288-rock2-som Guillaume Tucker @ 2017-04-19 8:06 ` Guillaume Tucker 3 siblings, 0 replies; 11+ messages in thread From: Guillaume Tucker @ 2017-04-19 8:06 UTC (permalink / raw) To: Rob Herring, Mark Rutland, Heiko Stübner, Neil Armstrong Cc: devicetree, Guillaume Tucker, Sjoerd Simons, Wookey, linux-kernel, linux-rockchip, John Reitan, Enric Balletbo i Serra, linux-arm-kernel Add reference to the Mali GPU device tree node on rk3288-firefly. Tested on Firefly board. Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com> --- arch/arm/boot/dts/rk3288-firefly.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-firefly.dtsi b/arch/arm/boot/dts/rk3288-firefly.dtsi index 10793ac18599..f520589493b4 100644 --- a/arch/arm/boot/dts/rk3288-firefly.dtsi +++ b/arch/arm/boot/dts/rk3288-firefly.dtsi @@ -594,3 +594,8 @@ &wdt { status = "okay"; }; + +&gpu { + mali-supply = <&vdd_gpu>; + status = "okay"; +}; -- 2.11.0 ^ permalink raw reply related [flat|nested] 11+ messages in thread
end of thread, other threads:[~2017-04-20 6:43 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-04-19 8:06 [PATCH v3 0/5] Add ARM Mali Midgard device tree bindings and gpu node for rk3288 Guillaume Tucker [not found] ` <cover.1492588180.git.guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> 2017-04-19 8:06 ` [PATCH v3 1/5] dt-bindings: gpu: add bindings for the ARM Mali Midgard GPU Guillaume Tucker [not found] ` <96021d989387d9aaff039efebd66aa3bfe667941.1492588180.git.guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> 2017-04-19 9:02 ` Heiko Stuebner 2017-04-20 5:58 ` Guillaume Tucker 2017-04-19 8:06 ` [PATCH v3 5/5] ARM: dts: rockchip: enable ARM Mali GPU on rk3288-veyron Guillaume Tucker 2017-04-19 8:06 ` [PATCH v3 2/5] ARM: dts: rockchip: add ARM Mali GPU node for rk3288 Guillaume Tucker [not found] ` <f6f127efb44fb1012f18c483fa522918f8f82d7c.1492588180.git.guillaume.tucker-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> 2017-04-19 8:59 ` Heiko Stuebner 2017-04-20 5:44 ` Guillaume Tucker [not found] ` <319a2a72-ca25-08d7-68dc-7eae74f1a622-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org> 2017-04-20 6:43 ` Heiko Stuebner 2017-04-19 8:06 ` [PATCH v3 3/5] ARM: dts: rockchip: enable ARM Mali GPU on rk3288-rock2-som Guillaume Tucker 2017-04-19 8:06 ` [PATCH v3 4/5] ARM: dts: rockchip: enable ARM Mali GPU on rk3288-firefly Guillaume Tucker
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).