From patchwork Sun Oct 2 12:28:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 12996828 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00A40C433FE for ; Sun, 2 Oct 2022 12:29:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229910AbiJBM31 (ORCPT ); Sun, 2 Oct 2022 08:29:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229914AbiJBM3Z (ORCPT ); Sun, 2 Oct 2022 08:29:25 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDCC627CD4; Sun, 2 Oct 2022 05:29:24 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id bu25so13109936lfb.3; Sun, 02 Oct 2022 05:29:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=BVVW1SJyGTEvQW/vtwe80ftTe+h1+8q3HzEC6fOqCmg=; b=VQTrcbeDazS9cD7BOvYipG18U3ieRRCaJPS9UaIHWoz9/cqNspgjz5drQCAFIdw2fv 31DK9Ci//Io9QBjJ5s5k6d4euceBLf83I5mJPOraPvzRq3Ft6QvbHZnWpepjsxgxZJ5t vl8X/9y2J9vS/JSEgF3/QnFzGd3wBne2PeVg1UhH3t4OGdTY+f9WlKv+VyRw3HaC2pgE i2oWQvaS8szCbQJNRRCzExYBMEoi8fRfsHYTw0NcG16jMHqEH8jr2R/gXtk6lnLV9IBN 5bt1171ZsBMnDz/zkSdRI+9nPRo44oO/mEcObI12VJ9FvLaRg4r/rNnjlRNwypbidFE0 zImQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=BVVW1SJyGTEvQW/vtwe80ftTe+h1+8q3HzEC6fOqCmg=; b=RyVPcgl5xIFdCZiq64e7E9g8MsJKTzv+XbQxW+MAjx4Q54EP5DH1T3K0bP94qQ5gRE 79dO+rpg6DPxYblHkEJzbqd/SURw+PDbBMI2cw4PHd7GaLcaDJ1NTo4ju2x5tNkeMo7M AVtRDknFdP017YFRQMgvc0Wzv9SSP30UOYKBu7/h8tBOs6dSske56J4XzNbpjc3jVMma N3TmI5aM1BaGtteNGvPe3mAqaZYY1MqgE4ZGqW3oMM7fdWoEUFMTTlaGrlYxSrsOR3rd I9YdTgSS4+zvsHNbT1Iu0BuJ5/0X3/eTBBW0auifDRvAnOXqJD4lGDO65hxGWBP2Ncfl h7Dw== X-Gm-Message-State: ACrzQf1LXvWJ581e7akrgnk2d8ZPIiu6CSJzqS7TcipogEcafRSHe2QI vB5TxVfWc8qwuTSrEsn2Dauu1jbrg6CVxA== X-Google-Smtp-Source: AMsMyM6JPck1xU+9Ipe5/tUNE9WAQtj+88GY9xlkSOdOYN5YbQw1K+C4/2t4WIK7BoRiL8y5iJ9g7w== X-Received: by 2002:a05:6512:22c9:b0:499:cb5d:c138 with SMTP id g9-20020a05651222c900b00499cb5dc138mr5799488lfu.490.1664713763168; Sun, 02 Oct 2022 05:29:23 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-5673c7-93.dhcp.inet.fi. [86.115.199.93]) by smtp.gmail.com with ESMTPSA id v18-20020a197412000000b0049493c14b17sm1064948lfe.181.2022.10.02.05.29.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Oct 2022 05:29:22 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Rayyan Ansari , =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/6] ARM: dts: qcom: msm8226: Add MMCC node Date: Sun, 2 Oct 2022 15:28:53 +0300 Message-Id: <20221002122859.75525-2-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221002122859.75525-1-matti.lehtimaki@gmail.com> References: <20221002122859.75525-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Rayyan Ansari Add a node for the Multimedia Clock Controller found on MSM8226. Signed-off-by: Rayyan Ansari Signed-off-by: Matti Lehtimäki --- arch/arm/boot/dts/qcom-msm8226.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi index cf2d56929428..e039128028bc 100644 --- a/arch/arm/boot/dts/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi @@ -344,6 +344,14 @@ gcc: clock-controller@fc400000 { #power-domain-cells = <1>; }; + mmcc: clock-controller@fd8c0000 { + compatible = "qcom,mmcc-msm8226"; + reg = <0xfd8c0000 0x6000>; + #clock-cells = <1>; + #reset-cells = <1>; + #power-domain-cells = <1>; + }; + tlmm: pinctrl@fd510000 { compatible = "qcom,msm8226-pinctrl"; reg = <0xfd510000 0x4000>; From patchwork Sun Oct 2 12:28:54 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 12996829 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2C62C433FE for ; Sun, 2 Oct 2022 12:29:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229924AbiJBM33 (ORCPT ); Sun, 2 Oct 2022 08:29:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229920AbiJBM32 (ORCPT ); Sun, 2 Oct 2022 08:29:28 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 813FC27B29; Sun, 2 Oct 2022 05:29:27 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id bu25so13110038lfb.3; Sun, 02 Oct 2022 05:29:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=ujkzJRv7Wk01/aWYBYxoLuM349Mz8v46gWePyURuQP0=; b=aaqDAu1t5K24nmsP+7lEzdD+7B/aONF7y+tLlzy5eQxBw9wLdzBYhWcFwpIRfc0T6m JQwlNYOcfrMbYVjo8rfohSqgpD49rMDewL1Cufd35Bdw/FmjueaShI5yaRXOWWF4ekrW MFaFxA20eobF4G5Raj6pCGqlv4Z9SwskB92k4gvIEtSm6RpN7f2Iwg7kwOkMeAxAXsVU G0D0gYWnEC18Dqa1nRe1NhJ98a3Bw4Hx5xYrEs9FlnIbnh8p8pYZ27PCqPg6Uz4VytwE eq0ZzLw8uri8euIpuVDTJpO/49NH63vTgI9ZkP7B0h6xK7/QCkSJZ1T3I80svQW/S+yO WT9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=ujkzJRv7Wk01/aWYBYxoLuM349Mz8v46gWePyURuQP0=; b=z/Cd5dc3B6pfAxmoGL5v6ZIFr1HcLpMj8bTYDwuv6CbuNl04wRsrvy0XDwD9Y7hCSW WPuCvJTdvTeVlJHkCJcwUAzUiTdAIZQZhpK2yvROO1l7ppiSqN0wH+eAWcaXNJjBYcwU THrSxN6vPOlc1E0CQXQvYGHLwv/VfeWDW10I+KNuGLfrQBm4aJVI9EDB4yNwx0eMkD4q f5PEL0MLGzFppVyToO7pAr47r+7BtsiX662cubwyoD96/ANBjuwyv4+VdqD9xRCBa3sU QoouF8lBlmgFaHGZbTzpxwt5ehwh+DRTS7yGcWhV+M9Aqp3GboFcrPFQuBDT2cqr9VyQ SoVw== X-Gm-Message-State: ACrzQf0XbMKCA1N0a9mXqpdT0pHuovdTSISd/V0zxjwyBlzsI8T9kXdM zcHIPwMXODmguT+XKOMDM/hCHHc/XbMtlw== X-Google-Smtp-Source: AMsMyM6AkaOxIGYesLFVJnJ/tO+7KkvYgZloAhyxL6QBlcTurinWyUBLeDHT2XBqfKDX66b3s0swaw== X-Received: by 2002:a19:ee0a:0:b0:497:a2e3:a9dc with SMTP id g10-20020a19ee0a000000b00497a2e3a9dcmr5628973lfb.96.1664713766978; Sun, 02 Oct 2022 05:29:26 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-5673c7-93.dhcp.inet.fi. [86.115.199.93]) by smtp.gmail.com with ESMTPSA id v18-20020a197412000000b0049493c14b17sm1064948lfe.181.2022.10.02.05.29.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Oct 2022 05:29:26 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Andy Gross , Bjorn Andersson , Konrad Dybcio , Loic Poulain , Robert Foss , Rob Herring , Krzysztof Kozlowski , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/6] dt-bindings: i2c: qcom,i2c-cci: Document MSM8226 compatible Date: Sun, 2 Oct 2022 15:28:54 +0300 Message-Id: <20221002122859.75525-3-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221002122859.75525-1-matti.lehtimaki@gmail.com> References: <20221002122859.75525-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org MSM8226's Camera Control Interface has one master and 3 clocks. Signed-off-by: Matti Lehtimäki Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/i2c/qcom,i2c-cci.yaml | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml index e51a85848d6e..c0f9537a4bb1 100644 --- a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml @@ -13,6 +13,7 @@ maintainers: properties: compatible: enum: + - qcom,msm8226-cci - qcom,msm8916-cci - qcom,msm8974-cci - qcom,msm8996-cci @@ -27,11 +28,11 @@ properties: const: 0 clocks: - minItems: 4 + minItems: 3 maxItems: 6 clock-names: - minItems: 4 + minItems: 3 maxItems: 6 interrupts: @@ -78,11 +79,28 @@ allOf: compatible: contains: enum: + - qcom,msm8226-cci - qcom,msm8916-cci then: properties: i2c-bus@1: false + - if: + properties: + compatible: + contains: + enum: + - qcom,msm8226-cci + then: + properties: + clocks: + maxItems: 3 + clock-names: + items: + - const: camss_top_ahb + - const: cci_ahb + - const: cci + - if: properties: compatible: From patchwork Sun Oct 2 12:28:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 12996830 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B703DC433FE for ; Sun, 2 Oct 2022 12:29:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229932AbiJBM3j (ORCPT ); Sun, 2 Oct 2022 08:29:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229936AbiJBM3g (ORCPT ); Sun, 2 Oct 2022 08:29:36 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C77BB4D; Sun, 2 Oct 2022 05:29:33 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id bs18so7622427ljb.1; Sun, 02 Oct 2022 05:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=Dk2IiPh91fpjlWFjrDYlxIa3PQhf+qigCe0+xfWcs5Y=; b=Z1UdzRub1K/IsYPk0DWGdeKpM4wePalnZDcwubIykYdW3wEI3+9fP5VRVU75nn+nrC FO8H8NInzut1UqtVYjiWfciNDZ++PVZFFGpMLmVt9ZjUSyVoIEZtkUiSAODvgzX7p4zS 7Xm1+54vYMsYf6N4My0mkm2DjayWPN8y+vrZH0VK+GFZnycYkl+SJmG/25BrOVqt3IO+ vXzhs9CjY8zwYP7ku5HehEW27si7kfLKZCelIXTsqMa1C0f6G+FKRHUeYJVA5QGrSv+0 Yvh8UGmbuiMKp4aHNyITptvmjc+zBj6EYSEnGrqq1LftfbwdFB/0VkH5Ox3gD/SkHvr9 tAag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=Dk2IiPh91fpjlWFjrDYlxIa3PQhf+qigCe0+xfWcs5Y=; b=vv55sHAlU/cV+VanYg4Pjiqll1GozbDii/Ipzvz/RVPk7M7ptOl5cx2eFPfcyi6UF5 NeIMXL6ZpkMTA/kasmbswFnwR6Ffkrqat1K1UJ6M4y28NpHQxqk2+qI6xkqQmolWkbrR dovFHvURi+2tLT6YssKq5S/7qXpMy27a6GRkpEac1k8OqVCedJegCnU1YqY8o0ovWOXX 5twI40/q2kFyYNAzmNnu3WSJzRT/jqSTtpL1Wc2RxGgnWusBi4Z40NRwT5vLMGEpa6Pk 2kHsjsblRuxyTjHdUqH+MRI9hjn8HgH11tfwNZ0y/aI34IYKYzvW5HTDxqxQt0T1JT9Y Ur5A== X-Gm-Message-State: ACrzQf10HIUZeJTplK0179m6TLE6oIhIB92x8wHP70UyDEAefaw1jmjH vfqgOD+2zk4ibi8VQzKRFzM22WO2IEGLtw== X-Google-Smtp-Source: AMsMyM60RL/C3BusedRRuYpGyHN89K8qweOFvJl0+NfITULqA/KF6e1N8U78PTUUzq/WahYj84bQpQ== X-Received: by 2002:a2e:b5d7:0:b0:26d:98c2:6ad2 with SMTP id g23-20020a2eb5d7000000b0026d98c26ad2mr5331750ljn.215.1664713771648; Sun, 02 Oct 2022 05:29:31 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-5673c7-93.dhcp.inet.fi. [86.115.199.93]) by smtp.gmail.com with ESMTPSA id v18-20020a197412000000b0049493c14b17sm1064948lfe.181.2022.10.02.05.29.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Oct 2022 05:29:31 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Loic Poulain , Robert Foss , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 3/6] dt-bindings: i2c: qcom,i2c-cci: Document clocks for MSM8974 Date: Sun, 2 Oct 2022 15:28:55 +0300 Message-Id: <20221002122859.75525-4-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221002122859.75525-1-matti.lehtimaki@gmail.com> References: <20221002122859.75525-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Uses same clocks as MSM8226. Signed-off-by: Matti Lehtimäki Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml index c0f9537a4bb1..cf9f8fda595f 100644 --- a/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml +++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-cci.yaml @@ -91,6 +91,7 @@ allOf: contains: enum: - qcom,msm8226-cci + - qcom,msm8974-cci then: properties: clocks: From patchwork Sun Oct 2 12:28:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 12996831 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C57DEC433FE for ; Sun, 2 Oct 2022 12:29:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229986AbiJBM35 (ORCPT ); Sun, 2 Oct 2022 08:29:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229958AbiJBM3o (ORCPT ); Sun, 2 Oct 2022 08:29:44 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9CEDA47D; Sun, 2 Oct 2022 05:29:40 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id a8so13058812lff.13; Sun, 02 Oct 2022 05:29:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=JGB1ZM5jp4Wd/f3Soa04BQKNJMQfCr+/ee6e5E0crXc=; b=ENOZ6YJ9ZYuRybN/zwcRCY5qToCf532j5Zwc/ouZR6722Ooci195qg0ieJD2agRn8p zb6aYOlUz3xehzr79dbXJl9yVt1HW7AqM9njEL6zCi4ewiyMFUhQ5XTRfqQVE2YhF+VU k1k6bd//xQxQeqboMT+bUXkQgGHAe9y2gQUmKUa/yGxGk5tVR64rAP2Hnag1FnGvPT8c Fv77Bq0puOlYg6zlI0OjbrUldhxNguPc9PixtHrVcjKUhAugNrG7V3xH232+11TXsN1y JZdU3yZ3xQ1UI2AUBBrlcqx/L2R8r3QqwUJhJ/YcmIOVv5do751Vw5D8MF6M3IWKpvj6 fhmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=JGB1ZM5jp4Wd/f3Soa04BQKNJMQfCr+/ee6e5E0crXc=; b=WhenlK5U4X74s2W7mHonKOsmHxp36nA7RNjzJjTeCpTyXdKVZf/22P5kRjNwA0z3Jz NcJ1n//wsjVdcqUZcyTElbyq1S9cQpOF+aFOmjYK3b3TEyfBk2CRm+HRLuFUIZxunJh0 lwkjAb8Il1wPJJddYquImT45V8bm6f8NSfCGARssliIgoI5GHfBs5tUXRfCB/hZCHyf2 GHaFwAV9a2gMPaOaaRjsAqvfnINHly8cfl4i5vC/DU+xJ6LVCkCBaE0tB0qzDuglJCon rPttrclp4cl3TCQwXMcUvIIe8BQukqQukBSLvmVevQa7gmvc8ZjmmiqCjVu2yVI6nEl5 ryvw== X-Gm-Message-State: ACrzQf1tjSugZVJNDjUJm1ETKXAl9qZRLVDtxKorwWtLrZZqqtHXg68P RcT2OIdHIvJsENguc7oBz1dfz0MDmd/+qg== X-Google-Smtp-Source: AMsMyM6zup3t+cumnpI0YlukJ9eWABiBU3LJsEf237ETLlnSQf1NUeqxLfYMMjIgwNersBXsWZ0Ejw== X-Received: by 2002:a05:6512:290:b0:4a2:209a:a11f with SMTP id j16-20020a056512029000b004a2209aa11fmr2285753lfp.413.1664713778871; Sun, 02 Oct 2022 05:29:38 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-5673c7-93.dhcp.inet.fi. [86.115.199.93]) by smtp.gmail.com with ESMTPSA id v18-20020a197412000000b0049493c14b17sm1064948lfe.181.2022.10.02.05.29.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Oct 2022 05:29:38 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Rayyan Ansari , =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Loic Poulain , Robert Foss , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 4/6] i2c: qcom-cci: Add MSM8226 compatible Date: Sun, 2 Oct 2022 15:28:56 +0300 Message-Id: <20221002122859.75525-5-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221002122859.75525-1-matti.lehtimaki@gmail.com> References: <20221002122859.75525-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Rayyan Ansari Add a compatible for MSM8226's Camera Control Interface, which is similar to the one used on MSM8916. Signed-off-by: Rayyan Ansari Signed-off-by: Matti Lehtimäki Reviewed-by: Loic Poulain --- drivers/i2c/busses/i2c-qcom-cci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/i2c/busses/i2c-qcom-cci.c b/drivers/i2c/busses/i2c-qcom-cci.c index ea48e6a9cfca..87739fb4388b 100644 --- a/drivers/i2c/busses/i2c-qcom-cci.c +++ b/drivers/i2c/busses/i2c-qcom-cci.c @@ -807,6 +807,7 @@ static const struct cci_data cci_v2_data = { }; static const struct of_device_id cci_dt_match[] = { + { .compatible = "qcom,msm8226-cci", .data = &cci_v1_data}, { .compatible = "qcom,msm8916-cci", .data = &cci_v1_data}, { .compatible = "qcom,msm8974-cci", .data = &cci_v1_5_data}, { .compatible = "qcom,msm8996-cci", .data = &cci_v2_data}, From patchwork Sun Oct 2 12:28:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 12996833 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37AC0C43217 for ; Sun, 2 Oct 2022 12:30:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229970AbiJBMaD (ORCPT ); Sun, 2 Oct 2022 08:30:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229810AbiJBM3x (ORCPT ); Sun, 2 Oct 2022 08:29:53 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03BB313EA0; Sun, 2 Oct 2022 05:29:43 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id g1so13088681lfu.12; Sun, 02 Oct 2022 05:29:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=tSDcJlqQNFjQidf92tfYh99jD2wD2Br/7/lRU6P6wMg=; b=Dimv7vxPQZpWrJp/PddtVyf0puzE34C3348XRZbpYqHJIszjrYgI2cmTn+Qzlg63OI BMcZbLSzXQp+eZTY5LpBAfrv0dlDkifZetoRyZ6vJubGY+obEj5eb0qjWLm5dCmgzW9n w7RQTzvEuQFC/GiyfYGCGeRhDJi/UchnaHC5lLehBo45an2rkgnFKs3s5nr5++b0oVnl tZtrvZDYdA6jUbiv6AUvpLtgspsp+w0wsblVSQ8Qe9CZ3a0Oj2Zc1qWACx0i0qWmG4u+ mEIG60P0fA5aNdYriOY0lJYJ5ERxCxKjfBvvQZBT75vG0CmfZh17KdqGih8Q+PKnkHHv EKfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=tSDcJlqQNFjQidf92tfYh99jD2wD2Br/7/lRU6P6wMg=; b=LLJ4+xY4Fa29i/qoh4GSMilAj6qQDGSFMF5hVW4LUqSJWBjqI32LUFA6gcK3lmwhRA p1tGLP2wJsP4fZQtFSKddMPJGFE+8/mL42y6FSfLceUYfXfNcblubxYT5rnFXj9sSqSQ V6vgI9jZAcNJVfSAbYMz9qpSx/ErejOMEE9kr2sDHjUFAoPy0OO7DDyEe2YagYu/0fxQ LbBUTod1Y3VdN0Fx6lnnY9kXTxoArPf+yVupQOGkicLLKMZnlDRCNRP+NVYr0aSQnpx8 aOKaO8MA977A1GQB6BLO0ER3xjjDb6rdnJzZnQ3uZgpZpnHf/iUdt9A09X94Ik2FTGBU 1MKg== X-Gm-Message-State: ACrzQf1MgEi8REATJNRZjn+mFy0x98CX5Q8ukoQExk3jmUdsRAcw5AIV ki5sSOB7kD3IJcPy0FkTw9VtYmfCkn0dcw== X-Google-Smtp-Source: AMsMyM4KWd3a64QztwV2L6NJ6Y/3q1iKGAJcM23lokj28JK5mZFg1ngDpgpFZ6yMmWoS7hOxyDYWZQ== X-Received: by 2002:a05:6512:b8e:b0:497:fef2:80e2 with SMTP id b14-20020a0565120b8e00b00497fef280e2mr5462075lfv.257.1664713781677; Sun, 02 Oct 2022 05:29:41 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-5673c7-93.dhcp.inet.fi. [86.115.199.93]) by smtp.gmail.com with ESMTPSA id v18-20020a197412000000b0049493c14b17sm1064948lfe.181.2022.10.02.05.29.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Oct 2022 05:29:41 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Rayyan Ansari , =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 5/6] ARM: dts: qcom: msm8226: Add CCI bus Date: Sun, 2 Oct 2022 15:28:57 +0300 Message-Id: <20221002122859.75525-6-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221002122859.75525-1-matti.lehtimaki@gmail.com> References: <20221002122859.75525-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Rayyan Ansari Add a node for the Camera Control Interface I2C bus found on MSM8226. Signed-off-by: Rayyan Ansari Signed-off-by: Matti Lehtimäki --- arch/arm/boot/dts/qcom-msm8226.dtsi | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi index e039128028bc..f5411e209d7b 100644 --- a/arch/arm/boot/dts/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi @@ -7,6 +7,7 @@ #include #include +#include #include #include #include @@ -298,6 +299,33 @@ blsp1_i2c5: i2c@f9927000 { #size-cells = <0>; }; + cci: cci@fda0c000 { + compatible = "qcom,msm8226-cci"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xfda0c000 0x1000>; + interrupts = ; + clocks = <&mmcc CAMSS_TOP_AHB_CLK>, + <&mmcc CAMSS_CCI_CCI_AHB_CLK>, + <&mmcc CAMSS_CCI_CCI_CLK>; + clock-names = "camss_top_ahb", + "cci_ahb", + "cci"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&cci_default>; + pinctrl-1 = <&cci_sleep>; + + status = "disabled"; + + cci_i2c0: i2c-bus@0 { + reg = <0>; + clock-frequency = <400000>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + usb: usb@f9a55000 { compatible = "qcom,ci-hdrc"; reg = <0xf9a55000 0x200>, @@ -397,6 +425,22 @@ blsp1_i2c5_pins: blsp1-i2c5 { bias-disable; }; + cci_default: cci-default-state { + pins = "gpio29", "gpio30"; + function = "cci_i2c0"; + + drive-strength = <2>; + bias-disable; + }; + + cci_sleep: cci-sleep-state { + pins = "gpio29", "gpio30"; + function = "gpio"; + + drive-strength = <2>; + bias-disable; + }; + sdhc1_default_state: sdhc1-default-state { clk { pins = "sdc1_clk"; From patchwork Sun Oct 2 12:28:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matti_Lehtim=C3=A4ki?= X-Patchwork-Id: 12996832 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A2B82C43219 for ; Sun, 2 Oct 2022 12:30:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229967AbiJBMaC (ORCPT ); Sun, 2 Oct 2022 08:30:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37638 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229976AbiJBM3v (ORCPT ); Sun, 2 Oct 2022 08:29:51 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72F5F26CA; Sun, 2 Oct 2022 05:29:45 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id d26so961431ljl.2; Sun, 02 Oct 2022 05:29:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=8eWUoCOV9OFPiTKwbMDBPdwIKQbitR/fBcjjdJ8WY6g=; b=FsYjqVnM1UcTFpv2E65WGF6reuMPfMzjJq20ABuEfNbRsEWvBDp871VCWUxZSfQO6G oQW4RLXw/x6Sf3s+t8GcLZfRQ0JLvgz/+Kf+AYB0cDgOvAoRxHbWFicYYVhIF6acvr2R DYWlAVOZV7wV2Kuhtd4rsI6TJshga2eTXoBXE/J3eDGKgFcTbCqN803gBqKWtsY8+DSH jxvbPVbzBvNAQ+SRKIZf7gDDG9RCWD/RCZMSVtqsqNRkRb8+kTfjdhwcatb9Aw8IUlml Vj7caAXx0/V4rEVyzhKjOFNc3dEZmdkeYajzUiASzhYSqJ5+4EjnyviFTqe1nqjQ8wsh r4aQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=8eWUoCOV9OFPiTKwbMDBPdwIKQbitR/fBcjjdJ8WY6g=; b=U9wIgXCTtL1dLPELJKA7Fu9RrzqG5KayW/R8Bw4GCH4b9umhSHUzfEgRdFJPgnMvrd bDSC+F5YaRjOh6gV1/e/r3rvfeoLKbY7IxoMGbBFdlUeGS2jsURetma8dExpxQTKJozr JQcH/dWGzTTbwdnfPFO6Yzy3icWIrMyMp+JXaDj7U+cHXqHwsFfaBvLsEtHOHR2RebHi DJWHufEcATa2n6hT2DAN7kmfNxjwd40QzPp1vQBAALNyHgZdVZx23sxToO2XUkwrtC0X Q8mufdfIrCH57QPTZQ3Mi3P3SyF0RQ/d/dyOi7JUwQUCcLOD3SpWeG6TssSyeaoIDpaV pv4A== X-Gm-Message-State: ACrzQf3tgwV7ypgL7X+Hj1fDs78Pb9MJxzOI8wEwWMmB070MK0ByUjCM tN5g0tGWhxvJvaYvk81ILitKxUr1dUcacA== X-Google-Smtp-Source: AMsMyM4UOsu0kDdMfepsatzyooypgRX3+Q6sT84h7MhzRVAMmjZsmVen7VJpatJ2S/fVHlF2RXhCHA== X-Received: by 2002:a2e:90d5:0:b0:26d:d03a:c5c4 with SMTP id o21-20020a2e90d5000000b0026dd03ac5c4mr1093551ljg.133.1664713784036; Sun, 02 Oct 2022 05:29:44 -0700 (PDT) Received: from i-vetokaappi.home.lan (dsl-hkibng42-5673c7-93.dhcp.inet.fi. [86.115.199.93]) by smtp.gmail.com with ESMTPSA id v18-20020a197412000000b0049493c14b17sm1064948lfe.181.2022.10.02.05.29.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Oct 2022 05:29:43 -0700 (PDT) From: =?utf-8?q?Matti_Lehtim=C3=A4ki?= To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Luca Weiss , =?utf-8?q?Matti_Lehtim=C3=A4ki?= , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 6/6] ARM: dts: qcom: msm8974: Add CCI bus Date: Sun, 2 Oct 2022 15:28:58 +0300 Message-Id: <20221002122859.75525-7-matti.lehtimaki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221002122859.75525-1-matti.lehtimaki@gmail.com> References: <20221002122859.75525-1-matti.lehtimaki@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Luca Weiss Add a node for the Camera Control Interface I2C bus found on MSM8974. Signed-off-by: Luca Weiss Signed-off-by: Matti Lehtimäki --- arch/arm/boot/dts/qcom-msm8974.dtsi | 66 +++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8974.dtsi b/arch/arm/boot/dts/qcom-msm8974.dtsi index 7a9be0acf3f5..b89d56590448 100644 --- a/arch/arm/boot/dts/qcom-msm8974.dtsi +++ b/arch/arm/boot/dts/qcom-msm8974.dtsi @@ -1463,6 +1463,38 @@ blsp2_i2c6_sleep: blsp2-i2c6-sleep { bias-pull-up; }; + cci_default: cci-default-state { + cci_i2c0_default: cci-i2c0-default-pins { + pins = "gpio19", "gpio20"; + function = "cci_i2c0"; + drive-strength = <2>; + bias-disable; + }; + + cci_i2c1_default: cci-i2c1-default-pins { + pins = "gpio21", "gpio22"; + function = "cci_i2c1"; + drive-strength = <2>; + bias-disable; + }; + }; + + cci_sleep: cci-sleep-state { + cci_i2c0_sleep: cci-i2c0-sleep-pins { + pins = "gpio19", "gpio20"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + cci_i2c1_sleep: cci-i2c1-sleep-pins { + pins = "gpio21", "gpio22"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + }; + spi8_default: spi8_default { mosi { pins = "gpio45"; @@ -1616,6 +1648,40 @@ dsi0_phy: dsi-phy@fd922a00 { }; }; + cci: cci@fda0c000 { + compatible = "qcom,msm8974-cci"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xfda0c000 0x1000>; + interrupts = ; + clocks = <&mmcc CAMSS_TOP_AHB_CLK>, + <&mmcc CAMSS_CCI_CCI_AHB_CLK>, + <&mmcc CAMSS_CCI_CCI_CLK>; + clock-names = "camss_top_ahb", + "cci_ahb", + "cci"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&cci_default>; + pinctrl-1 = <&cci_sleep>; + + status = "disabled"; + + cci_i2c0: i2c-bus@0 { + reg = <0>; + clock-frequency = <100000>; + #address-cells = <1>; + #size-cells = <0>; + }; + + cci_i2c1: i2c-bus@1 { + reg = <1>; + clock-frequency = <100000>; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + gpu: adreno@fdb00000 { compatible = "qcom,adreno-330.1", "qcom,adreno"; reg = <0xfdb00000 0x10000>;