From patchwork Thu Mar 2 12:30:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13157197 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 C3015C678D4 for ; Thu, 2 Mar 2023 12:31:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229683AbjCBMbJ (ORCPT ); Thu, 2 Mar 2023 07:31:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229486AbjCBMbI (ORCPT ); Thu, 2 Mar 2023 07:31:08 -0500 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3FACB445; Thu, 2 Mar 2023 04:31:07 -0800 (PST) Received: by mail-lj1-x22c.google.com with SMTP id t14so17419048ljd.5; Thu, 02 Mar 2023 04:31:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=k0hcF70BkwgsPk9m1FQebcF+huDsTc/3OaRG/0ig1uA=; b=N8+byvn3YuT37/ShTzoaovbGonhvfj2O+HO/KhwXEJeyUHre0FUZD8BVCN+NS3wm15 6VIA6pYBfhew4Que1cd760a/cIlFatKxHIxhoXlSZ7rpyjFLO6LM7+i8FMB+snld7SDP l6H+lpbj6HEWYzxaTWcvg5BmxDmRkub+z56zLyKXfmh5AXQvjo2psLOi3Q2b7J7ENPk9 E+VRUKSp2zTiJUa9BqyI7qmUsoyCMpaLl3uxCR7Pf5+w6USeKiDIKIC2CMA9+REvze4y zEH1Z0Z+au0whRePMh5Pbk97EVu3vJvFc7Gvfku/kyqdR1lyyTcJsG95QAkh12Eok7mb VkWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=k0hcF70BkwgsPk9m1FQebcF+huDsTc/3OaRG/0ig1uA=; b=K86jQxsF6K4cm8x5dqZLkZk4hYa7icAR7XElvQunzN4JlKBQ3p9hB7Rv3HeKtTohmG SOacSd2gGnb3n/uADWATzry/vruK68nub8iYtz1eBz9buz8tZfImgp6SU9+mCek/DPzN wF7QSynIJap34DTeqs+HyFg6NOxHheuuQ1DzBSau75vEaikCb0XjFa6OoZBO7K/1Uw05 TkqNejwLTR+hR6nqca8u/oZOqc7PGjx5V79YhA/8PLCGzX5OayGDnfk1fS+jeMU3UOYJ LnzwRFbS/nG/FKrJD8ZEdidPhprsSz/uFSEtNQC59sTRbfp0uOQ3+dIGHB0d2qc4INI5 VDMg== X-Gm-Message-State: AO0yUKUjBhdQ0dGpabU+peFjUoIjMli1lkB26T+ag4AEAXB3V6FxWiR6 r+895lDNNbldnOyN/21jVRSZzjpxxaTrOA== X-Google-Smtp-Source: AK7set+jrPI7ZYVwl4l33sRXM5qhFb0/FE3kotzGx7b6AZJoYzXCYg9ezLPD5oc0NBPtygFFMIm0cA== X-Received: by 2002:a05:651c:210b:b0:295:9517:b98f with SMTP id a11-20020a05651c210b00b002959517b98fmr713313ljq.15.1677760265865; Thu, 02 Mar 2023 04:31:05 -0800 (PST) Received: from localhost.localdomain (ccv22.neoplus.adsl.tpnet.pl. [83.30.145.22]) by smtp.gmail.com with ESMTPSA id o15-20020a2eb44f000000b002934fe524d2sm2068942ljm.83.2023.03.02.04.31.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 04:31:05 -0800 (PST) From: Adam Skladowski Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , AngeloGioacchino Del Regno , Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: qcom: msm8976: Add and provide xo clk to rpmcc Date: Thu, 2 Mar 2023 13:30:49 +0100 Message-Id: <20230302123051.12440-1-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org In order for consumers of RPMCC XO clock to probe successfully their parent needs to be feed with reference clock to obtain proper rate, add fixed xo-board clock and supply it to rpmcc to make consumers happy. Frequency setting is left per board basis just like on other recent trees. Fixes: 0484d3ce0902 ("arm64: dts: qcom: Add DTS for MSM8976 and MSM8956 SoCs") Signed-off-by: Adam Skladowski Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/msm8976.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8976.dtsi b/arch/arm64/boot/dts/qcom/msm8976.dtsi index 2d360d05aa5e..e55baafd9efd 100644 --- a/arch/arm64/boot/dts/qcom/msm8976.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8976.dtsi @@ -20,6 +20,13 @@ / { chosen { }; + clocks { + xo_board: xo-board { + compatible = "fixed-clock"; + #clock-cells = <0>; + }; + }; + cpus { #address-cells = <1>; #size-cells = <0>; @@ -351,6 +358,8 @@ rpm_requests: rpm-requests { rpmcc: clock-controller { compatible = "qcom,rpmcc-msm8976", "qcom,rpmcc"; + clocks = <&xo_board>; + clock-names = "xo"; #clock-cells = <1>; }; From patchwork Thu Mar 2 12:30:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Skladowski X-Patchwork-Id: 13157196 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 AEBD0C7EE33 for ; Thu, 2 Mar 2023 12:31:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229822AbjCBMbK (ORCPT ); Thu, 2 Mar 2023 07:31:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229803AbjCBMbJ (ORCPT ); Thu, 2 Mar 2023 07:31:09 -0500 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 D76FCB472; Thu, 2 Mar 2023 04:31:08 -0800 (PST) Received: by mail-lj1-x229.google.com with SMTP id h9so17443471ljq.2; Thu, 02 Mar 2023 04:31:08 -0800 (PST) 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 :message-id:reply-to; bh=vxbzQRxlotF35HoO9qsC+Ig1zQBN/8fFR5R4WuxGdUM=; b=LODNGYMJMr5hFdfGCMLk+B+UpONdrwVrqeGQ3sd88plafK5rC+h/UMZyxrIfX/SutQ ySM7ASiOms/H/5GKMZpgftIOnwLo1DeDbdd3Zm/b/psDk+d82OBg2vMnwpKBg8zEsiYl NH9i/NIuPetDXrXf2xjl6lbF/DtlN3z7pBShvcDZFheHBvgE15qrESIgwTJOgRG89eov MbgJmopuNJweo22nFkf7g1qIflQxdfrD3l10u19Eq5/k7jxC3iYE6jfuuefoK7eWzFwt uqRTJvxuqllgIkk8om2qL1kfY45OL5WO8FNjBi+C8A4blHAb3fT9Ojb4K7ah2lwgOQP7 2lzw== 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:message-id:reply-to; bh=vxbzQRxlotF35HoO9qsC+Ig1zQBN/8fFR5R4WuxGdUM=; b=nWWHwFu5tZffXz5mdlc8s4qbJDLlcWGBrhCSxdeYe9P0My9Ju5c8mb/ekX0wfIvbfs JqetA/+il6Od8q8eue46mpZEbc3Xc2L9zB4xbl1RzFXk1GtnJiSAwXn17HUtApbx+1j1 fy5rSbmmkGcemNdPz4eYyvZn64FtQBE51kZ5GSsoCWdW9WMont009uu9nzYLxVV1fMXH bFM7hXJMixrXw7Ht2jf83l1cszkFDbGnDrbBhAKIXDXZzwfJMGgOyhooL00perzK6W62 ArtjWB7S9kRoeRtBitQ+uWEGIxUZvTAR8VPjS0jp4Cn7bg9lfLZEc68aK1QPV6FdHIv4 jNYA== X-Gm-Message-State: AO0yUKX4WljMiXYUq1Cu2T6G1TuSWr825OQlhi+o0hdbG0/PVYnjmSAQ QlPitnT4bpuVHHc5sPkbplzv35qtclmupw== X-Google-Smtp-Source: AK7set8jcER6SpXOZo/GQqUQ5hRHhuPJnv6nMCus0v3GNBgDpeS8J3kTMRybpjGx7JNb7qwRDtC+XQ== X-Received: by 2002:a05:651c:1691:b0:293:2cc5:47a7 with SMTP id bd17-20020a05651c169100b002932cc547a7mr2813216ljb.52.1677760267178; Thu, 02 Mar 2023 04:31:07 -0800 (PST) Received: from localhost.localdomain (ccv22.neoplus.adsl.tpnet.pl. [83.30.145.22]) by smtp.gmail.com with ESMTPSA id o15-20020a2eb44f000000b002934fe524d2sm2068942ljm.83.2023.03.02.04.31.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 04:31:06 -0800 (PST) From: Adam Skladowski Cc: phone-devel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Adam Skladowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , AngeloGioacchino Del Regno , Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: dts: qcom: msm8956-loire: Provide rate for xo_board clock Date: Thu, 2 Mar 2023 13:30:50 +0100 Message-Id: <20230302123051.12440-2-a39.skl@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230302123051.12440-1-a39.skl@gmail.com> References: <20230302123051.12440-1-a39.skl@gmail.com> MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org As xo_board is part of board not soc we define rates per device tree, assign common 19.2Mhz rate to make consumers happy. Fixes: ff7f6d34ca07 ("arm64: dts: qcom: Add support for SONY Xperia X/X Compact") Signed-off-by: Adam Skladowski Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/msm8956-sony-xperia-loire.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8956-sony-xperia-loire.dtsi b/arch/arm64/boot/dts/qcom/msm8956-sony-xperia-loire.dtsi index 67baced639c9..085d79542e1b 100644 --- a/arch/arm64/boot/dts/qcom/msm8956-sony-xperia-loire.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8956-sony-xperia-loire.dtsi @@ -280,3 +280,7 @@ &usb_hs_phy { vdda3p3-supply = <&pm8950_l13>; status = "okay"; }; + +&xo_board { + clock-frequency = <19200000>; +};