Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp326789imm; Fri, 1 Jun 2018 01:23:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLc8tlMk64iEJDiHm0aSyEu+oC3tuLlmkdQhE9zrM7mwbVoorigN/U/UPFeMPKFKZuxcshc X-Received: by 2002:a65:4146:: with SMTP id x6-v6mr7944384pgp.221.1527841414921; Fri, 01 Jun 2018 01:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527841414; cv=none; d=google.com; s=arc-20160816; b=bSSxAsYgQ29DkkHOma9CUVc9VDoWc+TH5l/JkLvifAVSyD6FOVPetQiB4Xf7WeOvqg PIIilbuSQ0FONjcjH6opAxb+2M2fva8e2onsdcCld9GxKY1eGzu865nKXEWutLi1WPw4 H6SnLTM4Lsq1v3VwUwt77yFW5yI2ubjH2pREynf2xIeQgFwzFPBY2lZHc5Ft317kpd8b OnC45fB7ixrdXz/gXWo2+RYtuuXrckqYzZ3+JRZTmdRoko77U59fvgxgwVwsQ7T2QMz3 tZe7AZ70HHWS4J1dTW1y0b2Utpgyl6Kb/fBTLh6Ygv5fKvYizH43+aIAKeD5+gtgcSKm Z4zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=dCB6941J8RWIo+ybZmUu5ToeCqxfUM6XtTsExY701Pc=; b=OGIa/LREdjjPdryD0ONuanlJmjr50uwWvft5747c6a0FM7zEPCxLHZudas+VcalcId mqL6nKuw9amnpIMsKtp/2YgLHNA0V5LVzx6k88aQyuBIXXcrMMQFrrPWnvPrQsMkcxkL T6Ho1yszlZXtICLCnQT9sciE7NzOqedsbCvnfvfG50Sg0R7Fdd+ngi9oP2GebuU51UXi E8pyN25MffSRdm9uBc9BzT9YseYz9QZwnj0hcygIu/qlUuWEdcOVy21HVR9jwbaZWihX e1uT4yeKJ+M/v4zZ8nVV2CR30HaiuWV3w+w64hpSpbVi9Uk5RyVcJA4WUBk6LJmhW1NJ 6VNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=mNPUnnzA; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d7-v6si5923964pfl.122.2018.06.01.01.23.18; Fri, 01 Jun 2018 01:23:34 -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=fail header.i=@gmail.com header.s=20161025 header.b=mNPUnnzA; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751423AbeFAIWq (ORCPT + 99 others); Fri, 1 Jun 2018 04:22:46 -0400 Received: from mail-ua0-f196.google.com ([209.85.217.196]:42272 "EHLO mail-ua0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750931AbeFAIWl (ORCPT ); Fri, 1 Jun 2018 04:22:41 -0400 Received: by mail-ua0-f196.google.com with SMTP id x18-v6so10080855uaj.9; Fri, 01 Jun 2018 01:22:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=dCB6941J8RWIo+ybZmUu5ToeCqxfUM6XtTsExY701Pc=; b=mNPUnnzAhjW5M7AhF/Ua4JKRDDzBqKpDE7+EsOpA6cOiCwpEKK5nMI7jsU64FKFj9T KCzYYdRfDIC4FGihTkG5uUx/zhVExiMhaJvy+rdq/pb0yxgg1cBC9RDFAYxSjgcBB/pD AE0+Hg53Mf6UdGDAsNn5owjPrlK8EnMjAZJsjJM6YjVWQO+WdikSZfx2sQAaKwYYChIT tpZpYaal8ro2f6uK9X94ebmrMHDhG9uFMKkfx1or/UCMLdur925dPq4KL3Fu9fnjAkPG AgDGihDECNnRDLqub02IvKe8uHJhv1wJinKUlrNCypEZu/xUNrPo4gub30cfQ6IWJ7LQ fLtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=dCB6941J8RWIo+ybZmUu5ToeCqxfUM6XtTsExY701Pc=; b=tcszyC5FOWyZmCXYhAvazBGWLDD3WlDuoBu8GgUknHk7WvaJUYyeFwfVyfV2ZEU0Pg XOtm2z4vLgzVd1QeKY+xZPKpztED67cNvLAsEt26j68Nj7qDn/w3yMBb9K2ceMaO5G26 1NkuBqJiadE8V1xe4oD++h+J9eqJ/tt9KhKoYBPQ39XZYbUCwJg+6BqxKBJ/1T9lQe4f v0gAsiCmzC87tmt1zI+sdh0xKzxav5gDeNfPznWYKQTKAdl46xLSgveCeCDLoDH6OLTC RFXoP4D20oX59Zct4P6aymQ4q7IcipGG4CFhFXyYANFPBXtLCt8rXeAVf1PQ/gtJxkY9 opbg== X-Gm-Message-State: ALKqPwfzX89TldMRZB7+moOygqvYOyx2n00KuT6qcrZgGFQs1sqyjTC7 k/484nO9Lmel5MzUJgtOjoJ55H2UorVUjbUkYII= X-Received: by 2002:a9f:39d9:: with SMTP id p25-v6mr6686405uag.72.1527841360423; Fri, 01 Jun 2018 01:22:40 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:7a0a:0:0:0:0:0 with HTTP; Fri, 1 Jun 2018 01:22:39 -0700 (PDT) In-Reply-To: References: <1527154169-32380-1-git-send-email-michel.pollet@bp.renesas.com> <1527154169-32380-3-git-send-email-michel.pollet@bp.renesas.com> From: Geert Uytterhoeven Date: Fri, 1 Jun 2018 10:22:39 +0200 X-Google-Sender-Auth: naSpdEh030vu7AarbVhAOmfcNw8 Message-ID: Subject: Re: [PATCH v7 2/5] dt-bindings: clock: renesas,r9a06g032-sysctrl: documentation To: M P Cc: Michel Pollet , Linux-Renesas , Simon Horman , Phil Edworthy , Michel Pollet , Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , Geert Uytterhoeven , linux-clk , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Michel, On Thu, May 31, 2018 at 12:16 PM, M P wrote: > On Fri, 25 May 2018 at 10:23, Geert Uytterhoeven wrote: >> On Thu, May 24, 2018 at 11:28 AM, Michel Pollet >> wrote: >> > The Renesas R9A06G032 SYSCTRL node description. >> > >> > Signed-off-by: Michel Pollet >> >> Thanks for your patch! >> >> > --- /dev/null >> > +++ b/Documentation/devicetree/bindings/clock/renesas,r9a06g032-sysctrl.txt >> > @@ -0,0 +1,32 @@ >> > +* Renesas R9A06G032 SYSCTRL >> > + >> > +Required Properties: >> > + >> > + - compatible: Must be: >> > + - "renesas,r9a06g032-sysctrl" >> > + - reg: Base address and length of the SYSCTRL IO block. >> > + - #clock-cells: Must be 1 >> >> No clocks/clock-names for the external clock inputs? >> >> "RZ/N1 has 3 clock sources, 1 reference clock inputs for RGMII, and 2 >> reference clock outputs for RMII/MII." >> >> Given the documentation explicitly mentions the module clocks are to be >> used for power-management, you may want to add #power-domain-cells as well, >> and let the driver register clock domain. But that can be added later >> (although it will break backwards compatibility with old DTBs). >> >> As PWRCTRL_* registers allow to reset individual modules, #reset-cells is >> another thing to add later. It's good to start thinking early about how to >> reference resets, though. >> E.g. on other Renesas-SoCs, module resets uses the same numerical >> references as module clocks. > > As you said, could we add all that later, as appropriate? Here I tried > to trim it > down to the the bare minimum -- my previous version of the driver had > separate reset descriptors, but this one has been all compacted to do just > what it's supposed to do: clocks. Yes, it can be added later. I just wanted to mention it, so you could already think about it, and to avoid a possible "but we could have nicely integrated reset and clock support if we did ..." later. > Or, so you want to add another DT index to refer to other reset indexes etc? > ie not use the of_clk_src_onecell_get provider? That COULD work and yes, the > indexes would stay the same, I'd just have to get the reset descriptor from the > clock object. We haven't had a use for individual resets so far. Reset indices come from DT, too, but the reset framework doesn't use an xlate function itself, but just passes the index to the reset driver. How you obtain the register and bits to reset the device is competlely up to to the reset driver. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds