ARM: dts: exynos: Convert MFC device to generic reserved memory bindings
This patch replaces custom properties for defining reserved memory regions with generic reserved memory bindings for MFC video codec device. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Reviewed-by: Javier Martinez Canillas <javier@osg.samsung.com> Tested-by: Javier Martinez Canillas <javier@osg.samsung.com> [k.kozlowski: Add Samsung copyrights] Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
This commit is contained in:

committed by
Krzysztof Kozlowski

parent
b9bacc1e50
commit
8b9ac7e339
29
arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi
Normal file
29
arch/arm/boot/dts/exynos-mfc-reserved-memory.dtsi
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
/*
|
||||||
|
* Samsung's Exynos SoC MFC (Video Codec) reserved memory common definition.
|
||||||
|
*
|
||||||
|
* Copyright (c) 2016 Samsung Electronics Co., Ltd
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2 as
|
||||||
|
* published by the Free Software Foundation.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/ {
|
||||||
|
reserved-memory {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
ranges;
|
||||||
|
|
||||||
|
mfc_left: region@51000000 {
|
||||||
|
compatible = "shared-dma-pool";
|
||||||
|
no-map;
|
||||||
|
reg = <0x51000000 0x800000>;
|
||||||
|
};
|
||||||
|
|
||||||
|
mfc_right: region@43000000 {
|
||||||
|
compatible = "shared-dma-pool";
|
||||||
|
no-map;
|
||||||
|
reg = <0x43000000 0x800000>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
@@ -18,6 +18,7 @@
|
|||||||
#include "exynos4210.dtsi"
|
#include "exynos4210.dtsi"
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
|
#include "exynos-mfc-reserved-memory.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Insignal Origen evaluation board based on Exynos4210";
|
model = "Insignal Origen evaluation board based on Exynos4210";
|
||||||
@@ -288,8 +289,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&mfc {
|
&mfc {
|
||||||
samsung,mfc-r = <0x43000000 0x800000>;
|
memory-region = <&mfc_left>, <&mfc_right>;
|
||||||
samsung,mfc-l = <0x51000000 0x800000>;
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -17,6 +17,7 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
#include "exynos4210.dtsi"
|
#include "exynos4210.dtsi"
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
#include "exynos-mfc-reserved-memory.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Samsung smdkv310 evaluation board based on Exynos4210";
|
model = "Samsung smdkv310 evaluation board based on Exynos4210";
|
||||||
@@ -133,8 +134,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&mfc {
|
&mfc {
|
||||||
samsung,mfc-r = <0x43000000 0x800000>;
|
memory-region = <&mfc_left>, <&mfc_right>;
|
||||||
samsung,mfc-l = <0x51000000 0x800000>;
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -16,6 +16,7 @@
|
|||||||
#include "exynos4412.dtsi"
|
#include "exynos4412.dtsi"
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
|
#include "exynos-mfc-reserved-memory.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Insignal Origen evaluation board based on Exynos4412";
|
model = "Insignal Origen evaluation board based on Exynos4412";
|
||||||
@@ -466,8 +467,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&mfc {
|
&mfc {
|
||||||
samsung,mfc-r = <0x43000000 0x800000>;
|
memory-region = <&mfc_left>, <&mfc_right>;
|
||||||
samsung,mfc-l = <0x51000000 0x800000>;
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
#include "exynos4412.dtsi"
|
#include "exynos4412.dtsi"
|
||||||
|
#include "exynos-mfc-reserved-memory.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Samsung SMDK evaluation board based on Exynos4412";
|
model = "Samsung SMDK evaluation board based on Exynos4412";
|
||||||
@@ -112,8 +113,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&mfc {
|
&mfc {
|
||||||
samsung,mfc-r = <0x43000000 0x800000>;
|
memory-region = <&mfc_left>, <&mfc_right>;
|
||||||
samsung,mfc-l = <0x51000000 0x800000>;
|
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
#include <dt-bindings/interrupt-controller/irq.h>
|
#include <dt-bindings/interrupt-controller/irq.h>
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
#include "exynos5250.dtsi"
|
#include "exynos5250.dtsi"
|
||||||
|
#include "exynos-mfc-reserved-memory.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Insignal Arndale evaluation board based on EXYNOS5250";
|
model = "Insignal Arndale evaluation board based on EXYNOS5250";
|
||||||
@@ -516,8 +517,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&mfc {
|
&mfc {
|
||||||
samsung,mfc-r = <0x43000000 0x800000>;
|
memory-region = <&mfc_left>, <&mfc_right>;
|
||||||
samsung,mfc-l = <0x51000000 0x800000>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc_0 {
|
&mmc_0 {
|
||||||
|
@@ -13,6 +13,7 @@
|
|||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
#include <dt-bindings/interrupt-controller/irq.h>
|
#include <dt-bindings/interrupt-controller/irq.h>
|
||||||
#include "exynos5250.dtsi"
|
#include "exynos5250.dtsi"
|
||||||
|
#include "exynos-mfc-reserved-memory.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "SAMSUNG SMDK5250 board based on EXYNOS5250";
|
model = "SAMSUNG SMDK5250 board based on EXYNOS5250";
|
||||||
@@ -344,8 +345,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&mfc {
|
&mfc {
|
||||||
samsung,mfc-r = <0x43000000 0x800000>;
|
memory-region = <&mfc_left>, <&mfc_right>;
|
||||||
samsung,mfc-l = <0x51000000 0x800000>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc_0 {
|
&mmc_0 {
|
||||||
|
@@ -14,6 +14,7 @@
|
|||||||
#include <dt-bindings/interrupt-controller/irq.h>
|
#include <dt-bindings/interrupt-controller/irq.h>
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
#include "exynos5250.dtsi"
|
#include "exynos5250.dtsi"
|
||||||
|
#include "exynos-mfc-reserved-memory.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Google Spring";
|
model = "Google Spring";
|
||||||
@@ -425,8 +426,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&mfc {
|
&mfc {
|
||||||
samsung,mfc-r = <0x43000000 0x800000>;
|
memory-region = <&mfc_left>, <&mfc_right>;
|
||||||
samsung,mfc-l = <0x51000000 0x800000>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc_0 {
|
&mmc_0 {
|
||||||
|
@@ -16,6 +16,7 @@
|
|||||||
#include <dt-bindings/interrupt-controller/irq.h>
|
#include <dt-bindings/interrupt-controller/irq.h>
|
||||||
#include <dt-bindings/input/input.h>
|
#include <dt-bindings/input/input.h>
|
||||||
#include <dt-bindings/clock/samsung,s2mps11.h>
|
#include <dt-bindings/clock/samsung,s2mps11.h>
|
||||||
|
#include "exynos-mfc-reserved-memory.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Insignal Arndale Octa evaluation board based on EXYNOS5420";
|
model = "Insignal Arndale Octa evaluation board based on EXYNOS5420";
|
||||||
@@ -347,8 +348,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&mfc {
|
&mfc {
|
||||||
samsung,mfc-r = <0x43000000 0x800000>;
|
memory-region = <&mfc_left>, <&mfc_right>;
|
||||||
samsung,mfc-l = <0x51000000 0x800000>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc_0 {
|
&mmc_0 {
|
||||||
|
@@ -16,6 +16,7 @@
|
|||||||
#include <dt-bindings/regulator/maxim,max77802.h>
|
#include <dt-bindings/regulator/maxim,max77802.h>
|
||||||
#include "exynos5420.dtsi"
|
#include "exynos5420.dtsi"
|
||||||
#include "exynos5420-cpus.dtsi"
|
#include "exynos5420-cpus.dtsi"
|
||||||
|
#include "exynos-mfc-reserved-memory.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Google Peach Pit Rev 6+";
|
model = "Google Peach Pit Rev 6+";
|
||||||
@@ -695,8 +696,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&mfc {
|
&mfc {
|
||||||
samsung,mfc-r = <0x43000000 0x800000>;
|
memory-region = <&mfc_left>, <&mfc_right>;
|
||||||
samsung,mfc-l = <0x51000000 0x800000>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc_0 {
|
&mmc_0 {
|
||||||
|
@@ -13,6 +13,7 @@
|
|||||||
#include "exynos5420.dtsi"
|
#include "exynos5420.dtsi"
|
||||||
#include "exynos5420-cpus.dtsi"
|
#include "exynos5420-cpus.dtsi"
|
||||||
#include <dt-bindings/gpio/gpio.h>
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
#include "exynos-mfc-reserved-memory.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Samsung SMDK5420 board based on EXYNOS5420";
|
model = "Samsung SMDK5420 board based on EXYNOS5420";
|
||||||
@@ -355,8 +356,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&mfc {
|
&mfc {
|
||||||
samsung,mfc-r = <0x43000000 0x800000>;
|
memory-region = <&mfc_left>, <&mfc_right>;
|
||||||
samsung,mfc-l = <0x51000000 0x800000>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc_0 {
|
&mmc_0 {
|
||||||
|
@@ -17,6 +17,7 @@
|
|||||||
#include "exynos5800.dtsi"
|
#include "exynos5800.dtsi"
|
||||||
#include "exynos5422-cpus.dtsi"
|
#include "exynos5422-cpus.dtsi"
|
||||||
#include "exynos5422-cpu-thermal.dtsi"
|
#include "exynos5422-cpu-thermal.dtsi"
|
||||||
|
#include "exynos-mfc-reserved-memory.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
memory {
|
memory {
|
||||||
@@ -406,8 +407,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&mfc {
|
&mfc {
|
||||||
samsung,mfc-r = <0x43000000 0x800000>;
|
memory-region = <&mfc_left>, <&mfc_right>;
|
||||||
samsung,mfc-l = <0x51000000 0x800000>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc_0 {
|
&mmc_0 {
|
||||||
|
@@ -16,6 +16,7 @@
|
|||||||
#include <dt-bindings/regulator/maxim,max77802.h>
|
#include <dt-bindings/regulator/maxim,max77802.h>
|
||||||
#include "exynos5800.dtsi"
|
#include "exynos5800.dtsi"
|
||||||
#include "exynos5420-cpus.dtsi"
|
#include "exynos5420-cpus.dtsi"
|
||||||
|
#include "exynos-mfc-reserved-memory.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Google Peach Pi Rev 10+";
|
model = "Google Peach Pi Rev 10+";
|
||||||
@@ -670,8 +671,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&mfc {
|
&mfc {
|
||||||
samsung,mfc-r = <0x43000000 0x800000>;
|
memory-region = <&mfc_left>, <&mfc_right>;
|
||||||
samsung,mfc-l = <0x51000000 0x800000>;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc_0 {
|
&mmc_0 {
|
||||||
|
Reference in New Issue
Block a user