From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 400332E2F17 for ; Mon, 11 Aug 2025 21:31:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754947904; cv=none; b=aKNP+oHNv/2C3wN8l5l5YlXQKiwGW9jWhejtyaQbTgmBmwjmI7ChO3AlENceBAWbEyLtuE5f+gYxS2SaH9TBfxgDMD82EdPHMAFY3so7LbdSVEt6m3N2b+AAgsBoXcZsS8jM7fP6tRL+KC6pEOYzVGtTM8CmZLWnYU6H0Orcs80= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1754947904; c=relaxed/simple; bh=mH1KMnGR+XUrI8L0FCKy07QnW+kkqMzlPl8BlW5s7Xg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=h4LaDWozr0JtrvQtomBel/tkeNv0hTPNyG8o+eYag0PNqvCsr32/Tmox2I3OkvnUo10Y8a49waJbH/cP1A0xN9nRlce5oBmnviBozsE4LA3Iv0CzV0cR8VN32W6zZToHH+JjxoleNmRjtv3lC1hIGLqqjGofK0jv02Ay1ZN6D0M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pinefeat.co.uk; spf=pass smtp.mailfrom=pinefeat.co.uk; dkim=pass (2048-bit key) header.d=pinefeat.co.uk header.i=@pinefeat.co.uk header.b=fHPznUfg; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pinefeat.co.uk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pinefeat.co.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pinefeat.co.uk header.i=@pinefeat.co.uk header.b="fHPznUfg" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-45994a72356so38466435e9.0 for ; Mon, 11 Aug 2025 14:31:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pinefeat.co.uk; s=google; t=1754947899; x=1755552699; darn=vger.kernel.org; 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=nhHE/8QAww8bZTkCasgOGL4wfh1aWV6rClxlRHnPYl4=; b=fHPznUfg087tFX79GvSm5ACDcYxGtLVV7priFLc6SLndYaww0u8EyApYltyac7/RZK Spi1aawtayyELb+pgt1DLm8QVpXS4KbFZPujmXQhCm9IZSClCkAjImQ/QBS6j98AMthk H+lqmSi8V7BzUlVTbKZjbawKaK9CGKlOP3Gdlm3ui0IokAUiiPR03PG6EnnV3MhOWZd/ PpO8yDnF2+/Woz0Go3WHOpd0CIO7cru2CL0sAoqB7Sjo7TRkMfCCVst37NDqpzuLR7Ry hMwHmX7J8zP3mkYdSvLlmBF2Ypgww9p8N8EiffZe1ApfTZeKnKtnveWI1QDLhxpwcKYd fJgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754947899; x=1755552699; 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=nhHE/8QAww8bZTkCasgOGL4wfh1aWV6rClxlRHnPYl4=; b=AjNlGYGJPkqzkiTvFkKsSl4Ujsll+fzEvUhmXqFRYgCpm4dDoVQ3oLFrg7YzB01Lo5 pFzitN3reXlkQtYY4KoS3eMB/w3TrP4XVpFa0m9cAsUNZ/L1s16FQTc17NeA214mDzkP T8rueBhs1XbjQj5UtVSZgFPIZqVGl8rJ4p1NxdBAp6x30cvfSHi8AC6QRFVqDPInXfZd QX9t2SThF3pOTUf+yDJXoOnqAXtb+8RheGZssKcW8A2m1ugmps0dUgZftPcJ+jDAOLp+ hMoN0eqT0VwaMfrgBckPouOXVvG4yM4gVysWv8ipt07QIB3f3ZhwhfdDnShL3JrlDjxh IKtg== X-Gm-Message-State: AOJu0Ywn1ku7XQQcWiYowKozSs4vWAomPlG+DsWObGxCDDEQyx0Sho5a yus6q7ABQ3TP0bTG4aXvvNSzxRIUunteA14nAx+VonZxXYRcv74hRxLO4gO22ZjLzEc= X-Gm-Gg: ASbGncveHGUXr564WVnWkq2IvL1m0rr/u3BTdPN5pb7e1EVTViZtLjgNxEYZez2LycG 8Ac6oQ8T+M0oRYdxwIUicL16HE249pI1K2bs39cn038rcs7yaLA901NOk+3IFzTRbu9sHWO90qm lvZ6fxon4SWGI4jPCB6d2tRS2HUtANDAHl7tyFGqoJ/Vd16png74kZ5l/D009IUTVsaT5FDludV ZV2ad8ZoNj3aXmeZMnt2ON83+r04+02rAALEcoX/LpaxOibtI62YxROOCKVVtwoydFf3dt6AIqr yvIlNSjK0MhnKpJc09+EHf8Vtp4v94/QEM62Ze+AtgZJVV1wPp/CMiLNVoBTKWP5Ws2tkvmREh+ /7PN1m6DISHACBJHB7r4gtm6MXphuklFcAJU0H9kapbz8Z13XN5n9LWMtI2s= X-Google-Smtp-Source: AGHT+IF3sgOQh/DoU/bwRIxmb6kfg2ojWEPdxg5wHP7MJpFbD2YwAp8jeRfHrHkI1kRvJtz4JYjjSQ== X-Received: by 2002:a05:600c:47d4:b0:459:e002:8b1e with SMTP id 5b1f17b1804b1-45a10dd53ebmr5752515e9.13.1754947898989; Mon, 11 Aug 2025 14:31:38 -0700 (PDT) Received: from asmirnov-G751JM.Home ([2a02:c7c:b28c:1f00:f8cb:3493:2eed:8d11]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b79c485444sm42397387f8f.66.2025.08.11.14.31.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Aug 2025 14:31:38 -0700 (PDT) From: Alexander Smirnov X-Google-Original-From: Alexander Smirnov To: mchehab@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: devicetree@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Aliaksandr Smirnou Subject: [PATCH v2 1/2] dt-bindings: Pinefeat cef168 lens control board Date: Mon, 11 Aug 2025 22:31:01 +0100 Message-Id: <20250811213102.15703-2-aliaksandr.smirnou@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250811213102.15703-1-aliaksandr.smirnou@gmail.com> References: <20250811213102.15703-1-aliaksandr.smirnou@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Aliaksandr Smirnou Add the Device Tree schema and examples for the Pinefeat cef168 lens control board. This board interfaces Canon EF & EF-S lenses with non-Canon camera bodies, enabling electronic control of focus and aperture via V4L2. Signed-off-by: Aliaksandr Smirnou --- .../bindings/media/i2c/pinefeat,cef168.yaml | 52 +++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + MAINTAINERS | 6 +++ 3 files changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/pinefeat,cef168.yaml diff --git a/Documentation/devicetree/bindings/media/i2c/pinefeat,cef168.yaml b/Documentation/devicetree/bindings/media/i2c/pinefeat,cef168.yaml new file mode 100644 index 000000000000..3563fb1d46db --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/pinefeat,cef168.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (c) 2025 Pinefeat LLP +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/pinefeat,cef168.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Pinefeat cef168 lens driver + +maintainers: + - Aliaksandr Smirnou + +description: | + Pinefeat produces an adapter designed to interface between + Canon EF & EF-S lenses and non-Canon camera bodies, incorporating + features for electronic focus and aperture adjustment. The cef168 + circuit board, included with the adapter, provides a software + programming interface that allows control of lens focus and + aperture positions. This driver enables controlling the lens + focus and aperture via the V4L2 (Video4Linux2) API. + +properties: + compatible: + enum: + - pinefeat,cef168 + + reg: + maxItems: 1 + + vcc-supply: + description: VDD 3v3 power supply + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + camera-lens@d { + compatible = "pinefeat,cef168"; + reg = <0x0d>; + vcc-supply = <&vdd_3v3_reg>; + }; + }; + +... diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 77160cd47f54..dab27f769b0a 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml @@ -1195,6 +1195,8 @@ patternProperties: description: Picochip Ltd "^pine64,.*": description: Pine64 + "^pinefeat,.*": + description: Pinefeat LLP "^pineriver,.*": description: Shenzhen PineRiver Designs Co., Ltd. "^pixcir,.*": diff --git a/MAINTAINERS b/MAINTAINERS index fe168477caa4..811c6a150029 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -19985,6 +19985,12 @@ S: Supported F: Documentation/devicetree/bindings/input/pine64,pinephone-keyboard.yaml F: drivers/input/keyboard/pinephone-keyboard.c +PINEFEAT CEF168 LENS DRIVER +M: Aliaksandr Smirnou +L: linux-media@vger.kernel.org +S: Supported +F: Documentation/devicetree/bindings/media/i2c/pinefeat,cef168.yaml + PLANTOWER PMS7003 AIR POLLUTION SENSOR DRIVER M: Tomasz Duszynski S: Maintained -- 2.34.1