Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2173723imm; Thu, 27 Sep 2018 08:32:19 -0700 (PDT) X-Google-Smtp-Source: ACcGV60GT81Hpf2m+t+PxGnevz69m8mvHCK4M/Es4Psb5e1JeZidZkYmJpgAEvTBAcw3bX4B+uJT X-Received: by 2002:a62:dd01:: with SMTP id w1-v6mr3652915pff.129.1538062339304; Thu, 27 Sep 2018 08:32:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538062339; cv=none; d=google.com; s=arc-20160816; b=VZi99A1KbMAsG7Nmz2w1aq67qlr3eXb9mLWtrS5tJdo8GZPfn1dPuLLLe1uV8hz9Bk 2OCWe8JaAfWrcVGtIefET30gYp/H7FkELJx8mooykEFDu0CmHDPVpV1vw0M6nTUTL3CO BSHkzcq/hiu4bNuXXCL3VTrWlHT2ciNQptmjC0n8t3AsFBKkMMRYnWJUoDVPVjS/VKTq z7JAJvl1597MKJSCy5w35Knbx7jJm8zMradP+1N34Eaqktu48GCxRj3X2PsrhR6qVP+C bzghXsRexPrtsKTtDABQhIo8OW1nQFiY7VXcoIoFZFs5tkh+BiU0inzpno0UQLKZz4LJ pFHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=sEzEYe+WIgrDmM1Ui/n8s718ktGbPY3f9Sj3iQDNlGQ=; b=oPTecLNqAQS6FrZ/tsP5iF9/lL8kFb4/du7lJq610Sf96A0//vEz4ILeaeLdEZr5AP gvBNENco8wja+GTKR4yHulL9mQR4N3wbCXtqJu5lBL47vwms7nNzYvTTap8VnaA+Fq0n R80KtgR60LUPvMB0KajKDOddrKfGk8tbJixh52Hq4vbYLTBzZIHWh9i51rzVMG5SQyla bJpf+derzz5x5UrT6DRGkvRSr8pG89mpp2uwB7+S7Z6SkPATplTMCYZ3cEinClSz/kmw pwqty6B0ia3lkc2TaEmWQCGV7vnzSoxsfdnoBCv/EtuJoJMBhsUF59Wa9rQWYffWhnDp m9OQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (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 i3-v6si1469279pgm.77.2018.09.27.08.32.02; Thu, 27 Sep 2018 08:32:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728020AbeI0VuR (ORCPT + 99 others); Thu, 27 Sep 2018 17:50:17 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:46758 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727262AbeI0VuQ (ORCPT ); Thu, 27 Sep 2018 17:50:16 -0400 Received: by mail-ot1-f68.google.com with SMTP id q4-v6so2925141otf.13; Thu, 27 Sep 2018 08:31:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=sEzEYe+WIgrDmM1Ui/n8s718ktGbPY3f9Sj3iQDNlGQ=; b=aJxFh0iPxrVVWwy/dW4vCi2X4lMq46pZPb4yeoTNTPs0+d6unrjMdUh7et3PCnPdhp qQt6MR0Qi5UL++5xkIJ2CJAOueOfvnGq6k7EVjtXL47CyJmZkwlttoXyOObnd9bY3gR1 LnXYViS/CGfTc27TqAh1NpOZgDUHEHYxPqohZU+DUhSlBZrT2vNphwIIK/SBWVdSg6LO 7AWVuw+vquqBZ429w6u38hzzvagXiNSD0koN9tcnrn6vwmIpf72B5YOZoKikcjxhlVha C8a/aTgrxEPKaQPK6G2umyxNNpIIZLghKJUxT8SU/ZRu3N5we0UHXSsjPpioFgmnvld7 Tp7g== X-Gm-Message-State: ABuFfoiHbwCTwmEcUV3d1JMqIPtjLgGq4IGBrJ2DQb01ugm8cJ0/ehnx r5pq+7Rn7vPNNDPJtJMnhL78BIxGcg== X-Received: by 2002:a9d:1caa:: with SMTP id l42-v6mr7552658ota.324.1538062288136; Thu, 27 Sep 2018 08:31:28 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id r18-v6sm828983otc.24.2018.09.27.08.31.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Sep 2018 08:31:27 -0700 (PDT) Date: Thu, 27 Sep 2018 10:31:26 -0500 From: Rob Herring To: Taniya Das Cc: "Rafael J. Wysocki" , Viresh Kumar , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Stephen Boyd , Rajendra Nayak , devicetree@vger.kernel.org, skannan@codeaurora.org, linux-arm-msm@vger.kernel.org, amit.kucheria@linaro.org, evgreen@google.com Subject: Re: [PATCH v8 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings Message-ID: <20180927153126.GA17218@bogus> References: <1537698793-15285-1-git-send-email-tdas@codeaurora.org> <1537698793-15285-2-git-send-email-tdas@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1537698793-15285-2-git-send-email-tdas@codeaurora.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 23, 2018 at 04:03:12PM +0530, Taniya Das wrote: > Add QCOM cpufreq firmware device bindings for Qualcomm Technology Inc's > SoCs. This is required for managing the cpu frequency transitions which are > controlled by the hardware engine. > > Signed-off-by: Taniya Das > --- > .../bindings/cpufreq/cpufreq-qcom-hw.txt | 169 +++++++++++++++++++++ > 1 file changed, 169 insertions(+) > create mode 100644 Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt > > diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt > new file mode 100644 > index 0000000..c06941c > --- /dev/null > +++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.txt > @@ -0,0 +1,169 @@ > +Qualcomm Technologies, Inc. CPUFREQ Bindings > + > +CPUFREQ HW is a hardware engine used by some Qualcomm Technologies, Inc. (QTI) > +SoCs to manage frequency in hardware. It is capable of controlling frequency > +for multiple clusters. > + > +Properties: > +- compatible > + Usage: required > + Value type: > + Definition: must be "qcom,cpufreq-hw". > + > +- clocks > + Usage: required > + Value type: From common clock binding. > + Definition: clock handle for XO clock and GPLL0 clock. > + > +- clock-names > + Usage: required > + Value type: From common clock binding. > + Definition: must be "xo", "cpu_clk". > + > +- reg > + Usage: required > + Value type: > + Definition: Addresses and sizes for the memory of the HW bases in > + each frequency domain. > +- reg-names > + Usage: Optional > + Value type: > + Definition: Frequency domain name i.e. > + "freq-domain0", "freq-domain1". > + > +* Property qcom,freq-domain > +Devices supporting freq-domain must set their "qcom,freq-domain" property with > +phandle to a cpufreq_hw followed by the Domain ID(0/1) in the CPU DT node. > + > + > +Example: > + > +Example 1: Dual-cluster, Quad-core per cluster. CPUs within a cluster switch > +DCVS state together. > + > +/ { > + cpus { > + #address-cells = <2>; > + #size-cells = <0>; > + > + CPU0: cpu@0 { > + device_type = "cpu"; > + compatible = "qcom,kryo385"; > + reg = <0x0 0x0>; > + enable-method = "psci"; > + next-level-cache = <&L2_0>; > + qcom,freq-domain = <&cpufreq_hw 0>; > + L2_0: l2-cache { > + compatible = "cache"; > + next-level-cache = <&L3_0>; > + L3_0: l3-cache { > + compatible = "cache"; > + }; > + }; > + }; > + > + CPU1: cpu@100 { > + device_type = "cpu"; > + compatible = "qcom,kryo385"; > + reg = <0x0 0x100>; > + enable-method = "psci"; > + next-level-cache = <&L2_100>; > + qcom,freq-domain = <&cpufreq_hw 0>; > + L2_100: l2-cache { > + compatible = "cache"; > + next-level-cache = <&L3_0>; > + }; > + }; > + > + CPU2: cpu@200 { > + device_type = "cpu"; > + compatible = "qcom,kryo385"; > + reg = <0x0 0x200>; > + enable-method = "psci"; > + next-level-cache = <&L2_200>; > + qcom,freq-domain = <&cpufreq_hw 0>; > + L2_200: l2-cache { > + compatible = "cache"; > + next-level-cache = <&L3_0>; > + }; > + }; > + > + CPU3: cpu@300 { > + device_type = "cpu"; > + compatible = "qcom,kryo385"; > + reg = <0x0 0x300>; > + enable-method = "psci"; > + next-level-cache = <&L2_300>; > + qcom,freq-domain = <&cpufreq_hw 0>; > + L2_300: l2-cache { > + compatible = "cache"; > + next-level-cache = <&L3_0>; > + }; > + }; > + > + CPU4: cpu@400 { > + device_type = "cpu"; > + compatible = "qcom,kryo385"; > + reg = <0x0 0x400>; > + enable-method = "psci"; > + next-level-cache = <&L2_400>; > + qcom,freq-domain = <&cpufreq_hw 1>; > + L2_400: l2-cache { > + compatible = "cache"; > + next-level-cache = <&L3_0>; > + }; > + }; > + > + CPU5: cpu@500 { > + device_type = "cpu"; > + compatible = "qcom,kryo385"; > + reg = <0x0 0x500>; > + enable-method = "psci"; > + next-level-cache = <&L2_500>; > + qcom,freq-domain = <&cpufreq_hw 1>; > + L2_500: l2-cache { > + compatible = "cache"; > + next-level-cache = <&L3_0>; > + }; > + }; > + > + CPU6: cpu@600 { > + device_type = "cpu"; > + compatible = "qcom,kryo385"; > + reg = <0x0 0x600>; > + enable-method = "psci"; > + next-level-cache = <&L2_600>; > + qcom,freq-domain = <&cpufreq_hw 1>; > + L2_600: l2-cache { > + compatible = "cache"; > + next-level-cache = <&L3_0>; > + }; > + }; > + > + CPU7: cpu@700 { > + device_type = "cpu"; > + compatible = "qcom,kryo385"; > + reg = <0x0 0x700>; > + enable-method = "psci"; > + next-level-cache = <&L2_700>; > + qcom,freq-domain = <&cpufreq_hw 1>; > + L2_700: l2-cache { > + compatible = "cache"; > + next-level-cache = <&L3_0>; > + }; > + }; > + }; > + > + soc { > + cpufreq_hw: qcom,cpufreq-hw { Should have a unit-address and node names should be generic. We don't really have one for this, but let's go with 'cpufreq', so: cpufreq@17d43000 > + compatible = "qcom,cpufreq-hw"; > + reg = <0x17d43000 0x1400>, <0x17d45800 0x1400>; > + reg-names = "freq-domain0", "freq-domain1"; > + > + clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GPLL0>; > + clock-names = "xo", "cpu_clk"; > + > + #freq-domains-cells = <1> Not documented, but I don't think you need this if it is always 1 and because this is not a common binding. Rob