From patchwork Wed Mar 9 19:01:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Marangi X-Patchwork-Id: 549835 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 96E54C4167B for ; Wed, 9 Mar 2022 19:15:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232427AbiCITQU (ORCPT ); Wed, 9 Mar 2022 14:16:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237364AbiCITQT (ORCPT ); Wed, 9 Mar 2022 14:16:19 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D67910EC58; Wed, 9 Mar 2022 11:15:20 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id x15so4533830wru.13; Wed, 09 Mar 2022 11:15:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=D+rLs9tzqVI3gBUs7BM99DY73Xg0WBVGdTXSmZY7KpY=; b=Vz5Rr8lr9II3batw1H25VUHCkqNuREl857dWo+OL9XBQIE+mtKEBKHGAOVxGLZ6CY0 VRprLAHhv9RfAd3GubfBBmzdn6af7BiZh8Vii/q957dyt4w2sUEf5MduNIs8Iw4w2gy/ 0ybtCD23MFsfPvxh4grRZJO0a/JAMxWjabJRvrEM8CQ0JYg15zCMM4lBAM7hhYTn8Y8I Y8ji4w2P/pjte/6q/hM8q45Bxgf1hsdhreu/i8x+KFOwe8kpp2UaHGDzGwiWOGPebU1P teHyvQSntZ65n6IHWf9J+xyV79ERwL/vmJQGztKcuF4Cn9xtD1+l3G9xQj/BekkTB26P 0tNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=D+rLs9tzqVI3gBUs7BM99DY73Xg0WBVGdTXSmZY7KpY=; b=AI4G+4a3O0p7QxzG3rihuVE9NR4tEzYLFqp0yeSmivWsQvknj4w/yyidQzvH532R2J 8u7GlZcNLPMKhohnba8DR1/Z2BDF1r1Cw07TsmRQZMdD5vpDpjrnbbd+izYofbPaTU2j MNgh/OM8JPYzRJlMwF5SzaRLB0BCKF0WvB3Dpf2GNHQuk9Z9xJkD+5D1koU4teSCxsdu IS+vhUx6sz5i01qijgiUS857El04llvkHKpnSf9LkyR/gXXfiMYcc72tBbXE1mWKov5s 9t1uUwjiMwmYO4cDsi8moqk8TjYQbxfMD2to+x3mLP/d9N20YEK98vC5NPcBiEpwDa7g 3Wdw== X-Gm-Message-State: AOAM531qUjXgKbF2Ga5U3GbTIjMIfbobBCNdfr2o5iGjxrIFcILTMs7t GPKhJJoYOa5QPGxKMm4HLWE= X-Google-Smtp-Source: ABdhPJw5GAvVIPpyl970bhVQm3Zg02EHB4hlYetFHoqX/PoCPdmoNRWJXjiv5oBrRxu00VzpBZ0yww== X-Received: by 2002:a5d:5687:0:b0:1f0:9663:c80e with SMTP id f7-20020a5d5687000000b001f09663c80emr854243wrv.343.1646853318996; Wed, 09 Mar 2022 11:15:18 -0800 (PST) Received: from Ansuel-xps.localdomain (host-79-47-249-147.retail.telecomitalia.it. [79.47.249.147]) by smtp.googlemail.com with ESMTPSA id w6-20020a5d6806000000b002036515dda7sm2396699wru.33.2022.03.09.11.15.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Mar 2022 11:15:18 -0800 (PST) From: Ansuel Smith To: Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ansuel Smith , Jonathan McDowell Subject: [PATCH v3 03/18] ARM: dts: qcom: add missing rpm regulators and cells for ipq8064 Date: Wed, 9 Mar 2022 20:01:37 +0100 Message-Id: <20220309190152.7998-4-ansuelsmth@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220309190152.7998-1-ansuelsmth@gmail.com> References: <20220309190152.7998-1-ansuelsmth@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add cells definition for rpm node and add missing regulators for the 4 regulator present on ipq8064. There regulators are controlled by rpm and to correctly works gsbi4_i2c require to be NEVER disabled or rpm will reject any regulator change request. Signed-off-by: Ansuel Smith Tested-by: Jonathan McDowell --- arch/arm/boot/dts/qcom-ipq8064.dtsi | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq8064.dtsi b/arch/arm/boot/dts/qcom-ipq8064.dtsi index b309bc0fbbcd..0938838a4af8 100644 --- a/arch/arm/boot/dts/qcom-ipq8064.dtsi +++ b/arch/arm/boot/dts/qcom-ipq8064.dtsi @@ -842,10 +842,46 @@ rpm: rpm@108000 { clocks = <&gcc RPM_MSG_RAM_H_CLK>; clock-names = "ram"; + #address-cells = <1>; + #size-cells = <0>; + rpmcc: clock-controller { compatible = "qcom,rpmcc-ipq806x", "qcom,rpmcc"; #clock-cells = <1>; }; + + smb208_regulators: regulators { + compatible = "qcom,rpm-smb208-regulators"; + status = "okay"; + + smb208_s1a: s1a { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1150000>; + + qcom,switch-mode-frequency = <1200000>; + }; + + smb208_s1b: s1b { + regulator-min-microvolt = <1050000>; + regulator-max-microvolt = <1150000>; + + qcom,switch-mode-frequency = <1200000>; + }; + + smb208_s2a: s2a { + regulator-min-microvolt = < 800000>; + regulator-max-microvolt = <1250000>; + + qcom,switch-mode-frequency = <1200000>; + }; + + smb208_s2b: s2b { + regulator-min-microvolt = < 800000>; + regulator-max-microvolt = <1250000>; + + qcom,switch-mode-frequency = <1200000>; + }; + }; }; tcsr: syscon@1a400000 {