From patchwork Fri Dec 1 12:39:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13475771 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cXIhISkY" Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59E77D67; Fri, 1 Dec 2023 04:39:42 -0800 (PST) Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-51f64817809so405482a12.1; Fri, 01 Dec 2023 04:39:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701434382; x=1702039182; 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=Vqdz1YfBNjc+eVrlN9o+0H4c20wVH3whTNBfac3uifs=; b=cXIhISkY+1So0AJN2P9hRaf6kWbda+n3bNhZ2fYsR0Sr0B2aug2MmeNE/LwJhzbH8T fSi0O8BKukFC8nNZhwqlRaVFfDg9WqZ4Rs/KY8ziGP7pSsBMgV4S02m/j7xVgjkE7XU2 OsOCXRAJrMHVerCtRHcfFuBFp7yKjoPPBqPHPtYUHIt2OcF7VHegUPE/mi4HSF67Dj45 j4MHZ9T85Fg2C19H2D3m6Vk6DD41mb93Qpa4eVRtvcJwyaajbjX3T9xTE8jL1W1qyfjS X1mCjpy3DIPRKDY7mykyEjhY7cjBUGAOYTF5yTrJwZvwlRVPwrMER4eTKXlUA82uCTkg RXJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701434382; x=1702039182; 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=Vqdz1YfBNjc+eVrlN9o+0H4c20wVH3whTNBfac3uifs=; b=ONmfh+oOe8Uun6Qi5Ec3kfqdbkpKvp4z4NMAfX9gDMKwUnhtEEV7FkKyQGUq5IWWze PiPJvK0mr1mMCCn+1e/vM07kW4uGCkUYb2aVQXm1MAdXsT05oAIZzBKayXIkojzj7SxL sfkpAYB1yNH6JXE+tAN0YGEo5N9fIrjjQq3puRjg94nZghMU80ZV4HodVdPHsBP4URUo YT4unbNoZf4oN6yMsW0LQkud5357C+/yF+xq8sQ076HkmzYDlQu+Tsb1vAA/BM59OpoA IxKuAxKR9/KDn1IB4sZ9jIOsAehjXYSCgQLc4Khhtf7oz6iXY2WjEKZuQr4xzi2wUBmD arDQ== X-Gm-Message-State: AOJu0YzIFmhUjgyffSHGipz1VrTEuj6UvjU4BEIXxRPOidlWia4+k+k/ A+g74W1vtTPQYw9kV5U4Eg0= X-Google-Smtp-Source: AGHT+IEZ7W9IRYRll9h9uWqh5SBYAX/pBsQHL07rx8rNJF9nlyKVBicXRS2qfvHOD5ya0KhLo3JM0g== X-Received: by 2002:a05:6a21:187:b0:18b:feaf:36da with SMTP id le7-20020a056a21018700b0018bfeaf36damr6383766pzb.2.1701434381651; Fri, 01 Dec 2023 04:39:41 -0800 (PST) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:12b3:b1c7:121e:c465]) by smtp.gmail.com with ESMTPSA id gx21-20020a056a001e1500b006930db1e6cfsm2896155pfb.62.2023.12.01.04.39.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 04:39:41 -0800 (PST) From: Fabio Estevam To: sakari.ailus@linux.intel.com Cc: rfoss@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, mchehab@kernel.org, laurent.pinchart@ideasonboard.com, devicetree@vger.kernel.org, linux-media@vger.kernel.org, xji@analogixsemi.com, Fabio Estevam Subject: [PATCH v2 1/3] dt-bindings: drm/bridge: anx7625: Remove incorrect bus-type Date: Fri, 1 Dec 2023 09:39:33 -0300 Message-Id: <20231201123935.1057929-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Fabio Estevam bus-type = <7> is incorrect as this is a DSI endpoint, not a DPI endpoint. Reported-by: Laurent Pinchart Signed-off-by: Fabio Estevam Acked-by: Conor Dooley Reviewed-by: Chen-Yu Tsai --- Changes since v1: - Newly introduced. .../devicetree/bindings/display/bridge/analogix,anx7625.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml b/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml index a1ed1004651b..f043d57dd25a 100644 --- a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml +++ b/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml @@ -157,7 +157,6 @@ examples: reg = <0>; anx7625_in: endpoint { remote-endpoint = <&mipi_dsi>; - bus-type = <7>; data-lanes = <0 1 2 3>; }; }; From patchwork Fri Dec 1 12:39:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13475772 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="geK5fDe0" Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AF8F1B4; Fri, 1 Dec 2023 04:39:46 -0800 (PST) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-6cde4abdc06so385060b3a.0; Fri, 01 Dec 2023 04:39:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701434386; x=1702039186; 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=N43hwqTZKHanzUxHxh3RdBei5vKqq6OkL7nPoaO7H48=; b=geK5fDe0JGyiWGvI7ueHvz1p8gazw7hOYcXTXAwh7+GWz2jn6eiJmHHpICV0/NMjW0 tGjHsVUq9dFRsOi375W5ShTmJQxRIG6BxssB3ZLMeBvtKFq+S33zaaFAMOM9tH4dEwKZ uZuScC0gE3xBg6YvJIbn8L+Oj2NUocyT1OM+DooaMaSFYvAAgwRBYX4k02BUqh/O6Pv3 Bx4WKBSsrY3FPqGzK4c+3N2WAUrPrwjtcikJCEzRquTGlSryVmfddnjzPblNd8+G8z0L McWC+VLPt2TIiOdSwZG0oU/223g/O0BH6LmFvCW03Yx5W+KL+/JNu7N0q6GS/0MOJIIy Cpog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701434386; x=1702039186; 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=N43hwqTZKHanzUxHxh3RdBei5vKqq6OkL7nPoaO7H48=; b=Jb8QRBCzUxR6+It8YP3fjtSTr2Yj1Qzzol9bU/tpxodhh8kg0gyxrfDwdatuo+i/0f J98FgiQdZbjxVDxqObI8o6WjShnVI8nbaRQUfxHSfH5YJdGD+dPFRFKr2UeApaN+NiCU Uh2dxE/P9mOSZFrsuHSITwaYhr4YuyF748TAdJJLQ3y1I9ce0k/ElTsidMl4IZ3Sca36 5+LP2TXbl2AWkr0W6bRp2VbhxJTAycHU1Pb6/TPXovgUR/YDYket5eRgaFvPdtewR/uG 3vIThlCpO89PphaOjtlbkmrkbtePZpd2YeHyOA4Cy4Y8iqhtOwIjGNK7sKYFLy14U8mU zqaQ== X-Gm-Message-State: AOJu0Yxl69/d8DnyND3IjLdoQpQnyr9YWHep7GHQrKzNzZM08N5QXvrn fR8+Q7HdAMSBRf/51cqecgA= X-Google-Smtp-Source: AGHT+IGWvtQghDY994aEJ+WCNsUHRzw1reHW9PX7alz7KaIjeVJh44ThlehqbM8iHeeP0jUCotyRaw== X-Received: by 2002:a05:6a00:3904:b0:68e:2fd4:288a with SMTP id fh4-20020a056a00390400b0068e2fd4288amr29463502pfb.3.1701434385686; Fri, 01 Dec 2023 04:39:45 -0800 (PST) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:12b3:b1c7:121e:c465]) by smtp.gmail.com with ESMTPSA id gx21-20020a056a001e1500b006930db1e6cfsm2896155pfb.62.2023.12.01.04.39.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 04:39:45 -0800 (PST) From: Fabio Estevam To: sakari.ailus@linux.intel.com Cc: rfoss@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, mchehab@kernel.org, laurent.pinchart@ideasonboard.com, devicetree@vger.kernel.org, linux-media@vger.kernel.org, xji@analogixsemi.com, Fabio Estevam , Rob Herring , Laurent Pinchart Subject: [PATCH v2 2/3] media: dt-bindings: media: Introduce MEDIA_BUS_TYPE_DPI Date: Fri, 1 Dec 2023 09:39:34 -0300 Message-Id: <20231201123935.1057929-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231201123935.1057929-1-festevam@gmail.com> References: <20231201123935.1057929-1-festevam@gmail.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Fabio Estevam Commit 18860529a599 ("media: dt-bindings: media: video-interfaces: Add new bus-type") introduced a new bus-type for DPI video bus. Introduce MEDIA_BUS_TYPE_DPI into video-interfaces.h to complete the list of video interfaces. Signed-off-by: Fabio Estevam Acked-by: Rob Herring Reviewed-by: Laurent Pinchart --- Changes since v1: - Collected tags. include/dt-bindings/media/video-interfaces.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/media/video-interfaces.h b/include/dt-bindings/media/video-interfaces.h index 68ac4e05e37f..0dace694a18f 100644 --- a/include/dt-bindings/media/video-interfaces.h +++ b/include/dt-bindings/media/video-interfaces.h @@ -12,5 +12,6 @@ #define MEDIA_BUS_TYPE_CSI2_DPHY 4 #define MEDIA_BUS_TYPE_PARALLEL 5 #define MEDIA_BUS_TYPE_BT656 6 +#define MEDIA_BUS_TYPE_DPI 7 #endif /* __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__ */ From patchwork Fri Dec 1 12:39:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13475773 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aOaDETCq" Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DD0A10F3; Fri, 1 Dec 2023 04:39:50 -0800 (PST) Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-6cdf3e99621so247928b3a.1; Fri, 01 Dec 2023 04:39:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701434389; x=1702039189; 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=wVhdtrkUn2AWvsFn46L+3lHiIxpAFrjoE7AYtpk3MlE=; b=aOaDETCqDeWTpRSIkS03A7oodhHq5pcVYLECs5YoBGYC2lIH49Z2a0l0LpHTeOnN0N MVgt/kO1Wc9XPXtNgv4EdRZwqtMYGO5E1PuOfbyH1Lko7ulRb1cVAAeMkoN37Pc4WkyR krl4SoKJfHbzrlOKIrzTMA0CFcQuv+qZrZHeVQ/a3kw+ufaUHKMfGmZMJsonuq9vfoVy Ui/3GGnnzXH5Saaa+3zoVLeyIIeIF9wtL5d14MScWc1L9nkXTOI0XEW59522bxGmIw6Y 8salxMcGASbd5zbitxWMz4wg4+450NSoUab3jtDolMb646dm4aJWIshSo9TOrbCEIIqg E0DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701434389; x=1702039189; 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=wVhdtrkUn2AWvsFn46L+3lHiIxpAFrjoE7AYtpk3MlE=; b=Ju7WSLNNxussHxihMHnExtU6NkhLi19qdvB7Km9ljW9WSE0x5OB2TqtKLT1G/U0vB1 06gIXvR/TI4xTGcduTgOmAtWnJ7CRslGR2X7Q99y9HFB3qRk5JkbA8ZZJdL0hyMWzzaf 21sK/7pfQ/2CoIy5vTZiM/I6t49FfRUUtUxoTWiAaz9c4DJJZuBIvXQ2UOK5W9NZMLY7 A0mf9kPHoXQfL3/S7p0MIXm3fndaVJBXowskqGds3UnsakNcpHv3diD6o1K1JyyvHHL9 v5rBED/oQ8hqaHTJW+1JtUReM9JsFNLGhxojsQoEfpIbTW3VGzmvxQsSOXIsbgTE+nmV zU0A== X-Gm-Message-State: AOJu0YyC3ZcyrgKU5YYd0o+OWfFjwNbDcX6TcDzB0Ix/PXQ1exXx+hXS 43AjQyYylCHh29DRr9ymHrY= X-Google-Smtp-Source: AGHT+IE0RXbrdr6CPHISFNq2fFCJ45gZLWw9n9RllgvUlBIm0O5HaryEB0sRvxn1VvpnIjhk2a2tPg== X-Received: by 2002:a05:6a20:3d1e:b0:18b:1f5d:b105 with SMTP id y30-20020a056a203d1e00b0018b1f5db105mr30024826pzi.6.1701434389441; Fri, 01 Dec 2023 04:39:49 -0800 (PST) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:12b3:b1c7:121e:c465]) by smtp.gmail.com with ESMTPSA id gx21-20020a056a001e1500b006930db1e6cfsm2896155pfb.62.2023.12.01.04.39.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 04:39:48 -0800 (PST) From: Fabio Estevam To: sakari.ailus@linux.intel.com Cc: rfoss@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, mchehab@kernel.org, laurent.pinchart@ideasonboard.com, devicetree@vger.kernel.org, linux-media@vger.kernel.org, xji@analogixsemi.com, Fabio Estevam , Rob Herring Subject: [PATCH v2 3/3] media: dt-bindings: Use bus-types definitions from video-interfaces.h Date: Fri, 1 Dec 2023 09:39:35 -0300 Message-Id: <20231201123935.1057929-3-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231201123935.1057929-1-festevam@gmail.com> References: <20231201123935.1057929-1-festevam@gmail.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Fabio Estevam To improve readability, replace hardcoding numerical constants with the corresponding definitions from video-interfaces.h. Based on commit c4cfd47eb4ac ("media: dt-bindings: Use new video interface bus type macros in examples"). Signed-off-by: Fabio Estevam Reviewed-by: Rob Herring --- Changes since v1: - Removed the analogix,anx7625.yaml change. .../devicetree/bindings/display/bridge/analogix,anx7625.yaml | 1 + .../devicetree/bindings/media/i2c/toshiba,tc358746.yaml | 3 ++- Documentation/devicetree/bindings/media/microchip,csi2dc.yaml | 4 +++- .../devicetree/bindings/media/starfive,jh7110-camss.yaml | 4 +++- .../devicetree/bindings/media/ti,j721e-csi2rx-shim.yaml | 3 ++- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml b/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml index f043d57dd25a..19fbc6f67de8 100644 --- a/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml +++ b/Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml @@ -132,6 +132,7 @@ additionalProperties: false examples: - | #include + #include i2c { #address-cells = <1>; diff --git a/Documentation/devicetree/bindings/media/i2c/toshiba,tc358746.yaml b/Documentation/devicetree/bindings/media/i2c/toshiba,tc358746.yaml index 1c476b635b69..9e1874946017 100644 --- a/Documentation/devicetree/bindings/media/i2c/toshiba,tc358746.yaml +++ b/Documentation/devicetree/bindings/media/i2c/toshiba,tc358746.yaml @@ -129,6 +129,7 @@ additionalProperties: false examples: - | #include + #include i2c { #address-cells = <1>; @@ -161,7 +162,7 @@ examples: remote-endpoint = <&sensor_out>; hsync-active = <0>; vsync-active = <0>; - bus-type = <5>; + bus-type = ; }; }; diff --git a/Documentation/devicetree/bindings/media/microchip,csi2dc.yaml b/Documentation/devicetree/bindings/media/microchip,csi2dc.yaml index b3a345fc6464..2e694479d82d 100644 --- a/Documentation/devicetree/bindings/media/microchip,csi2dc.yaml +++ b/Documentation/devicetree/bindings/media/microchip,csi2dc.yaml @@ -142,6 +142,8 @@ examples: # Example for connecting to a parallel sensor controller block (video pipe) # and the input is received from Synopsys IDI interface - | + #include + csi2dc@e1404000 { compatible = "microchip,sama7g5-csi2dc"; reg = <0xe1404000 0x500>; @@ -154,7 +156,7 @@ examples: port@0 { reg = <0>; /* must be 0, first child port */ csi2dc_in: endpoint { /* input from IDI interface */ - bus-type = <4>; /* MIPI CSI2 D-PHY */ + bus-type = ; remote-endpoint = <&csi2host_out>; }; }; diff --git a/Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml b/Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml index c66586d90fa2..4964e59c3ae3 100644 --- a/Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml +++ b/Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml @@ -120,6 +120,8 @@ additionalProperties: false examples: - | + #include + isp@19840000 { compatible = "starfive,jh7110-camss"; reg = <0x19840000 0x10000>, @@ -161,7 +163,7 @@ examples: reg = <0>; vin_from_sc2235: endpoint { remote-endpoint = <&sc2235_to_vin>; - bus-type = <5>; + bus-type = ; bus-width = <8>; data-shift = <2>; hsync-active = <1>; diff --git a/Documentation/devicetree/bindings/media/ti,j721e-csi2rx-shim.yaml b/Documentation/devicetree/bindings/media/ti,j721e-csi2rx-shim.yaml index f762fdc05e4d..5fdb9ae758e3 100644 --- a/Documentation/devicetree/bindings/media/ti,j721e-csi2rx-shim.yaml +++ b/Documentation/devicetree/bindings/media/ti,j721e-csi2rx-shim.yaml @@ -58,6 +58,7 @@ additionalProperties: false examples: - | + #include #include ti_csi2rx0: ticsi2rx@4500000 { @@ -90,7 +91,7 @@ examples: csi2rx0_in_sensor: endpoint { remote-endpoint = <&csi2_cam0>; - bus-type = <4>; /* CSI2 DPHY. */ + bus-type = ; clock-lanes = <0>; data-lanes = <1 2>; };