Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3799386rdb; Wed, 27 Dec 2023 23:30:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEPvXZyYztdh/cSh2bi0OhV61HSO6djEVBPl32zT6DdPVvKByb62VKgvsiRmYowCa2CJXfP X-Received: by 2002:a05:6a00:39a2:b0:6d9:f3b6:6186 with SMTP id fi34-20020a056a0039a200b006d9f3b66186mr1726802pfb.67.1703748626956; Wed, 27 Dec 2023 23:30:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703748626; cv=none; d=google.com; s=arc-20160816; b=JU//0Daw+2P7AlJ+XtE89G8gqIngFKbYfvfMRz1r6BGsITCI6mqtvhbwAVjmZczPNB KxCeadF/b4TW2LIR5ABhD2GF6VMxU5MgJ+pBu1t/yzfbHL7aUJUMXkVmqnT6pOUBiHdx 4MciK3dC3p6WWIRe9PfKWKWZtAcYDU7hgIIWP45pxOnl8rhrPv5pW/9U1PpPN4+qrA2j mA/Bdxy0K4Qm6XTC7wrdJnnQjugmGSztqE8T1oYPHKctgPlCm2D98gwiltUfAIDWD+y7 sKBeo+SCVSLxLVYv/2drRPr5Fp6PbIERhPj+70CTAJhGd1937hclbMVjG4I3L8MWO1iA VCAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=wXjd+4bZiZ8Ko7l3VIaHI/vJ/Lj/GLWewcbeMBNDVk4=; fh=UgpqvpRxz9yQAn3zHePaYvdhoBb7NhOb2cS1GiGoqZE=; b=FuF60yVnNXpM2GHRNUpKTntBqo9jcfReTT4jzfPG6knnwhjI1SGFACxBBALbIh/jKy CBh8UMxZiyZja9uSEbBKEERDzKaOaHlFGGw7rEcJIuJp3UybDU0YrXCuyFaKnlUdeZap Ygi9dr8SusIF718JPofa97wYL7Hkyv6IyEMPncIvaqxdnyvLQe7Nc5jkvieIrA/tXNIZ tagHI0NEFD7TgWli5Nr1DTC1Hsh5p7X5p/FZ8UUzItMjBL8zS6xd4/PsNWaGGSaqsDjg vx1csO+XiF04yBIfLimsWTLY4wuxVzdUOKfehEkeglZqlcSLQFO8FwMyo2lb6ezpWaNw R4gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nFWcvAHK; spf=pass (google.com: domain of linux-kernel+bounces-12487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12487-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id bi5-20020a056a02024500b005ce003e0582si9297341pgb.260.2023.12.27.23.30.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 23:30:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nFWcvAHK; spf=pass (google.com: domain of linux-kernel+bounces-12487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12487-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6613AB2212A for ; Thu, 28 Dec 2023 07:30:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A55646BF; Thu, 28 Dec 2023 07:30:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="nFWcvAHK" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D037E63AD for ; Thu, 28 Dec 2023 07:30:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-40d5095834aso38594675e9.2 for ; Wed, 27 Dec 2023 23:30:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703748609; x=1704353409; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wXjd+4bZiZ8Ko7l3VIaHI/vJ/Lj/GLWewcbeMBNDVk4=; b=nFWcvAHKBtm3TqHn3JJSrhSCW5oWHii7iLjw1U/JsnYCAkEN2rsfC0msWTEvsf+fYq oT/vpo8jxRm1g/xFWhYapNEaHcyrpBQqNhNSei4jouU9E3zHLET7qz+cvKGeg8qs6IaZ k0wOdh4sHDRBRaMXMGK+SQGT6M0rfA4ff18Fj2/9lNqnRZD5vXRPq5Nq+dlcaHpb8Cv4 SRJdGRvUH1bhSjcJOUiwJs8Z6e9pRH/ed841xuZaMuYxkjyM2g5fR1ov7DUyoxUcJO3S F6FOTUiJWJZubf3jLWUgf3r6qzfsFDMg+KOqB4eA78z5zUM01SmGuS2hZtE6zaOvmQsB k+LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703748609; x=1704353409; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wXjd+4bZiZ8Ko7l3VIaHI/vJ/Lj/GLWewcbeMBNDVk4=; b=cV19P7PCNgNqokLf3G3lW/t5nG4QbRCejW94R9HNMwuuSOkTZ+MzUKjZQf31nu70/g uchmigp2QGkhBjhCEQrY1sUfbyZVTPWaaIPg2khNRbBQ83kT0c0MYp5P9bkul0t7XEAj Ya8KZ7KgjQ9py/Wjl+QIAwgm6TEhdbRDZm0gtXd6HC1MR07DI1k3Q4Tht8A9/SFMbLXA cdyHYAFMGSjMMw2CWQYPR1JAVA5ES4Q8VCV8bD5UGyEHPdj4d6w6Ww+5G8wcpnuM4whm l2G88a+97DOQQx7LBhv4U3QSqEmoI9JRm5CiwWGZI+YMlL8FC+L89dol3+FL1TQydTl8 Pdrg== X-Gm-Message-State: AOJu0Ywwt2S1JH6h1AOVg3ZgG+kooaLSJwjr/diG183sIYojktgM3WlQ VnsfWBfn9GfMPpQVNFF1ZLxHbH0nCtrw1g== X-Received: by 2002:a05:600c:a04:b0:40d:68a4:2bca with SMTP id z4-20020a05600c0a0400b0040d68a42bcamr103438wmp.92.1703748609166; Wed, 27 Dec 2023 23:30:09 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id iv13-20020a05600c548d00b0040d30af488asm31459820wmb.40.2023.12.27.23.30.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 27 Dec 2023 23:30:08 -0800 (PST) Message-ID: <7b39f962-8040-48b0-8580-abf5970bfad0@linaro.org> Date: Thu, 28 Dec 2023 08:30:05 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 02/13] dt-bindings: clock: google,gs101-clock: add PERIC0 clock management unit Content-Language: en-US To: Tudor Ambarus , Rob Herring , Krzysztof Kozlowski , Peter Griffin Cc: sboyd@kernel.org, conor+dt@kernel.org, andi.shyti@kernel.org, alim.akhtar@samsung.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, catalin.marinas@arm.com, will@kernel.org, s.nawrocki@samsung.com, tomasz.figa@gmail.com, cw00.choi@samsung.com, arnd@arndb.de, semen.protsenko@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-serial@vger.kernel.org References: <20231214105243.3707730-1-tudor.ambarus@linaro.org> <20231214105243.3707730-3-tudor.ambarus@linaro.org> <20231220150726.GA223267-robh@kernel.org> <173b06ab-2518-49ee-a67f-85256bc5b6a7@linaro.org> <425a228e-b2d3-4b19-9bcb-6ee1a90cd2ef@linaro.org> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjn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sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <425a228e-b2d3-4b19-9bcb-6ee1a90cd2ef@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 27/12/2023 13:38, Tudor Ambarus wrote: > Hi, Rob, > > On 12/21/23 07:20, Tudor Ambarus wrote: >> >> >> On 12/20/23 15:07, Rob Herring wrote: >>> On Thu, Dec 14, 2023 at 10:52:32AM +0000, Tudor Ambarus wrote: >>>> Add dt-schema documentation for the Connectivity Peripheral 0 (PERIC0) >>>> clock management unit. >>>> >>>> Signed-off-by: Tudor Ambarus >>>> --- >>>> .../bindings/clock/google,gs101-clock.yaml | 25 +++++- >>>> include/dt-bindings/clock/google,gs101.h | 86 +++++++++++++++++++ >>>> 2 files changed, 109 insertions(+), 2 deletions(-) >>>> >>>> diff --git a/Documentation/devicetree/bindings/clock/google,gs101-clock.yaml b/Documentation/devicetree/bindings/clock/google,gs101-clock.yaml >>>> index 3eebc03a309b..ba54c13c55bc 100644 >>>> --- a/Documentation/devicetree/bindings/clock/google,gs101-clock.yaml >>>> +++ b/Documentation/devicetree/bindings/clock/google,gs101-clock.yaml >>>> @@ -30,14 +30,15 @@ properties: >>>> - google,gs101-cmu-top >>>> - google,gs101-cmu-apm >>>> - google,gs101-cmu-misc >>>> + - google,gs101-cmu-peric0 >>>> >>>> clocks: >>>> minItems: 1 >>>> - maxItems: 2 >>>> + maxItems: 3 >>>> >>>> clock-names: >>>> minItems: 1 >>>> - maxItems: 2 >>>> + maxItems: 3 >>>> >>>> "#clock-cells": >>>> const: 1 >>>> @@ -88,6 +89,26 @@ allOf: >>>> - const: dout_cmu_misc_bus >>>> - const: dout_cmu_misc_sss >>>> >>>> + - if: >>>> + properties: >>>> + compatible: >>>> + contains: >>>> + const: google,gs101-cmu-peric0 >>>> + >>>> + then: >>>> + properties: >>>> + clocks: >>>> + items: >>>> + - description: External reference clock (24.576 MHz) >>>> + - description: Connectivity Peripheral 0 bus clock (from CMU_TOP) >>>> + - description: Connectivity Peripheral 0 IP clock (from CMU_TOP) >>>> + >>>> + clock-names: >>>> + items: >>>> + - const: oscclk >>>> + - const: dout_cmu_peric0_bus >>>> + - const: dout_cmu_peric0_ip >>> >>> 'bus' and 'ip' are sufficient because naming is local to the module. The >>> same is true on 'dout_cmu_misc_bus'. As that has not made a release, >>> please fix all of them. >>> >> >> Ok, will fix them shortly. Thanks, Rob! > > I tried your suggestion at > https://lore.kernel.org/linux-arm-kernel/c6cc6e74-6c3d-439b-8dc1-bc50a88a3d8f@linaro.org/ > > and we noticed that we'd have to update the clock driver as well. > These CMUs set the DT clock-name of the parent clock in the driver in > struct samsung_cmu_info::clk_name[]. The driver then tries to enable the > parent clock based on the clock-name in exynos_arm64_register_cmu(). > > In order to enable the parent clock of the CMU the following would be > needed in the driver: > > diff --git a/drivers/clk/samsung/clk-gs101.c > b/drivers/clk/samsung/clk-gs101.c > index 68a27b78b00b..e91836ea3a98 100644 > --- a/drivers/clk/samsung/clk-gs101.c > +++ b/drivers/clk/samsung/clk-gs101.c > @@ -2476,7 +2476,7 @@ static const struct samsung_cmu_info misc_cmu_info > __initconst = { > .nr_clk_ids = CLKS_NR_MISC, > .clk_regs = misc_clk_regs, > .nr_clk_regs = ARRAY_SIZE(misc_clk_regs), > - .clk_name = "dout_cmu_misc_bus", > + .clk_name = "bus", Yes, obviously, the names are used... The entire point was that a week ago Rob said: "As that has not made a release, please fix all of them." but if you keep waiting, like 8 days for this simple patch, his statement is not true anymore. The only point was to send a fix *the next day*, so I would apply it and send further. You kind of solved that problem by waiting entire week for a simple driver and DTS change. Best regards, Krzysztof