Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp179403imm; Thu, 12 Jul 2018 16:50:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdcDFrMbMrn8HIe8aNN7gC9eAVoKPv+FguTWrkiolcQrIIwQHHh1YPc44DFv/pLyqSrqhxx X-Received: by 2002:a65:60d2:: with SMTP id r18-v6mr3929285pgv.306.1531439450731; Thu, 12 Jul 2018 16:50:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531439450; cv=none; d=google.com; s=arc-20160816; b=aolYauzfCJFbuUaEuxG2/OBuM4PeU56o7Th8agXXLs3jBRpr+6ANfunhUawlAlhEoE 8qH4clWOwMlgPT+Gtv7J1mU9KgwmN+aCT2l8exFeotnP71kU4p7kr9dMCDXpahxMptvH n2tMgWKya5RDqZ1txaYTpaP0mzc+ZT1mmmMPWm8c3rRYZEMer/zenCzq/GqrOtDmGMun 5dOKM5I6NluZAlA02fXOdWOpR7Qogd45c1JqlRCcQsWyYC+lvVJSCVZqQVe/ohdIPLV8 MmZC78bJzkCV9ecJ8H6CbwDBgnxoTWwQvrYWlYdrygGpoYUG2eppdaPhw6Yvwrr5HvD2 bLbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:user-agent:message-id :references:cc:in-reply-to:from:to:content-transfer-encoding :mime-version:dkim-signature:arc-authentication-results; bh=5zLgP9FUZl/BgZNLcMI6Cl8S/tx6II0taqsZvojtkN0=; b=qhCGtOGp3PszSeheq5ERzhUhj2+9Hqew4C5i2aO8vavWwygieDxGH5dnZupxj0e58g BGP8WB6yKBl454epZ9agO6QjfbhUDITysyHVuVF5LXf9VztS8nKX/sHrQKnFbanPvSY6 9ObcPgVnn2bqq7nO2YxG6Nrv0Ue8tK89wAsXJaWtd6fhR+/1qPtnK4ayxcaxRLhOr65X 11bwWd6pDUgAc6mqGqML3VKkaauCXjZynWj/WGCmkfhvQix/QKET8rrVtVxPt/lt9j+G fifGI4HayJm4+qe0dYm+D6mXhrHvnJih0XMMfQ9vp7ZmgSaPeD1yZFeeiv61z5fV0gk5 ituw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iOD4Ejhd; 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=pass (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 a21-v6si22030369pgm.417.2018.07.12.16.50.35; Thu, 12 Jul 2018 16:50:50 -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; dkim=pass header.i=@kernel.org header.s=default header.b=iOD4Ejhd; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387727AbeGMABy (ORCPT + 99 others); Thu, 12 Jul 2018 20:01:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:36170 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387709AbeGMABy (ORCPT ); Thu, 12 Jul 2018 20:01:54 -0400 Received: from localhost (unknown [104.132.1.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 94F0C20BF2; Thu, 12 Jul 2018 23:50:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1531439400; bh=tLHjJxvJ5FcVUy/UQJlfY3F2FRgRvMFndwIxdIosTvQ=; h=To:From:In-Reply-To:Cc:References:Subject:Date:From; b=iOD4EjhdHqbdz5ETRB65Y2FnU5irBMdu3lz9Hm4DiTLs3sewwZWwd+BVGCZhJLfNw w/e/U+kr+DNu8MtzQEVQX583P/hEkkbcfD1Rse7ylHtbbaaWHbj/pXe6fqC1vjf0VS VgMKOWWwxhbsoPf+CjAWEVLqarzaVSuixUR/xmww= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: "Rafael J. Wysocki" , Taniya Das , Viresh Kumar , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org From: Stephen Boyd In-Reply-To: <1531418745-19742-2-git-send-email-tdas@codeaurora.org> Cc: Rajendra Nayak , Amit Nischal , devicetree@vger.kernel.org, robh@kernel.org, skannan@codeaurora.org, amit.kucheria@linaro.org, evgreen@google.com, Taniya Das References: <1531418745-19742-1-git-send-email-tdas@codeaurora.org> <1531418745-19742-2-git-send-email-tdas@codeaurora.org> Message-ID: <153143939986.48062.4653224503139250796@swboyd.mtv.corp.google.com> User-Agent: alot/0.7 Subject: Re: [PATCH v5 1/2] dt-bindings: cpufreq: Introduce QCOM CPUFREQ Firmware bindings Date: Thu, 12 Jul 2018 16:49:59 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Taniya Das (2018-07-12 11:05:44) [..] > + compatible =3D "qcom,kryo385"; > + reg =3D <0x0 0x600>; > + enable-method =3D "psci"; > + next-level-cache =3D <&L2_600>; > + qcom,freq-domain =3D <&freq_domain_table1>; > + L2_600: l2-cache { > + compatible =3D "cache"; > + next-level-cache =3D <&L3_0>; > + }; > + }; > + > + CPU7: cpu@700 { > + device_type =3D "cpu"; > + compatible =3D "qcom,kryo385"; > + reg =3D <0x0 0x700>; > + enable-method =3D "psci"; > + next-level-cache =3D <&L2_700>; > + qcom,freq-domain =3D <&freq_domain_table1>; > + L2_700: l2-cache { > + compatible =3D "cache"; > + next-level-cache =3D <&L3_0>; > + }; > + }; > + }; > + > + qcom,cpufreq-hw { > + compatible =3D "qcom,cpufreq-hw"; > + #address-cells =3D <2>; > + #size-cells =3D <2>; > + ranges; > + freq_domain_table0: freq_table0 { > + reg =3D <0 0x17d43000 0 0x1400>; > + }; > + > + freq_domain_table1: freq_table1 { > + reg =3D <0 0x17d45800 0 0x1400>; > + }; It seems that we need to map the CPUs in the cpus node to the frequency domains in the cpufreq-hw node. Wouldn't that be better served via a #foo-cells and <&phandle foo-cell> property in the CPU node? It's annoying that the cpufreq-hw node doesn't have a reg property, when it really should have one that goes over the whole register space (or is split across the frequency domains so that there are two reg properties here).