Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp174584pxu; Wed, 2 Dec 2020 18:48:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyX3MPIn3OzkEWfq/N5p6yQCuUjmZ4GdUyKEE/Nb5gOAOQ6QdPPwAFRQE0iauK4c/R3SqHy X-Received: by 2002:a17:907:9627:: with SMTP id gb39mr703265ejc.267.1606963703441; Wed, 02 Dec 2020 18:48:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606963703; cv=none; d=google.com; s=arc-20160816; b=ItbhQoWw1BwqA5bxyd3kffZXhOeJn31lIS9+Chq43l+DxBuWSg2YZyljTSDMBCkHNS Usy12PnoRLrGm+qSfga6286cIUoAkBk2qCrVUWlahqPa3GmCArj0cyBaiunYgtNs+CKC pZedvOz7yEoZifVp1fiBE0wmbKzZxwZMbf4TOEVPs/1T9svxD0Qk/bqTrN59D/uxJf0S 2JOnuUPrAkPV4HEeMAnhJcgxAmm/9rBrxlc3hkB04Z4DUeeCpnmtIFFp4QWyFaZo/EKZ Cchh1qkWIbqSfMMsfTekNy8Bq5G30k0nzRUur3l6cSr8AZShpFZTiAkT+8P5mGlMSoXY 1kFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=w+W9iSoo52ek703UN86yNavgaMJrE/oRl/AMe/FXqTw=; b=LI5p0yurYMrk1KV5UIq+831Zhmf1ZL2Pv0t6HAIze8AujM/qRZpec8jCPdxvummnan PoZZ+o39zYmDZqxgfGmF2waS6tvQ79RpUYnWAlEQ9oM9lJubFE4Yor1sThJgZX+5xUnO 82tk7+9bDD52roNJ3KjhBDwlbukdNt8dwV76A880OpPQ+cuPjjmX8dH6AVqq71yVMv78 AZk7OLTlKtGEgama1s4E++elHIqBJRxZS4TyvdowwykU5hmSiRGo5poKGdSi7FK+zDan 5fUKloJU7EaIDOA0AudQMxdXl0PPsITgaYqG8KRAgATkJBipI+SLhqa1ToluWzK8ypzO PPEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=ElTXHPc6; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="j+K/uufc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o22si342517ejg.205.2020.12.02.18.48.00; Wed, 02 Dec 2020 18:48:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@sholland.org header.s=fm1 header.b=ElTXHPc6; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b="j+K/uufc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727916AbgLCCpV (ORCPT + 99 others); Wed, 2 Dec 2020 21:45:21 -0500 Received: from new4-smtp.messagingengine.com ([66.111.4.230]:42647 "EHLO new4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725893AbgLCCpU (ORCPT ); Wed, 2 Dec 2020 21:45:20 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id 9246858024A; Wed, 2 Dec 2020 21:44:34 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 02 Dec 2020 21:44:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=w +W9iSoo52ek703UN86yNavgaMJrE/oRl/AMe/FXqTw=; b=ElTXHPc6LnBBeo9vD vipkY5202XP+551jbgD/kzr/xb9NwHy8uMg1h14c2xFF4tXofYN2Ui5dtei/ccbN NR9tNAW9zl1KKCd6LEbDXLuH1lgGnK8Y1L3p+2xAG8b+74iu/1jK2Fu04ZTCJa8g WSSBL3pn2MpkAoys/LfHTmGCfNNyDfa17GgDLMfJ0J/kmyCeIK01xe0TYXNKVQfe Lnq3+t0aZy0JI2OTfa1BVJEQQdX50UBa3y8lCrPEi31vmsT2W2V02l1R8Jl9ofHw +d3D5FYaiLuzQk9xzNmAzBscEFqUxoMEEn/LNFsnd++qk1DX54kbDXav5/kwWeMg /GUyQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=w+W9iSoo52ek703UN86yNavgaMJrE/oRl/AMe/FXq Tw=; b=j+K/uufc6RI4uR/Lxp+vZNRKTAGGq1AuPjZRk+qKqP2baYclsEVKwsfuq haEZHICM73k6UpjdmSfjCB2U83dgoUK1lIyPw0v7JCuU9+ajyLRFZt9XUiY9/LJ+ mTJ+/sR6MeLrLlFvCkYkC1fF0ly0Z7HPMIz4nhlxtDWP47T//PYH98MwFKGnnItn JWnSTJ5g3pkKj5EFdqloWhWxURk4laO6PK/YawszMipc5V3XMuciy09fQRBPHQDw WaMaScE8YQwAXTQ07unynIUFb6uRwK5Xp9M77ce77EzjXPpGOz2szsk/7do6NN+o N8HKQCnto926znql+64A7ZFkft9kw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeihedggeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnhepuddvleffkeejhfduieelheejteehleefieeikefgteeugefhtdev keefvefgheeinecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepjedtrddufe ehrddugeekrdduhedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Received: from [192.168.50.169] (70-135-148-151.lightspeed.stlsmo.sbcglobal.net [70.135.148.151]) by mail.messagingengine.com (Postfix) with ESMTPA id D5EB6240059; Wed, 2 Dec 2020 21:44:30 -0500 (EST) Subject: Re: [PATCH 4/8] clk: sunxi-ng: Add support for the Allwinner H616 R-CCU To: =?UTF-8?Q?Jernej_=c5=a0krabec?= , Maxime Ripard , Chen-Yu Tsai , Andre Przywara Cc: Philipp Zabel , Stephen Boyd , Linus Walleij , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-sunxi@googlegroups.com, Rob Herring , Icenowy Zheng , Yangtao Li , Michael Turquette , linux-arm-kernel@lists.infradead.org References: <20201202135409.13683-1-andre.przywara@arm.com> <20201202135409.13683-5-andre.przywara@arm.com> <3151878.LmPXbFMbMm@kista> From: Samuel Holland Message-ID: <55df8346-0330-4e7d-03ef-334622851a98@sholland.org> Date: Wed, 2 Dec 2020 20:44:29 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <3151878.LmPXbFMbMm@kista> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/2/20 12:20 PM, Jernej Škrabec wrote: >> +}; >> + >> +static struct clk_hw_onecell_data sun50i_h616_r_hw_clks = { >> + .hws = { >> + [CLK_R_AHB] = &r_ahb_clk.hw, >> + [CLK_R_APB1] = &r_apb1_clk.common.hw, >> + [CLK_R_APB2] = &r_apb2_clk.common.hw, >> + [CLK_R_APB1_TWD] = &r_apb1_twd_clk.common.hw, > > Do we know if TWD exists? I tested I2C and IR. What is your source for these > clocks? Looking at https://github.com/orangepi-xunlong/linux-orangepi and comparing drivers/clk/sunxi/clk-sun50iw[69].h, I see: /* PRCM Register List */ #define CPUS_CFG 0x0000 #define CPUS_APBS1_CFG 0x000C #define CPUS_APBS2_CFG 0x0010 -#define CPUS_TIMER_GATE 0x011C #define CPUS_TWDOG_GATE 0x012C -#define CPUS_PWM_GATE 0x013C -#define CPUS_UART_GATE 0x018C #define CPUS_TWI_GATE 0x019C #define CPUS_RSB_GATE 0x01BC #define CPUS_CIR_CFG 0x01C0 #define CPUS_CIR_GATE 0x01CC #define CPUS_OWC_CFG 0x01E0 #define CPUS_OWC_GATE 0x01EC #define CPUS_RTC_GATE 0x020C #define CPUS_CLK_MAX_REG 0x020C which suggests that TWD is still there, along with OWC/W1 and an undocumented RSB controller like the one in H6. Jernej, can you check RSB? It should be PL0/PL1 function 2 and MMIO base 0x7083000. Cheers, Samuel