From patchwork Fri Oct 13 10:56:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Todor Tomov X-Patchwork-Id: 115754 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp584714qgn; Fri, 13 Oct 2017 03:57:55 -0700 (PDT) X-Google-Smtp-Source: AOwi7QAH4Dgm9Vhmypt8thF21Wc69wAlMoGRkqw7G9ke1jXuWg4Ppi1VT4I7DeOBemJGmTe3QHX0 X-Received: by 10.99.168.13 with SMTP id o13mr969461pgf.435.1507892275207; Fri, 13 Oct 2017 03:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507892275; cv=none; d=google.com; s=arc-20160816; b=tx+pqf8+X8wut4NglyHV21kFnNPgrKweE9/WvrFY2nlWrjIv6GQ9LgBU88LgPHDG8S q0LBl85/mNJrxNxhWPWgLtcZw/VcYnERVXN7/aTbL8UlLbem2s8S4MSfD3ZZdjXsIslS IQHVcK2TnF+yIXLSouq4pbRcJru5FDsSaZE+5V26QR8eacsYQC5hNaRXJfC27K/SFcIX kKlucHPxDGJfeJDif14ibD7QVLFNUt2UTlbZprKTKYoVflYEPzievBMi5uNV3UUCEnKJ L361Wp+JOhfz3C/a+Y0/NE7tlrAv8IO/5aBcq+4k6GmjtIG35PISmEKNyBPCoGKbh7UA m+Mw== 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=2WGAFjEIihC+YbifWWEyoA342j26nL1m1r7lchpzmwc=; b=h2SM0ZZJ5OKvs8jgbdICaOwUp37JI4xcDTOPOZL73locj0oCmt8bl6c94emyLw9giN egRhFxZ7l5rMYvfZu/Q+4e1xKqQnhok8dxTSakcs0DKkVkkRa0Cem5wTaB1ashlJLyOF +CrgRUIAgzCDs0TTTjIbWVycr7cdjnNGUgv7MHdTEPm+m++GDz9XWYZXhrg/nC5Pr7iz okCSTguPaH4p8NzWKO78ZqWln4r/I/K2dAAzJlOp9bk27S6LFldT58zoVRN4/mUarXO8 Ml8ZFWBzRGKNtZnvP2eaMURF34I/xzaAIKo31QLGRmYFX2UFu5QQhh7+Wk8dCnd2Njgj tS1w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s11si465073plp.812.2017.10.13.03.57.54; Fri, 13 Oct 2017 03:57:55 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757823AbdJMK5x (ORCPT + 27 others); Fri, 13 Oct 2017 06:57:53 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:37931 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751468AbdJMK5s (ORCPT ); Fri, 13 Oct 2017 06:57:48 -0400 Received: from mms-0439.qualcomm.mm-sol.com (unknown [37.157.136.206]) by extserv.mm-sol.com (Postfix) with ESMTPSA id 146C6CC35; Fri, 13 Oct 2017 13:57:46 +0300 (EEST) From: Todor Tomov To: wsa@the-dreams.de, linux-i2c@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Todor Tomov , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH v2 1/4] dt-bindings: media: Binding document for Qualcomm Camera Control Interface driver Date: Fri, 13 Oct 2017 13:56:40 +0300 Message-Id: <1507892203-17033-2-git-send-email-todor.tomov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507892203-17033-1-git-send-email-todor.tomov@linaro.org> References: <1507892203-17033-1-git-send-email-todor.tomov@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DT binding document for Qualcomm Camera Control Interface driver CC: Rob Herring CC: Mark Rutland CC: devicetree@vger.kernel.org Signed-off-by: Todor Tomov --- .../devicetree/bindings/i2c/i2c-qcom-cci.txt | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/i2c/i2c-qcom-cci.txt -- 2.7.4 diff --git a/Documentation/devicetree/bindings/i2c/i2c-qcom-cci.txt b/Documentation/devicetree/bindings/i2c/i2c-qcom-cci.txt new file mode 100644 index 0000000..cb1fe15 --- /dev/null +++ b/Documentation/devicetree/bindings/i2c/i2c-qcom-cci.txt @@ -0,0 +1,46 @@ +Qualcomm Camera Control Interface controller + +Required properties: + - compatible: Should be one of: + - "qcom,cci-v1.0.8" for 8916; + - "qcom,cci-v1.4.0" for 8996. + - #address-cells: Should be <1>. + - #size-cells: Should be <0>. + - reg: Base address of the controller and length of memory mapped region. + - interrupts: Specifier for CCI interrupt. + - clocks: List of clock specifiers, one for each entry in clock-names. + - clock-names: Should contain: + - "mmss_mmagic_ahb" - on 8996 only; + - "camss_top_ahb"; + - "cci_ahb"; + - "cci"; + - "camss_ahb". + +Required properties on 8996: + - power-domains: Power domain specifier. + +Optional: + - clock-frequency: Desired I2C bus clock frequency in Hz, defaults to 100 kHz + if omitted. + +Example: + + cci@a0c000 { + compatible = "qcom,cci-v1.4.0"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xa0c000 0x1000>; + interrupts = ; + power-domains = <&mmcc CAMSS_GDSC>; + clocks = <&mmcc MMSS_MMAGIC_AHB_CLK>, + <&mmcc CAMSS_TOP_AHB_CLK>, + <&mmcc CAMSS_CCI_AHB_CLK>, + <&mmcc CAMSS_CCI_CLK>, + <&mmcc CAMSS_AHB_CLK>; + clock-names = "mmss_mmagic_ahb", + "camss_top_ahb", + "cci_ahb", + "cci", + "camss_ahb"; + clock-frequency = <400000>; + };