Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2284098rdb; Wed, 21 Feb 2024 02:58:34 -0800 (PST) X-Forwarded-Encrypted: i=4; AJvYcCWhU0j1Z1Hv5DmSybK0iZjNBZ+BvbJZf477l7VXNvuKFU/PQDHi01txM509PibAEy/pZWu38YIITpEfhX/FWR7hsQvpTbu85Uzw1dLydw== X-Google-Smtp-Source: AGHT+IG3gHGu1w1qYYdh2fnDdZaRUC4q1r0cnxYELuP1WewJRgASl4OToKtjaCbpSMH8n3w7Vc3x X-Received: by 2002:a17:90b:17c9:b0:29a:b02:262b with SMTP id me9-20020a17090b17c900b0029a0b02262bmr1652347pjb.33.1708513114687; Wed, 21 Feb 2024 02:58:34 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1708513114; cv=pass; d=google.com; s=arc-20160816; b=Phg+PoWoILjqxu2BtXzCljyQxa1BucN+IFlYPZzu2hB07iIAyhGtS8udWiimyq26UR 2TIpEbFt+hT310sGaygqtjR0D4tuOMG9VHe78gjJiHntLCnbEMJC6QB45JWeKZlduLYO jGPZyp++JdPeqJNzV8uh7/Qan4vtvn0sSD1WICQ1YmUuBWu3l0SwXMgTG5izX8TTVmsc janIjLBrz7UHae70QnYleC3umzHmbjeSiXsTKwcCO4aL1dEqnUHeNzaTZkX9UraB3f80 1n1kYKpjbBjVK9u5Mo4o8MMWoEZ95btAZ96HcbBT0B7p0hFfn7Nud59K2wM8MJXHLd9H fN1Q== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=VflWzHR2epedex4fdVA6CCyN8VAZ75HPYtEERrituog=; fh=0qqz4l3Qp9jX7POlKEMJNZAR80D/WlcGMLj0op064+M=; b=S1VDg3KWbDhoi1fMk+ykW1vlJzDqFalnRAOLYLKSvxOhzPHtqWs3Y8SNLZDpVlSLe5 B5DqgEUVTk4lzfNmbtMGl/empNmsAQbc7fmFcR0n+u0HffwZF4JwME8anNeFWIG/UG3Q dG0KCm8eKmNF49ay0+DuKq3j1FDSTI2TcZahgURVybIfLtrbXFsF6zL51XZ2JB+98/+5 5VAbgKJt458SnKjgQbC/p0CNhAVKxjV85JZcFu3E1LnZivyAhq91Lykr9asKRgzplGdJ TurGeRwLahU+fuTn/aQsufBiRkGm2nS3iutY1rE/OZuasL9jM/oryMk/QutSRCSC0Q4z LU6A==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@iki.fi header.s=meesny header.b=RXDUnqSJ; arc=pass (i=2 spf=pass spfdomain=iki.fi dkim=pass dkdomain=iki.fi); spf=pass (google.com: domain of linux-kernel+bounces-74574-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74574-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id gx1-20020a17090b124100b002964c7d3e30si1257688pjb.45.2024.02.21.02.58.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 02:58:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74574-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@iki.fi header.s=meesny header.b=RXDUnqSJ; arc=pass (i=2 spf=pass spfdomain=iki.fi dkim=pass dkdomain=iki.fi); spf=pass (google.com: domain of linux-kernel+bounces-74574-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74574-linux.lists.archive=gmail.com@vger.kernel.org" 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 6257328475D for ; Wed, 21 Feb 2024 10:58:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 346C93DB8C; Wed, 21 Feb 2024 10:58:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=iki.fi header.i=@iki.fi header.b="RXDUnqSJ" Received: from meesny.iki.fi (meesny.iki.fi [195.140.195.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 093B83EA93; Wed, 21 Feb 2024 10:58:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=195.140.195.201 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708513094; cv=pass; b=Pn2CZBoSW23MYJ3KfDH3NsPDX1QuabSfMrQcWfRgGy4J/dyi4I9yH/Xb/GJsN7NWDm42nPjHVTYvsUnn9bLWXZ5nqkxj2uXDfdpAfl1x9Xh2nlyUrJEE1BXOIO4F7Epc18WwaqAJjwxvJ4mW2C39WzdT84CrVGZ5hACkBka/IkA= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708513094; c=relaxed/simple; bh=o8sYnoTQvODKPsJ5eLmeJIo3Vkg1AHBr3FnhQry1IJE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZNDI0YQo7E5n86kOS2jzxipXxhC5uKWWHxLQqnInB1goH8cIDWqJWWjXLy3bj2KB3DHt37kdvbSq3hWHdI8TSW9/nOvJetK6qKSl4Mo2BLlnp9AWykZZwNdn8VR6yOn5Dez6ra8Jv2ll4EuvQg3OeZowlvmoU7uH3M6QBDSIDv0= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iki.fi; spf=pass smtp.mailfrom=iki.fi; dkim=pass (1024-bit key) header.d=iki.fi header.i=@iki.fi header.b=RXDUnqSJ; arc=pass smtp.client-ip=195.140.195.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iki.fi Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iki.fi Received: from hillosipuli.retiisi.eu (2a00-1190-d1dd-0-c641-1eff-feae-163c.v6.cust.suomicom.net [IPv6:2a00:1190:d1dd:0:c641:1eff:feae:163c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sailus) by meesny.iki.fi (Postfix) with ESMTPSA id 4TftXm5q20zyRj; Wed, 21 Feb 2024 12:58:00 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1708513083; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VflWzHR2epedex4fdVA6CCyN8VAZ75HPYtEERrituog=; b=RXDUnqSJFv3hpYNEpxvGSu7gqWhh0ujUdsdT4YCJ4dDWESvOzAM5eqvZPrjcRCCcjsE8ra SThL5MHDt7PIeiVjLDSqKME8DxlHb74mG0tgBLnF4L+EJhS0lwWZh+KrcRhM45xaVKTo9J ZvSeLATKC5eCBBgoF8H0dRMfGBpXgUY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1708513083; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VflWzHR2epedex4fdVA6CCyN8VAZ75HPYtEERrituog=; b=o1wxzSlssOm48b1EhrHj0rsBX7CX/GSH7Or4RkiN6FPA5wFLiLFP0mcG1NkxT0K25z7V+7 8wgpV4nuhyCd35ikGsp3CRc3QKgBdm6HoSin4dZwEal6VS2jLWqfpD7L2bljcN0WBlJ926 uM0zgj1+8m7C5a33uoX19/3aAo0M9Hg= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=sailus smtp.mailfrom=sakari.ailus@iki.fi ARC-Seal: i=1; s=meesny; d=iki.fi; t=1708513083; a=rsa-sha256; cv=none; b=uE2cKX6w2Endr4JLi6v7mx6NOaOpXQ0ZzEzFrb42PbN54KgbvPwp/RWwdaSowkQXTVcGrx ojmewYuUzp/WY6qeSfZYgVe7Ki/20jJogiMEIxrTGpryQVz9XEfeZ8RLro5RzDqn79EWZH AfR3TyKMOtGuDl0MSBAzDuMkOmaYbSU= Received: from valkosipuli.retiisi.eu (valkosipuli.localdomain [192.168.4.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hillosipuli.retiisi.eu (Postfix) with ESMTPS id 36092634C93; Wed, 21 Feb 2024 12:57:59 +0200 (EET) Date: Wed, 21 Feb 2024 10:57:58 +0000 From: Sakari Ailus To: Mehdi Djait Cc: mchehab@kernel.org, heiko@sntech.de, hverkuil-cisco@xs4all.nl, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, conor+dt@kernel.org, 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 , Conor Dooley Subject: Re: [RESEND Patch v13 1/3] media: dt-bindings: media: add bindings for Rockchip CIF Message-ID: References: <13deb8c5cb58e08c1b47decd112b51e8e0b6c4dc.1707677804.git.mehdi.djait.k@gmail.com> 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=us-ascii Content-Disposition: inline In-Reply-To: Hi Mehdi, On Tue, Feb 20, 2024 at 09:48:06PM +0100, Mehdi Djait wrote: > Hi Sakari, > > On Tue, Feb 20, 2024 at 07:30:53PM +0000, Sakari Ailus wrote: > > Hi Mehdi, > > > > On Tue, Feb 20, 2024 at 06:04:10PM +0100, Mehdi Djait wrote: > > > Hi Sakari, > > > > > > Thank you for the review. > > > > You're welcome! > > > > > > > > On Tue, Feb 13, 2024 at 12:04:58PM +0000, Sakari Ailus wrote: > > > > Hi Mehdi, > > > > > > > > Thanks for the patchset. > > > > > > > > On Sun, Feb 11, 2024 at 08:03:30PM +0100, Mehdi Djait wrote: > > > > > 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 > > > > > > > > What about the vsync-active, hsync-active and data-active properties? > > > > Aren't they relevant for this device? Are there default values? This should > > > > be part of the bindings for the device, shouldn't it? > > > > > > > > > > From what I gathered from the Rockchip PX30 TRM and the other > > > available documents from Rockchip, I will add the following: > > > > > > diff --git a/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml b/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml > > > index 6af4a9b6774a..6920b0cb0507 100644 > > > --- a/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml > > > +++ b/Documentation/devicetree/bindings/media/rockchip,px30-vip.yaml > > > @@ -69,6 +69,14 @@ properties: > > > bus-type: > > > enum: [5, 6] > > > > > > + hsync-active: > > > + enum: [0, 1] > > > + default: 1 > > > + > > > + vsync-active: > > > + enum: [0, 1] > > > + default: 0 > > > > I'd use the same default for both, whether it's 0 or 1. > > > > Is this supposed to be the default value HIGH or LOW if it is not > configured by the driver ? because the manual states the following: > > HREF_POL > Href input polarity: > 1'b0 : high active > 1'b1 : low active > RESET VALUE: 0x0 > > VSYNC_POL > Vsync input polarity: > 1'b0 : low active > 1'b1 : high active > RESET VALUE: 0x0 > > And that's why I chose 1 for hsync and 0 for vsync The hardware reset values do not have to reflect defaults in DT bindings. -- Kind regards, Sakari Ailus