From patchwork Tue Apr 2 17:40:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1918931 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=dwBnvuCy; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:4601:e00::3; helo=am.mirrors.kernel.org; envelope-from=devicetree+bounces-55576-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [IPv6:2604:1380:4601:e00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V8FXt6GDdz1yYw for ; Wed, 3 Apr 2024 04:41:02 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 22B1B1F22032 for ; Tue, 2 Apr 2024 17:41:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A382F15AAA6; Tue, 2 Apr 2024 17:40:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dwBnvuCy" X-Original-To: devicetree@vger.kernel.org Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (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 09AFE17BB7; Tue, 2 Apr 2024 17:40:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712079657; cv=none; b=t0chNowsNL57yoiUefkNNu8hxr2NjUmGhWMm36Q/iDzNfJWosbiUVsRVIP2H7FRr5eKv0JiKN4fY83JhY4KLc+62wcN73uvSSpp9kfMelt9FaPv0Pm3dfibKQjWwplW/ENvR0tADPR2fFpq8irze6Bw4D+bIE7U39LtENCMmheQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712079657; c=relaxed/simple; bh=SIttuzUApsaf2VI4jmyqM+YmNurv+JpYUsEXO1seAEI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=LBT/MOyw5SX8+Q8WZ/b+tdW/uIbk+83aHX9P+mR0xBTmsHW2X+7UxMkmvONiPGPJRqV8zfmWt5oP08xowPlqLsJIhQpSJyev3nFTJQSyOvUIV65h5F4Kp7rSZ4klHEpotuqHqcmere7lMxEewlkXTCgzp+8MP1Ed6t1bN8aokgw= 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=dwBnvuCy; arc=none smtp.client-ip=209.85.210.176 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 Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-6e694337fffso961704b3a.1; Tue, 02 Apr 2024 10:40:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712079655; x=1712684455; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Mj+hIYfiIqrdZCdlhIOXwAHVfJtak/tKCscomVGlXEQ=; b=dwBnvuCyZH0u/RMqh1B+ZK9u6BsipwbLRHd2B5z5yt3q+NxLnvqb6hQCXCSYRN7OR8 O4AvPSHm5dAYFU+YdlxKMb8QVAEj81cLtZYhbynCoSaT238vY91x+BwvO6dfVDZy9ihW 78+KdpKav6KZwMMDRE9GrVLhzO1yt/AKiMW2GJ9pAhLnaqbmrnCpUsOs8zclGSMBDFaB yM6uw1MWRUxKxH1I6RcT5x3STXFcrsl6rkyxKIHTKHGcwyR2t0OCxzCwz7yrAZ3Vcmb/ KjpPEO8HFAxO806jUpWHYVW5fQVYN4Nt8cfgpCPnrVWlKpTo9zIFmVYLHvOYsu3zv/lO kgAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712079655; x=1712684455; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Mj+hIYfiIqrdZCdlhIOXwAHVfJtak/tKCscomVGlXEQ=; b=S+nA7qO/X6iYDLW3D2jfWDOWdPiECyJqfdytk/0uzdcDoC1Lk2Bh2fxY+JYZFrA1j6 rSPvxPL2EezxZ+ABjlnejF0YHhwJp3V9SACSw6KbOo3Ut0ZFv3M85hGOJYXg+I+xFhkt APp6eg0jToOuXtMv/cdv+TM14DiG3aymqQHoJkoQPEk6gMVgg4DUxd1DdhRuKnxZubQ4 ojaWvQdMsuzpzUOdB/Mgw4HLqRPo3mNxeRgXDNdu9XyBFJeSanJlmI3lIuThzUl9EkVu 42iCTfeBX9JbcvO724aXY1R2t71+tSYwyGpsd9IMuJwzPhAdIwS/4hzV04hw1JAIe2IR cnUg== X-Forwarded-Encrypted: i=1; AJvYcCX6Zn33n3waR5UUiHUanNonz9vcH+QjbadSdeGvloRpcRkxLfoXjPM3ZNGjKp7K2BPFe55ZwO4r5kLwUbtrF8YObATdaY23XlwyELHs7arEx0kzGDpgLxxmSAsauIPuvbPZWhaWdgBC X-Gm-Message-State: AOJu0Yz4FSfyF5c0hRHxYd1j6rP66wXjwUZHee+cpvCckYylR55Gt53f 7cBXv9BenPYP/jJRRYvOrTujmZA7QTC+DGWFxI0Tco1QrIBuoTBj X-Google-Smtp-Source: AGHT+IEHWPMPfZyxLQaaVsu5ktrgQngQ6FQ8UB0KYsDl1SCNBhM8Stb0DarmgFLmHL04IxHB0IuGUQ== X-Received: by 2002:a05:6a00:2d07:b0:6eb:1d5:a3e with SMTP id fa7-20020a056a002d0700b006eb01d50a3emr9939212pfb.2.1712079655185; Tue, 02 Apr 2024 10:40:55 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:7fdc:71fa:30d0:4855]) by smtp.gmail.com with ESMTPSA id w10-20020aa79a0a000000b006e6aee6807dsm6818919pfj.22.2024.04.02.10.40.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 10:40:54 -0700 (PDT) From: Fabio Estevam To: sakari.ailus@linux.intel.com Cc: rmfrfs@gmail.com, laurent.pinchart@ideasonboard.com, hansg@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, Fabio Estevam Subject: [PATCH v4 1/2] media: dt-bindings: ovti,ov2680: Fix the power supply names Date: Tue, 2 Apr 2024 14:40:27 -0300 Message-Id: <20240402174028.205434-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Fabio Estevam The original .txt bindings had the OV2680 power supply names correct, but the transition from .txt to yaml spelled them incorrectly. Fix the OV2680 power supply names as the original .txt bindings as these are the names used by the OV2680 driver and in devicetree. Fixes: 57226cd8c8bf ("media: dt-bindings: ov2680: convert bindings to yaml") Signed-off-by: Fabio Estevam Reviewed-by: Rob Herring --- Changes since v3: - Newly introduced. .../bindings/media/i2c/ovti,ov2680.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/media/i2c/ovti,ov2680.yaml b/Documentation/devicetree/bindings/media/i2c/ovti,ov2680.yaml index cf456f8d9ddc..c87677f5e2a2 100644 --- a/Documentation/devicetree/bindings/media/i2c/ovti,ov2680.yaml +++ b/Documentation/devicetree/bindings/media/i2c/ovti,ov2680.yaml @@ -37,15 +37,15 @@ properties: active low. maxItems: 1 - dovdd-supply: + DOVDD-supply: description: Definition of the regulator used as interface power supply. - avdd-supply: + AVDD-supply: description: Definition of the regulator used as analog power supply. - dvdd-supply: + DVDD-supply: description: Definition of the regulator used as digital power supply. @@ -59,9 +59,9 @@ required: - reg - clocks - clock-names - - dovdd-supply - - avdd-supply - - dvdd-supply + - DOVDD-supply + - AVDD-supply + - DVDD-supply - reset-gpios - port @@ -82,9 +82,9 @@ examples: clock-names = "xvclk"; reset-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; - dovdd-supply = <&sw2_reg>; - dvdd-supply = <&sw2_reg>; - avdd-supply = <®_peri_3p15v>; + DOVDD-supply = <&sw2_reg>; + DVDD-supply = <&sw2_reg>; + AVDD-supply = <®_peri_3p15v>; port { ov2680_to_mipi: endpoint { From patchwork Tue Apr 2 17:40:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 1918932 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=PxEqlNYN; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45e3:2400::1; helo=sv.mirrors.kernel.org; envelope-from=devicetree+bounces-55577-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [IPv6:2604:1380:45e3:2400::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V8FY05Khyz1yYw for ; Wed, 3 Apr 2024 04:41:08 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7323028AC3E for ; Tue, 2 Apr 2024 17:41:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 034EE15AABD; Tue, 2 Apr 2024 17:41:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PxEqlNYN" X-Original-To: devicetree@vger.kernel.org Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (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 5187815A4A7; Tue, 2 Apr 2024 17:40:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712079660; cv=none; b=EY6GaAmTQMZCEFvFbTElvkSB9rpPx0dTraRftoManPa2J55K3wHukzTIAxl+8B8O0R9aAsGki0OpJCXJYfMl5zlLNPS2FT2r0db80wBd1aQ1jdlppKGKXDFaOCdc9htNpqE8MeWYJHAYbgBZdWFEzv9Zu8+zM/cf6ZePfldCkSE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712079660; c=relaxed/simple; bh=1rFdNZAPyiQd5YvYrgl+b//xP4F62hYfvSXdo2y3mSI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ts84k0IyoA1A5rOm88zQPDa1CESaymEDjTnpUvTGrsfztzXiNNEmgS1FNULXnbpx+eO2lY18ekQXTPnkAaVu5u8mFuyMCXO9zIzJWuehgBdv6EuhPgwi71/n7rvfvbo5wJ2YyQTWgKOwjT3qt2p2ScEEIU8HkEr92fDMw+VjU/o= 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=PxEqlNYN; arc=none smtp.client-ip=209.85.210.172 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 Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-6e6c38be762so597586b3a.1; Tue, 02 Apr 2024 10:40:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712079658; x=1712684458; 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=Zk3XKb0313XxlPGBiYPfDtWT1uFFIekVFB4cJRRrJmw=; b=PxEqlNYNy8k0FTuv9Yhpxx3xexKjUN2Qb6TporrlaGWy/uS8BJMbyhmMcHrn0lDFjX wIGUDEy2spbL1MAXqMjK9IAoLWTuccLGOHrke2Aai6A/KnrEOdFzKefA66MZ0HhPMCdv Adjj4Q9tIFtwOiZP1kWVAKbfGqlrqNLABvTt5WHHtdkWl5l2qVHuUCm/oN0zzosdjacy PbCQUTUEmRs4Xley1RcE8Fx4nZUKzuah5E7V5af82EL7v7XfjVs5rJQOxVi/MJMivBX6 yLtg4rx4OMVmo8D/BmpEnlGaK8HwSQzqYc8fXg8CPKpMHfnTIX/67zigUUBdCo4rU+KV U1JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712079658; x=1712684458; 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=Zk3XKb0313XxlPGBiYPfDtWT1uFFIekVFB4cJRRrJmw=; b=rAxKmcIJz6HwSDohLGqpGktnrThq6vDaru7HDHq29UvtxTRkgrk9NNhgyn80imNYPt EoQ2f2Y4VOzS/qWeqJLVklX9a8jWdx5Z9Upd4jQpn8MFpZB3Q6+tDx0nWmnwbZaCHa2I hL+NLb8QcDaPunkXqthZNbYFdBO0zDvp/5kLLVVcbmMXCJSPIOwdfKYcMoWr5g5UbwwG IkK1u3+A8naOh3M+cQ1GNMcr66Ei4Pq4c5fo7e70jj3/+iJYgR03YJK3m1ksN9pkko0G 4zDgZJLdIhsJf8i+YS1/s6esVW48W+WsslaoeOELElryrCmMGvhZZL80y/QuQY7pDlIP aYzA== X-Forwarded-Encrypted: i=1; AJvYcCVCkAo/951asT+RBblnapKc+YA7ZK/7j7FcT1XS8BBxvwbwuk1AWQytF23caoyRJ+T7EhMTNaVq4TMw/D6SqCfFe5IeqAolypL6dsEnHiiHXigbMYmmWN4gtnOHjtbqsPZPX+8NRFSW X-Gm-Message-State: AOJu0YwyFl9D2wMqi190xL+K7vmE9S/7kDvYiz7JOpd709/Bwpnv1MTI 5XcNuFuXY9AV/KmoUYbGdZXK8nJq9obH2u+4h4Szt2qhxw6HqljQ X-Google-Smtp-Source: AGHT+IEsFSNaSMqzOmZDLbkCCioeknyxrJRlU2EYnY9K1bBP31xR0LgJbZ11RFQB8HTUuzJ6J2mEww== X-Received: by 2002:a05:6a00:b31:b0:6ea:8604:cb1d with SMTP id f49-20020a056a000b3100b006ea8604cb1dmr15183288pfu.0.1712079658523; Tue, 02 Apr 2024 10:40:58 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:7fdc:71fa:30d0:4855]) by smtp.gmail.com with ESMTPSA id w10-20020aa79a0a000000b006e6aee6807dsm6818919pfj.22.2024.04.02.10.40.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 10:40:57 -0700 (PDT) From: Fabio Estevam To: sakari.ailus@linux.intel.com Cc: rmfrfs@gmail.com, laurent.pinchart@ideasonboard.com, hansg@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, Fabio Estevam Subject: [PATCH v4 2/2] media: dt-bindings: ovti,ov2680: Document link-frequencies Date: Tue, 2 Apr 2024 14:40:28 -0300 Message-Id: <20240402174028.205434-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240402174028.205434-1-festevam@gmail.com> References: <20240402174028.205434-1-festevam@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Fabio Estevam Document the link-frequencies property as recommended by the following document: https://www.kernel.org/doc/html/v6.9-rc1/driver-api/media/camera-sensor.html#handling-clocks Signed-off-by: Fabio Estevam Reviewed-by: Rob Herring --- Changes since v3: - Only document link-frequencies. .../bindings/media/i2c/ovti,ov2680.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/i2c/ovti,ov2680.yaml b/Documentation/devicetree/bindings/media/i2c/ovti,ov2680.yaml index c87677f5e2a2..634d3b821b8c 100644 --- a/Documentation/devicetree/bindings/media/i2c/ovti,ov2680.yaml +++ b/Documentation/devicetree/bindings/media/i2c/ovti,ov2680.yaml @@ -50,9 +50,23 @@ properties: Definition of the regulator used as digital power supply. port: - $ref: /schemas/graph.yaml#/properties/port description: A node containing an output port node. + $ref: /schemas/graph.yaml#/$defs/port-base + additionalProperties: false + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + additionalProperties: false + + properties: + link-frequencies: true + + remote-endpoint: true + + required: + - link-frequencies required: - compatible @@ -89,6 +103,7 @@ examples: port { ov2680_to_mipi: endpoint { remote-endpoint = <&mipi_from_sensor>; + link-frequencies = /bits/ 64 <330000000>; }; }; };