Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp50823pxj; Thu, 10 Jun 2021 14:31:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxParJvn4clq9sIaR9nVwPe3UbgphoZ2ARjZ5aFyb8dOrrFY21jzrUqos1mJ0ZM2aCoh8t X-Received: by 2002:aa7:cf0d:: with SMTP id a13mr462616edy.384.1623360679542; Thu, 10 Jun 2021 14:31:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623360679; cv=none; d=google.com; s=arc-20160816; b=bR9+MCHgCJWZXNVFNoRQ8EmD+hlMIsQeVoxs/PbNCF8eD91hv9/jY4UDzwfJszwQy2 6A1U+DxmMkFjMbMwLXVQYxuPGybXiG5PSb4bGieLJB4yHf7bMWXCTNSjIPmzSibiLg4v biT8Mn/TLvTmhOU2xwMpI5B0xlMefQdTzF0nocckvzRI4aYutkdO86yZJ/mM42eQnbZ2 B0nhh5rGJGquryMV8zJkPtS9+OMqN0TONz4/xuai0Da4Um0r+8zzVekrPcVCUIxCM5Tb GsV7G5042iYNQefOt2bDuOkemoqlIB255XrvTpljgy9U6DWuhctkTmhKMk0SB9ab/Pyo gIwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=f0LV7qlvRneUSgOgnX64g5ryv+FEwvZ4VgbGGAUhGkI=; b=c01olYYM8JOLrWkq6jK0X+I5T28gz8bxXF/eRS9fvzXB9TuV0+Qdxn+Y38LQKTuKdw qYnRDIJVLwhLg1yBcxmYKN8XHLm9GqIKJO7wG3gV/O0W3Na9R+KQncYDFFo1bxqHF6ec /ndLGmItK3fI8LkUZrYuaoFe80RYusoAqr0qslW7t+5ELfi3KcsgCPPIBL8OLhSeeIPr dcpE1A5nFr8v8T/3PqcCaD8b+dbfYX0luzjhITJ59ge0EIU7WpXTxejuXc3cDbe1FFW6 WAAYU0zO0EM/VNfsvK22MTwTZjKvQLKm6Lldfwt3/ksaW53Ra19lMjhXdNSFkIZc89Az EN+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn20si3610659ejc.125.2021.06.10.14.30.37; Thu, 10 Jun 2021 14:31:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230288AbhFJVbk (ORCPT + 99 others); Thu, 10 Jun 2021 17:31:40 -0400 Received: from gloria.sntech.de ([185.11.138.130]:44900 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229963AbhFJVbj (ORCPT ); Thu, 10 Jun 2021 17:31:39 -0400 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lrSFB-0006er-80; Thu, 10 Jun 2021 23:29:41 +0200 From: Heiko Stuebner To: kishon@ti.com, vkoul@kernel.org Cc: robh+dt@kernel.org, heiko@sntech.de, ezequiel@collabora.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, Heiko Stuebner , Rob Herring Subject: [PATCH v2 1/2] dt-bindings: phy: add yaml binding for rockchip-inno-csi-dphy Date: Thu, 10 Jun 2021 23:29:34 +0200 Message-Id: <20210610212935.3520341-2-heiko@sntech.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210610212935.3520341-1-heiko@sntech.de> References: <20210610212935.3520341-1-heiko@sntech.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Heiko Stuebner Some Rockchip SoCs like the rk3368, rk3326, px30 use a CSI dphy based on an Innosilicon IP. Add a binding for them. Signed-off-by: Heiko Stuebner Reviewed-by: Rob Herring --- .../bindings/phy/rockchip-inno-csi-dphy.yaml | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/rockchip-inno-csi-dphy.yaml diff --git a/Documentation/devicetree/bindings/phy/rockchip-inno-csi-dphy.yaml b/Documentation/devicetree/bindings/phy/rockchip-inno-csi-dphy.yaml new file mode 100644 index 000000000000..bb4a2e4b8ab0 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/rockchip-inno-csi-dphy.yaml @@ -0,0 +1,79 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/rockchip-inno-csi-dphy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip SoC MIPI RX0 D-PHY Device Tree Bindings + +maintainers: + - Heiko Stuebner + +description: | + The Rockchip SoC has a MIPI CSI D-PHY based on an Innosilicon IP wich + connects to the ISP1 (Image Signal Processing unit v1.0) for CSI cameras. + +properties: + compatible: + enum: + - rockchip,px30-csi-dphy + - rockchip,rk1808-csi-dphy + - rockchip,rk3326-csi-dphy + - rockchip,rk3368-csi-dphy + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: pclk + + '#phy-cells': + const: 0 + + power-domains: + description: Video in/out power domain. + maxItems: 1 + + resets: + items: + - description: exclusive PHY reset line + + reset-names: + items: + - const: apb + + rockchip,grf: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Some additional phy settings are access through GRF regs. + +required: + - compatible + - reg + - clocks + - clock-names + - '#phy-cells' + - power-domains + - resets + - reset-names + - rockchip,grf + +additionalProperties: false + +examples: + - | + + csi_dphy: phy@ff2f0000 { + compatible = "rockchip,px30-csi-dphy"; + reg = <0xff2f0000 0x4000>; + clocks = <&cru 1>; + clock-names = "pclk"; + #phy-cells = <0>; + power-domains = <&power 1>; + resets = <&cru 1>; + reset-names = "apb"; + rockchip,grf = <&grf>; + }; -- 2.29.2