Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3391943imw; Mon, 11 Jul 2022 07:51:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s78bTMz1T+/rdrh9Ev0HoOKXNSCMC0V08zZoA+wpExA14o+pKoQIW6X6OGkZzA1lNI9AzL X-Received: by 2002:a17:907:948a:b0:726:f3d7:c7d6 with SMTP id dm10-20020a170907948a00b00726f3d7c7d6mr19316696ejc.2.1657551073533; Mon, 11 Jul 2022 07:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657551073; cv=none; d=google.com; s=arc-20160816; b=c1yVBErqiTMB+GX6sild77IHlirEPAbD/p7/Vy5S0SIkq80CulT1oiTl8HvChC5iUf 5ZdHKoyE9ZzotrGpX0GdDTqBoct3ctf+snxUbKJapLrPw0axz+Oo9ZbsQunJDoFUtO9D iB82CWrm4Ni1YUKcaCN6Qj4Oketv//JADrfIcH1PyqT4tJ7/23Oc/omCvRBJfbDOIrr7 srSOblj69f3wzukvmlIa7XQhJQxm7FKRZs7iIaTMt+zb2Osxy3xv8bWDY32BNaa4lPi6 UMziS5VStPKBmAuI9kPalbHrp1v/vZ30/HH80/HMxFjwxqgmMge1eqySuAB+EYC1p37a DV/g== 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=bXeQpXRbrH5X43wWagOkIwwhygGaQIFF6qtQ+Z9h8xo=; b=DO5i4nWlFDW9/Mqx5Did7lKNlKsfuiSXZBACLkJmgfTjkVi6TRdtN5IcUSD9odDhZT GRgYe6Bi/2xvVgyN9WlEwSN/I6vudLuglyDoLYpYDM3cuqshXmnzhSd+P9BYZUY/ql94 0CkPHrISdVADcvRvvC3SGiTYT7RlBCacDc+4OZRSyCStEpnyK1MLC4juxzT9AyXnmGrC AiAPzRHwtc9CzDmL3p808k0WJQeGc92QeSTSc2z0Sbw0ixuOtxL46Y3yK+Er1UJmjM7i D/GJeQIx6uHKtrifrwWVtQIbOoNzws43pJ+iD+c1fOWrKl9eR8UoxeZ5BMpTAzuuqGw+ Ftsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=N7HeRO1Y; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p6-20020a170906784600b0072a75a28f6esi10545155ejm.856.2022.07.11.07.50.43; Mon, 11 Jul 2022 07:51:13 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=N7HeRO1Y; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231314AbiGKOl6 (ORCPT + 99 others); Mon, 11 Jul 2022 10:41:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231586AbiGKOlr (ORCPT ); Mon, 11 Jul 2022 10:41:47 -0400 Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 528F010CB; Mon, 11 Jul 2022 07:41:45 -0700 (PDT) Received: by mail-ed1-x529.google.com with SMTP id r18so6525733edb.9; Mon, 11 Jul 2022 07:41:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bXeQpXRbrH5X43wWagOkIwwhygGaQIFF6qtQ+Z9h8xo=; b=N7HeRO1Yvm19znwIzCh5ffaLuZnmb2PEkGhC+hxSVoeSJyjxYUn6MBAl6XKbBxyd9q EGyzOSFn986XUUZS+x6Y2NZjsR3TfIrMCZ3pxbUM/mRHxu9D1Qq+Pksh2z3XSxr7HzWY xHlUFOi/yDNIY6XlsuLe9oBXKkD0Uuz6mZ0yXGRKbV3uqN9vxkoXtw8BrG+sJ0md/Ivo fO++fcV0UqlXsKS0rDdJvfVN0fkT+l+YsHOW8ihaKiud1FvzbqBUoTSKyY1Y8aLt8UGj +a/wjLIXZdlJpZQE2i6/hS32jUIPvIoGwoZkv5iqve3rvRilOsYEHPpOmNpGaGZ24mYc Gxkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bXeQpXRbrH5X43wWagOkIwwhygGaQIFF6qtQ+Z9h8xo=; b=Qw7zt4rMXNQu66u2xIZL/r+hKY8Ovs9ZQI35aXAI0Z0cpEOecA8Tg+1dVj9nSNF1WJ rsPNBUrZqRXS0p1yI87yZXnZV2S/Adu50RinF9kQnUsypY3h/1JfizYGMqgtDNbWaAwF rQxL6n2Y0VNMVQodNY8do/3DrBXHxUuj6nBdhCDXZssvMssA7V+Ki8BaVL06aSqHx/Sk RsQpbYNCCf3jsbmImfinNnb2uxqkVlYInVvHpc1mOBBVjXYAFkdRtRNz9Ahoerivv9r8 QtTSYQUXVnJ4wEE7Xx3zzEV+7FiVu7gJRYB1fW0nobTGZ4mUxLT9dcAtqWRimQOBcdYs 3qvw== X-Gm-Message-State: AJIora9GhyY2zUNunqhMd8J0hdoLUCdIW/Un6sYgJcsBdMLuMOMS6lZV t4WoBGLVkbzBY6dJrOL7PBE= X-Received: by 2002:a05:6402:248c:b0:437:afe7:818b with SMTP id q12-20020a056402248c00b00437afe7818bmr25054824eda.239.1657550503859; Mon, 11 Jul 2022 07:41:43 -0700 (PDT) Received: from localhost.localdomain (89-39-107-113.hosted-by-worldstream.net. [89.39.107.113]) by smtp.gmail.com with ESMTPSA id cm10-20020a0564020c8a00b00436f3107bdasm4461390edb.38.2022.07.11.07.41.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 07:41:43 -0700 (PDT) From: Yassine Oudjana X-Google-Original-From: Yassine Oudjana To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Tianshu Qiu , Bingbu Cao Cc: Yassine Oudjana , Yassine Oudjana , Jacopo Mondi , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] media: dt-bindings: ak7375: Convert to DT schema Date: Mon, 11 Jul 2022 18:40:37 +0400 Message-Id: <20220711144039.232196-2-y.oudjana@protonmail.com> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220711144039.232196-1-y.oudjana@protonmail.com> References: <20220711144039.232196-1-y.oudjana@protonmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: Yassine Oudjana Convert DT bindings document for AKM AK7375 VCM to DT schema format and add an example. Signed-off-by: Yassine Oudjana --- Changes since v1: - Add vendor prefix to DT binding doc file name .../devicetree/bindings/media/i2c/ak7375.txt | 8 ---- .../media/i2c/asahi-kasei,ak7375.yaml | 41 +++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 42 insertions(+), 9 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/i2c/ak7375.txt create mode 100644 Documentation/devicetree/bindings/media/i2c/asahi-kasei,ak7375.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/ak7375.txt b/Documentation/devicetree/bindings/media/i2c/ak7375.txt deleted file mode 100644 index aa3e24b41241..000000000000 --- a/Documentation/devicetree/bindings/media/i2c/ak7375.txt +++ /dev/null @@ -1,8 +0,0 @@ -Asahi Kasei Microdevices AK7375 voice coil lens driver - -AK7375 is a camera voice coil lens. - -Mandatory properties: - -- compatible: "asahi-kasei,ak7375" -- reg: I2C slave address diff --git a/Documentation/devicetree/bindings/media/i2c/asahi-kasei,ak7375.yaml b/Documentation/devicetree/bindings/media/i2c/asahi-kasei,ak7375.yaml new file mode 100644 index 000000000000..22b1251b16ee --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/asahi-kasei,ak7375.yaml @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/asahi-kasei,ak7375.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Asahi Kasei Microdevices AK7375 voice coil lens actuator + +maintainers: + - Tianshu Qiu + +description: + AK7375 is a voice coil motor (VCM) camera lens actuator that + is controlled over I2C. + +properties: + compatible: + const: asahi-kasei,ak7375 + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + ak7375: camera-lens@c { + compatible = "asahi-kasei,ak7375"; + reg = <0x0c>; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index a97fef8c131d..e6accf8bc12b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3063,7 +3063,7 @@ M: Tianshu Qiu L: linux-media@vger.kernel.org S: Maintained T: git git://linuxtv.org/media_tree.git -F: Documentation/devicetree/bindings/media/i2c/ak7375.txt +F: Documentation/devicetree/bindings/media/i2c/asahi-kasei,ak7375.yaml F: drivers/media/i2c/ak7375.c ASAHI KASEI AK8974 DRIVER -- 2.37.0