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 X-Spam-Level: X-Spam-Status: No, score=-16.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64D8CC433B4 for ; Tue, 13 Apr 2021 11:05:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 44C7161249 for ; Tue, 13 Apr 2021 11:05:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345357AbhDMLF2 (ORCPT ); Tue, 13 Apr 2021 07:05:28 -0400 Received: from esa.microchip.iphmx.com ([68.232.153.233]:16582 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243138AbhDMLFX (ORCPT ); Tue, 13 Apr 2021 07:05:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1618311904; x=1649847904; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ebzaumar8SMo14JkWxHz4mLhmwozonizizKyYoht5ZA=; b=VVGRS1mGxsOvwVvPTTJ+GYbgGzkcP2At2hWZCwyArJ9G9QYTMBUdKmy3 VOslaTVjnl4Ip/zeXeRHziKAqAEIfogLRu6O7kjg11qkddJxMnOOKE9+k B6HQMZdoYjr5XLxzwyu8CvIT+P9dDtPLcHuZ4gS8Hv4GJMxnqvKCQ4eAw +3Gz0snFLoSScDkg32OB5LgxgwZH4hIrnbpC99wObjaNLQ+90RT790Pcs bbG2Q5ClT0AaE1rlQgh12KYtzypI1MZm9PCR0jeifdvhsLwbK+7sqeXSr tWIz1BqE8jAs8yghbvQnNweti/MtYwDAmN0DBQ5lnQ4VcxYVRLEZQXtZS g==; IronPort-SDR: 2e/AUsNAPQr7mJD+5DSsCm5keX4mMKfwTKyCUPt60W/Kob4p3cOY+jffhMGTQj1YHWGKT9jcra mtcJ84kfN5UTe7pdj4bWzmL0PV6QcgDw0nfZRaxkO4If0U9sOMejk86Q0G6EqcS2vobYbR1bXF urNLIOuhIeWjR0BocgLQm6mLhNdqLz7jTtC587yw5W/YIUUaIZ5gTY7BLtmzqjIdv/WjtBydpF zkFSXU8J3NG1TQh7qXhnU0ya3dFxIHVqUS1WEz8SzWrw4g00xbV+tW4+9fPjnULuHB1b1swfv2 DmQ= X-IronPort-AV: E=Sophos;i="5.82,219,1613458800"; d="scan'208";a="122830504" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Apr 2021 04:05:04 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) 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:05:03 -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:50 -0700 From: Eugen Hristev To: , , , CC: , , Eugen Hristev Subject: [PATCH v3 30/33] dt-bindings: media: add microchip,xisc device bindings Date: Tue, 13 Apr 2021 13:57:28 +0300 Message-ID: <20210413105731.610028-31-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 Add bindings for the Microchip eXtended Image Sensor Controller. Based on the atmel,isc.yaml binding. Signed-off-by: Eugen Hristev --- .../bindings/media/microchip,xisc.yaml | 129 ++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/microchip,xisc.yaml diff --git a/Documentation/devicetree/bindings/media/microchip,xisc.yaml b/Documentation/devicetree/bindings/media/microchip,xisc.yaml new file mode 100644 index 000000000000..e3825c4e13f8 --- /dev/null +++ b/Documentation/devicetree/bindings/media/microchip,xisc.yaml @@ -0,0 +1,129 @@ +# SPDX-License-Identifier: GPL-2.0-only +# Copyright (C) 2021 Microchip Technology, Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/microchip,xisc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip eXtended Image Sensor Controller (XISC) + +maintainers: + - Eugen Hristev + +description: + The eXtended Image Sensor Controller (XISC) device provides the video input capabilities for the + Microchip AT91 SAM family of devices. + + The XISC has a single internal parallel input that supports RAW Bayer, RGB or YUV video. + The source can be either a demuxer from a CSI2 type of bus, or a simple direct bridge to a + parallel sensor. + + The XISC provides one clock output that is used to clock the demuxer/bridge. + +properties: + compatible: + const: microchip,sama7g5-isc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: hclock + + '#clock-cells': + const: 0 + + clock-output-names: + const: isc-mck + + microchip,mipi-mode: + type: boolean + description: + As the XISC is usually connected to a demux/bridge, the XISC receives + the same type of input, however, it should be aware of the type of + signals received. The mipi-mode enables different internal handling + of the data and clock lines. + + port: + $ref: /schemas/graph.yaml#/properties/port + description: + Input port node, single endpoint describing the input pad. + + properties: + endpoint: + $ref: video-interfaces.yaml# + + properties: + bus-type: + enum: [5, 6] + + 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 + - bus-type + + additionalProperties: false + + additionalProperties: false + +required: + - compatible + - reg + - clocks + - clock-names + - '#clock-cells' + - clock-output-names + - port + +additionalProperties: false + +examples: + - | + #include + #include + #include + + xisc: xisc@e1408000 { + compatible = "microchip,sama7g5-isc"; + reg = <0xe1408000 0x2000>; + interrupts = ; + clocks = <&pmc PMC_TYPE_PERIPHERAL 56>; + clock-names = "hclock"; + #clock-cells = <0>; + clock-output-names = "isc-mck"; + + port { + xisc_in: endpoint { + bus-type = <5>; /* Parallel */ + remote-endpoint = <&csi2dc_out>; + hsync-active = <1>; + vsync-active = <1>; + bus-width = <12>; + }; + }; + }; + -- 2.25.1 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 X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34B16C433B4 for ; Tue, 13 Apr 2021 11:27:28 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B46146135C for ; Tue, 13 Apr 2021 11:27:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B46146135C Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:CC:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=a0/tct65oRPSQp3OjA/56gEuBZ9cn+KQXuiw8o7ttys=; b=DusJtVc5jzYZBQ+uHLIScyFDE N6v7yUnkwFMRw7XaDLSA+QuY2s00IyFW5LgymClPmJ7/k/oZMjeWewpe5aBFZEYttvw3ph/Puc9SS ucZ/6MfwQVQ3MaCDsCqAdwFfit3l/qJJxizukL9JGo4nb8oOr77NXSArfJxbfj1P/092D0tVp8wox h9ONMO8BqUaIxKFf+dZEDdiC9I7wjicAA/KjSIZCmjIt+ae2LY+8KB7bMRCPHJA6mqzhQXF+hfChT p5I9FAehf4FU3/1XqFyBPgj0A1OVwXGOIZopRj4nfZ48MIc9XfjJ//rUx3DAflG/HmOHzJCv9b2F2 31v6/34hg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lWHAc-0092OC-DS; Tue, 13 Apr 2021 11:25:27 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lWGqx-008xHb-PU for linux-arm-kernel@desiato.infradead.org; Tue, 13 Apr 2021 11:05:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Sender:Reply-To:Content-ID:Content-Description; bh=kytSvEoGu9GAGsCfUIQW+gyho0lS9A1e0dSffiYspPk=; b=wSr+NZwd8UXf1tCYI7x7KYVTVb RazYrlSRVgv34Ho9tUaHcpuUwegqMxRqu0vpjMnA73Avk7MpXTkfROwSqO036zYVZtTCr47iLC6i9 2x5V3Ul636z8FelQ+8RdixNNiS5bE7NVU5LWJYctzJ20Net6+RYuvL0d5wK3kuHSYCDLKcwusPZJu 8ZBDfmt9GPVQVS0Hsk7mR8HwYZRsufONAi9vOQfOSKm5tbymJpGhkaQ1tatbYLoWDYQYY0mTb0ADN dNWdPr08yiZmoZbDvrFHcvSVGVvrXNQLiyTQt2wzHE6qDiZ63ULO31oLTnMZ1/XypNUPQnHFqPQDq nviV2nXw==; Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lWGqu-006x7W-OY for linux-arm-kernel@lists.infradead.org; Tue, 13 Apr 2021 11:05:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1618311904; x=1649847904; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ebzaumar8SMo14JkWxHz4mLhmwozonizizKyYoht5ZA=; b=VVGRS1mGxsOvwVvPTTJ+GYbgGzkcP2At2hWZCwyArJ9G9QYTMBUdKmy3 VOslaTVjnl4Ip/zeXeRHziKAqAEIfogLRu6O7kjg11qkddJxMnOOKE9+k B6HQMZdoYjr5XLxzwyu8CvIT+P9dDtPLcHuZ4gS8Hv4GJMxnqvKCQ4eAw +3Gz0snFLoSScDkg32OB5LgxgwZH4hIrnbpC99wObjaNLQ+90RT790Pcs bbG2Q5ClT0AaE1rlQgh12KYtzypI1MZm9PCR0jeifdvhsLwbK+7sqeXSr tWIz1BqE8jAs8yghbvQnNweti/MtYwDAmN0DBQ5lnQ4VcxYVRLEZQXtZS g==; IronPort-SDR: 2e/AUsNAPQr7mJD+5DSsCm5keX4mMKfwTKyCUPt60W/Kob4p3cOY+jffhMGTQj1YHWGKT9jcra mtcJ84kfN5UTe7pdj4bWzmL0PV6QcgDw0nfZRaxkO4If0U9sOMejk86Q0G6EqcS2vobYbR1bXF urNLIOuhIeWjR0BocgLQm6mLhNdqLz7jTtC587yw5W/YIUUaIZ5gTY7BLtmzqjIdv/WjtBydpF zkFSXU8J3NG1TQh7qXhnU0ya3dFxIHVqUS1WEz8SzWrw4g00xbV+tW4+9fPjnULuHB1b1swfv2 DmQ= X-IronPort-AV: E=Sophos;i="5.82,219,1613458800"; d="scan'208";a="122830504" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 13 Apr 2021 04:05:04 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) 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:05:03 -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:50 -0700 From: Eugen Hristev To: , , , CC: , , Eugen Hristev Subject: [PATCH v3 30/33] dt-bindings: media: add microchip, xisc device bindings Date: Tue, 13 Apr 2021 13:57:28 +0300 Message-ID: <20210413105731.610028-31-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210413_040504_833367_0BE843E9 X-CRM114-Status: GOOD ( 14.80 ) 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 Add bindings for the Microchip eXtended Image Sensor Controller. Based on the atmel,isc.yaml binding. Signed-off-by: Eugen Hristev --- .../bindings/media/microchip,xisc.yaml | 129 ++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/microchip,xisc.yaml diff --git a/Documentation/devicetree/bindings/media/microchip,xisc.yaml b/Documentation/devicetree/bindings/media/microchip,xisc.yaml new file mode 100644 index 000000000000..e3825c4e13f8 --- /dev/null +++ b/Documentation/devicetree/bindings/media/microchip,xisc.yaml @@ -0,0 +1,129 @@ +# SPDX-License-Identifier: GPL-2.0-only +# Copyright (C) 2021 Microchip Technology, Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/microchip,xisc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Microchip eXtended Image Sensor Controller (XISC) + +maintainers: + - Eugen Hristev + +description: + The eXtended Image Sensor Controller (XISC) device provides the video input capabilities for the + Microchip AT91 SAM family of devices. + + The XISC has a single internal parallel input that supports RAW Bayer, RGB or YUV video. + The source can be either a demuxer from a CSI2 type of bus, or a simple direct bridge to a + parallel sensor. + + The XISC provides one clock output that is used to clock the demuxer/bridge. + +properties: + compatible: + const: microchip,sama7g5-isc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: hclock + + '#clock-cells': + const: 0 + + clock-output-names: + const: isc-mck + + microchip,mipi-mode: + type: boolean + description: + As the XISC is usually connected to a demux/bridge, the XISC receives + the same type of input, however, it should be aware of the type of + signals received. The mipi-mode enables different internal handling + of the data and clock lines. + + port: + $ref: /schemas/graph.yaml#/properties/port + description: + Input port node, single endpoint describing the input pad. + + properties: + endpoint: + $ref: video-interfaces.yaml# + + properties: + bus-type: + enum: [5, 6] + + 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 + - bus-type + + additionalProperties: false + + additionalProperties: false + +required: + - compatible + - reg + - clocks + - clock-names + - '#clock-cells' + - clock-output-names + - port + +additionalProperties: false + +examples: + - | + #include + #include + #include + + xisc: xisc@e1408000 { + compatible = "microchip,sama7g5-isc"; + reg = <0xe1408000 0x2000>; + interrupts = ; + clocks = <&pmc PMC_TYPE_PERIPHERAL 56>; + clock-names = "hclock"; + #clock-cells = <0>; + clock-output-names = "isc-mck"; + + port { + xisc_in: endpoint { + bus-type = <5>; /* Parallel */ + remote-endpoint = <&csi2dc_out>; + hsync-active = <1>; + vsync-active = <1>; + bus-width = <12>; + }; + }; + }; + -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel