Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2813437rwb; Fri, 9 Dec 2022 06:40:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf5VuIU0LByRaWPX1wjFpf6SO5sy1jhkUJ9cLHNnj65FuBXCfCwrfP7nnzK1DwcEd9KBXQDe X-Received: by 2002:a05:6a20:3b94:b0:ac:98db:d4cb with SMTP id b20-20020a056a203b9400b000ac98dbd4cbmr7180053pzh.41.1670596829708; Fri, 09 Dec 2022 06:40:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670596829; cv=none; d=google.com; s=arc-20160816; b=rm1Nguq+Cl8/Em3Bqo7X6oUT59ydo0yq41A0Xta9n2DsXo90t+opKxPeO6pJ0tKpPB 9q1BrcbwfkwppWgan1jujFMDQKyjjy//8wQDoGNrgoUxcxddSDmbz6fsf3IqCOiRFliP xuEpuQdyn0PGxQbWcv7joc9t4UnTgJIwkQy3lBg4n/k33xRN0znHuwx/hvZhtILsUD7C T+3KYEFBoAH3hsCOvbOhFbjISwnKwNlihmzuEvecv9jsrbfHiXE+QBlwZaXDcxfxn1yj YYl2modJwawLJ8Aj76tajoGBrRR8tDpwwLdTOoO0zZvILk/C4UgJZEAOQYW68JIayHWf 1cvg== 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=KCCqc2mN6PDwZNJTpNkZ/sMpb25Tt4lXb3t6nfn4XxQ=; b=K1xevIAN2BH10M4GCtvzlp9PEykIm6zSkcdmCrFKKaQTOAP+9hSCzEklzF+kPB+UQs phfoi3N9uIbHp2DYXb41YP2QWpKUK4q/yz1kG3gWytGurB+VSXWYcECKoHolKzOfU7di Mb8GTn03RdDuL//nw24mJgvmlPkxnbQarF+k7ZkJwpe+Z33vQKK/UjVLz4H6InWluDTf 66x27mIL0/Tc/XrYTjDMMJuAcsKRkJKxzsaltFN+rsxjwKrtAMdtQW9qW2einUf4y8Wb LLjO8/dmDqvEDTtXKnP2RXmzvcR630bS4FEU2O683JU7x2LFvmTPJisnkuQ9Pkg3pm3Y dLYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TjvKSMpv; 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 20-20020a630314000000b0047882ff26basi1626189pgd.475.2022.12.09.06.40.19; Fri, 09 Dec 2022 06:40:29 -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=@gmail.com header.s=20210112 header.b=TjvKSMpv; 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 S229909AbiLIOiE (ORCPT + 76 others); Fri, 9 Dec 2022 09:38:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229875AbiLIOiC (ORCPT ); Fri, 9 Dec 2022 09:38:02 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79F2922536; Fri, 9 Dec 2022 06:38:00 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id v7so6593wmn.0; Fri, 09 Dec 2022 06:38:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=KCCqc2mN6PDwZNJTpNkZ/sMpb25Tt4lXb3t6nfn4XxQ=; b=TjvKSMpvEouDWWWllhaB6LIzYAWG8PCYo5x2O6lPpvyx7Fd9I3iu3L994KkNwFIesN 63CLF2zm/7O87FcDOadkUnllJvmPSj+2B7Jy7QmRj3wuzb58xg0zK7tWknmRsuD3qecf f/czNK4hZsGj+4NxsjtnwuuqWuT8tCKaSKA8BdRqGNfD6C98tzNVKSTacZiJThp8pdhR uLJcj2PMWtjaHczK6QswhXzX/tzws7UcwlA5toymcvDeuvYQcuah38xckAbLTcmX8GvP cyOIrTTbfdK7gKj2sIvjO1zWA3e5Vn6hvwe/ScC5wjPBrE46i8+e2qcpI+jIJsWRG+K3 OOgg== 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=KCCqc2mN6PDwZNJTpNkZ/sMpb25Tt4lXb3t6nfn4XxQ=; b=39T0s2ts6LiO+uiHpgq7R7N6wL2Y2G6I+A0ZhBUJKhvKeRA7BKTRMm4Ric12AGPZdt EAEluQgaG/EvSYqEXP+f+vEv3zE1AJ08Nib00rd8DmR/dLNVgXELQL6GyLE3Qnbsn7IM P/BXNEBYGNay19jSRqFv+MN3GaW/tdI0Fo8QBcJk4zjZV626s61K3veaTgzUMJOOJBF5 rzJYfb/ZSmvE3HEAc/zNyBdMqail9ryYD9rrDfXvOH4Al08q14xZ88MCtcRlqjPJjTAY u5laGolB5/Gejlid8X0zATRdUcpdjh79TTpUvkV7ThTSEzLowqy57jEWM25gGLUgaBTz q0Ug== X-Gm-Message-State: ANoB5pmqZPEJRork/sHgoLW9uvzWeic970H+r7J9BtfDvnV5x0K/kEJ6 ldtYO6jeh8sr208/KD5QjoQ= X-Received: by 2002:a05:600c:4fd0:b0:3cf:d367:274d with SMTP id o16-20020a05600c4fd000b003cfd367274dmr5055660wmq.31.1670596678826; Fri, 09 Dec 2022 06:37:58 -0800 (PST) Received: from localhost.localdomain ([95.183.227.98]) by smtp.gmail.com with ESMTPSA id m31-20020a05600c3b1f00b003d1e3b1624dsm9645517wms.2.2022.12.09.06.37.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Dec 2022 06:37:58 -0800 (PST) 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 , Lee Jackson , Christophe JAILLET , Umang Jain , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v3 1/3] media: dt-bindings: ak7375: Convert to DT schema Date: Fri, 9 Dec 2022 17:37:39 +0300 Message-Id: <20221209143741.214242-2-y.oudjana@protonmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221209143741.214242-1-y.oudjana@protonmail.com> References: <20221209143741.214242-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 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 Reviewed-by: Krzysztof Kozlowski Tested-by: Umang Jain --- .../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 997e75dbca5c..08d93513e792 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3224,7 +3224,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.38.1