Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2679304pxb; Tue, 13 Apr 2021 07:41:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJTTXFb1mwX0WHyHfAbzuStM9ICa7FxOrZH2VGJ5kiGZ8SUF+4cIHNhOJZAKJvOgtFiRAU X-Received: by 2002:aa7:9798:0:b029:24c:b3b9:46f4 with SMTP id o24-20020aa797980000b029024cb3b946f4mr10255848pfp.24.1618324913474; Tue, 13 Apr 2021 07:41:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618324913; cv=none; d=google.com; s=arc-20160816; b=N6bAMAh9VVzUKHZZSIpvTIy4W9oaK13YMO1W5az2u2k53GiCRlWauoIW2UB7cCN48L feTFIh0m07GTD67XFzVD1sEz4p9UP+NIFXa/byZ9PJ/HlYkTI1Vte2RcngrZrl6X1PTh x7E+asVfCgA2NQyt3xcZS06qHQruXuQ6YooboyIbE6/6o8vMvIuKBrn8fj0BQ7EKQsvq MES4XZ7SlOx6q7m/YcOeudPYskJ5cQHjENvt2CtdZzqKvJHasbeYqfoOYgmbcqF8EcQQ L7uu3pJ2n1+4GBGjhP0t1XV/gQmQkglt5clFZCOkkjvKlEmqXheCAApeeLKbjmq0w4Yx IlMg== 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 :ironport-sdr:dkim-signature; bh=JH2RYi3kDx+AiQ8D+WSLuUCySRdNlVUZvA4cRtud7Vg=; b=gA81GzI81J1WTjulh1A0S7WsOQ/C+8ABJc6/KOJUEy/4UHSQtTAwraBf9NkPYPosgo 13HszOzHxJiQt0JOyJshaVGxgLtvRbwkZeH+HhK1MzcWU4GcacBN8vBYahjGU63pxEMn 12Qo90tOKNPrwZvbtSPBhsYIhP6JquOPe18R9IxLXo+GV+Gp8xC6Y6ocV+7W4bYuwDTa c55RbPsxQAJusqmK+ld7XmPwGWpJYK1rsSeGhwHEeEPgQYCQrIwC3Cg9hfknjcEqgvqR mPOGXkSeA6Gcx+9x7W167a4AggVXJwooTjWzXc5Q77fSz7cYFSCSGwQRq35m4pUFjdkS wucQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=RYBX8UKw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n21si17645228pfd.238.2021.04.13.07.41.40; Tue, 13 Apr 2021 07:41:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=RYBX8UKw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345330AbhDMLFE (ORCPT + 99 others); Tue, 13 Apr 2021 07:05:04 -0400 Received: from esa.microchip.iphmx.com ([68.232.154.123]:24395 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345320AbhDMLFE (ORCPT ); Tue, 13 Apr 2021 07:05:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1618311884; x=1649847884; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bCS53V4u+0qTfAOmQDqOdbeRcjHwF+jqy8fHpoasjOM=; b=RYBX8UKw0x53uA63s9/AIE5afHxydt6IiegqV7azXrWpdqyQp+orbYRg 0BxMAG4x8WZG1LNaUGC5luEZHYo2CTz2W6/VKeTvBQFiETezhqItiDAt9 o7N6jLg04+BOn0mObg8ToCfSMcs8RTogtEiyI1TS4RegcRkQzp2gAoAId ii1VmBYHt5y9PIpsVDXVBiVANoXZxG27ee4e8iatZhxsWq13uKRh3PgHk S/QDo5fFkJG7E/as5/YYXvelcWX/jJv7pZRiuaBdJdn+Z2q/0O/TlWWpN PnfyFCbJKNEZ5/I/hnbecxbCTLAn4eR8hLyo7WkWEZTErYs9sEXIWjwDW A==; IronPort-SDR: f09gNFps8TyMimM6wUm+xhVpSdJPSSrcfW+q6x3tkxTPLtaloVAmUC8yhGcoSgD7W+EE6G1iCf Sj/cswpQtxZn7TjN6g5pNFZKVkB2SGrf7PU8bIQD0kmOXWH8T34dMuXEhWV8P359wVl+g3rAJL jEK5k0SPUZvFRoDUKgMV20eGMl3tDKpFAYwWGhoOZ8n02vN40G+3RuGD4gd7pR3yc78Hl8BrmY /Vw5E2LqSjgWgR2LI6Nz/DqUMNbI3CtEh6bDPGz2nifJM8IpO4lHJYYjz41Bi+iMoo/DmjxVfM xFg= X-IronPort-AV: E=Sophos;i="5.82,219,1613458800"; d="scan'208";a="110612288" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Apr 2021 04:04:43 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 13 Apr 2021 04:04:43 -0700 Received: from ROB-ULT-M18282.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Tue, 13 Apr 2021 04:04:35 -0700 From: Eugen Hristev To: , , , CC: , , Eugen Hristev Subject: [PATCH v3 29/33] dt-bindings: media: atmel-isc: convert to yaml Date: Tue, 13 Apr 2021 13:57:27 +0300 Message-ID: <20210413105731.610028-30-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210413105731.610028-1-eugen.hristev@microchip.com> References: <20210413105731.610028-1-eugen.hristev@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the Atmel ISC to yaml binding format. Signed-off-by: Eugen Hristev --- .../devicetree/bindings/media/atmel,isc.yaml | 115 ++++++++++++++++++ .../devicetree/bindings/media/atmel-isc.txt | 65 ---------- 2 files changed, 115 insertions(+), 65 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/atmel,isc.yaml delete mode 100644 Documentation/devicetree/bindings/media/atmel-isc.txt diff --git a/Documentation/devicetree/bindings/media/atmel,isc.yaml b/Documentation/devicetree/bindings/media/atmel,isc.yaml new file mode 100644 index 000000000000..6ef8b4102b0d --- /dev/null +++ b/Documentation/devicetree/bindings/media/atmel,isc.yaml @@ -0,0 +1,115 @@ +# SPDX-License-Identifier: GPL-2.0-only +# Copyright (C) 2016-2021 Microchip Technology, Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/atmel,isc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Atmel Image Sensor Controller (ISC) + +maintainers: + - Eugen Hristev + +description: + The Image Sensor Controller (ISC) device provides the video input capabilities for the + Atmel/Microchip AT91 SAMA family of devices. + + The ISC has a single parallel input that supports RAW Bayer, RGB or YUV video, + with both external synchronization and BT.656 synchronization for the latter. + +properties: + compatible: + const: atmel,sama5d2-isc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + minItems: 3 + maxItems: 3 + + clock-names: + items: + - const: hclock + - const: iscck + - const: gck + + '#clock-cells': + const: 0 + + clock-output-names: + const: isc-mck + + port: + $ref: /schemas/graph.yaml#/properties/port + description: + Input port node, single endpoint describing the input pad. + + properties: + endpoint: + $ref: video-interfaces.yaml# + + properties: + remote-endpoint: true + + bus-width: + enum: [8, 9, 10, 11, 12] + default: 12 + + hsync-active: + enum: [0, 1] + default: 1 + + vsync-active: + enum: [0, 1] + default: 1 + + pclk-sample: + enum: [0, 1] + default: 1 + + required: + - remote-endpoint + + additionalProperties: false + + additionalProperties: false + +required: + - compatible + - reg + - clocks + - clock-names + - '#clock-cells' + - clock-output-names + - port + +additionalProperties: false + +examples: + - | + #include + + isc: isc@f0008000 { + compatible = "atmel,sama5d2-isc"; + reg = <0xf0008000 0x4000>; + interrupts = <46 IRQ_TYPE_LEVEL_HIGH 5>; + clocks = <&isc_clk>, <&iscck>, <&isc_gclk>; + clock-names = "hclock", "iscck", "gck"; + #clock-cells = <0>; + clock-output-names = "isc-mck"; + + port { + isc_0: endpoint { + remote-endpoint = <&ov7740_0>; + hsync-active = <1>; + vsync-active = <0>; + pclk-sample = <1>; + bus-width = <8>; + }; + }; + }; + diff --git a/Documentation/devicetree/bindings/media/atmel-isc.txt b/Documentation/devicetree/bindings/media/atmel-isc.txt deleted file mode 100644 index bbe0e87c6188..000000000000 --- a/Documentation/devicetree/bindings/media/atmel-isc.txt +++ /dev/null @@ -1,65 +0,0 @@ -Atmel Image Sensor Controller (ISC) ----------------------------------------------- - -Required properties for ISC: -- compatible - Must be "atmel,sama5d2-isc". -- reg - Physical base address and length of the registers set for the device. -- interrupts - Should contain IRQ line for the ISC. -- clocks - List of clock specifiers, corresponding to entries in - the clock-names property; - Please refer to clock-bindings.txt. -- clock-names - Required elements: "hclock", "iscck", "gck". -- #clock-cells - Should be 0. -- clock-output-names - Should be "isc-mck". -- pinctrl-names, pinctrl-0 - Please refer to pinctrl-bindings.txt. - -ISC supports a single port node with parallel bus. It should contain one -'port' child node with child 'endpoint' node. Please refer to the bindings -defined in Documentation/devicetree/bindings/media/video-interfaces.txt. - -Example: -isc: isc@f0008000 { - compatible = "atmel,sama5d2-isc"; - reg = <0xf0008000 0x4000>; - interrupts = <46 IRQ_TYPE_LEVEL_HIGH 5>; - clocks = <&isc_clk>, <&iscck>, <&isc_gclk>; - clock-names = "hclock", "iscck", "gck"; - #clock-cells = <0>; - clock-output-names = "isc-mck"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_isc_base &pinctrl_isc_data_8bit &pinctrl_isc_data_9_10 &pinctrl_isc_data_11_12>; - - port { - isc_0: endpoint { - remote-endpoint = <&ov7740_0>; - hsync-active = <1>; - vsync-active = <0>; - pclk-sample = <1>; - }; - }; -}; - -i2c1: i2c@fc028000 { - ov7740: camera@21 { - compatible = "ovti,ov7740"; - reg = <0x21>; - clocks = <&isc>; - clock-names = "xvclk"; - assigned-clocks = <&isc>; - assigned-clock-rates = <24000000>; - - port { - ov7740_0: endpoint { - remote-endpoint = <&isc_0>; - }; - }; - }; -}; -- 2.25.1