From patchwork Sun Feb 12 19:02:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 55962 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2016141wrn; Sun, 12 Feb 2023 11:06:20 -0800 (PST) X-Google-Smtp-Source: AK7set88y/gegyQt1u2IKStv5y8LmjpioRfy3qY94J8dkVi7EvqkN1ecZT4p900KUt138Och8jvj X-Received: by 2002:a50:954a:0:b0:4ab:f03:8cbc with SMTP id v10-20020a50954a000000b004ab0f038cbcmr19895185eda.13.1676228780554; Sun, 12 Feb 2023 11:06:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676228780; cv=none; d=google.com; s=arc-20160816; b=U0yGlq+4GFPwToGTmPhQ1F2iuzBEwHgZ3DMdqaoBatQXwbWO1NNRwUU4g9Eh5HQEqR Xi1h46WPb6laGmzlE/juD+E6pUYMvdRDlbrVWoW/0P98Vs30iJpoa+x2sP27ti1SN2wl kgnnESpTc2w7oTC4y4BdEVa85cIV/PU5cCvXFqD6FB0j84D1nfdgDAQd7/2JYIhYuvVA szQjqlRficj5tlMrHfhL8hWkiS6SALDdJZ15YWV29YK/W7koQGH+a8yDg74hK6h9sUxi rE1JybInT/UdXkPl9ouh/E2bSQzlFMnR6Fr7UODEm2lMf8ZBSXSmoIC83B1R6pzl08nd mGyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bcKN0QSzMyt72RiQ43VeIRrqQ8qJUs1Mzp3kXDa0+e8=; b=XEcFeKr4X9PpkBFXGbOQEKNeFlrked1JTkjsOc5aqrNXQVpEvIW+j1JVAvGCL18xcX SkNNq0uTRMnTd3bg1p/RtFVMvlFcxaxVJThxUmmoJcKi3d+fOAb3t7FKFCnKFOKhe/aw 98OYqYy29+nzahwAVs24SOyaefbd7zYJWFWiE9HBvRUVuEV8RVRbhddQMKJxIRDXAdiu TOqM4Kub+JKpdrEps9ppNtniAPXARYecKProDPOz7sVnGcjjDy7EGB/u9sX7P2/VKHzS wZ2eGKPvopRaECjKOgIdwsiBJrTfC0beQk4GXbHciq3TVd/ZAkU6/R5UuEpqy5bK7Wht xlfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gs5rd7I+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bo24-20020a0564020b3800b004acbf527b16si2860105edb.22.2023.02.12.11.05.57; Sun, 12 Feb 2023 11:06:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gs5rd7I+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229729AbjBLTDH (ORCPT + 99 others); Sun, 12 Feb 2023 14:03:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229599AbjBLTDF (ORCPT ); Sun, 12 Feb 2023 14:03:05 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1399F113E3 for ; Sun, 12 Feb 2023 11:02:32 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id h16so10134263wrz.12 for ; Sun, 12 Feb 2023 11:02:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bcKN0QSzMyt72RiQ43VeIRrqQ8qJUs1Mzp3kXDa0+e8=; b=Gs5rd7I+gdMbKnaG0ssgGEC7WzusEgrk0tjWLBUDUzR2Rd3iCpXvSWaNDGsp8oAgoP 18QFrqcDjPozzm8Vm1cujxr4wCWMIYyiP8n9uwFg1qQ1IUdihjzDfHCQmsMp2cm8/J/2 ZT3EBesEu5Ba9r1w1Cb2H61JlchtyzDAvcyX9h06h9Q1cuyA39Zij8e2S5Es0wW3eylV wbIz7fLmYY7AsvGxczb7nc5X1HHeXEoR+afBf3An293ssJOVw3Vliw59CTWXYXlPMezF d/+kxUrSJdDahrUbS6ahaOmba9MLSgI01o5VeMl/oKJwbADfVAMMv4yGdai5ye/uQNsm q57w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bcKN0QSzMyt72RiQ43VeIRrqQ8qJUs1Mzp3kXDa0+e8=; b=H+CCWdRg24/aC4UfW8ol9yZfJmYGINHPEE8Ge02FKbkz4BK8TyxFCMQm/DNRt+ANK1 rVLQDilGs+YZR9JUCcAqd7Q/7JUks1yTDHD0V10Vnp+6EMYra8BkGAhTPZp2HsfE3YH/ XeOTLoiufdh2mnaTvaoYtQEonN9hgiqlDidpJ8nh0WWHuuHvaGVdd5lQEFxjr45RaoW5 35OLEN/4C4B5Wd2ICOmdLvozkUpJy9H1xInH938orw8+cvkJ57xE2Q4Kq5wm8i9xN4+3 uqRB1hBS1LEyCVG3+U0B0huNMLEmTn5rvTDw1umTb+lCnXIu6svSva6uk3i/u8g+sSNl vZQg== X-Gm-Message-State: AO0yUKX7S6WfSQwCnu44jAX7/70UUK42+tSGfewAI5wAJC+FFKt02U8g pneZOqL6umnS8qAzk7y9WKWCoA== X-Received: by 2002:adf:e541:0:b0:2c5:5286:689a with SMTP id z1-20020adfe541000000b002c55286689amr3691111wrm.6.1676228548156; Sun, 12 Feb 2023 11:02:28 -0800 (PST) Received: from krzk-bin.. ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id f15-20020adff98f000000b002c5583ab017sm1327884wrr.15.2023.02.12.11.02.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 11:02:27 -0800 (PST) From: Krzysztof Kozlowski To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Alim Akhtar , Sylwester Nawrocki , 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 Cc: Krzysztof Kozlowski Subject: [PATCH 2/4] media: dt-bindings: samsung,exynos4212-fimc-lite: convert to dtschema Date: Sun, 12 Feb 2023 20:02:20 +0100 Message-Id: <20230212190222.44977-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230212190222.44977-1-krzysztof.kozlowski@linaro.org> References: <20230212190222.44977-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757653269576832966?= X-GMAIL-MSGID: =?utf-8?q?1757653269576832966?= Convert the Samsung Exynos SoC series camera host interface (FIMC-LITE) 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/exynos-fimc-lite.txt | 16 ----- .../media/samsung,exynos4212-fimc-lite.yaml | 63 +++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 64 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/exynos-fimc-lite.txt create mode 100644 Documentation/devicetree/bindings/media/samsung,exynos4212-fimc-lite.yaml diff --git a/Documentation/devicetree/bindings/media/exynos-fimc-lite.txt b/Documentation/devicetree/bindings/media/exynos-fimc-lite.txt deleted file mode 100644 index 0bf6fb7fbeab..000000000000 --- a/Documentation/devicetree/bindings/media/exynos-fimc-lite.txt +++ /dev/null @@ -1,16 +0,0 @@ -Exynos4x12/Exynos5 SoC series camera host interface (FIMC-LITE) - -Required properties: - -- compatible : should be one of: - "samsung,exynos4212-fimc-lite" for Exynos4212/4412 SoCs, - "samsung,exynos5250-fimc-lite" for Exynos5250 compatible - devices; -- reg : physical base address and size of the device memory mapped - registers; -- interrupts : should contain FIMC-LITE interrupt; -- clocks : FIMC LITE gate clock should be specified in this property. -- clock-names : should contain "flite" entry. - -Each FIMC device should have an alias in the aliases node, in the form of -fimc-lite, where is an integer specifying the IP block instance. diff --git a/Documentation/devicetree/bindings/media/samsung,exynos4212-fimc-lite.yaml b/Documentation/devicetree/bindings/media/samsung,exynos4212-fimc-lite.yaml new file mode 100644 index 000000000000..f80eca0a4f41 --- /dev/null +++ b/Documentation/devicetree/bindings/media/samsung,exynos4212-fimc-lite.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/samsung,exynos4212-fimc-lite.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Samsung Exynos SoC series camera host interface (FIMC-LITE) + +maintainers: + - Krzysztof Kozlowski + - Sylwester Nawrocki + +description: + Each FIMC device should have an alias in the aliases node, in the form of + fimc-lite, where is an integer specifying the IP block instance. + +properties: + compatible: + enum: + - samsung,exynos4212-fimc-lite + - samsung,exynos5250-fimc-lite + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: flite + + interrupts: + maxItems: 1 + + iommus: + maxItems: 1 + + power-domains: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + +additionalProperties: false + +examples: + - | + #include + #include + fimc-lite@12390000 { + compatible = "samsung,exynos4212-fimc-lite"; + reg = <0x12390000 0x1000>; + clocks = <&isp_clock CLK_ISP_FIMC_LITE0>; + clock-names = "flite"; + interrupts = ; + power-domains = <&pd_isp>; + iommus = <&sysmmu_fimc_lite0>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index f02ce233a034..b6db79458895 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -18474,6 +18474,7 @@ L: linux-media@vger.kernel.org S: Supported Q: https://patchwork.linuxtv.org/project/linux-media/list/ F: Documentation/devicetree/bindings/media/samsung,exynos4210-csis.yaml +F: Documentation/devicetree/bindings/media/samsung,exynos4212-fimc-lite.yaml F: drivers/media/platform/samsung/exynos4-is/ SAMSUNG SOC CLOCK DRIVERS