Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8420792ybn; Tue, 1 Oct 2019 07:54:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqwiQjcU7vosZy0Lq5jNdXasrHbvlqyML+uy0mbdZCuKRyjOI4EMsWcyGIx9q6i5amcZfgqP X-Received: by 2002:a50:87ca:: with SMTP id 10mr26223598edz.77.1569941667234; Tue, 01 Oct 2019 07:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569941667; cv=none; d=google.com; s=arc-20160816; b=jGyPzHt6k4Ag9dJVyJTcrYTVGqmYrjMTEbIQH473vIwArve3JXkXWcGP2VlXyajWqq ltfaGm0k2wXvnUBJlqu5y6b06FIkDssud8+2O1MQJyfwOfWBVN9jdFCocnqthNQDvYRE ph6kQqolwdQZIwYF3PRF8iPBw7NeAWATlkGDBvELMH2j4kBVM8wQSw8DPToGtbfviOf6 7m5mtv6Cc61BIymXvFSJDG9Hx/fdLL8gdqMijLHSq48F+NT1kvnji+g+ZxHv0YYxZ/yl aTn8DWb/cM5lLTpztv8H1DeDlrbA2laj67ktQJp9Pup9VkR0KkfKTxGKsluVswYLww9X Dx6w== 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 :in-reply-to:references:mime-version; bh=wjkwwfTfjq2moCLwkeTZGb6uXp0wkFlLr8cpTn6l27M=; b=STr07FV7TSq5wzujqhjEtivmAZKg6GMgFl09vShVgvxwiZDaK/oXfCgzBcuhzGwdBu eZK3AFF4xOBFhbVYqV2YWEQt3sjOm/jbDgnlwm2+IwqSqwliGBEBbJEf3c8ChZxL5mti LyRcmF3V9RHbJcGTM/hMFel8lELjy1WXsB/e8TQ0Ea/dD6v6VhyP5uj/g26fVVxeon4w TGO3rzXXJRz19bs6soCbv1snybinOnvXHNJlk8q9xQsQaOfAS42gO0Txx3NvxEyt3V/6 8Vn93NlihRuRzBtxbliZhS5tY11n2OTGv/HQICvh0g78YCF0M0zS5j7J20mLfX0UATlZ Na2Q== ARC-Authentication-Results: i=1; mx.google.com; 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 ga6si8969553ejb.309.2019.10.01.07.54.01; Tue, 01 Oct 2019 07:54:27 -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; 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 S2389316AbfJAOvO (ORCPT + 99 others); Tue, 1 Oct 2019 10:51:14 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:42766 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388925AbfJAOvO (ORCPT ); Tue, 1 Oct 2019 10:51:14 -0400 Received: by mail-oi1-f194.google.com with SMTP id i185so14615189oif.9; Tue, 01 Oct 2019 07:51:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=wjkwwfTfjq2moCLwkeTZGb6uXp0wkFlLr8cpTn6l27M=; b=pyX7yAyfQGDwy+LAL4AlxcNrPM5m11R3UE1Duj0cP/MA1Y+LoYkWNgOgEdiXK9LVve yt3dlDoA9aZPma7fb7qyTHOrcEeTECv70cA2GAph0M2HqHX4AslXvH6GCR7V0Y+MoMqf NEPU0TdYqf8i0KRvX+kNI0Q/rVMBKIe/z2wQgGrnvvIit80bsJ9I1GcWBw4jLjVZvMER w3lgyeN+y6tA33lW2vB2cf0peCioIbhnBYPtzQUdIMK4Tq1Wx+v3UdRB7eCBzkw8hhkl tl4ZaRFmCrQQI7pD5bb9uRCHKAQIJS03jZFDHDY2mgtsEaN22ckkqTsX9v5dIgeqddAF uWvQ== X-Gm-Message-State: APjAAAX1fqzd+VUdgm1/ApH8k8rxSEvAMmDVlM6tTdSm1ZAd7I7VEjjx JIrOf5BRY7Tu+NLspdPWHs/vRJQ/PbOYi/LXwvHmHVEE X-Received: by 2002:aca:b654:: with SMTP id g81mr3826040oif.153.1569941473256; Tue, 01 Oct 2019 07:51:13 -0700 (PDT) MIME-Version: 1.0 References: <1568793876-9009-1-git-send-email-gareth.williams.jx@renesas.com> <1568793876-9009-3-git-send-email-gareth.williams.jx@renesas.com> <20191001120203.GA28106@bogus> In-Reply-To: From: Geert Uytterhoeven Date: Tue, 1 Oct 2019 16:51:02 +0200 Message-ID: Subject: Re: [PATCH v2 2/4] dt-bindings: snps,dw-apb-ssi: Add optional clock domain information To: Gareth Williams Cc: Rob Herring , Mark Brown , Mark Rutland , Phil Edworthy , "linux-spi@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" 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 Gareth, On Tue, Oct 1, 2019 at 3:50 PM Gareth Williams wrote: > On Tue, Oct 01, 2019 at 13:02:34AM +0100, Rob Herring wrote: > > On Wed, Sep 18, 2019 at 09:04:34AM +0100, Gareth Williams wrote: > > > Note in the bindings documentation that pclk should be renamed if a > > > clock domain is used to enable the optional bus clock. > > > > > > Signed-off-by: Gareth Williams > > > --- > > > v2: Introduced this patch. > > > --- > > > Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt | 3 ++- > > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > > > diff --git a/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt > > > b/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt > > > index f54c8c3..3ed08ee 100644 > > > --- a/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt > > > +++ b/Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.txt > > > @@ -16,7 +16,8 @@ Required properties: > > > Optional properties: > > > - clock-names : Contains the names of the clocks: > > > "ssi_clk", for the core clock used to generate the external SPI clock. > > > - "pclk", the interface clock, required for register access. > > > + "pclk", the interface clock, required for register access. If a clock domain > > > + used to enable this clock then it should be named "pclk_clkdomain". > > > > What's a clock domain? > > > > Unless this is a h/w difference in the IP block, then this change doesn't make > > sense. > This is a reference to the use of clock domains that are implemented through > generic power domains. The domain is implemented in > drivers/clk/renesas/r9a06g032-clocks.c and general details of clock domains > can be found at > https://elinux.org/images/1/14/Last_One_Out%2C_Turn_Off_The_Lights.pdf Rob is right: the clock domain is an SoC integration detail, not specific to the snps,dw-apb-ssi block. Remember, DT describes hardware, not implementation details. So the Linux snps,dw-apb-ssi driver should take care of it. Which brings us back to an old discussion topic: power-domains properties describe integration, and thus should be documented at a higher level than in individual binding documents, just like e.g. interrupt-parent. 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