From patchwork Thu Sep 1 07:14:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 602602 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAC3AECAAD2 for ; Thu, 1 Sep 2022 07:15:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233557AbiIAHPP (ORCPT ); Thu, 1 Sep 2022 03:15:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233445AbiIAHOx (ORCPT ); Thu, 1 Sep 2022 03:14:53 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81E8B125EB4 for ; Thu, 1 Sep 2022 00:14:43 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id z20so16953474ljq.3 for ; Thu, 01 Sep 2022 00:14:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=km6NXmC+Flc6gi2HFcUWUmGr8CF+d6lMjhuuuaPJIfU=; b=fDN9jO8cTU7aN1SfkFkwyyPttQDO5E+4SyCP3K2eQ1GgBT1DpRR0syK5hKNVB2/BK+ nvA+iaAmpn5yUBsFbTCyOgOjsi1CVRHo0QPMfJdKgC6dJIlK7Xa6McnIQcPl4N54a5eF YUw2/iMb0sZ6QcLLhXL7bjR7Sj3WWlgyNosoc+L0+9po6MSV88ntL8eLUHe9Y9KPZCLh yfbLCNGnSZKsJiFFMuCacZRz+yKkxAXeWt31v6H8CKhsyy7ZVqqmGeUjudQsIxbKq0ch u5q83gwlXotABbaP9tW2zYlbcSQbZsYVmvBZuZREWHxmOAf9ry/XRD1PhW79nhy1h2i1 Wx+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=km6NXmC+Flc6gi2HFcUWUmGr8CF+d6lMjhuuuaPJIfU=; b=F9boRcW7xSc1u1Vii+Akp0nttR3VEiAf9WcawUHNQaMlUPv6bYM9YTs0N2wtrqHFZW JL4NoQldkrgpz2kI9grQ7OcwIA3RPMOutwBb2qZqEFCO0yAYgXeu1tKz6jzGY6LBtKku 1BXsJiZO+g8uZ+kCkZqoAPpTlYQ267C6Hvpyzvfafcia1XQcuHDAh7/zcENf/wlePQrR WToDOzIPow2B1Tq2c6RWroCzm/Orl7vmV2ngOw8WSvN/MLRS5fbOtuu8VHBCeJQE/aoJ Y+UthjaJuQKxM9TMrpo+YMVs7DRRpNZFprMD72RqTOjrh5+wc5ZePgXHIipoyLKVJMoq 3oig== X-Gm-Message-State: ACgBeo2d69Krg4nEcAf5DQwhCBRSSJI4b8i2458WL0q3Au634U2J4Drz TYgb7DNoTw//iq2stPQZyNY3SQ== X-Google-Smtp-Source: AA6agR7nfUvJaMyZAykfOJ1hwec2TsfAl7ZRolDYILrbpPNf7QefeokqkbM+QKYcZ2eZmBCiUwjwzQ== X-Received: by 2002:a2e:9e11:0:b0:268:c7d0:9662 with SMTP id e17-20020a2e9e11000000b00268c7d09662mr137209ljk.309.1662016481664; Thu, 01 Sep 2022 00:14:41 -0700 (PDT) Received: from krzk-bin.. (balticom-73-99-134.balticom.lv. [109.73.99.134]) by smtp.gmail.com with ESMTPSA id 11-20020ac2482b000000b00492e2918a5asm1229403lft.269.2022.09.01.00.14.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Sep 2022 00:14:40 -0700 (PDT) From: Krzysztof Kozlowski To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Sakari Ailus , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v2] media: dt-bindings: dongwoon,dw9714: convert to dtschema Date: Thu, 1 Sep 2022 10:14:37 +0300 Message-Id: <20220901071437.17637-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Convert Dongwoon Anatech DW9714 camera voice coil lens driver to DT schema and extend the bindings with vcc-supply (already used by driver) and powerdown-gpios (based on datasheet, not used by the driver). Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Changes since v1: 1. Update path in Maintainers --- .../bindings/media/i2c/dongwoon,dw9714.txt | 9 ---- .../bindings/media/i2c/dongwoon,dw9714.yaml | 47 +++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 48 insertions(+), 10 deletions(-) delete mode 100644 Documentation/devicetree/bindings/media/i2c/dongwoon,dw9714.txt create mode 100644 Documentation/devicetree/bindings/media/i2c/dongwoon,dw9714.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9714.txt b/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9714.txt deleted file mode 100644 index b88dcdd41def..000000000000 --- a/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9714.txt +++ /dev/null @@ -1,9 +0,0 @@ -Dongwoon Anatech DW9714 camera voice coil lens driver - -DW9174 is a 10-bit DAC with current sink capability. It is intended -for driving voice coil lenses in camera modules. - -Mandatory properties: - -- compatible: "dongwoon,dw9714" -- reg: I²C slave address diff --git a/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9714.yaml b/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9714.yaml new file mode 100644 index 000000000000..66229a3dc05d --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9714.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/dongwoon,dw9714.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Dongwoon Anatech DW9714 camera voice coil lens driver + +maintainers: + - Krzysztof Kozlowski + +description: + DW9174 is a 10-bit DAC with current sink capability. It is intended for + driving voice coil lenses in camera modules. + +properties: + compatible: + const: dongwoon,dw9714 + + reg: + maxItems: 1 + + powerdown-gpios: + description: + XSD pin for shutdown (active low) + + vcc-supply: + description: VDD power supply + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + camera-lens@c { + compatible = "dongwoon,dw9714"; + reg = <0x0c>; + vcc-supply = <®_csi_1v8>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index ebc140e71b49..8573e3810688 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6233,7 +6233,7 @@ M: Sakari Ailus L: linux-media@vger.kernel.org S: Maintained T: git git://linuxtv.org/media_tree.git -F: Documentation/devicetree/bindings/media/i2c/dongwoon,dw9714.txt +F: Documentation/devicetree/bindings/media/i2c/dongwoon,dw9714.yaml F: drivers/media/i2c/dw9714.c DONGWOON DW9768 LENS VOICE COIL DRIVER