Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1070655ybe; Wed, 4 Sep 2019 12:05:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqydJZgKkPZLh2zm0+MtzZ55ULidJ1h2rufHe4/54UpmKJAw18xxu0MUPX6P/Cu++EL/mzdT X-Received: by 2002:a62:8683:: with SMTP id x125mr4509694pfd.108.1567623948017; Wed, 04 Sep 2019 12:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567623948; cv=none; d=google.com; s=arc-20160816; b=HUDDZ+gOlKxX6oYdGealuVMpAlmMJm2C3clQoFZyuK59HLwEmzQwS9Il+6Km5Ay7Px /zHbliFIXabjoDN148+FQbxn4wWPewgkhaBRg/tzNvHvqQL75Eyb4K/JuBZ3vCLHiMQI hxvr5QT5XuronJWRf0dhN2ChqIhYlp+OTQejZEaYhD6PdApyMgZM2mW0PO/1lhs6IjwG k+DJjiE7A20YMcjbaFRI+gayn8tjSDHrMdrIe5spYkYsVWVJ9pWt7snmfoQ1OXM/ncdt h/S/LdldaoirikV8UjOtQhwwI6qs+BV+fun0V/TfR9f9vnRbzHRcfWVud6RfjqHYK+Fv FJLQ== 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:dkim-signature; bh=AmoktrUsrRAX/D4sytItWL2rgYOOGje/KPRLW7QLU2g=; b=jGsM9YmnvJtEwAnP69Qacm7xydpMgtk/aL9zIF85zgnE+Wltu4nKjiLKY6yjAOzNmL rT/hXoxE7BX7b/bKShug2TBMi5oPhjAUICWjV8V5112SKu3dmBjH+UpRrq7Mi0uL5GNS 43/7H2fuaSt7dVa5LpxDphnVLaFsR44dlEUQfjdKbVlQR0ficPTiKuw91H1x4SORDoqz vR4GMyDa05hkJlwrPu2A9IQi+CUMCJ9WnHbzZJPBWnhBTaaJzyt+aSJjO40gnvC945Aj W5p6lsQ82yCUnDc2G54AWPQxbPvjwndsreaQl/vELjpNwIuGN71sZFoVG8xJLrQwa0K4 U6aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A0KTYkOg; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a22si7265671plm.219.2019.09.04.12.05.31; Wed, 04 Sep 2019 12:05:48 -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=@linaro.org header.s=google header.b=A0KTYkOg; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387903AbfIDTEH (ORCPT + 99 others); Wed, 4 Sep 2019 15:04:07 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:39209 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732485AbfIDTEG (ORCPT ); Wed, 4 Sep 2019 15:04:06 -0400 Received: by mail-pf1-f195.google.com with SMTP id s12so6845194pfe.6 for ; Wed, 04 Sep 2019 12:04:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=AmoktrUsrRAX/D4sytItWL2rgYOOGje/KPRLW7QLU2g=; b=A0KTYkOgIyHzo9L3f04wY0gGoxEWXXUdQETF2gDIFnYoYkS/UXcKD1TwTTPRDGs/RN ECGCHjaeV/CeGMNx2VC0eTvEswu34MZ4XBvC+4st0YLL2/65/RXS3Se7+EU8RtCyZnUl C8QH+OpZxbe5rry8EpXvNeWYuHC30FPM4NlzbTx5IlpCt0QvMdHOJnosBKfJGD76cvcd QjZOQrMiKsmqCLYMki0M0i3xNVZSRL+w0IDWfw5N2XKlQF0yEFtTpsIgyyiK2HfniNRH s32N9l8VKqHOaYm501YGsFBgOTiMRDuCY6BXuqkLp2M/l1UaSqWvTeSw30nIClnvgwOU dkNg== 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=AmoktrUsrRAX/D4sytItWL2rgYOOGje/KPRLW7QLU2g=; b=gaOVhRyM3pYWnvcbEPq7ztMsawzGINyHOFis+fpK4SenbQMu1s1/7w13Y5T0D+ZRCx v+Yt4f50gJjFwvz30gBM1WJbMIPjcIbgIc14mmOSGgCmqmU9oz/NiRqlTKBopf2P+4h1 h3vy2qQXI0iVmpvqBPRvDD7Woth5RumXR4CntIzg2gpPuQw8fYAM+r2CY3w1YCXu5D6y 7HJdyjiQ14xIsII5uFGjiU9wAXOM20b3itrc4NfmpQ4H00u/Mnq4hZBSSRaQuJXckv8l lG8PDv/CCuBMzhuh2ynoQL0KEvwKHgQOqh5+Q0hOGO8bRfMHCdTB/7FtBd1NydIufmAD y/OA== X-Gm-Message-State: APjAAAXWF7UmvicERwIF8WgJUPJZJLounmxkn1jlhJ49DIzXZXJv1Iru CU/52dlGihCtqTNbigm3NBpdFw== X-Received: by 2002:a63:9245:: with SMTP id s5mr37182454pgn.123.1567623845637; Wed, 04 Sep 2019 12:04:05 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id j128sm22473181pfg.51.2019.09.04.12.04.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 12:04:05 -0700 (PDT) Date: Wed, 4 Sep 2019 12:03:57 -0700 From: Bjorn Andersson To: Brian Masney Cc: georgi.djakov@linaro.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC 1/2] dt-bindings: interconnect: qcom: add msm8974 bindings Message-ID: <20190904190357.GI574@tuxbook-pro> References: <20190902211925.27169-1-masneyb@onstation.org> <20190902211925.27169-2-masneyb@onstation.org> <20190904050103.GE3081@tuxbook-pro> <20190904102042.GA14484@onstation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190904102042.GA14484@onstation.org> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 04 Sep 03:20 PDT 2019, Brian Masney wrote: > On Tue, Sep 03, 2019 at 10:01:03PM -0700, Bjorn Andersson wrote: > > On Mon 02 Sep 14:19 PDT 2019, Brian Masney wrote: > > > + mmssnoc: interconnect@fc478000 { > > > + reg = <0xfc478000 0x4000>; > > > + compatible = "qcom,msm8974-mmssnoc"; > > > + #interconnect-cells = <1>; > > > + clock-names = "bus", "bus_a"; > > > + clocks = <&rpmcc RPM_SMD_MMSSNOC_AHB_CLK>, > > > + <&rpmcc RPM_SMD_MMSSNOC_AHB_A_CLK>; > > > > Isn't MMSS_S0_AXI_CLK the bus clock of the mmssnoc (which somehow seems > > to depend on mmssnoc_ahb_clk)? > > I'll give that a try. Do you know which clock I should use for bus_a > here? On the mmcc, I see the following mmss clocks available: > > MMSS_AHB_CLK_SRC > MMSS_AXI_CLK_SRC > MMSS_RBCPR_CLK_SRC > MMSS_MISC_AHB_CLK > MMSS_MMSSNOC_AHB_CLK > MMSS_MMSSNOC_BTO_AHB_CLK > MMSS_MMSSNOC_AXI_CLK > MMSS_S0_AXI_CLK > > I'm also unsure of what's going on at the hardware level that the second > clock (bus_a) is needed. > In msm-3.4 clock-8974.c both bus and bus_a is defined as mmss_s0_axi_clk. But iirc I also needed mmssnoc_axi_clk to get DSI working on my devices, which is listed as .depends of the s0_axi clock. So that probably needs some more investigation...But easiest would probably be to just have the mmss_noc use them both listed as bus clocks? Regards, Bjorn > > > + mdss: mdss@fd900000 { > > > > I think you can omit the client, as this adheres to the standard binding > > for interconnect clients. And you don't need to have an example that > > covers all compatibles either... > > OK, I'll drop some of these. > > > > diff --git a/include/dt-bindings/interconnect/qcom,msm8974.h b/include/dt-bindings/interconnect/qcom,msm8974.h > > > new file mode 100644 > > > index 000000000000..58acf7196410 > > > --- /dev/null > > > +++ b/include/dt-bindings/interconnect/qcom,msm8974.h > > > @@ -0,0 +1,146 @@ > > > +/* SPDX-License-Identifier: GPL-2.0 */ > > > > Would you mind dual licensing this part as well? > > Sure, that was an oversight on my part. > > > Apart from that, I think this binding looks good. > > Thanks, > > Brian