Re: [PATCH v10 1/2] [media] exynos5-is: Adds DT binding documentation

2014-02-06 Thread Mark Rutland
On Mon, Feb 03, 2014 at 10:13:55AM +, Arun Kumar K wrote:
 Hi Mark,

Hi Arun,

 
 This patch and hence a full series of 13 patches is waiting for a long time 
 now
 due to your missing ack on this DT binding patch.
 I have addressed your review comments given on earlier version -
 http://www.spinics.net/lists/devicetree/msg11550.html
 
 Please check this and give an ack if it is fine to be merged.

Apologies for the delay.

As far as I can tell this looks ok:

Acked-by: Mark Rutland mark.rutl...@arm.com

 
 Regards
 Arun
 
 On Fri, Dec 13, 2013 at 10:42 AM, Arun Kumar K arun...@samsung.com wrote:
  From: Shaik Ameer Basha shaik.am...@samsung.com
 
  The patch adds the DT binding doc for exynos5 SoC camera
  subsystem.
 
  Signed-off-by: Shaik Ameer Basha shaik.am...@samsung.com
  Signed-off-by: Arun Kumar K arun...@samsung.com
  ---
   .../bindings/media/exynos5250-camera.txt   |  136 
  
   1 file changed, 136 insertions(+)
   create mode 100644 
  Documentation/devicetree/bindings/media/exynos5250-camera.txt
 
  diff --git a/Documentation/devicetree/bindings/media/exynos5250-camera.txt 
  b/Documentation/devicetree/bindings/media/exynos5250-camera.txt
  new file mode 100644
  index 000..0c36bc4
  --- /dev/null
  +++ b/Documentation/devicetree/bindings/media/exynos5250-camera.txt
  @@ -0,0 +1,136 @@
  +Samsung EXYNOS5 SoC Camera Subsystem
  +
  +
  +The Exynos5 SoC Camera subsystem comprises of multiple sub-devices
  +represented by separate device tree nodes. Currently this includes: 
  FIMC-LITE,
  +MIPI CSIS and FIMC-IS.
  +
  +The sub-device nodes are referenced using phandles in the common 'camera' 
  node
  +which also includes common properties of the whole subsystem not really
  +specific to any single sub-device, like common camera port pins or the 
  common
  +camera bus clocks.
  +
  +Common 'camera' node
  +
  +
  +Required properties:
  +
  +- compatible   : must be samsung,exynos5250-fimc
  +- clocks   : list of phandles and clock specifiers, 
  corresponding
  + to entries in the clock-names property
  +- clock-names  : must contain sclk_bayer entry
  +- samsung,csis : list of phandles to the mipi-csis device nodes
  +- samsung,fimc-lite: list of phandles to the fimc-lite device nodes
  +- samsung,fimc-is  : phandle to the fimc-is device node
  +
  +The pinctrl bindings defined in ../pinctrl/pinctrl-bindings.txt must be 
  used
  +to define a required pinctrl state named default.
  +
  +'parallel-ports' node
  +-
  +
  +This node should contain child 'port' nodes specifying active parallel 
  video
  +input ports. It includes camera A, camera B and RGB bay inputs.
  +'reg' property in the port nodes specifies the input type:
  + 1 - parallel camport A
  + 2 - parallel camport B
  + 5 - RGB camera bay
  +
  +3, 4 are for MIPI CSI-2 bus and are already described in 
  samsung-mipi-csis.txt
  +
  +Required properties:
  +
  +For describing the input type in the child nodes, the following properties
  +have to be present in the parallel-ports node:
  +- #address-cells: Must be 1
  +- #size-cells: Must be 0
  +
  +Image sensor nodes
  +--
  +
  +The sensor device nodes should be added to their control bus controller 
  (e.g.
  +I2C0) nodes and linked to a port node in the csis or the parallel-ports 
  node,
  +using the common video interfaces bindings, defined in 
  video-interfaces.txt.
  +
  +Example:
  +
  +   aliases {
  +   fimc-lite0 = fimc_lite_0
  +   };
  +
  +   /* Parallel bus IF sensor */
  +   i2c_0: i2c@1386 {
  +   s5k6aa: sensor@3c {
  +   compatible = samsung,s5k6aafx;
  +   reg = 0x3c;
  +   vddio-supply = ...;
  +
  +   clock-frequency = 2400;
  +   clocks = ...;
  +   clock-names = mclk;
  +
  +   port {
  +   s5k6aa_ep: endpoint {
  +   remote-endpoint = fimc0_ep;
  +   bus-width = 8;
  +   hsync-active = 0;
  +   vsync-active = 1;
  +   pclk-sample = 1;
  +   };
  +   };
  +   };
  +   };
  +
  +   /* MIPI CSI-2 bus IF sensor */
  +   s5c73m3: sensor@1a {
  +   compatible = samsung,s5c73m3;
  +   reg = 0x1a;
  +   vddio-supply = ...;
  +
  +   clock-frequency = 2400;
  +   clocks = ...;
  +   clock-names = mclk;
  +
  +   port {
  +   s5c73m3_1: endpoint {
  +   data-lanes = 1 2 3 4;
  + 

Re: [PATCH v10 1/2] [media] exynos5-is: Adds DT binding documentation

2014-02-03 Thread Arun Kumar K
Hi Mark,

This patch and hence a full series of 13 patches is waiting for a long time now
due to your missing ack on this DT binding patch.
I have addressed your review comments given on earlier version -
http://www.spinics.net/lists/devicetree/msg11550.html

Please check this and give an ack if it is fine to be merged.

Regards
Arun

On Fri, Dec 13, 2013 at 10:42 AM, Arun Kumar K arun...@samsung.com wrote:
 From: Shaik Ameer Basha shaik.am...@samsung.com

 The patch adds the DT binding doc for exynos5 SoC camera
 subsystem.

 Signed-off-by: Shaik Ameer Basha shaik.am...@samsung.com
 Signed-off-by: Arun Kumar K arun...@samsung.com
 ---
  .../bindings/media/exynos5250-camera.txt   |  136 
 
  1 file changed, 136 insertions(+)
  create mode 100644 
 Documentation/devicetree/bindings/media/exynos5250-camera.txt

 diff --git a/Documentation/devicetree/bindings/media/exynos5250-camera.txt 
 b/Documentation/devicetree/bindings/media/exynos5250-camera.txt
 new file mode 100644
 index 000..0c36bc4
 --- /dev/null
 +++ b/Documentation/devicetree/bindings/media/exynos5250-camera.txt
 @@ -0,0 +1,136 @@
 +Samsung EXYNOS5 SoC Camera Subsystem
 +
 +
 +The Exynos5 SoC Camera subsystem comprises of multiple sub-devices
 +represented by separate device tree nodes. Currently this includes: 
 FIMC-LITE,
 +MIPI CSIS and FIMC-IS.
 +
 +The sub-device nodes are referenced using phandles in the common 'camera' 
 node
 +which also includes common properties of the whole subsystem not really
 +specific to any single sub-device, like common camera port pins or the common
 +camera bus clocks.
 +
 +Common 'camera' node
 +
 +
 +Required properties:
 +
 +- compatible   : must be samsung,exynos5250-fimc
 +- clocks   : list of phandles and clock specifiers, corresponding
 + to entries in the clock-names property
 +- clock-names  : must contain sclk_bayer entry
 +- samsung,csis : list of phandles to the mipi-csis device nodes
 +- samsung,fimc-lite: list of phandles to the fimc-lite device nodes
 +- samsung,fimc-is  : phandle to the fimc-is device node
 +
 +The pinctrl bindings defined in ../pinctrl/pinctrl-bindings.txt must be used
 +to define a required pinctrl state named default.
 +
 +'parallel-ports' node
 +-
 +
 +This node should contain child 'port' nodes specifying active parallel video
 +input ports. It includes camera A, camera B and RGB bay inputs.
 +'reg' property in the port nodes specifies the input type:
 + 1 - parallel camport A
 + 2 - parallel camport B
 + 5 - RGB camera bay
 +
 +3, 4 are for MIPI CSI-2 bus and are already described in 
 samsung-mipi-csis.txt
 +
 +Required properties:
 +
 +For describing the input type in the child nodes, the following properties
 +have to be present in the parallel-ports node:
 +- #address-cells: Must be 1
 +- #size-cells: Must be 0
 +
 +Image sensor nodes
 +--
 +
 +The sensor device nodes should be added to their control bus controller (e.g.
 +I2C0) nodes and linked to a port node in the csis or the parallel-ports node,
 +using the common video interfaces bindings, defined in video-interfaces.txt.
 +
 +Example:
 +
 +   aliases {
 +   fimc-lite0 = fimc_lite_0
 +   };
 +
 +   /* Parallel bus IF sensor */
 +   i2c_0: i2c@1386 {
 +   s5k6aa: sensor@3c {
 +   compatible = samsung,s5k6aafx;
 +   reg = 0x3c;
 +   vddio-supply = ...;
 +
 +   clock-frequency = 2400;
 +   clocks = ...;
 +   clock-names = mclk;
 +
 +   port {
 +   s5k6aa_ep: endpoint {
 +   remote-endpoint = fimc0_ep;
 +   bus-width = 8;
 +   hsync-active = 0;
 +   vsync-active = 1;
 +   pclk-sample = 1;
 +   };
 +   };
 +   };
 +   };
 +
 +   /* MIPI CSI-2 bus IF sensor */
 +   s5c73m3: sensor@1a {
 +   compatible = samsung,s5c73m3;
 +   reg = 0x1a;
 +   vddio-supply = ...;
 +
 +   clock-frequency = 2400;
 +   clocks = ...;
 +   clock-names = mclk;
 +
 +   port {
 +   s5c73m3_1: endpoint {
 +   data-lanes = 1 2 3 4;
 +   remote-endpoint = csis0_ep;
 +   };
 +   };
 +   };
 +
 +   camera {
 +   compatible = samsung,exynos5250-fimc;
 +   #address-cells = 1;
 +   #size-cells = 1;
 +   status = okay;
 +
 +   pinctrl-names = 

Re: [PATCH v10 1/2] [media] exynos5-is: Adds DT binding documentation

2013-12-15 Thread Sylwester Nawrocki

On 12/13/2013 06:12 AM, Arun Kumar K wrote:

From: Shaik Ameer Bashashaik.am...@samsung.com

The patch adds the DT binding doc for exynos5 SoC camera
subsystem.

Signed-off-by: Shaik Ameer Bashashaik.am...@samsung.com
Signed-off-by: Arun Kumar Karun...@samsung.com
---
  .../bindings/media/exynos5250-camera.txt   |  136 
  1 file changed, 136 insertions(+)
  create mode 100644 
Documentation/devicetree/bindings/media/exynos5250-camera.txt

diff --git a/Documentation/devicetree/bindings/media/exynos5250-camera.txt 
b/Documentation/devicetree/bindings/media/exynos5250-camera.txt
new file mode 100644
index 000..0c36bc4
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/exynos5250-camera.txt
@@ -0,0 +1,136 @@
+Samsung EXYNOS5 SoC Camera Subsystem
+
+
+The Exynos5 SoC Camera subsystem comprises of multiple sub-devices
+represented by separate device tree nodes. Currently this includes: FIMC-LITE,
+MIPI CSIS and FIMC-IS.
+
+The sub-device nodes are referenced using phandles in the common 'camera' node
+which also includes common properties of the whole subsystem not really
+specific to any single sub-device, like common camera port pins or the common
+camera bus clocks.
+
+Common 'camera' node
+
+
+Required properties:
+
+- compatible   : must be samsung,exynos5250-fimc
+- clocks   : list of phandles and clock specifiers, corresponding
+ to entries in the clock-names property
+- clock-names  : must contain sclk_bayer entry
+- samsung,csis : list of phandles to the mipi-csis device nodes
+- samsung,fimc-lite: list of phandles to the fimc-lite device nodes
+- samsung,fimc-is  : phandle to the fimc-is device node
+
+The pinctrl bindings defined in ../pinctrl/pinctrl-bindings.txt must be used
+to define a required pinctrl state named default.
+
+'parallel-ports' node
+-
+
+This node should contain child 'port' nodes specifying active parallel video
+input ports. It includes camera A, camera B and RGB bay inputs.
+'reg' property in the port nodes specifies the input type:
+ 1 - parallel camport A
+ 2 - parallel camport B
+ 5 - RGB camera bay
+
+3, 4 are for MIPI CSI-2 bus and are already described in samsung-mipi-csis.txt
+
+Required properties:
+
+For describing the input type in the child nodes, the following properties
+have to be present in the parallel-ports node:
+- #address-cells: Must be 1
+- #size-cells: Must be 0
+
+Image sensor nodes
+--
+
+The sensor device nodes should be added to their control bus controller (e.g.
+I2C0) nodes and linked to a port node in the csis or the parallel-ports node,
+using the common video interfaces bindings, defined in video-interfaces.txt.


Hi Mark,

Could you have a look again at this binding ? Perhaps we could
get your Ack now so it can be merged through the media tree ?

Thanks,
Sylwester


+Example:
+
+   aliases {
+   fimc-lite0 =fimc_lite_0
+   };
+
+   /* Parallel bus IF sensor */
+   i2c_0: i2c@1386 {
+   s5k6aa: sensor@3c {
+   compatible = samsung,s5k6aafx;
+   reg =0x3c;
+   vddio-supply =...;
+
+   clock-frequency =2400;
+   clocks =...;
+   clock-names = mclk;
+
+   port {
+   s5k6aa_ep: endpoint {
+   remote-endpoint =fimc0_ep;
+   bus-width =8;
+   hsync-active =0;
+   vsync-active =1;
+   pclk-sample =1;
+   };
+   };
+   };
+   };
+
+   /* MIPI CSI-2 bus IF sensor */
+   s5c73m3: sensor@1a {
+   compatible = samsung,s5c73m3;
+   reg =0x1a;
+   vddio-supply =...;
+
+   clock-frequency =2400;
+   clocks =...;
+   clock-names = mclk;
+
+   port {
+   s5c73m3_1: endpoint {
+   data-lanes =1 2 3 4;
+   remote-endpoint =csis0_ep;
+   };
+   };
+   };
+
+   camera {
+   compatible = samsung,exynos5250-fimc;
+   #address-cells =1;
+   #size-cells =1;
+   status = okay;
+
+   pinctrl-names = default;
+   pinctrl-0 =cam_port_a_clk_active;
+
+   samsung,csis =csis_0,csis_1;
+   samsung,fimc-lite =fimc_lite_0,fimc_lite_1,fimc_lite_2;
+   samsung,fimc-is =fimc_is;
+
+   /* parallel camera ports */
+   parallel-ports {
+   #address-cells =1;
+   

[PATCH v10 1/2] [media] exynos5-is: Adds DT binding documentation

2013-12-12 Thread Arun Kumar K
From: Shaik Ameer Basha shaik.am...@samsung.com

The patch adds the DT binding doc for exynos5 SoC camera
subsystem.

Signed-off-by: Shaik Ameer Basha shaik.am...@samsung.com
Signed-off-by: Arun Kumar K arun...@samsung.com
---
 .../bindings/media/exynos5250-camera.txt   |  136 
 1 file changed, 136 insertions(+)
 create mode 100644 
Documentation/devicetree/bindings/media/exynos5250-camera.txt

diff --git a/Documentation/devicetree/bindings/media/exynos5250-camera.txt 
b/Documentation/devicetree/bindings/media/exynos5250-camera.txt
new file mode 100644
index 000..0c36bc4
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/exynos5250-camera.txt
@@ -0,0 +1,136 @@
+Samsung EXYNOS5 SoC Camera Subsystem
+
+
+The Exynos5 SoC Camera subsystem comprises of multiple sub-devices
+represented by separate device tree nodes. Currently this includes: FIMC-LITE,
+MIPI CSIS and FIMC-IS.
+
+The sub-device nodes are referenced using phandles in the common 'camera' node
+which also includes common properties of the whole subsystem not really
+specific to any single sub-device, like common camera port pins or the common
+camera bus clocks.
+
+Common 'camera' node
+
+
+Required properties:
+
+- compatible   : must be samsung,exynos5250-fimc
+- clocks   : list of phandles and clock specifiers, corresponding
+ to entries in the clock-names property
+- clock-names  : must contain sclk_bayer entry
+- samsung,csis : list of phandles to the mipi-csis device nodes
+- samsung,fimc-lite: list of phandles to the fimc-lite device nodes
+- samsung,fimc-is  : phandle to the fimc-is device node
+
+The pinctrl bindings defined in ../pinctrl/pinctrl-bindings.txt must be used
+to define a required pinctrl state named default.
+
+'parallel-ports' node
+-
+
+This node should contain child 'port' nodes specifying active parallel video
+input ports. It includes camera A, camera B and RGB bay inputs.
+'reg' property in the port nodes specifies the input type:
+ 1 - parallel camport A
+ 2 - parallel camport B
+ 5 - RGB camera bay
+
+3, 4 are for MIPI CSI-2 bus and are already described in samsung-mipi-csis.txt
+
+Required properties:
+
+For describing the input type in the child nodes, the following properties
+have to be present in the parallel-ports node:
+- #address-cells: Must be 1
+- #size-cells: Must be 0
+
+Image sensor nodes
+--
+
+The sensor device nodes should be added to their control bus controller (e.g.
+I2C0) nodes and linked to a port node in the csis or the parallel-ports node,
+using the common video interfaces bindings, defined in video-interfaces.txt.
+
+Example:
+
+   aliases {
+   fimc-lite0 = fimc_lite_0
+   };
+
+   /* Parallel bus IF sensor */
+   i2c_0: i2c@1386 {
+   s5k6aa: sensor@3c {
+   compatible = samsung,s5k6aafx;
+   reg = 0x3c;
+   vddio-supply = ...;
+
+   clock-frequency = 2400;
+   clocks = ...;
+   clock-names = mclk;
+
+   port {
+   s5k6aa_ep: endpoint {
+   remote-endpoint = fimc0_ep;
+   bus-width = 8;
+   hsync-active = 0;
+   vsync-active = 1;
+   pclk-sample = 1;
+   };
+   };
+   };
+   };
+
+   /* MIPI CSI-2 bus IF sensor */
+   s5c73m3: sensor@1a {
+   compatible = samsung,s5c73m3;
+   reg = 0x1a;
+   vddio-supply = ...;
+
+   clock-frequency = 2400;
+   clocks = ...;
+   clock-names = mclk;
+
+   port {
+   s5c73m3_1: endpoint {
+   data-lanes = 1 2 3 4;
+   remote-endpoint = csis0_ep;
+   };
+   };
+   };
+
+   camera {
+   compatible = samsung,exynos5250-fimc;
+   #address-cells = 1;
+   #size-cells = 1;
+   status = okay;
+
+   pinctrl-names = default;
+   pinctrl-0 = cam_port_a_clk_active;
+
+   samsung,csis = csis_0, csis_1;
+   samsung,fimc-lite = fimc_lite_0, fimc_lite_1, 
fimc_lite_2;
+   samsung,fimc-is = fimc_is;
+
+   /* parallel camera ports */
+   parallel-ports {
+   #address-cells = 1;
+   #size-cells = 0;
+
+   /* camera A input */
+   port@1 {
+   reg = 1;
+