Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp401466pxv; Wed, 14 Jul 2021 06:40:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwe2VA2cqJjB/RleWQkgemLK+f0eEzRhhawS4m9YPAJTklZXgKvdHQyJMjJah+PaDP7hj7c X-Received: by 2002:aa7:cd96:: with SMTP id x22mr14068691edv.102.1626270045522; Wed, 14 Jul 2021 06:40:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626270045; cv=none; d=google.com; s=arc-20160816; b=VZFMuO6Jjfq2B07bsoQcjgSpJ6EDSZ1ep4r7a5tjFlx+kdUR0UB72Kr+xKW1SgRCzG pb7iuylz9M56Uau0rmnayUHPDVtYfyhznz81ixzsEMLgYTrpcuZUzHq1WjKo4O6z+M+P 458L560f62L3czGUojSbBorLcj12ccGGMLiIOvM6Lop+ypAwnqLFTBcG723cu9zZZoOZ 7tSkrRfHsgdfedxUA0GSWaJoORdrm/Hd5Eof7EZvTsKuiCSn1LY9HQv19akEArOr4W5f puWvTT9UzqNg5I25G1eWLMu3j5RLZP3TR5hC4rMIL84FoXO9Hejy0cfpIDrD3jN6gbnV /low== 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=1dqSx8FxOssTAnexc0IIg35BLPZ4ioJtP2sidDiegiw=; b=zDzeuSLpHBbX+ILWh23ESexrPU+s0auqHZmQOIeMNu0qxpIuGYdnqJokhNT4684k+U QPNfGo+Ou7lIpuyWrvLf9DEF2qLSd0LvMHhJqKqV/e9AZzPt9DOPE2afPuud51T07XrR 4YsvceYssrBpjIZbHz7cCLJlrKJLUUz4bhubduF9LSIhIWRImM53GC0yr5toQLK5fB0J p9jlnUOmdnFkyaJBk+MdWzZ43txEWvXdmsDWodmsku28oYfuv4jHejgX4yxe19AOVF1P 1rMfoqT3pCKkKnjEYCdo1xS/LzWW1yUqkm0Yv2wuJQPWfm8h2bPW0impt/iuGatJqxSz JzXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@phytec.de header.s=a4 header.b=kuUblTEq; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x9si2695183edr.149.2021.07.14.06.40.21; Wed, 14 Jul 2021 06:40:45 -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=@phytec.de header.s=a4 header.b=kuUblTEq; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232463AbhGNNlx (ORCPT + 99 others); Wed, 14 Jul 2021 09:41:53 -0400 Received: from mickerik.phytec.de ([195.145.39.210]:56712 "EHLO mickerik.phytec.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232402AbhGNNlp (ORCPT ); Wed, 14 Jul 2021 09:41:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1626269930; x=1628861930; h=From:Sender:Reply-To:Subject:Date:Message-Id:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XFkUzWvtOGkj5KMI8CZVs1m3WhPzoPy2JqrsYoCMdMQ=; b=kuUblTEqsQPJrOlxGlxMq07LNYCsqu6aEnQz4GDEsaD3tRpXIsAqDr0UYLekEKcr OIROxi7umWxWjeqGDfXKQgh+Kn0ADoo3gKyby1rU/QxqgTMLnHSQBH0h1zcLzIJy ixjA1LQG0IyBCch1Q3NU1O5SlHa1ytmdfOqXPWvdSMw=; X-AuditID: c39127d2-1d8f870000001daf-26-60eee8eaca32 Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id 2D.57.07599.AE8EEE06; Wed, 14 Jul 2021 15:38:50 +0200 (CEST) Received: from augenblix2.phytec.de ([172.16.0.56]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2021071415385065-1154292 ; Wed, 14 Jul 2021 15:38:50 +0200 From: Stefan Riedmueller To: Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring Cc: Stefan Riedmueller , Sakari Ailus , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 5/6] media: dt-bindings: mt9p031: Convert bindings to yaml Date: Wed, 14 Jul 2021 15:38:48 +0200 Message-Id: <20210714133849.1041619-6-s.riedmueller@phytec.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210714133849.1041619-1-s.riedmueller@phytec.de> References: <20210714133849.1041619-1-s.riedmueller@phytec.de> MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 14.07.2021 15:38:50, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 14.07.2021 15:38:50 X-TNEFEvaluated: 1 Content-Transfer-Encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFLMWRmVeSWpSXmKPExsWyRoCBS/fVi3cJBoteGlvMP3KO1aJz4hJ2 i8u75rBZ9GzYymqxbNMfJovWvUfYLT5t+cbkwO4xu2Mmq8emVZ1sHvNOBnp83iQXwBLFZZOS mpNZllqkb5fAlXH9wnaWgs0aFfO7LjA1ML6Q62Lk5JAQMJH4+HECM4gtJLCNUeL9q7guRi4g +wKjxL/d01hAEmwCRhILpjUygSREBNoYJXYcaQZzmAW2MEpMv7ycDaRKWMBX4tKzHiYQm0VA VeL2psdA3RwcvAJ2Eh/elUFsk5eYeek7O4jNKWAv0X30HwvEZjuJO5fnM4LYvAKCEidnPmEB mS8hcIVR4u6654wQzUISpxefBTuVWUBbYtnC18wTGAVmIemZhSS1gJFpFaNQbmZydmpRZrZe QUZlSWqyXkrqJkZg+B6eqH5pB2PfHI9DjEwcjIcYJTiYlUR4lxq9TRDiTUmsrEotyo8vKs1J LT7EKM3BoiTOu4G3JExIID2xJDU7NbUgtQgmy8TBKdXAKHbSQlctsrF+U1DKO9PXYgGrplQ/ zV52pkv7ReFCPoX8G54XZIJ4pjnkm+RqOXKvUPqX+r118YQZTsF32zM6DjWem7nocerq0qef y1gFz/yplr/1wi+Yg2H/oaPhW8JP6V3vYpG2n5h2ztBx1XlXkYbFYXMe/ttmlXL+/o9ThjYX JqZ05awMU2Ipzkg01GIuKk4EAFs/itZNAgAA Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert mt9p031 sensor bindings to yaml schema. Also update the MAINTAINERS entry. Although input-clock-frequency and pixel-clock-frequency have not been definded as endpoint propierties in the textual bindings, the sensor does parse them from the endpoint. Thus move these properties to the endpoint in the new yaml bindings. Signed-off-by: Stefan Riedmueller --- .../bindings/media/i2c/aptina,mt9p031.yaml | 92 +++++++++++++++++++ .../devicetree/bindings/media/i2c/mt9p031.txt | 40 -------- MAINTAINERS | 1 + 3 files changed, 93 insertions(+), 40 deletions(-) create mode 100644 Documentation/devicetree/bindings/media/i2c/aptina,mt9p= 031.yaml delete mode 100644 Documentation/devicetree/bindings/media/i2c/mt9p031.txt diff --git a/Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yam= l b/Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml new file mode 100644 index 000000000000..1531ecd1ed95 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml @@ -0,0 +1,92 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/aptina,mt9p031.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Aptina 1/2.5-Inch 5Mp CMOS Digital Image Sensor + +maintainers: + - Laurent Pinchart + +description: | + The Aptina MT9P031 is a 1/2.5-inch CMOS active pixel digital image sensor + with an active array size of 2592H x 1944V. It is programmable through a + simple two-wire serial interface. + +properties: + compatible: + enum: + - aptina,mt9p031 + - aptina,mt9p031m + + reg: + description: I2C device address + maxItems: 1 + + reset-gpios: + maxItems: 1 + description: Chip reset GPIO + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + additionalProperties: false + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + input-clock-frequency: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 6000000 + maximum: 96000000 + description: Input clock frequency + + pixel-clock-frequency: + $ref: /schemas/types.yaml#/definitions/uint32 + maximum: 96000000 + description: Target pixel clock frequency + + bus-type: + const: 5 + + bus-width: + const: 12 + + pclk-sample: + default: 0 + + required: + - input-clock-frequency + - pixel-clock-frequency + +required: + - compatible + - reg + - port + +additionalProperties: false + +examples: + - | + i2c0 { + #address-cells =3D <1>; + #size-cells =3D <0>; + + mt9p031@5d { + compatible =3D "aptina,mt9p031"; + reg =3D <0x5d>; + reset-gpios =3D <&gpio=5Fsensor 0 0>; + + port { + mt9p031=5F1: endpoint { + input-clock-frequency =3D <6000000>; + pixel-clock-frequency =3D <96000000>; + }; + }; + }; + }; + +... diff --git a/Documentation/devicetree/bindings/media/i2c/mt9p031.txt b/Docu= mentation/devicetree/bindings/media/i2c/mt9p031.txt deleted file mode 100644 index cb60443ff78f..000000000000 --- a/Documentation/devicetree/bindings/media/i2c/mt9p031.txt +++ /dev/null @@ -1,40 +0,0 @@ -* Aptina 1/2.5-Inch 5Mp CMOS Digital Image Sensor - -The Aptina MT9P031 is a 1/2.5-inch CMOS active pixel digital image sensor = with -an active array size of 2592H x 1944V. It is programmable through a simple -two-wire serial interface. - -Required Properties: -- compatible: value should be either one among the following - (a) "aptina,mt9p031" for mt9p031 sensor - (b) "aptina,mt9p031m" for mt9p031m sensor - -- input-clock-frequency: Input clock frequency. - -- pixel-clock-frequency: Pixel clock frequency. - -Optional Properties: -- reset-gpios: Chip reset GPIO - -For further reading on port node refer to -Documentation/devicetree/bindings/media/video-interfaces.txt. - -Example: - - i2c0@1c22000 { - ... - ... - mt9p031@5d { - compatible =3D "aptina,mt9p031"; - reg =3D <0x5d>; - reset-gpios =3D <&gpio3 30 0>; - - port { - mt9p031=5F1: endpoint { - input-clock-frequency =3D <6000000>; - pixel-clock-frequency =3D <96000000>; - }; - }; - }; - ... - }; diff --git a/MAINTAINERS b/MAINTAINERS index a61f4f3b78a9..33dd81237a91 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12635,6 +12635,7 @@ M: Laurent Pinchart L: linux-media@vger.kernel.org S: Maintained T: git git://linuxtv.org/media=5Ftree.git +F: Documentation/devicetree/bindings/media/i2c/aptina,mt9p031.yaml F: drivers/media/i2c/mt9p031.c F: include/media/i2c/mt9p031.h =20 --=20 2.25.1