From patchwork Tue Jul 17 12:57:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 142142 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3625512ljj; Tue, 17 Jul 2018 05:58:15 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdSzlEcmZkbkhppxuQ11ZnaI4493qcDA6OvN6pymukAYBEMovGWI2aISyNv/MhhcLxntWSp X-Received: by 2002:a62:e00a:: with SMTP id f10-v6mr593266pfh.208.1531832295236; Tue, 17 Jul 2018 05:58:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531832295; cv=none; d=google.com; s=arc-20160816; b=EQa34aSXnsv6y8fkzYjuOP8WmqMyXDREZzgjnAcx31JjWZJuNoqrIsfQNUIREBXofv GXa4EgAwZNtElRxip+KKBolLrMspfDQ1C1/AWOWNKqHk+/2aNyjn6OYZu+yU/L83QvLh FELaME5LGlxmGyymIjq0AYd0HGGMzO8IGCZct34G1eCGEDTJD7wd8MsfIDhJqGc3gHvk 03Q0ng+vptK7ZNBGQNsUQszCuvAnUDJ2aVLNOgrC+ChWlylGAOPq3lShPpzPdrPPBWn6 YcabChVqy8ZeN7PtDkAugW1AahcMzHUUxQZJxqRPpgPgmwMmgq290yd92PU9IvNKEolX Cpkg== 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:dkim-signature:arc-authentication-results; bh=aY/U4UQh4p+Y71KE40ak3ncC9BfSK/I1QjJGc1PBTnw=; b=RJSA2kUwwGJaLnZGxcLZfDbv2r+Z10ujAmeG/sK4U2xMX76gTtXnqSDhzswa+t07+Q tdllB0doGt7s0BVBP6m8SK0Pwt8ka2LfjzhvPBG8vSse9MEBUWt55yrc+P3D/MDcKh5S J4YHtswzJFaKwA0VBndZsBlphfaIUh/g/xcwqCEFm63hIoNRksLzgJRkoMa+n3P3NGwi RA3uaXTdnJ5lNJv2E50UlPvbLJh214k7wF0HasOjIpDKOGPNZtI22XXX21QTHdcA889m qxoLsAyH2MLMtT8O0TmZgcW8atJsEmDsr6gClkwY5zzjbj6DPGcsGDczQ99hgaavCmnn UoWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ycnypdqt; spf=pass (google.com: best guess record for domain of linux-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b18-v6si839068pgd.185.2018.07.17.05.58.15; Tue, 17 Jul 2018 05:58:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ycnypdqt; spf=pass (google.com: best guess record for domain of linux-i2c-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731580AbeGQNar (ORCPT + 2 others); Tue, 17 Jul 2018 09:30:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:48672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731242AbeGQNar (ORCPT ); Tue, 17 Jul 2018 09:30:47 -0400 Received: from localhost.localdomain (unknown [122.178.206.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A3D5020C10; Tue, 17 Jul 2018 12:58:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1531832294; bh=4hmsnQrjT93Ja6/pq888701+ccOTu93J6FMUd2KRevQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ycnypdqtQ7JQgZigEa6QwJ2NlPtYTHrfl7QseQL20vOzjDRE6b4gcSWTntHr+VM79 VpRb26i42r5vOfBSd81EycF1zGuDU+WXkNlLxryTyYCgLzUP3BD8RNPK4GkWxJ9lLo uktxuUaQIzdGaS4S1PAaXesfkmH3qLHGRgFZeQb0= From: Vinod Koul To: linux-i2c@vger.kernel.org Cc: Bjorn Andersson , linux-arm-msm@vger.kernel.org, Rob Herring , Wolfram Sang , devicetree@vger.kernel.org, Todor Tomov , Vinod Koul Subject: [PATCH v2 1/2] dt-bindings: i2c: Add binding document for Qualcomm CCI Date: Tue, 17 Jul 2018 18:27:28 +0530 Message-Id: <20180717125729.23045-2-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180717125729.23045-1-vkoul@kernel.org> References: <20180717125729.23045-1-vkoul@kernel.org> Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org From: Todor Tomov Add DT binding document for Qualcomm Camera Control Interface device Signed-off-by: Todor Tomov Signed-off-by: Vinod Koul --- .../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.14.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 000000000000..cb1fe158fba3 --- /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>; + };