From: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
Andrzej Hajda <andrzej.hajda@intel.com>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 5/7] media: dt-bindings: samsung,exynos4212-is: convert to dtschema
Date: Wed, 15 Feb 2023 14:53:17 -0600 [thread overview]
Message-ID: <20230215205317.GA529822-robh@kernel.org> (raw)
In-Reply-To: <20230214104508.51955-6-krzysztof.kozlowski@linaro.org>
On Tue, Feb 14, 2023 at 11:45:06AM +0100, Krzysztof Kozlowski wrote:
> Convert the Samsung Exynos4212/4412 SoC Imaging Subsystem (FIMC-IS)
> bindings to DT schema. Changes during conversion - adjust to existing
> DTS and Linux driver: add iommus and power-domains.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> .../bindings/media/exynos4-fimc-is.txt | 50 ----
> .../media/samsung,exynos4212-fimc-is.yaml | 221 ++++++++++++++++++
> MAINTAINERS | 1 +
> 3 files changed, 222 insertions(+), 50 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/media/exynos4-fimc-is.txt
> create mode 100644 Documentation/devicetree/bindings/media/samsung,exynos4212-fimc-is.yaml
>
> diff --git a/Documentation/devicetree/bindings/media/exynos4-fimc-is.txt b/Documentation/devicetree/bindings/media/exynos4-fimc-is.txt
> deleted file mode 100644
> index 32ced99d4244..000000000000
> --- a/Documentation/devicetree/bindings/media/exynos4-fimc-is.txt
> +++ /dev/null
> @@ -1,50 +0,0 @@
> -Exynos4x12 SoC series Imaging Subsystem (FIMC-IS)
> -
> -The FIMC-IS is a subsystem for processing image signal from an image sensor.
> -The Exynos4x12 SoC series FIMC-IS V1.5 comprises of a dedicated ARM Cortex-A5
> -processor, ISP, DRC and FD IP blocks and peripheral devices such as UART, I2C
> -and SPI bus controllers, PWM and ADC.
> -
> -fimc-is node
> -------------
> -
> -Required properties:
> -- compatible : should be "samsung,exynos4212-fimc-is" for Exynos4212 and
> - Exynos4412 SoCs;
> -- reg : physical base address and length of the registers set;
> -- interrupts : must contain two FIMC-IS interrupts, in order: ISP0, ISP1;
> -- clocks : list of clock specifiers, corresponding to entries in
> - clock-names property;
> -- clock-names : must contain "ppmuispx", "ppmuispx", "lite0", "lite1"
> - "mpll", "sysreg", "isp", "drc", "fd", "mcuisp", "gicisp",
> - "pwm_isp", "mcuctl_isp", "uart", "ispdiv0", "ispdiv1",
> - "mcuispdiv0", "mcuispdiv1", "aclk200", "div_aclk200",
> - "aclk400mcuisp", "div_aclk400mcuisp" entries,
> - matching entries in the clocks property.
> -pmu subnode
> ------------
> -
> -Required properties:
> - - reg : must contain PMU physical base address and size of the register set.
> -
> -The following are the FIMC-IS peripheral device nodes and can be specified
> -either standalone or as the fimc-is node child nodes.
> -
> -i2c-isp (ISP I2C bus controller) nodes
> -------------------------------------------
> -
> -Required properties:
> -
> -- compatible : should be "samsung,exynos4212-i2c-isp" for Exynos4212 and
> - Exynos4412 SoCs;
> -- reg : physical base address and length of the registers set;
> -- clocks : must contain gate clock specifier for this controller;
> -- clock-names : must contain "i2c_isp" entry.
> -
> -For the above nodes it is required to specify a pinctrl state named "default",
> -according to the pinctrl bindings defined in ../pinctrl/pinctrl-bindings.txt.
> -
> -Device tree nodes of the image sensors' controlled directly by the FIMC-IS
> -firmware must be child nodes of their corresponding ISP I2C bus controller node.
> -The data link of these image sensors must be specified using the common video
> -interfaces bindings, defined in video-interfaces.txt.
> diff --git a/Documentation/devicetree/bindings/media/samsung,exynos4212-fimc-is.yaml b/Documentation/devicetree/bindings/media/samsung,exynos4212-fimc-is.yaml
> new file mode 100644
> index 000000000000..288f4bf3d44d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/samsung,exynos4212-fimc-is.yaml
> @@ -0,0 +1,221 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/media/samsung,exynos4212-fimc-is.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Samsung Exynos4212/4412 SoC Imaging Subsystem (FIMC-IS)
> +
> +maintainers:
> + - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> + - Sylwester Nawrocki <s.nawrocki@samsung.com>
> +
> +description:
> + The FIMC-IS is a subsystem for processing image signal from an image sensor.
> + The Exynos4x12 SoC series FIMC-IS V1.5 comprises of a dedicated ARM Cortex-A5
> + processor, ISP, DRC and FD IP blocks and peripheral devices such as UART, I2C
> + and SPI bus controllers, PWM and ADC.
> +
> +properties:
> + compatible:
> + enum:
> + - samsung,exynos4212-fimc-is
> +
> + reg:
> + maxItems: 1
> +
> + '#address-cells':
> + const: 1
> +
> + clocks:
> + maxItems: 21
> +
> + clock-names:
> + items:
> + - const: lite0
> + - const: lite1
> + - const: ppmuispx
> + - const: ppmuispmx
> + - const: isp
> + - const: drc
> + - const: fd
> + - const: mcuisp
> + - const: gicisp
> + - const: mcuctl_isp
> + - const: pwm_isp
> + - const: ispdiv0
> + - const: ispdiv1
> + - const: mcuispdiv0
> + - const: mcuispdiv1
> + - const: mpll
> + - const: aclk200
> + - const: aclk400mcuisp
> + - const: div_aclk200
> + - const: div_aclk400mcuisp
> + - const: uart
> +
> + interrupts:
> + maxItems: 2
> +
> + iommus:
> + maxItems: 4
> +
> + iommu-names:
> + items:
> + - const: isp
> + - const: drc
> + - const: fd
> + - const: mcuctl
> +
> + power-domains:
> + maxItems: 1
> +
> + ranges: true
> +
> + '#size-cells':
> + const: 1
Normally this is next to #address-cells.
> +
> +patternProperties:
> + "^pmu@[0-9a-f]+$":
> + type: object
> + additionalProperties: false
> + description:
> + Node representing the SoC's Power Management Unit (duplicated with the
> + correct PMU node in the SoC).
> +
> + properties:
> + reg:
> + maxItems: 1
> +
> + required:
> + - reg
> +
> + "^i2c-isp@[0-9a-f]+$":
> + type: object
> + $ref: /schemas/i2c/i2c-controller.yaml#
> + unevaluatedProperties: false
> + #additionalProperties: false
??
> + description:
> + ISP I2C bus controller
WARNING: multiple messages have this Message-ID (diff)
From: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Alim Akhtar <alim.akhtar@samsung.com>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
Andrzej Hajda <andrzej.hajda@intel.com>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 5/7] media: dt-bindings: samsung,exynos4212-is: convert to dtschema
Date: Wed, 15 Feb 2023 14:53:17 -0600 [thread overview]
Message-ID: <20230215205317.GA529822-robh@kernel.org> (raw)
In-Reply-To: <20230214104508.51955-6-krzysztof.kozlowski@linaro.org>
On Tue, Feb 14, 2023 at 11:45:06AM +0100, Krzysztof Kozlowski wrote:
> Convert the Samsung Exynos4212/4412 SoC Imaging Subsystem (FIMC-IS)
> bindings to DT schema. Changes during conversion - adjust to existing
> DTS and Linux driver: add iommus and power-domains.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
> .../bindings/media/exynos4-fimc-is.txt | 50 ----
> .../media/samsung,exynos4212-fimc-is.yaml | 221 ++++++++++++++++++
> MAINTAINERS | 1 +
> 3 files changed, 222 insertions(+), 50 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/media/exynos4-fimc-is.txt
> create mode 100644 Documentation/devicetree/bindings/media/samsung,exynos4212-fimc-is.yaml
>
> diff --git a/Documentation/devicetree/bindings/media/exynos4-fimc-is.txt b/Documentation/devicetree/bindings/media/exynos4-fimc-is.txt
> deleted file mode 100644
> index 32ced99d4244..000000000000
> --- a/Documentation/devicetree/bindings/media/exynos4-fimc-is.txt
> +++ /dev/null
> @@ -1,50 +0,0 @@
> -Exynos4x12 SoC series Imaging Subsystem (FIMC-IS)
> -
> -The FIMC-IS is a subsystem for processing image signal from an image sensor.
> -The Exynos4x12 SoC series FIMC-IS V1.5 comprises of a dedicated ARM Cortex-A5
> -processor, ISP, DRC and FD IP blocks and peripheral devices such as UART, I2C
> -and SPI bus controllers, PWM and ADC.
> -
> -fimc-is node
> -------------
> -
> -Required properties:
> -- compatible : should be "samsung,exynos4212-fimc-is" for Exynos4212 and
> - Exynos4412 SoCs;
> -- reg : physical base address and length of the registers set;
> -- interrupts : must contain two FIMC-IS interrupts, in order: ISP0, ISP1;
> -- clocks : list of clock specifiers, corresponding to entries in
> - clock-names property;
> -- clock-names : must contain "ppmuispx", "ppmuispx", "lite0", "lite1"
> - "mpll", "sysreg", "isp", "drc", "fd", "mcuisp", "gicisp",
> - "pwm_isp", "mcuctl_isp", "uart", "ispdiv0", "ispdiv1",
> - "mcuispdiv0", "mcuispdiv1", "aclk200", "div_aclk200",
> - "aclk400mcuisp", "div_aclk400mcuisp" entries,
> - matching entries in the clocks property.
> -pmu subnode
> ------------
> -
> -Required properties:
> - - reg : must contain PMU physical base address and size of the register set.
> -
> -The following are the FIMC-IS peripheral device nodes and can be specified
> -either standalone or as the fimc-is node child nodes.
> -
> -i2c-isp (ISP I2C bus controller) nodes
> -------------------------------------------
> -
> -Required properties:
> -
> -- compatible : should be "samsung,exynos4212-i2c-isp" for Exynos4212 and
> - Exynos4412 SoCs;
> -- reg : physical base address and length of the registers set;
> -- clocks : must contain gate clock specifier for this controller;
> -- clock-names : must contain "i2c_isp" entry.
> -
> -For the above nodes it is required to specify a pinctrl state named "default",
> -according to the pinctrl bindings defined in ../pinctrl/pinctrl-bindings.txt.
> -
> -Device tree nodes of the image sensors' controlled directly by the FIMC-IS
> -firmware must be child nodes of their corresponding ISP I2C bus controller node.
> -The data link of these image sensors must be specified using the common video
> -interfaces bindings, defined in video-interfaces.txt.
> diff --git a/Documentation/devicetree/bindings/media/samsung,exynos4212-fimc-is.yaml b/Documentation/devicetree/bindings/media/samsung,exynos4212-fimc-is.yaml
> new file mode 100644
> index 000000000000..288f4bf3d44d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/media/samsung,exynos4212-fimc-is.yaml
> @@ -0,0 +1,221 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/media/samsung,exynos4212-fimc-is.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Samsung Exynos4212/4412 SoC Imaging Subsystem (FIMC-IS)
> +
> +maintainers:
> + - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> + - Sylwester Nawrocki <s.nawrocki@samsung.com>
> +
> +description:
> + The FIMC-IS is a subsystem for processing image signal from an image sensor.
> + The Exynos4x12 SoC series FIMC-IS V1.5 comprises of a dedicated ARM Cortex-A5
> + processor, ISP, DRC and FD IP blocks and peripheral devices such as UART, I2C
> + and SPI bus controllers, PWM and ADC.
> +
> +properties:
> + compatible:
> + enum:
> + - samsung,exynos4212-fimc-is
> +
> + reg:
> + maxItems: 1
> +
> + '#address-cells':
> + const: 1
> +
> + clocks:
> + maxItems: 21
> +
> + clock-names:
> + items:
> + - const: lite0
> + - const: lite1
> + - const: ppmuispx
> + - const: ppmuispmx
> + - const: isp
> + - const: drc
> + - const: fd
> + - const: mcuisp
> + - const: gicisp
> + - const: mcuctl_isp
> + - const: pwm_isp
> + - const: ispdiv0
> + - const: ispdiv1
> + - const: mcuispdiv0
> + - const: mcuispdiv1
> + - const: mpll
> + - const: aclk200
> + - const: aclk400mcuisp
> + - const: div_aclk200
> + - const: div_aclk400mcuisp
> + - const: uart
> +
> + interrupts:
> + maxItems: 2
> +
> + iommus:
> + maxItems: 4
> +
> + iommu-names:
> + items:
> + - const: isp
> + - const: drc
> + - const: fd
> + - const: mcuctl
> +
> + power-domains:
> + maxItems: 1
> +
> + ranges: true
> +
> + '#size-cells':
> + const: 1
Normally this is next to #address-cells.
> +
> +patternProperties:
> + "^pmu@[0-9a-f]+$":
> + type: object
> + additionalProperties: false
> + description:
> + Node representing the SoC's Power Management Unit (duplicated with the
> + correct PMU node in the SoC).
> +
> + properties:
> + reg:
> + maxItems: 1
> +
> + required:
> + - reg
> +
> + "^i2c-isp@[0-9a-f]+$":
> + type: object
> + $ref: /schemas/i2c/i2c-controller.yaml#
> + unevaluatedProperties: false
> + #additionalProperties: false
??
> + description:
> + ISP I2C bus controller
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-02-15 20:57 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-14 10:45 [PATCH v2 0/7] media: dt-bindings: Convert Samsung SoC Camera to DT schema Krzysztof Kozlowski
2023-02-14 10:45 ` Krzysztof Kozlowski
2023-02-14 10:45 ` [PATCH v2 1/7] media: dt-bindings: i2c: samsung,s5k6a3: convert to dtschema Krzysztof Kozlowski
2023-02-14 10:45 ` Krzysztof Kozlowski
2023-02-15 20:46 ` Rob Herring
2023-02-15 20:46 ` Rob Herring
2023-02-14 10:45 ` [PATCH v2 2/7] media: dt-bindings: i2c: samsung,s5k5baf: " Krzysztof Kozlowski
2023-02-14 10:45 ` Krzysztof Kozlowski
2023-02-15 20:47 ` Rob Herring
2023-02-15 20:47 ` Rob Herring
2023-02-14 10:45 ` [PATCH v2 3/7] media: dt-bindings: samsung,exynos4210-csis: " Krzysztof Kozlowski
2023-02-14 10:45 ` Krzysztof Kozlowski
2023-02-15 20:49 ` Rob Herring
2023-02-15 20:49 ` Rob Herring
2023-02-14 10:45 ` [PATCH v2 4/7] media: dt-bindings: samsung,exynos4212-fimc-lite: " Krzysztof Kozlowski
2023-02-14 10:45 ` Krzysztof Kozlowski
2023-02-15 20:50 ` Rob Herring
2023-02-15 20:50 ` Rob Herring
2023-02-14 10:45 ` [PATCH v2 5/7] media: dt-bindings: samsung,exynos4212-is: " Krzysztof Kozlowski
2023-02-14 10:45 ` Krzysztof Kozlowski
2023-02-15 20:53 ` Rob Herring [this message]
2023-02-15 20:53 ` Rob Herring
2023-02-16 7:43 ` Krzysztof Kozlowski
2023-02-16 7:43 ` Krzysztof Kozlowski
2023-02-14 10:45 ` [PATCH v2 6/7] media: dt-bindings: samsung,fimc: " Krzysztof Kozlowski
2023-02-14 10:45 ` Krzysztof Kozlowski
2023-02-15 20:59 ` Rob Herring
2023-02-15 20:59 ` Rob Herring
2023-02-14 10:45 ` [PATCH v2 7/7] media: dt-bindings: samsung,s5c73m3: " Krzysztof Kozlowski
2023-02-14 10:45 ` Krzysztof Kozlowski
2023-02-15 21:00 ` Rob Herring
2023-02-15 21:00 ` Rob Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230215205317.GA529822-robh@kernel.org \
--to=robh@kernel.org \
--cc=alim.akhtar@samsung.com \
--cc=andrzej.hajda@intel.com \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=s.nawrocki@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.