Received: by 10.223.185.116 with SMTP id b49csp6113208wrg; Thu, 8 Mar 2018 01:56:28 -0800 (PST) X-Google-Smtp-Source: AG47ELvNkc3J2PgL2uGuprffbwWiI6tgNV+30haRaD596p94mpru+Xe8hb5RFj6HCuVPyu1ZmGwa X-Received: by 2002:a17:902:4545:: with SMTP id m63-v6mr22956312pld.15.1520502988689; Thu, 08 Mar 2018 01:56:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520502988; cv=none; d=google.com; s=arc-20160816; b=pWGJkbqmDeUGXrhTHJiZZjULv1/cHsoc44sLeMpqh6crEvAdeY6eJ3fOBrHj++g8RT IMI9TCTVs89qroOCxmtQWxyvtDnKgXscsEXDuLsW64bUKPy8Q7jP4I18qPOY2c5I9+TC OTSsg0k8JfbRrwX/MMInXKV9D8+g0UYfilRb1x3lo40WlGAo+UQq2nfzAh8XnYist4no M3RywE3TY9jDqGQ5qL4V5MLopZPYph6GyZMevnInI2TfK8kfAlK9We97bnm7oQahmsA4 EredMIHB0RkN/KYCG4Q+H0jYknB8FokiKBsuwrYE1yFcVZTgJvDuId+l7mquUbwqaclZ 5vEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=aOSiX2X4e6lJYaW4r78JZXvAGSsB3FFhPiF6f6g5Z68=; b=zSAmuYkANelkEhmYmdALl4H0ovoqvsWQLRS9EKd3gs4T/Rfo6VbaZGKvwr7C13E6U/ LcsLUdyKt5PZUK291WTeHpxtNR3We/VDx7V4X1pJzyKvVC4WC4+qdRmpWVDHxElcwG3s pjAGqoZa+mJvIu8/yf+Srwr5gVrIL7Ewm6ur0FkNtvoUEeWGVEmTsCv6hYunkX5O45aq J48oMXebKlZCms6NU/yYJ+dYGNyqbN4cRKO5TD9E4xLtBYffitJIAwLlVO8zzXQtYYCn Xs/VEBSG3d3B/GhcfTnfMwi/vRJgj3DYZ3oqSmIZfK44Eu/lxtERRTCbjUhi9C/BrsD7 Twjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m62si12649720pga.507.2018.03.08.01.56.14; Thu, 08 Mar 2018 01:56:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755635AbeCHJwU (ORCPT + 99 others); Thu, 8 Mar 2018 04:52:20 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35368 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935735AbeCHJtc (ORCPT ); Thu, 8 Mar 2018 04:49:32 -0500 Received: by mail-pg0-f66.google.com with SMTP id l131so2033458pga.2; Thu, 08 Mar 2018 01:49:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=aOSiX2X4e6lJYaW4r78JZXvAGSsB3FFhPiF6f6g5Z68=; b=g95IHP09fHVPY0WdG5J0iBRGkozj66MHd6BxHfCX9lG5dNwEA/il35petWN8iRCWg/ PDaYSZvhh5PpBOzfWJ7uORyS38UdtSoJfQA5ChSdFf3GugbozYjFH4Yi9UthQV0s0EKm HzkkXcNi95HYmZYrzlknHaK8Zgr4l1Qbi2i17XbPXX3uXoVetAwvbSutbyhmVxjwZ1TI dM1jMUmihe0UeAhwWFfsRIcSO4dFOYGUQ/OC60nVv5KEs0v2kVx4wr88AN77OUlGZszs 9qs9j5DQG5CX8U0V4QdS7KctV6T9jx2wuP+VkfGoRgxDqNUZ2Z4wxuKo1tC+iy5j0l3b qlIA== X-Gm-Message-State: APf1xPDumfyWMfOfK/SRv7GUmA1yHKun17F8LbMC/Q4mlAKWeUykO+Y+ 0s8sPHKBQow8/GepLFIWaIA= X-Received: by 10.98.171.24 with SMTP id p24mr25742494pff.71.1520502571400; Thu, 08 Mar 2018 01:49:31 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id k66sm40411663pfb.123.2018.03.08.01.49.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Mar 2018 01:49:30 -0800 (PST) From: Jacob Chen To: linux-rockchip@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mchehab@kernel.org, linux-media@vger.kernel.org, sakari.ailus@linux.intel.com, hans.verkuil@cisco.com, tfiga@chromium.org, zhengsq@rock-chips.com, laurent.pinchart@ideasonboard.com, zyc@rock-chips.com, eddie.cai.linux@gmail.com, jeffy.chen@rock-chips.com, devicetree@vger.kernel.org, heiko@sntech.de, Jacob Chen Subject: [PATCH v6 10/17] dt-bindings: Document the Rockchip ISP1 bindings Date: Thu, 8 Mar 2018 17:48:00 +0800 Message-Id: <20180308094807.9443-11-jacob-chen@iotwrt.com> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180308094807.9443-1-jacob-chen@iotwrt.com> References: <20180308094807.9443-1-jacob-chen@iotwrt.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jacob Chen Add DT bindings documentation for Rockchip ISP1 Signed-off-by: Jacob Chen Reviewed-by: Rob Herring --- .../devicetree/bindings/media/rockchip-isp1.txt | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/rockchip-isp1.txt diff --git a/Documentation/devicetree/bindings/media/rockchip-isp1.txt b/Documentation/devicetree/bindings/media/rockchip-isp1.txt new file mode 100644 index 000000000000..4631a4b7c88a --- /dev/null +++ b/Documentation/devicetree/bindings/media/rockchip-isp1.txt @@ -0,0 +1,69 @@ +Rockchip SoC Image Signal Processing unit v1 +---------------------------------------------- + +Rockchip ISP1 is the Camera interface for the Rockchip series of SoCs +which contains image processing, scaling, and compression funcitons. + +Required properties: +- compatible: value should be one of the following + "rockchip,rk3288-cif-isp"; + "rockchip,rk3399-cif-isp"; +- reg : offset and length of the register set for the device. +- interrupts: should contain ISP interrupt. +- clocks: phandle to the required clocks. +- clock-names: required clock name. +- iommus: required a iommu node. + +port node +------------------- + +The device node should contain one 'port' child node with child 'endpoint' +nodes, according to the bindings defined in Documentation/devicetree/bindings/ +media/video-interfaces.txt. + +- endpoint(parallel): + - remote-endpoint: Connecting to a sensor with a parallel video bus. + - parallel_bus properties: Refer to Documentation/devicetree/bindings/ + media/video-interfaces.txt. +- endpoint(mipi): + - remote-endpoint: Connecting to Rockchip MIPI-DPHY, + which is defined in rockchip-mipi-dphy.txt. + +The port node must contain at least one endpoint, either parallel or mipi. +It could have multiple endpoints, but please note the hardware don't support +two sensors work at a time, they are supposed to work asynchronously. + +Device node example +------------------- + + isp0: isp0@ff910000 { + compatible = "rockchip,rk3399-cif-isp"; + reg = <0x0 0xff910000 0x0 0x4000>; + interrupts = ; + clocks = <&cru SCLK_ISP0>, + <&cru ACLK_ISP0>, <&cru ACLK_ISP0_WRAPPER>, + <&cru HCLK_ISP0>, <&cru HCLK_ISP0_WRAPPER>; + clock-names = "clk_isp", + "aclk_isp", "aclk_isp_wrap", + "hclk_isp", "hclk_isp_wrap"; + power-domains = <&power RK3399_PD_ISP0>; + iommus = <&isp0_mmu>; + + port { + #address-cells = <1>; + #size-cells = <0>; + + /* mipi */ + isp0_mipi_in: endpoint@0 { + reg = <0>; + remote-endpoint = <&dphy_rx0_out>; + }; + + /* parallel */ + isp0_parallel_in: endpoint@1 { + reg = <1>; + remote-endpoint = <&ov5640_out>; + bus-width = <8>; + }; + }; + }; -- 2.16.1