From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 865F8C43331 for ; Sat, 7 Sep 2019 11:51:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2CD10218AE for ; Sat, 7 Sep 2019 11:51:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=goldelico.com header.i=@goldelico.com header.b="q2qfSdeD" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405835AbfIGLvn (ORCPT ); Sat, 7 Sep 2019 07:51:43 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([81.169.146.164]:12736 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392149AbfIGLvn (ORCPT ); Sat, 7 Sep 2019 07:51:43 -0400 X-Greylist: delayed 161127 seconds by postgrey-1.27 at vger.kernel.org; Sat, 07 Sep 2019 07:51:41 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1567857100; s=strato-dkim-0002; d=goldelico.com; h=To:References:Message-Id:Cc:Date:In-Reply-To:From:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=Z/XEQfXKMDbN9W+gYgoAURXwsSBKlj7j0lovZOUOhFo=; b=q2qfSdeDOfZf/cXFjPneTVqBx6DkwN/5BGfpxjU7ygw35IjEccVbFiIOH2Obd8WVta IZ+f83s+c1W4kzj3URzLOUAGTeAUdLgXJP4N2Y7El0/xTNB6ArTjCkq7kAxMkylNT9sQ lfBSNdcZ+mi6RvgW8GtrFLYkEDXsaphu8Xbuqz4okVmnsz2HcLH2OKtUwbOiDNQy5VBi ODIsERUjFss9tv7xBkYrERRtcSdGgu2uwcX0HjfGeDspOHQv53TcIlIuyqSJ1cC6Relq TZjglSVXlwQrAgx2EbiWEM/mdNezvI04/ywYRobJmmnQGB1CSqrUz3UTEY2Z3ase4tPX bpxw== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj5Qpw97WFDVCaXAwLbA==" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 44.27.0 DYNA|AUTH) with ESMTPSA id u036f9v87BpTr96 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Sat, 7 Sep 2019 13:51:29 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [PATCH 5/6] ARM: dts: Configure interconnect target module for omap3 sgx From: "H. Nikolaus Schaller" In-Reply-To: Date: Sat, 7 Sep 2019 13:51:28 +0200 Cc: Tony Lindgren , Linux-OMAP , =?utf-8?Q?Beno=C3=AEt_Cousson?= , devicetree , =?utf-8?Q?Filip_Matijevi=C4=87?= , Ivaylo Dimitrov , moaz korena , Merlijn Wajer , =?utf-8?Q?Pawe=C5=82_Chmiel?= , Philipp Rossak , Tomi Valkeinen , Michael Turquette , Stephen Boyd , Tero Kristo , linux-clk Content-Transfer-Encoding: quoted-printable Message-Id: <26DDC0FB-C954-4169-AA08-E39BDDFF2E4A@goldelico.com> References: <20190814131408.57162-1-tony@atomide.com> <20190814131408.57162-6-tony@atomide.com> To: Adam Ford X-Mailer: Apple Mail (2.3124) Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Hi Adam, > Am 19.08.2019 um 21:12 schrieb Adam Ford : >=20 > On Wed, Aug 14, 2019 at 8:14 AM Tony Lindgren = wrote: >>=20 >> Looks like omap34xx OCP registers are not readable unlike on = omap36xx. >> We use SGX revision register instead of the OCP revision register for >> 34xx and do not configure any SYSCONFIG register unlike for 36xx. >>=20 >> I've tested that the interconnect target module enables and idles >> just fine with PM runtime control via sys: >>=20 >> # echo on > $(find /sys -name control | grep \/5000); rwmem = 0x5000fe10 >> # rwmem 0x50000014 # SGX revision register on 36xx >> 0x50000014 =3D 0x00010205 >=20 > For an OMAP3530, I got: > # echo on > $(find /sys -name control | grep \/5000) > # devmem 0x50000014 > 0x00010201 >=20 > Does 0x00010201 seem reasonable? I am not sure where to find this in > the TRM unless it's located elsewhere, but [1] seems to lead me to > believe this is correct. I got on dm3730: root@letux:~# echo on = >/sys/devices/platform/68000000.ocp/5000fe00.target-module/50000000.sgx/po= wer/control root@letux:~# /usr/bin/arm-linux-gnueabihf/devmem2 0x50000014 /dev/mem opened. Memory mapped at address 0xb6fc0000. Value at address 0x50000014 (0xb6fc0014): 0x10205 root@letux:~#=20 which indicates ES5.0, as expected for dm3730. BR, Nikolaus