From patchwork Sun Feb 11 19:03:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mehdi Djait X-Patchwork-Id: 771988 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 1F5B95A4FF; Sun, 11 Feb 2024 19:03:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707678221; cv=none; b=mcLZu7Zp4uz+y7vWjuGyEcMgMBns9NaxY3yyyl74lbP5yTfxPxwqVn6zLsEy++/r1DBX8ah9TnZSnieSFN3D98RWZFWwtjlSuGoiCCcOLooLfTUUzVoi2PYr6/zUk3K7Z8SVMbEuUDKl19BRlaJkYgZ0ggK5uzdQztnerMQ5L8M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707678221; c=relaxed/simple; bh=tpeWXxPW9y0R5ANl3dpUfOq3RGhBakzINSXMqQQKvkc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qQh3JN4Pwb0bUuHTR+etInA0YfrSfs/DaYPZITt7MKGZK1gvJavQCWgqYO4oV5ByREe55GZ3dK1evxJ98/aR94NPnVw298D1mlakLSbvVTKKWcsWJJhwES2WKiHCh8QoxA0T2XvlQZRI2V9l29mJUBlObs1147ac0RO19WyeRBw= 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=BtWMuXfj; arc=none smtp.client-ip=209.85.218.44 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="BtWMuXfj" Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a271a28aeb4so315100466b.2; Sun, 11 Feb 2024 11:03:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707678218; x=1708283018; 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=sKk0NSJH0NwGKwQItSQOBruTltCGsF+0CI7v15bHwUA=; b=BtWMuXfjBk5Sn/3t3U61ECU8vh7NMOpoxDEhbN0LLo2zIiAldHCSeJh0tOQxSGSuLW 7GoD2CUscNa7U86hPn3emX63EX02+mcnnyvUkeSXk45awlQgHFZu1Y2N3NVOfg4/NljF B9gIrUse5RnKXezkHItcs16asIvPeYSULxQxokWvV7GTUM+onaPRmzCQaQliUd3Braeo 0nVXl7bKrGlh/oCtGEB+OF1SW9WwHt+hfJcLXj07fYlnRe1aVcHtgLrQ1XqiPLlJ+a/R JgBgeSchLyubHBPEa1WYsnaWQ5CtrUQL1bCg1EH5dgjmg1upS1ikyb+1ljzV9Q8h0wj+ KUqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707678218; x=1708283018; 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=sKk0NSJH0NwGKwQItSQOBruTltCGsF+0CI7v15bHwUA=; b=P/5cSqFfNx3oc7q1DkVUIJpHTpOVrNrjM6jbs6y7cvKO0kAt6zbqsAGIO0N5P+LUk2 hu29v6QVwuixnd/0Y7VuSQ/BZBAxZAEHkkGAnLX0wqDNIZt6MzYRMm7OQgWQ8c42M+Kf 8d0GLvdMb61XEXphKR8l3+aJOsbKh6HgmhdjbEL9FtnlvIqI2JvyX0rCWsmlufgnVr0j /xvgLLcs+IdrFqnoBr6W22UFkz2HqQx4/85JgeTQ6gQkZupYmMHkIiywPaalWQ9aOblJ ec7+mkfYoJyILbY++7y+d02dPjME3DutWHRbc3zFpahPpLlWsqmwFXQDoMcbPm8ZAXak kjUg== X-Forwarded-Encrypted: i=1; AJvYcCV6WoKblBjtCwJL9MbZba+3rk4w79H58GoktWMkcKFEmm0ugs0VLA8DHUBWrZpNl0WnRfFVMmrAtQ8s+319UkGW/buQzLVG3uyAEY5Uh14rBjNk6zi94Gq9x6tm4Cmn8xR3uAw2LTJVow== X-Gm-Message-State: AOJu0YyTbKcmHs8SSvHLSG3ylgBXC5l7CAU/jy/RsUp0vRupDeZfLwwc ToL1r3eleqOGYDLtYskSGlOx7Cvcg6g+lzZFMr9eNh7pfBtfor8Y X-Google-Smtp-Source: AGHT+IH9NhKiJDvRD6Cl60JM25BaQY4py10RTgZt1sW8aa8a+kiL0Rh6OrBw+AdiReyXhwuYbxAXvw== X-Received: by 2002:a17:906:fad0:b0:a38:4f2b:8591 with SMTP id lu16-20020a170906fad000b00a384f2b8591mr3740023ejb.69.1707678218261; Sun, 11 Feb 2024 11:03:38 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCV9xUW1N1zNSlG3bvGQZfSlWU8yACAGpIwj5Nbwhaxe9ZQM4cO9Uoguf1SgKM55eslVsWH5u7G98hSd9tQwE4bjAdVe0XajYTif93t4qgBywiN0iWvOVHzFd72TmAss3zTrcjo6N6lJLcGAapBo1kmgY5mKVBQ5v07P2TWcrLPfqqtEfJQQ/Qq7KN8xXr/vEUpMIqwYmomLqni0osXv8o5I+5M43deFwm4SXalaUSWNAhAK9w7945KoL/D6F0RQUcV6uSKq+jnYdYR8mLG5Lezob3S40z+yUHU9GIYXCP1vDZ6nV3uxnehC0lD4LMKXKjrOroJk7Uq2BcTsa/phFTWxPSwAYSk7TVDjfYeeXHJKLzBSfZDrIFE4vtyEYg9w9Y2xrVQUKFASiebgsOO1aUI7KPQRtYsFUiP0nhOa7Fq6r1o5JycIzmRjQTxsgYsrUM4cYCuo6C5lbZLMJpEe3NrirseQ9YgGHSeX+swIkoQsu7QA54jSGlPruQy0G0s7LIjqBQ3SacXbMK6ZQc0GBnIKgkwfsjEYEf8+cDe1xSyK5yBtYhxH88qlluCyn/5qJf0hdRjJyHbMVI/frGIjElmZ8zI4ApKREFOztM6cXcyC7Q2na8fzBbdeYOustMhjnxqQ4PEXEqzzGLrZ Received: from localhost.localdomain ([2a02:8109:aa27:2d00::2d2b]) by smtp.gmail.com with ESMTPSA id ps7-20020a170906bf4700b00a3c5fa1052csm1207400ejb.138.2024.02.11.11.03.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 11:03:37 -0800 (PST) From: Mehdi Djait To: mchehab@kernel.org, heiko@sntech.de, hverkuil-cisco@xs4all.nl, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, conor+dt@kernel.org Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, alexandre.belloni@bootlin.com, maxime.chevallier@bootlin.com, paul.kocialkowski@bootlin.com, michael.riesch@wolfvision.net, laurent.pinchart@ideasonboard.com, Mehdi Djait , Mehdi Djait , Conor Dooley Subject: [RESEND Patch v13 1/3] media: dt-bindings: media: add bindings for Rockchip CIF Date: Sun, 11 Feb 2024 20:03:30 +0100 Message-ID: <13deb8c5cb58e08c1b47decd112b51e8e0b6c4dc.1707677804.git.mehdi.djait.k@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Mehdi Djait Add a documentation for the Rockchip Camera Interface binding. Reviewed-by: Conor Dooley Reviewed-by: Michael Riesch Signed-off-by: Mehdi Djait Signed-off-by: Mehdi Djait --- .../bindings/media/rockchip,px30-vip.yaml | 123 ++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml diff --git a/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml b/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml new file mode 100644 index 000000000000..6af4a9b6774a --- /dev/null +++ b/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml @@ -0,0 +1,123 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/rockchip,px30-vip.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip Camera Interface (CIF) + +maintainers: + - Mehdi Djait + +description: + CIF is a camera interface present on some Rockchip SoCs. It receives the data + from Camera sensor or CCIR656 encoder and transfers it into system main memory + by AXI bus. + +properties: + compatible: + const: rockchip,px30-vip + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: ACLK + - description: HCLK + - description: PCLK + + clock-names: + items: + - const: aclk + - const: hclk + - const: pclk + + resets: + items: + - description: AXI + - description: AHB + - description: PCLK IN + + reset-names: + items: + - const: axi + - const: ahb + - const: pclkin + + power-domains: + maxItems: 1 + + ports: + $ref: /schemas/graph.yaml#/properties/ports + + properties: + port@0: + $ref: /schemas/graph.yaml#/$defs/port-base + unevaluatedProperties: false + description: input port on the parallel interface + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + bus-type: + enum: [5, 6] + + required: + - bus-type + + required: + - port@0 + +required: + - compatible + - reg + - interrupts + - clocks + - ports + +additionalProperties: false + +examples: + - | + #include + #include + #include + #include + + parent { + #address-cells = <2>; + #size-cells = <2>; + + video-capture@ff490000 { + compatible = "rockchip,px30-vip"; + reg = <0x0 0xff490000 0x0 0x200>; + interrupts = ; + clocks = <&cru ACLK_CIF>, <&cru HCLK_CIF>, <&cru PCLK_CIF>; + clock-names = "aclk", "hclk", "pclk"; + power-domains = <&power PX30_PD_VI>; + resets = <&cru SRST_CIF_A>, <&cru SRST_CIF_H>, <&cru SRST_CIF_PCLKIN>; + reset-names = "axi", "ahb", "pclkin"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + cif_in: endpoint { + remote-endpoint = <&tw9900_out>; + bus-type = ; + }; + }; + }; + }; + }; +... From patchwork Sun Feb 11 19:03:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mehdi Djait X-Patchwork-Id: 771987 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 D06875E3A0; Sun, 11 Feb 2024 19:03:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707678228; cv=none; b=N3eFln3mRdXWj+iw2yn3qKIn7UnRPYSFeTCfaFRgYR4ULcgj8NDQY6k7GZV+QPUzHVZy4gL+T9cmHWxLwNULxi0KcTiLx4ZIC23UUUATa10dnAgNmZ5pooKISyqbDcHgXEno0+4WHbRTnKG3hVRTWZceJ0Dt2a7QTkEWvn28Lg8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707678228; c=relaxed/simple; bh=R8nbQPilcuK/zTa/Qd5mtxOQqvhrM5GRqlCnYSJHc+A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uT2Z288QwttQquDb8jt5Y8qarFGNdREWhCcx6vJA+vUwyd4Zhnh6Dgqao+HaLClKBClHAUzJr3kL3v6ywCNF82AIqrKEiARZyXFSMYvCaiTF20ThyYYZfelIqYWe8GXGMMWEVCv5hllEWQ0jDoRlQB3gGCK/qAnCYZZfR58eVK4= 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=cIRojGTl; arc=none smtp.client-ip=209.85.218.44 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="cIRojGTl" Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a293f2280c7so352520966b.1; Sun, 11 Feb 2024 11:03:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707678225; x=1708283025; 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=4X9gXtJ2jH9YgV610FJCPLMZwxMN7PK1ETxRA0Am1hs=; b=cIRojGTlU6To90/T0kqNYQjmXXNXtjL8a+nZB4UHzfYKgEF3duf0ydJbfv0Nu2sNqc X3R19QEq6EKHpWxiF8gAY2jQSeqGREQTLWWBiWVz0HyYMFb3MCDzkYvheNBhc1+EUZMA ESP25u97V/1/NQhI3Ea4B4WeLf71uF6xz+yngJS8byhY9Nh5i9o4D0k07fV2o6MQBRrf 1m4xoqRIiU/iQk1W+EyajKeZHY6SxWZ9KUWQS83M+ESGCBczN4em9mJtrNK8F1aAYc+4 L/i1Yz5Q1X+lpmRJMRoNPaUjcWVGq0KJDtyOsKhrEaEXuzeEefsDJtfSrFEKWHNRbeZZ MQTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707678225; x=1708283025; 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=4X9gXtJ2jH9YgV610FJCPLMZwxMN7PK1ETxRA0Am1hs=; b=aBYgRU4pW/aiy2lGRrs3EVXrriqZofrEiEJt7DCYfVSoCoXGeCypg875cD5XrH/u1F Woh0tOpYaSIpqu304otKVYR8Q3hHQo+m9ml0fLtWSENIaAQ+S91IiZx22JxWGp5gTz10 itJFcqiasXiTUgx+TlWjeiLoBvil7wXF7Wk4jz45mdO4s+K7xwpfqSF9fRb6af2CI03O SoSGhEP5f0IhcBoBUmJfmypeKJzEDThEFeRfgEs9cUzRlulYH0kQtZ09H4QDDezcN2uU wk50NnJLK3b3oS7MsaocOXYs7mgobXgRZ/QKuxRjy4Vd7ea/AQKAgXTtHs3X2kyYbQaU J12A== X-Gm-Message-State: AOJu0Yw/3p57dCc/0GGnyPb2Kmz4BvR5HcTp6G9mRZHWplddudsjFd8+ 7NGSVjWi69kxvlxFx25LXla9Oxfg2IW4xCdnbf1Qc4Myy9VbSUrU X-Google-Smtp-Source: AGHT+IEPGO27Q2F8ELCDw/h+m7Siyc4BpmpJdA/nJa7DZ7pmsIXSCHxT4i7w6iNqHAhI6ZTIOPkhQg== X-Received: by 2002:a17:906:3596:b0:a3b:acdb:4922 with SMTP id o22-20020a170906359600b00a3bacdb4922mr3451279ejb.8.1707678224766; Sun, 11 Feb 2024 11:03:44 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVqqngmGLbiOIGazXprKf+BgTCIh2Ak/6mUEwc2g7kDFfShRBGwlquhYhyBpik6jjhNUJJPBAxke8mnNmTg+PlaArkAShRxOqARChCITho8kM3r8Aml8yq+uAwqIwAwsbiz9mN7nIVQXf5xtwA1XmKcBCHtXWlsK0kvbcvyA0x8/jj+CUPMOC1AZJNHwDMty8FHdqJ+x7U12yY/TIsToOI3C2z+nRR9MZO1Wt36yrPZtrwYPpQwp7ndXkRQqHRSmUCu1dty6KXXBVg5KKTrL7k64x02mFW9xp5DvM9mAnOaJzYGx9f7dgMOAf3Ux8OIeeCArBpLnpH7103xJCeCU+kOlk34qA9BFOjdpk+ywmvU0Pl9WTkBqexSkKhKPxtAREJRDRRx+HNXe9aApt2GpSl+Vekz1rLYG3b60Jx+SKRIHFpqoMC7Au+YnaGPiBh/nT8vwFsoDSElGcBdDm7F+8qkcW59tZeSmVAukj4P3odlQ6whspxLQCDU1a6+X2gfl3BwoX8rG+SZyjufSFRBjylnzHxmDw76Ylz/epwfCtqXQwEFjIOrx48wNTbFvRi61HwjAXftjrOlgwzZNyoKdSd6p5Ho/yZb6GGwC0qyGzY= Received: from localhost.localdomain ([2a02:8109:aa27:2d00::2d2b]) by smtp.gmail.com with ESMTPSA id ps7-20020a170906bf4700b00a3c5fa1052csm1207400ejb.138.2024.02.11.11.03.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 11:03:44 -0800 (PST) From: Mehdi Djait To: mchehab@kernel.org, heiko@sntech.de, hverkuil-cisco@xs4all.nl, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, conor+dt@kernel.org Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, alexandre.belloni@bootlin.com, maxime.chevallier@bootlin.com, paul.kocialkowski@bootlin.com, michael.riesch@wolfvision.net, laurent.pinchart@ideasonboard.com, Mehdi Djait , Mehdi Djait Subject: [RESEND Patch v13 3/3] arm64: dts: rockchip: Add the px30 camera interface Date: Sun, 11 Feb 2024 20:03:32 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Mehdi Djait The px30 has a video capture component, supporting the BT.656 parallel interface. Add a DT description for it. Reviewed-by: Michael Riesch Reviewed-by: Paul Kocialkowski Signed-off-by: Mehdi Djait Signed-off-by: Mehdi Djait --- arch/arm64/boot/dts/rockchip/px30.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/px30.dtsi b/arch/arm64/boot/dts/rockchip/px30.dtsi index d0905515399b..a8eb5371235b 100644 --- a/arch/arm64/boot/dts/rockchip/px30.dtsi +++ b/arch/arm64/boot/dts/rockchip/px30.dtsi @@ -1280,6 +1280,18 @@ isp_mmu: iommu@ff4a8000 { #iommu-cells = <0>; }; + cif: video-capture@ff490000 { + compatible = "rockchip,px30-vip"; + reg = <0x0 0xff490000 0x0 0x200>; + interrupts = ; + clocks = <&cru ACLK_CIF>, <&cru HCLK_CIF>, <&cru PCLK_CIF>; + clock-names = "aclk", "hclk", "pclk"; + power-domains = <&power PX30_PD_VI>; + resets = <&cru SRST_CIF_A>, <&cru SRST_CIF_H>, <&cru SRST_CIF_PCLKIN>; + reset-names = "axi", "ahb", "pclkin"; + status = "disabled"; + }; + qos_gmac: qos@ff518000 { compatible = "rockchip,px30-qos", "syscon"; reg = <0x0 0xff518000 0x0 0x20>;