From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796053052; b=u0U4SDywWaYu6EWDy0uQLpxz3Wy2Uq4NpJQQWgfOZGN+j4OlDObZntljZgDBVXcb5Ebu hWP040IL0GyWFY8/A6JunK1+8sEAEA9MnwBB/bNzhR5dgZtSK9FYThJQO7wClo6oPpN1b Zsy68booH3JRpUjXvQrv4VbtbIgu/2AneWYyR4JIJqRgf33a8nrdmEXGNX/vZIQBIf71S 65bk8AHlim3Urob2dbKuBV0KOizXTrEZn3NqtHjwMoaePE7TjY5gcz0leJshPKu1N1sh1 t+OlMZ0dvNZovPx/XvC6yenVlJtjn0RI1EQ0BmlIzXeCtj/ZAMyCm8I8ofUfuVD7nTg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796053052; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:To:Cc:References: Content-Language:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=pTLn40DgLNIzrw1o2o2iOnL5sbrpyrNIRG3ZW3547bo=; b=m6DRqcnRsp8Y+CELJMJxAMQlzoRsZ//yqvUkr/q426w5/LbmNlAhs60mCAvYm7qxD/Tn 7pC3hHBC3bFJ8XxxzcjP8zRvWxHmWR5Gg5voqIeLOEtX24F34uSVT4CwFi+sQsKbARiQ6 eoa4tjU3G1IHMj3JHiHJbHsc+yygUKEdBFQedAunc1MP2NMozOPMVojAzTsnu4WVuWANM T1alwGbWSnHlYZllEvfrk8dvuCCi45QW2w/3VQ0jglzGdChdfriSH8hYvyEgykOd6ixe0 D0Z2CQyIb+/suJjeHGAarLof2jHqAF1m+WYB3Oz5b/TFIzqGIk4aDgQAaJPq8nE5sKA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass header.d=fairphone.com header.i=@fairphone.com header.a=rsa-sha256 header.s=fair header.b=vABdmpbK; arc=none smtp.remote-ip=209.85.208.50 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E39A606A31C for ; Mon, 30 Nov 2026 15:37:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2E39A606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.a=rsa-sha256 header.s=fair header.b=vABdmpbK Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-6b86fcbd647so16070788a12.1 for ; Mon, 30 Nov 2026 07:37:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1796053049; x=1796657849; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=pTLn40DgLNIzrw1o2o2iOnL5sbrpyrNIRG3ZW3547bo=; b=vABdmpbKjPE9zeXHzQQA1lq0yO8MHCFYs1ySO37yKQOM7pm+AP1yQLVNkPIF5CK17G 3a6KJMmauF3egJQX4yZnenNUCFDnCpYadIHLNGecXSltWfqatkhzEzpc4uL5bc11kSHU CDygrh/tB5wFll58I4UzmnstUUyBn45m5JHWimtuhzmvBG4+o++6Th/Lx+zuJ2KNSh0k qjw1WrQc2+72y/Bb3b7T52R8Ax1SZESfCATxvSAHNz7N/4YR1YC42HYnp3rFNpEe/xkN 2XLrNh7zyzc/fPaH3064d9Iqm0m/zoosVywSS4T1wleSFrLRkECOQ/BnDuNMCPQMphCo 6cJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796053049; x=1796657849; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=pTLn40DgLNIzrw1o2o2iOnL5sbrpyrNIRG3ZW3547bo=; b=gfVe9SHzL+r14ISLZBX7M4b8rES/UvkwS/wMtSWlidmbqFD79zxXdeuxStPbqc+/vR dl5T/5ni8GFldHKRE3B+qgDElECiYe/SRL4ETt4Kq01hSj5dzbeADmVFxk0fU5gg8qff TCv3JtaZ/9iBg6oZQdGjuNBYpRKPqVlDFDZBtw7theHGupDrzjZonvl4iAf6YVtjrSrm qjLZJ0U/Wfbc+8Vqlfs39XoPdGgY4Mm8LQ5s/9h8rDjQe3X3VB03VuJKqqK0UwZdYItK CxPklit4AeSUBeBhSF0OnILd/7MRBLiOz4/Xz6fKN7vZK8euHmC3gYUMlDLAmlkOTB3g toKg== X-Forwarded-Encrypted: i=1; AL+hErEChkJDXr8eNi56wW1iwhzDEFLFC1QsxD9IfA8gRayQx+AjRoncDdHgW8YDLIF+OF7JnHLF+T4rpMZpu6Y=@vger.kernel.org X-Gm-Message-State: APuU4Z8J/cZf3SVP2ebCwvgPR2ht+fo+G2aHRyEqIjDt+M/Jl+YSYawf UMg6x+RtRievaso+clHqhTz/TJq0wlZbdrq19WEckFOa9x1h+dwQ8L7z9wMvt0tsCDo= X-Gm-Gg: AZFdTZc4KtLwQKmNsgS7QaA6bCCySgrqBSJvonNEqEiMOTKooutg6oxJmQTu/Cpn2/N Cw07hOTLMmqR2x83YPSRf7z2BgdSQW7ZugAHEmbviRoTza2XTLIlxkcwllQonWWkemwGOpHVibA BDMntfYhL6ltyEioDxzGH8OgTMjeKwL8SH1T8wQX/blBBSBXTGWXv0tXsEwYBSFCsm1mJfWZlE2 Ev5tRp+u0uh5Xc2Xy8EubNPIytKPd0SftWQ3SkpDVp1ADkcF5lGQIdR84xmS/e2ekq6NzOXSJc8 4H61a8L9dtZAkomR1yX7b57ZD8aU7qXgrhDDZD5d6t+xMIUZVDEKGqfyqftHr6vBeP5EzStXeV2 GlYYfSfkQZunEqOHTJkAfsz8xtF7JeR6VCcPBF47H7MM4x2chbuHmCBXlWt9UyxmX0DsWOpTizE FHeOjylq6L5oQJTNoKWC5g1AHTeNU45BtBRnBDByRl4pyZP6F/ooQ0kcYoRUXr7nvv45LnQCoaO gQgbk+GzDzBbkqsn5ZbDBtF4z4jI8IZBfjBiIaCGg8HiLOHL8IokNhY5l3+vQAfgQkkm39BPvaO UGClk70gHTR4RsQBBp9Z0vdtOCkbstBXtvXtnoEjAnKeUhDXU0aNvlpiSwFPXSuKE0YWPWXvNNN NuQP9D/dmHhOQIbaUXeBk759tN59ZZQoKAWCuBCXiqmrYluM= X-Received: by 2002:aa7:d34a:0:b0:6b7:834c:ebaf with SMTP id 4fb4d7f45d1cf-6ba1fb13207mr17174256a12.12.1796053049429; Mon, 30 Nov 2026 07:37:29 -0800 (PST) Received: from [172.16.220.224] (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6ba9b131d3bsm11573175a12.34.2026.11.30.07.37.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Nov 2026 07:37:29 -0800 (PST) Message-ID: <0cbd841d-dbc0-4937-b9fe-9f6316cc48d3@fairphone.com> Date: Mon, 30 Nov 2026 16:37:28 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/3] dt-bindings: media: i2c: dw9800: Redocument DW9800K To: Krzysztof Kozlowski Cc: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?Q?Andr=C3=A9_Apitzsch?= , Luca Weiss , Daniel Scally , Sakari Ailus , Bjorn Andersson , Konrad Dybcio , Hans Verkuil , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, stable@vger.kernel.org References: <20261119-b4-dw9800k_cleanup-v4-0-df26c431595e@fairphone.com> <20261119-b4-dw9800k_cleanup-v4-1-df26c431595e@fairphone.com> <20261121-judicious-vengeful-ant-f9bcb1@quoll> Content-Language: en-US From: Griffin Kroah-Hartman In-Reply-To: <20261121-judicious-vengeful-ant-f9bcb1@quoll> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Krzysztof, On 11/21/26 11:43, Krzysztof Kozlowski wrote: > On Thu, Nov 19, 2026 at 10:51:23AM +0100, Griffin Kroah-Hartman wrote: >> The DW9800K's properties are too different to justify sharing the same >> bindings file as the dw9719, Create a separate bindings documentation >> for the Dongwoon Anatech DW9800K with its updated properties. >> >> More specifically: >> >> The DW9800K did not share the SAC1 and SAC6 modes >> that the DW9719 used. >> >> Description of vcm-prescale does not match the calculations labeled in >> the DW9800K datasheet for how clock diving rate is computed. >> >> New property timing-control introduced to offer more fine-tuned dividing >> options available to the DW9800K. >> >> Signed-off-by: Griffin Kroah-Hartman >> --- >> .../bindings/media/i2c/dongwoon,dw9719.yaml | 1 - >> .../bindings/media/i2c/dongwoon,dw9800k.yaml | 91 ++++++++++++++++++++++ >> 2 files changed, 91 insertions(+), 1 deletion(-) >> >> diff --git a/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9719.yaml b/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9719.yaml >> index 8e8d62436e0d0c4f9af9e52262b23881abd37cec..38db0764c0f70ad49295dcddc182b7e100a68b29 100644 >> --- a/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9719.yaml >> +++ b/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9719.yaml >> @@ -21,7 +21,6 @@ properties: >> - dongwoon,dw9718s >> - dongwoon,dw9719 >> - dongwoon,dw9761 >> - - dongwoon,dw9800k >> >> reg: >> maxItems: 1 >> diff --git a/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9800k.yaml b/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9800k.yaml >> new file mode 100644 >> index 0000000000000000000000000000000000000000..99f3b506cf12c63ddef1e3d18fd59179a5e7800c >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9800k.yaml >> @@ -0,0 +1,91 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id: http://devicetree.org/schemas/media/i2c/dongwoon,dw9800k.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Dongwoon Anatech DW9800K Bi-Direction Voice Coil Motor (Bi-VCM) Controller >> + >> +maintainers: >> + - Luca Weiss >> + - Griffin Kroah-Hartman >> + >> +description: >> + The Dongwoon DW9800K is a single 10-bit digital-to-analog converter with >> + +-130 mA output current sink capability, designed for linear control of >> + bi-directional voice coil motors (Bi-VCM) in camera lenses. This chip >> + provides a Smart Actuator Control (SAC) mode intended for minimizing >> + mechanical vibration. >> + >> +properties: >> + compatible: >> + enum: >> + - dongwoon,dw9800k >> + >> + reg: >> + maxItems: 1 >> + >> + vdd-supply: >> + description: VDD power supply, can range from 2.3V to 4.8V >> + >> + dongwoon,sac-mode: >> + description: > >> + Slew Rate Control mode to use: direct, LSC (Linear Slope Control) or >> + SAC2-SAC5 (Smart Actuator Control). >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + enum: >> + - 0 # Direct mode >> + - 1 # LSC mode >> + - 2 # SAC2 mode (operation time# 0.48 x Tvib) >> + - 3 # SAC3 mode (operation time# 0.72 x Tvib) >> + - 4 # SAC4 mode (operation time# 1.20 x Tvib) >> + - 5 # SAC5 mode (operation time# 1.64 x Tvib) > > That's ABI break, although you explained the reasons, but ABI was > released and I think this can easily support older ABI while fixing > things: simply use old values without SAC1 and SAC6. > OTOH, how did DTS work with value =2 (so SAC1) and =7 (SAC6)? > > >> + default: 3 >> + >> + dongwoon,vcm-prescale: >> + description: >> + Indication of VCM internal clock dividing rate select, as one multiple >> + factor to calculate VCM ring periodic time Tvib. >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + enum: >> + - 0 # Dividing Rate - 2 >> + - 1 # Dividing Rate - 1 >> + - 2 # Dividing Rate - 1/2 >> + - 3 # Dividing Rate - 1/4 >> + - 4 # Dividing Rate - 8 >> + - 5 # Dividing Rate - 4 >> + default: 1 >> + >> + dongwoon,timing-control: >> + description: >> + In LSC mode (252 + value * 4) * divider value in microseconds >> + In SAC mode (6.3 + value * 0.1) * divider value in milliseconds > > This should use property units, so microseconds. > > Best regards, > Krzysztof I dont have time to finish the next revision yet, but is this updated bindings more in line with your perspective? dongwoon,sac-scheme: description: > Slew Rate Control mode to use: direct, LSC (Linear Slope Control) or SAC2-SAC5 (Smart Actuator Control). $ref: /schemas/types.yaml#/definitions/string enum: - direct - lsc # (operation time# Tvib) - sac2 # (operation time# 0.48 x Tvib) - sac3 # (operation time# 0.72 x Tvib) - sac4 # (operation time# 1.20 x Tvib) - sac5 # (operation time# 1.64 x Tvib) dongwoon,vibration-period-us: description: Vibration period of the actuator (Tvib). minimum: 1575 maximum: 100800 Thanks, Griffin