From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 47DDBC636D4 for ; Wed, 15 Feb 2023 21:03:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YG432aFaghQ9IAhIBa3bpRnDKjFfmDuj7nsqfB5a058=; b=VlEjzO2+6mLe8y 3a4/o8TtfnxlnTpe8EM6nl00Cg3WRE/Ud2u4mKWHepAjKYaANJpmnHjf/s3iwOMxxSupq+9SEP9qX gugiNJScCbJ3+UDswH5dU17ZBnpq5Paj+CIlLI+7Ag6BWhep4gYflj9C63XcnRKpVmFZo7rNMAAKN Ox/O2VVIWYEFXhO4tgDGu2QI2xj4QjiTYSuqbfb2Sf0Ajz+1hIXw8BTFOYiLRrOmSB9CSwnv+ojcJ ewi/yujDAlOS+Tpj4nG8LPhuDQlMVZe6CMkNVWn0qFBykesL2Rq9EYtTiLORGOmrVveeAvgZvoqWP x9nOUJ4Dkl7HI+3Cm40w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pSOvI-007MBs-Kc; Wed, 15 Feb 2023 21:02:41 +0000 Received: from mail-ot1-f43.google.com ([209.85.210.43]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pSOmF-007HB3-Si for linux-arm-kernel@lists.infradead.org; Wed, 15 Feb 2023 20:53:22 +0000 Received: by mail-ot1-f43.google.com with SMTP id r34-20020a05683044a200b0068d4a8a8d2dso29687otv.12 for ; Wed, 15 Feb 2023 12:53:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=YjzOyjobJagfirhvlCXNjjk5lMxOm3c7K/SKq6NqqPI=; b=PZG3rh3tPXqNu6HyZUooLWM8bF+/VMfbS4VwtnIbQgiFpiqPqzu93GIAbOG1MDII+b aperQXti8sKfk0bJYT3zvX4enVcEfY8lVjU2Ly8WIhRfQPHbuPHPnzAwuT60jkDle2Bk SwQYhl5ql/NhSYJr8Q5gaYDie3RVF3+dIaN1khoLvkdRk+kiGVQIgZbo2xhx6VLgzY0C xEwbRC1SnLDYO1Bptyj34ZOy5jlyMIlSZo++tFWEhVdHELdJjEZ+DI/FfGx6xkOIbAVf XkVAA0g+g9PQmJXWggrf7Hbh8sk1mXo8hSTO+6wlV9zA/7afL8g3bpPiX3gYR668ULO4 tZ4A== X-Gm-Message-State: AO0yUKVWfhwzkQcOmbOn3Emclv+N6xKH2EYP8RHBquVb+Ouc0AUsfTdl gq7C03Tz+3B6iyJXOgaCIw== X-Google-Smtp-Source: AK7set85Fr/64N9KeajUXci8m4jgyhP+/i2Yinfwq8mFdO068byhumKoIjoQQ4OEwMVGLZpL31ak1w== X-Received: by 2002:a05:6830:3a10:b0:68b:d2c2:4430 with SMTP id di16-20020a0568303a1000b0068bd2c24430mr1533886otb.38.1676494398146; Wed, 15 Feb 2023 12:53:18 -0800 (PST) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id u4-20020a9d4d84000000b0068d752f1870sm7896769otk.5.2023.02.15.12.53.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 12:53:17 -0800 (PST) Received: (nullmailer pid 533048 invoked by uid 1000); Wed, 15 Feb 2023 20:53:17 -0000 Date: Wed, 15 Feb 2023 14:53:17 -0600 From: Rob Herring To: Krzysztof Kozlowski Cc: Mauro Carvalho Chehab , Krzysztof Kozlowski , Alim Akhtar , Sylwester Nawrocki , Andrzej Hajda , 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 Message-ID: <20230215205317.GA529822-robh@kernel.org> References: <20230214104508.51955-1-krzysztof.kozlowski@linaro.org> <20230214104508.51955-6-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230214104508.51955-6-krzysztof.kozlowski@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230215_125319_975654_907B3B50 X-CRM114-Status: GOOD ( 27.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 > --- > .../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 > + - Sylwester Nawrocki > + > +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