From patchwork Tue May 9 21:16:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 91771 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3200408vqo; Tue, 9 May 2023 15:08:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7ZWQPrTsfp5UCzGrMKt10PMOxSTj6wl9A7kJ3M/hPNvB1shOA/92MD03mN+Y636uNRu/5k X-Received: by 2002:a17:90a:db49:b0:250:d137:e2ae with SMTP id u9-20020a17090adb4900b00250d137e2aemr717077pjx.23.1683670100365; Tue, 09 May 2023 15:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683670100; cv=none; d=google.com; s=arc-20160816; b=jHW5D3Pr97JPLYLATdKHbD5f7eXH0xlMEhBSj6XNVLeGFPb4Y1VMzkkYqkE4ZEbQBR u9k7Mb5QQS+LSUCgnpZ+ExK2imgneye/Pau2YZX79ND9fPKrp+mc0NaQ+aHfsfUaYtCI fxIbFe9pq/pVCyNcA+1hPgHQR4qzKDVlEZgMkrci7vK4x2K8PHp8bhChh8Ad410Mz5F9 orktgdpHGfyLuOhxyGMdt1FOsJFz9vZdG0FqXONxd4Rjasecg7aepbFkHtg++7K8VCDf CLrJ8qlTxSgXeSh9kJfzRJlme/BCi0zZ9qZIV5vvoyQRgmJpRBrn7xOUhf7STKy8y2t9 UkGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=DI7OmkMu2rkvLXVMo7De4lk9+ivk0ExPyNuJ/w2+2/M=; b=BXZfeFhPCG1a0ynO8yAf8DJaldf74csuUVSBMeNxXwhu/DGS67dMraIdWXZquUByM5 ETsXzXBPFl+dt2f7Et7cuLP2NmryKp7hf/jpgmZnPW1uyZcH6eveUQtN9HpxQVDxZ7eu OYjg1WjT9qpUMI+rABuMC/SleHE0QLzXjIgMPVMJGBQvQG/KWbHDwFwaXIOcuQIM4HrR gU3dkZliajpVAOGc4n+dDZFF0Wi6Z7eVcH2oci2Ts0/+JidKiCLw+ck/lU2P4iarXgBf yTyXgN+5rv+7sAKyU00wkyAqWCjC1tzPls142Iuc06ypZ37KplohV2vdaIT34e6W60eg ce0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=it1Zm6hg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gj4-20020a17090b108400b0023699c44b66si22161572pjb.167.2023.05.09.15.08.07; Tue, 09 May 2023 15:08:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=it1Zm6hg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235450AbjEIVQx (ORCPT + 99 others); Tue, 9 May 2023 17:16:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjEIVQv (ORCPT ); Tue, 9 May 2023 17:16:51 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA08E198A; Tue, 9 May 2023 14:16:50 -0700 (PDT) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id BCC68CED2C; Tue, 9 May 2023 21:16:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1683667009; bh=lG1YLFdMOPVJ2F7GFyS2fMzqWjY+cPFGdTsfQNs2tc8=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=it1Zm6hgLJcnZN4/m2xwv5+5LuUrmBj1TuNeEsaKO8pbOrQExtgsSgyUEOT3aHrkY puf1GVAFBVKnEMsEEP/E/WZ9wNmVtcaVGzK6qi884gdEo0LVRdqYBIamt2FCjML8PH WGurMij36F/XTNDpGqpCwwcvHrScvkc/dFAZ5H/o= From: Luca Weiss Date: Tue, 09 May 2023 23:16:35 +0200 Subject: [PATCH 1/3] ARM: dts: qcom: msm8226: Use XO from rpmcc where possible MIME-Version: 1.0 Message-Id: <20230509-msm8226-mmcc-parents-v1-1-83a2dfc986ab@z3ntu.xyz> References: <20230509-msm8226-mmcc-parents-v1-0-83a2dfc986ab@z3ntu.xyz> In-Reply-To: <20230509-msm8226-mmcc-parents-v1-0-83a2dfc986ab@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Jeffrey Hugo , Taniya Das Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=2209; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=lG1YLFdMOPVJ2F7GFyS2fMzqWjY+cPFGdTsfQNs2tc8=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkWrg970Ak6m7eyWn4rwysuprLFQDhVlQ6GbF7t aGrzHOKU8GJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZFq4PQAKCRBy2EO4nU3X VneHEACvGxKaU63dFjSuFQxhvuadm71Bi4y1YvCaMBB8d3N9rQIpNVdWOhIfqg22fYAUVFJ3JUO PS8KziLR9LH/z/aD8LanXYxqPoP//Px/Z9KsOs2e8jqyF/CuOoMSpLet/zgE0UI46SCPmkQEaUS 9s4QNzgj3QrxWwfC3kf0lOMizAJxO92DfSmZ7FLQFeklRUuIanmDIWwR+da9D9zRXD2Y6XR4jrU iDGfSm/cYcvcwo99jO2Q0pDNtVnjtK0YxBvY7QocPfwoVu8qt/gWooWQbls+oej7xRvnwx8WsIF Tm+fkm2SMLgIrKH+54c4R+opzcdmrhOvJ4y9aL/msFrguryvSE2bYJ1HetOgtq3MHedRPoy9e6J CtMnoEpvG1FB+pm3f3oPR5H2rB1RyDfgDVGdBNSbchFKh3Yovcy1edqDX/45EVKNPEqiZjKU/ip ITWEkarNCLN53XtZ6LghMJxprD02ukGNbhXMHP6qA+Hd5eudmmyN20aPER2mm6ZHW8U0Iors1xS CnXZGq0dPGTehQP23+bPRtzrHe5BbXIytrZW3exzNrJUtA/odZAa69m+rXyWbfc4DLdT4hyxjd0 hbvzd4McraKMC2JNijevWuo7hEjKYjFfNd+jNFMHEVOZIjvBPJ3HKmDeAHrT7nT4YvnVHCVerwR S/TuExYQZWUDe/A== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765456058798207305?= X-GMAIL-MSGID: =?utf-8?q?1765456058798207305?= The xo clock being used everywhere actually goes via the RPM. Since the rpmcc driver recently got support for this clock we can use this now. Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- arch/arm/boot/dts/qcom-msm8226.dtsi | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi index 42acb9ddb8cc..4dd4e26c73a2 100644 --- a/arch/arm/boot/dts/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi @@ -176,7 +176,7 @@ sdhc_1: mmc@f9824900 { interrupt-names = "hc_irq", "pwr_irq"; clocks = <&gcc GCC_SDCC1_AHB_CLK>, <&gcc GCC_SDCC1_APPS_CLK>, - <&xo_board>; + <&rpmcc RPM_SMD_XO_CLK_SRC>; clock-names = "iface", "core", "xo"; pinctrl-names = "default"; pinctrl-0 = <&sdhc1_default_state>; @@ -192,7 +192,7 @@ sdhc_2: mmc@f98a4900 { interrupt-names = "hc_irq", "pwr_irq"; clocks = <&gcc GCC_SDCC2_AHB_CLK>, <&gcc GCC_SDCC2_APPS_CLK>, - <&xo_board>; + <&rpmcc RPM_SMD_XO_CLK_SRC>; clock-names = "iface", "core", "xo"; pinctrl-names = "default"; pinctrl-0 = <&sdhc2_default_state>; @@ -208,7 +208,7 @@ sdhc_3: mmc@f9864900 { interrupt-names = "hc_irq", "pwr_irq"; clocks = <&gcc GCC_SDCC3_AHB_CLK>, <&gcc GCC_SDCC3_APPS_CLK>, - <&xo_board>; + <&rpmcc RPM_SMD_XO_CLK_SRC>; clock-names = "iface", "core", "xo"; pinctrl-names = "default"; pinctrl-0 = <&sdhc3_default_state>; @@ -362,7 +362,8 @@ usb_hs_phy: phy { compatible = "qcom,usb-hs-phy-msm8226", "qcom,usb-hs-phy"; #phy-cells = <0>; - clocks = <&xo_board>, <&gcc GCC_USB2A_PHY_SLEEP_CLK>; + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, + <&gcc GCC_USB2A_PHY_SLEEP_CLK>; clock-names = "ref", "sleep"; resets = <&gcc GCC_USB2A_PHY_BCR>, <&usb 0>; reset-names = "phy", "por"; @@ -617,7 +618,7 @@ adsp: remoteproc@fe200000 { power-domains = <&rpmpd MSM8226_VDDCX>; power-domain-names = "cx"; - clocks = <&xo_board>; + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>; clock-names = "xo"; memory-region = <&adsp_region>; From patchwork Tue May 9 21:16:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 91770 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3193222vqo; Tue, 9 May 2023 14:55:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7MO0WkQc6C5nqsgu8AMJV60GARLYLlbTtd32xpkc7+GxgKScdSmMFUWVn1Dm/SfpQHOygv X-Received: by 2002:a05:6a20:8f06:b0:ff:e397:a87a with SMTP id b6-20020a056a208f0600b000ffe397a87amr14435878pzk.33.1683669311611; Tue, 09 May 2023 14:55:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683669311; cv=none; d=google.com; s=arc-20160816; b=lahz2w0OEryp45e50vMLpi+Wx1JYn8Zy9UViauK6hnPAJ1rBFPsZ1z8xjOSUXR0YOj GCPYRwo9dL7vYcvyrbCbRkcfrlnjJI1EIrvjqzaqJPbWqnDsmhiQ92P2JWkPBwWbyM6s fffkd0um7U1nuJpf3GH39TuCWiQuLjEd9w+zX1rkskIFt+LxftoLzloKY32kKYtTeRHH AkywZ8FZheuovgdjW+4Jdp3OgrEV0O/uqb2v/M8btH/0I9KwFhpMvKDm8jx+cUub403w oouC0AjPyg0gccRLrzzUb0zC1m3/SYQtspFdqcax8D/P1w0rvEEt7ctNfXK+mFlyuSqT q9JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=LOVIulTpnJqn82vLs1QkJMEJ3QDKubfcBzYYtkwbUVE=; b=lh0JpCLHaye6sNGHUVW1/xqdPM4e/LnmG1GU0ILxpMrXZLc/nQ3CRx/NTDodKUd3zf 9ucv59lYU0iqCCjDtIrhSrSbl87eoNt8WGV0P/ypI+lAG/Y/8xX20lhdqG4mKKS8j9ci tbr/Hq9VZkhbERFBhBrwF/V8l13yi0Hff60BAUnRtYChLK0QanrSFqDTdr6nWU0eCff7 yNvEMEM7BtYuJFKMxDB4izlnpz0vYv7XO6hrzRBfCvOU66vBTL+SAJ7xD6f/VFarjXlO 8xAHERyu8mz8o6y01v1HWItOSmG378M8btoXSd4lVVn1JAAJJ4/cYNBiosXTZ7VKTLMn 46rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=cS2x4pL1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bv185-20020a632ec2000000b0051970ed57e0si2421318pgb.9.2023.05.09.14.54.58; Tue, 09 May 2023 14:55:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b=cS2x4pL1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235597AbjEIVRA (ORCPT + 99 others); Tue, 9 May 2023 17:17:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234267AbjEIVQw (ORCPT ); Tue, 9 May 2023 17:16:52 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0568F30EE; Tue, 9 May 2023 14:16:51 -0700 (PDT) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 17CC1CED2D; Tue, 9 May 2023 21:16:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1683667009; bh=9R6SRvAGjxwi8/vkLzlzpi22W4hAaJIg2Z7jYqDUgMM=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=cS2x4pL1Y8Euyv1qBu++8aFNleQrxUtYNqxI+RllW08ZCyKEeyXifp612yVsM2Oqu oxWU+msVpQZkVIfUR2lCjgSqEMPysj4Sfikis2ZozEVv90whjW5Ge3DFabM5aRANQ4 4eJWvY5sGUr4b+pjADva8LwesFTxCCLJKhAX8BbA= From: Luca Weiss Date: Tue, 09 May 2023 23:16:36 +0200 Subject: [PATCH 2/3] dt-bindings: clock: qcom,mmcc: define clocks/clock-names for MSM8226 MIME-Version: 1.0 Message-Id: <20230509-msm8226-mmcc-parents-v1-2-83a2dfc986ab@z3ntu.xyz> References: <20230509-msm8226-mmcc-parents-v1-0-83a2dfc986ab@z3ntu.xyz> In-Reply-To: <20230509-msm8226-mmcc-parents-v1-0-83a2dfc986ab@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Jeffrey Hugo , Taniya Das Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1800; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=9R6SRvAGjxwi8/vkLzlzpi22W4hAaJIg2Z7jYqDUgMM=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkWrg+uif8+jTU5wl9DJ5FMzUmRYuPndkpfWHFt NiMI50zSkyJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZFq4PgAKCRBy2EO4nU3X VkU7D/4jngTUQhY5BeZ5sP31TJfQjU7Nk+96d/wKqr9W8ah+CKQfbZWlGiVIAtXSF3goT+KSqs+ 3K3v9l4WO3Amo8YEDNaHp6wyz/9F20Uupx3tfgJaHqlHBO/R1fYWnjOA8B/9nIOd8e7xn87Upzf fjofGrLtAavDDpOAo7W97+txlyMZsbQiznj/Ddd29u2CcUnIEDleN83C2XwdX+/4/qt2awlOPv/ OG5wBr/neJLuUUBFNrMb5LTfQICotR0IkCWRmyZBJyuionkr3AiNvPbv8WtOB42526diTdOjaaZ JvxbuC6YYpJR7067xUwA2hiVn5oiR8e+Uk3PSmJjycltp2AyXmsvyTlKQZRtjiYTK86j8jWWH0k 3UDWsv2HF7PsTuPIsYsO8/SvYdKgvoPuHuUK4kIHU7srw4u2slr0/+Fono5zyCbyPefJF+C3qy9 QX7tpd8kiXaF7das0h9jvrJwKluEE44Yx4Si6neyW3gGViw2CgIxzw2QT5BnHtp3r426ztL8PlP cThmYhEr/uJ/MRQnuRsVtUDXQtLulUD2dkd6WbI9wgksAa00hgd8rrv+n3dQncE2clyIt65GhaR pQ3D+jZ3dlGb9/9/xep0h1uRHIbheakG3XItfnsOv7PgLkr5Je67B6rOJdGaCFWIYGNs1SPfklR yJtgcI6Hy0dGCbw== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765455232070566460?= X-GMAIL-MSGID: =?utf-8?q?1765455232070566460?= Define clock/clock-names properties of the MMCC device node to be used on MSM8226 platform. Signed-off-by: Luca Weiss Reviewed-by: Krzysztof Kozlowski Acked-by: Jeffrey Hugo --- .../devicetree/bindings/clock/qcom,mmcc.yaml | 32 ++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml b/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml index acf0c923c24f..422f5776a771 100644 --- a/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,mmcc.yaml @@ -31,11 +31,11 @@ properties: - qcom,mmcc-sdm660 clocks: - minItems: 8 + minItems: 7 maxItems: 13 clock-names: - minItems: 8 + minItems: 7 maxItems: 13 '#clock-cells': @@ -99,6 +99,34 @@ allOf: - const: dsi2pllbyte - const: hdmipll + - if: + properties: + compatible: + contains: + enum: + - qcom,mmcc-msm8226 + then: + properties: + clocks: + items: + - description: Board XO source + - description: MMSS GPLL0 voted clock + - description: GPLL0 voted clock + - description: GPLL1 voted clock + - description: GFX3D clock source + - description: DSI phy instance 0 dsi clock + - description: DSI phy instance 0 byte clock + + clock-names: + items: + - const: xo + - const: mmss_gpll0_vote + - const: gpll0_vote + - const: gpll1_vote + - const: gfx3d_clk_src + - const: dsi0pll + - const: dsi0pllbyte + - if: properties: compatible: From patchwork Tue May 9 21:16:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 91768 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp3185042vqo; Tue, 9 May 2023 14:35:49 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4MVWEO/8DWRsteMOGOYvsbd6QmD97YUm0ZZeXGl+9wNMqbRkrqlt5Y8usJ0K3xn5Le7QOx X-Received: by 2002:a05:6a00:1881:b0:643:b489:246d with SMTP id x1-20020a056a00188100b00643b489246dmr16892968pfh.3.1683668149628; Tue, 09 May 2023 14:35:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683668149; cv=none; d=google.com; s=arc-20160816; b=VFTd+uvRHOzP/5Eus1o30AQRYU5MF51j+YSP7zUv79cm1JaanHUyFEutEXbewqirKQ xPCKnj6L6bLT/al/uc5yQzH7PEzWNC1s6/Op2aXSSqRKidN57dj5t5W6n/MdaWsRXPEi IMG8j1By/oC8u9F6vRvOBBAoOlG6fRcOpwJXbybf5813MA+m2jgBHwJPIPwZtiIHWv9m +31mL2ulLhHK5sP2NsFoOCX41+XCIGAqDR9XKNAPKb0wXu03X5z9eDUbd9X/AtvQCSiL 1xLl6Fv/Ew0wChWjIwz9zqP5RS1o3eB1B2VOK+4onOqyefoVu9c4RRkQy/pFOoHGwI8R q/mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=8asNfAL7en0Veg03YWNPvjq9e0buQTbPJkLTgQ9QejM=; b=xRveBrYifa7JRQGkxUFfZ1zM1R5Etu5frxYgZi6vltaPUaPJSqpsfG7bZ64/f6K0TZ FMs35UfNpb9RvnF7914jwYVJaZnSecUgSu/dXrOlFc23zCl/jtvDAfPl4l+1c9zlWbDP M2j2OqF/iE9U0fGEgB99j5ETH4U2BCH3u9c+ImyH5S889UoYH1nNOb+T9MuVPiR9lruO ljvGpoL9ico5rC3sbiqAfpJyxQCLX96VHEr6HmlxPtkjuPruwVZtuH/VrLWNVe/pNTfL 4kXtao1xlr7pK/kvx8CBp2skou6s8uOxSSUekdWcrAjEAeU3VwjgtyIctLgteOoPAo2u iljg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b="Dnbpp//W"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e63-20020a636942000000b0051b13a071a8si2268989pgc.575.2023.05.09.14.35.33; Tue, 09 May 2023 14:35:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@z3ntu.xyz header.s=z3ntu header.b="Dnbpp//W"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235081AbjEIVQ5 (ORCPT + 99 others); Tue, 9 May 2023 17:16:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230167AbjEIVQw (ORCPT ); Tue, 9 May 2023 17:16:52 -0400 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D80830F0; Tue, 9 May 2023 14:16:51 -0700 (PDT) Received: from [192.168.178.23] (unknown [62.108.10.64]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 56067CED2E; Tue, 9 May 2023 21:16:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=z3ntu.xyz; s=z3ntu; t=1683667009; bh=zDs3Pv0PWo6YsPN0pHNUEmM5loKt3uLGkVd+dWX4sLg=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=Dnbpp//WRzqrk0GM9doxMC1cemhomznySmdVef6JUFF5klzIdHkNI+VgcvquY+Tku 6oGMiFRv/zZBr/uvgSr0drQrdBwjE++d2UznZjcMrxinhKFz3HhaFs+uafSu1vs1SW YAhUBkkFN0Ur8l8DLuq0XWim+SdlnATQ89W6j0J0= From: Luca Weiss Date: Tue, 09 May 2023 23:16:37 +0200 Subject: [PATCH 3/3] ARM: dts: qcom: msm8226: Provide clocks to mmcc node MIME-Version: 1.0 Message-Id: <20230509-msm8226-mmcc-parents-v1-3-83a2dfc986ab@z3ntu.xyz> References: <20230509-msm8226-mmcc-parents-v1-0-83a2dfc986ab@z3ntu.xyz> In-Reply-To: <20230509-msm8226-mmcc-parents-v1-0-83a2dfc986ab@z3ntu.xyz> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michael Turquette , Stephen Boyd , Jeffrey Hugo , Taniya Das Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Luca Weiss X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1024; i=luca@z3ntu.xyz; h=from:subject:message-id; bh=zDs3Pv0PWo6YsPN0pHNUEmM5loKt3uLGkVd+dWX4sLg=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBkWrg/M8WLo2bZlDnuK85MWA3+5ZEUewrWTu8E6 f94Dverj6CJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZFq4PwAKCRBy2EO4nU3X Vig8D/4x71FXZmpVMAno2Q1/BEn9LGytWBlHXkUTP3XhfRyxhSvTFqtlhvOx4f2xuTQwLR+P8SD EtNBsHEBoVTn6nNzxX+m9GKh6RFbXHfhTmBiNVHmoUTkYRt6dxGVJBAs1L9PpEUQkEfoxgxOlro 7g1H9yWIRioFPs+AI/9Hnt/EcCmroqVKJ9r3Xs405WbecrDnqJnj+89LRLQ15tf8fdVl0TRMwGb 2VkOxekPWwBuST9bBVCZsXUcD53EwT9KsqAyyho/Zg57yuf7++86E+4NwVv6VUgQJnvpmZ692Zo GJ6zAStZpWslSKHh8M609dxEH4l2aKBU14t84evib71hsrxH+Matv8o4snPmYGjWXKF1JS2/jA+ GNtnOoG0eL4SdZKnZI0F5z9J2zsxYlsy9YvHDhdBMetY1Eu20gDpWkgbgqhLhMbCqzclhEJXwPg 6wooSTT07jU5bnEduTwVEQOu2p7jn2d/PXw9Z4wrA4TLXeZgD2dn2Yk0Fss1K0jOnbaWxiO5J7W phqKKcS/RnmFh/woFJVRrc71Ycr625JBIVHypvoUdHVpNbSmJj+aq08p3oxNX6dYTZxsbk01FMb 07NWv4fCEte3a1uAdWVcBQbZ8TTUMvGogN6kphd0T1sipTXS7U7spm6N52ukoM/2ZlQ+xrClM1y W8FPGcsM50qjpUQ== X-Developer-Key: i=luca@z3ntu.xyz; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765454013396374441?= X-GMAIL-MSGID: =?utf-8?q?1765454013396374441?= The mmcc needs several clocks that are being used as parents. Provide them in dt. Signed-off-by: Luca Weiss Reviewed-by: Konrad Dybcio --- arch/arm/boot/dts/qcom-msm8226.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom-msm8226.dtsi index 4dd4e26c73a2..3187b6853445 100644 --- a/arch/arm/boot/dts/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom-msm8226.dtsi @@ -392,6 +392,21 @@ mmcc: clock-controller@fd8c0000 { #clock-cells = <1>; #reset-cells = <1>; #power-domain-cells = <1>; + + clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, + <&gcc GCC_MMSS_GPLL0_CLK_SRC>, + <&gcc GPLL0_VOTE>, + <&gcc GPLL1_VOTE>, + <&rpmcc RPM_SMD_GFX3D_CLK_SRC>, + <0>, + <0>; + clock-names = "xo", + "mmss_gpll0_vote", + "gpll0_vote", + "gpll1_vote", + "gfx3d_clk_src", + "dsi0pll", + "dsi0pllbyte"; }; tlmm: pinctrl@fd510000 {