From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 D195E403AE7 for ; Wed, 10 Jun 2026 11:10:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781089845; cv=none; b=XHord/6oVIuGf+5o8bMeNTuXAck6CFBdQHr0DNTDcS8pQvYY0hr0o0iaQgOWfU8IG6uftVwRMNduSbKVDWvqDJqzxMBTaP4kC2bmfCrJuLMWKM2Je4E7lUcw7y3Ye8a/H+ifrWTFwa96kHmgV5aNIu4TW6cu8NF2dgNl7sjguWs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781089845; c=relaxed/simple; bh=VWR+UfxFqG4y2XgGqNFvBLcEeTwzUQd31HSReE2GSKc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ATMJ6K1GFXWnNZXzPVnS6vLtyy7vqB0pJNGotdaP6eFxuIotrDAbx6CesOQV61A/vXlltyfOD39djCVyBmui1SAmX2n4kR6Fg600Oo4Pnv3B31NxndAwN2L6baCjT8p7nHRicB1+wl/WJ/IsLRvNgqvlAzk/xk1wjEaahIkRjjI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=lA+7wizK; arc=none smtp.client-ip=209.85.214.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lA+7wizK" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-2c0c3184c71so51048915ad.1 for ; Wed, 10 Jun 2026 04:10:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781089838; x=1781694638; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=8pl4zL6FnCSl3D9yZvxGpHfWt8VIgNStkRi0gondAh0=; b=lA+7wizKLOBE7xC5N2txvm+9pJKXSjTWBnVrKVaRtyww+2BmSO4v+sMlIKm6OmVPyM coMKzYjgGe8eBWKEPjrRgbTFAVJkwSswW8Wbu0Wcb2a/cxSnqduaeVSNpxV3bum215rJ Mvqjbzhx1SC/G6ZguL6waYGQZWmLU8my3q+VXtnmYWPJ6/F4nAeVsw2tXLBU0sqnZVyb UnQSW0uOefbDPGDkbmd2bkY+4alWYC0a77CZyd8S5DQyxlPRkTtiPo6wxXk/KTmscl5w Stg2gv3GEOVWYbxMsyIzmzH2O2GZ7Z01EBZ3wAvhpRa1cedFfZXZ6EA/6QWjKf1F4kB/ Fk3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781089838; x=1781694638; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=8pl4zL6FnCSl3D9yZvxGpHfWt8VIgNStkRi0gondAh0=; b=CZCeoKz3896Y93drkKpoubfW13Fjn2ONl3PD1iihzGceaVsmyotPV036kMgaRZKNtY fwf3Lf2BJf8CsyVJoUOnEd7HxLhs7HXo3Ea44BNOZOBPbE3KUqQjMeiORRY4fC6WR5oQ w2ynVnCf41tOaUe4vnuU9MWC9om3+POLUsSAYy8jLGZAFxcB/3JcsGErjv98uGpf7DHz sK2xe7Qoxola10ahaRpA0Egly0JZDMYsZFFTPkvtfLBa2QKAh5XKPv5tEgUuTGd51ZL+ dRNynUjaGoP2kSNHS/UlJwkRM/xEIWJ7c6GfabtELRMWR9t+JKuwk7zQ0rXZ+I4IoLAV wJOA== X-Forwarded-Encrypted: i=1; AFNElJ/AbHUfSeNKxSg1wPIMMmyUaNqA3Sf0V0V2XpvyeMJUh/dPHmdaYHVIlXGqIcbIT8R/d1XrAn8xqcj1Nso=@vger.kernel.org X-Gm-Message-State: AOJu0YxDKrKPh9evHWI0+e+tDMkvERjwmo62KKcgTvH6NFLjvcxgTW95 Gm7cgJMdWceCD9ibEuiWyXu6sBV/+tudWI1mbNxCpXhJDy318ypL6CkM X-Gm-Gg: Acq92OFXT+wNlp3VUkljDbBagDhqDWhTu1mezrDVQ6BLzydxOsWQNb+w9sp7De8feWF veLsEeqA/j3yFZgr9n1x2ts4oSy772jkvyu4wHGKGRgknjDhrtJyWLB/TNq3DQXQHEV/UR+qB4u RsuV6cbk0UOGNuJt3uRV/aoJRXG5wlBkSq2KrtTEQkdzgkmGm/KYy59aDrcRX0hGXyWk4Pxm6q6 ZXCF25DhCoU6yoo+qj2TrF+JFQXSuppNgw+uckbQYAsp4w0nlwcO0jN7hv5kXsUpkFdfb0nZnxU tZWEWzqGU/Xi4sEyRZqtj8he2svC/iQMmuaz++llQrl9SLS/6dVMUGJC3vv5g6xdT9CJu1NYMp/ FTf1fz56NwmCeKweCG+E0YbDLHArudVAyt4TCOumsm+o3ohFKQ9sqKLwTMxGOo8afnnoK0ZlHqD BdVHVzKaA6D7dY9Wfce7k3ndTZCau4op9mw1bsMX9/O2jR7Bfe X-Received: by 2002:a17:903:1aed:b0:2c1:69cb:4423 with SMTP id d9443c01a7336-2c1e7e527bdmr282301365ad.14.1781089837945; Wed, 10 Jun 2026 04:10:37 -0700 (PDT) Received: from [127.0.1.1] ([2409:40f4:4111:52c8:138e:8096:a8df:e68b]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c164f6d37esm317175205ad.9.2026.06.10.04.10.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2026 04:10:36 -0700 (PDT) From: Ramshouriesh Date: Wed, 10 Jun 2026 16:39:27 +0530 Subject: [PATCH 2/9] media: dt-bindings: Add Himax HM1092 NIR sensor Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260610-a14-himax-hm1092-v1-2-0c9907da47ed@gmail.com> References: <20260610-a14-himax-hm1092-v1-0-0c9907da47ed@gmail.com> In-Reply-To: <20260610-a14-himax-hm1092-v1-0-0c9907da47ed@gmail.com> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mauro Carvalho Chehab , Bryan O'Donoghue , Vladimir Zapolskiy , Loic Poulain , Bryan O'Donoghue , Vinod Koul , Neil Armstrong Cc: Aleksandrs Vinarskis , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-phy@lists.infradead.org, Ramshouriesh X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3984; i=rshouriesh@gmail.com; h=from:subject:message-id; bh=VWR+UfxFqG4y2XgGqNFvBLcEeTwzUQd31HSReE2GSKc=; b=owEBbQKS/ZANAwAKARWVil4RHAXeAcsmYgBqKUYNQ0lDIYKRKLGlAdAaa7mRH+rmFxzbk0An/ +RFXhSngMyJAjMEAAEKAB0WIQS/0QuzNKVfvUNlNAkVlYpeERwF3gUCailGDQAKCRAVlYpeERwF 3vn1EACmNQOTttnHuckeeKdueEVCHPwLA9ghWtrqwfH/g7yudqQ4EM0nI2bRq+SuH6BbXS94Oys /7pgxfpYKk6w2EFHM9BnrQxaGrfTfCEuP1fXmc4VJ9tjOY+PImPr8DgLJ+xYEGdshXN0jRsjiJn rEhgmQyHt5gUj2yDPAw1MFheNT3WOXoI2Ka0ZuE2O9LcW/pPM0eXa06veZM8uBPHz2FZ9PAEbL/ s95Aqz8vzDRzj6VZqpqkuAKnZXFb9KVQPzvM6nvxs7c5c6UKBzKKz+b20YFi1Utvcmn4ruGvwAi K0NU3UqPa7XAR2RokYFn8Roxa0ht5eFcsoOXAbaj8OrrBm9YvjN+hHeRM3SpNggHvmxUG9+OrK/ SPRRXI8TCZyDQ2bALoGmxlde9tCo5+lAAzz7s/NT78KBLBClDmMuS1/6luPJjpuT6babxRLbmdg i+1FvoFDvlGTJDwzrJPr+nzyPELq4Bw5blBniKcQWSe0VFwG31/W0Htf8xKUjyK1+/Rx2lP8oCT 2dRvK9tfb5dDpjdrm7U3hEgwhu4sNgmD83l2YoEzeJWFVVHCr/oV1YavvYWS0E9/Wsy/IuLMbeS 1dV+NsYpca1XVMKEdkYKT0czF5whnKZ113PTp3wx6ti1iO7/JzWfzIgWy3KhontbvoDbEXwb379 KC8OILPPm+CDiBA== X-Developer-Key: i=rshouriesh@gmail.com; a=openpgp; fpr=BFD10BB334A55FBD4365340915958A5E111C05DE Add a dt-binding schema for the Himax HM1092 1MP monochrome near-infrared CMOS sensor, used as the face-authentication IR camera on Snapdragon X laptops such as the ASUS Zenbook A14. The sensor streams 10-bit RAW over 1 or 2 MIPI CSI-2 data lanes. The optional generic "leds" property (video-interface-devices.yaml) associates an IR illuminator flash LED with the sensor, which the driver strobes while streaming. Signed-off-by: Ramshouriesh --- .../bindings/media/i2c/himax,hm1092.yaml | 118 +++++++++++++++++++++ 1 file changed, 118 insertions(+) diff --git a/Documentation/devicetree/bindings/media/i2c/himax,hm1092.yaml b/Documentation/devicetree/bindings/media/i2c/himax,hm1092.yaml new file mode 100644 index 000000000000..085001493a20 --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/himax,hm1092.yaml @@ -0,0 +1,118 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/i2c/himax,hm1092.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Himax HM1092 Monochrome NIR Sensor + +maintainers: + - Ramshouriesh + +description: + The Himax HM1092 is a 1 megapixel monochrome near-infrared CMOS image + sensor with a MIPI CSI-2 interface, commonly used as the IR camera for + face authentication on laptops. It supports 10 bit RAW output at + 1288x728 over 1 or 2 CSI-2 data lanes. An optional infrared + illuminator LED may be associated with the sensor through the generic + "leds" property; the driver strobes it while the sensor is streaming + so the scene stays lit for IR capture. + +allOf: + - $ref: /schemas/media/video-interface-devices.yaml# + +properties: + compatible: + const: himax,hm1092 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + avdd-supply: + description: Analogue circuit voltage supply. + + dovdd-supply: + description: I/O circuit voltage supply. + + dvdd-supply: + description: Digital circuit voltage supply. + + reset-gpios: + maxItems: 1 + description: Active low GPIO connected to the XSHUTDOWN pad. + + leds: + description: + Optional phandle to an infrared illuminator flash LED strobed by + the driver while streaming. + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + additionalProperties: false + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + additionalProperties: false + + properties: + data-lanes: + minItems: 1 + maxItems: 2 + link-frequencies: true + remote-endpoint: true + + required: + - data-lanes + - link-frequencies + - remote-endpoint + +required: + - compatible + - reg + - clocks + - port + +unevaluatedProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + camera@24 { + compatible = "himax,hm1092"; + reg = <0x24>; + + reset-gpios = <&tlmm 109 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&cam_ir_default>; + + clocks = <&camcc 1>; + assigned-clocks = <&camcc 1>; + assigned-clock-rates = <24000000>; + + orientation = <0>; + + leds = <&ir_flash>; + + avdd-supply = <&vreg_l7m_2p9>; + dvdd-supply = <&vreg_l7m_2p9>; + dovdd-supply = <&vreg_l4m_1p8>; + + port { + hm1092_ep: endpoint { + data-lanes = <1>; + link-frequencies = /bits/ 64 <400000000>; + remote-endpoint = <&camss_csiphy0_inep>; + }; + }; + }; + }; +... -- 2.53.0