Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 AA0ED3BD63B for ; Fri, 28 Aug 2026 05:31:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787895076; cv=none; b=S8UYNouJY8JpvE/ChDACYOBvrVNdRx1YhTG4I2Vv9xbTzTJT1NlYNzACkR4iWy0oED+0bpFs0hfLB5dFXZTm3KVYwHXyhhkEYchCOBTagK5qVYtAua8UtznemV2sUtXj40kOI9qEKQOJE8CBDDIY7auSfAj+MEw7FzAf6iSDRZk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787895076; c=relaxed/simple; bh=YTFU0gE23Yv3Z9Pp7jwGWPqFlGbCbnRmk0EujK9qIPY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZZBWR5/93JItOdJGs1tC+QCXMgaHw+QA2iHUTYyee3SfQl5wgVOoZaNguqLjTgWQDDTEC4vFHBXeAjnHFm9uc3cr7MOA75m5x7hgks8cj2Jcu0z2UeyH36RyOLCzkk+RcuT9NGOGNzqjpEz2Uhwb5Eq3n0XqhWIjMOw3p23wg+M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=cxqgF7Cn; arc=none smtp.client-ip=209.85.128.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cxqgF7Cn" Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-49b0d78a801so3754525e9.2 for ; Thu, 27 Aug 2026 22:31:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787895073; x=1788499873; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=PAtkq/Rf9tx3iqD7FVH2UaRrUXSVTeHKGxvC6wVqwgI=; b=cxqgF7CnZRrMSQd9epSUaCyOAHnFdorOEDbcKOGzIA+OYO/ZytsQ8mhn4XhqNzu7X4 DwhcfMj5CyaGEOi0LLuGj3hTm7YLGTs391BuGd69f9fHKIE/q+EO4QmVDdP1hyRLUzh2 LjvrXuT8b6PazThtCWLIX5b/Vn3bYV16Y0zPr+RvKe8G+KQlD9MQAPMSGnbvRSUGFEBI A73Dsf3U7vpPrfH3bpJeDRNt0UqM794hb5b7ytjSkyTJ/PU/j8H0ZjFYA0ktPw24bU+O n2FUdJQavQkArFHM2nsh/QIRMi96Xf2HypdnUlWw9Qsyn0tFm4ofsXqYv/ImJmakBxBE iXIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787895073; x=1788499873; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=PAtkq/Rf9tx3iqD7FVH2UaRrUXSVTeHKGxvC6wVqwgI=; b=VRkjEB9cXIHu79MFIHzZdGQfx8iyL0odZtCp6vmaeBg90Vu73e99NmXTCqbjztsIm9 ZOFP2Y3h6tR8F42QiDFkkpYJb/E2X6wPoDx+b+vAbMqbnm7bS/w72/GXAiUlR5O513Do 5AMuUm5LmNbv/q4HRFfXUo3DmVLXEqvoVfNKJ2MOcENVYIKwhXc64IyAvVhLLdrd9q8V 1LsGQEHL1v0VnDDtq6esz+Vrk7bP4sejW+Mgdt1pyofOBDLVlyHrLJANBWGhmabjIye7 wr2zqCp5pZ7o0nLR6hEl1LYy5dwEaEztctD7JCSjGhLNhUN+e8mb/d+rctyeVYlGJFK2 fTdA== X-Forwarded-Encrypted: i=1; AHgh+RoVryr4lyhcr7Ex7w0tU8fpap7lo1vzR1I+WHl8CpVoriyVNaMOzQ2zXn4vvW68FFR1BV5FLgbB+EI=@vger.kernel.org X-Gm-Message-State: AFuF++nyW+Pn5veZ/4Om2+tJ0DBeQ8mOvL0By5WbcBWYTu0hymbH4KR+ RFl7+151r4/i3pKPafNjXvPYTTsyXQHfUvU4VG5l6GLQjY2CJnXO9BFj X-Gm-Gg: AR+sD10Hk80beXfP7/sIHP4u92Un3heikw70vPQiBsuuMmlUo81hiOVEtrcGibyC4qV MXWq2FBz7Sl/igL6Fm/JOsCBi0ONejXQkUsHm2FF7b00GK7RRlw5RVZViFN89vVGugNUCaYe+84 VZTMe8myyVk91R5RwboRb59i/cwRJq84x/p89EWyeyLzje+oPPo0CFpM0cV/FzMRso2jNG+MXl5 EyNfGfv8odIMJ5esH2YMx6gjZ0syR0SHMbrXQZZWuAKPaSaI0OTJ3ZTknIb2tVtZgM+xT5su6h/ eH0JCQCb/8GZZaifIrEP9Kf2OqNzV1l6ThMm7eWdYwgNj3cuPjsVpFyhCQgclO3PVdWCUEM6B5Y C+fcEUEvlJbOscLG/F36cABEDMfKwjqDsIXtn+z889psZkr5COXmxEYm/COerb//F+CAEGIGOKV T+v+fTUIQ2PDcoFpvQdlHa8TLTk2eE3/u5T26lhQbG75OQzp3oOhI/r6JYiszlTapYh3sswmWLE KLprA== X-Received: by 2002:a05:600c:c4ac:b0:499:a5fc:2087 with SMTP id 5b1f17b1804b1-49b91c20e36mr56718415e9.6.1787895072612; Thu, 27 Aug 2026 22:31:12 -0700 (PDT) Received: from [10.51.121.166] ([193.118.38.99]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49b4e2c1af7sm102633975e9.15.2026.08.27.22.31.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Aug 2026 22:31:11 -0700 (PDT) Message-ID: Date: Fri, 28 Aug 2026 07:31:10 +0200 Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/2] dt-bindings: Add GPIO-locked fixed clock To: Conor Dooley Cc: Rob Herring , Vyacheslav Yurkov , Michael Turquette , Stephen Boyd , Krzysztof Kozlowski , Conor Dooley , Brian Masney , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org References: <20260726-feature-clock-guard-v4-0-e9c8b372b71c@bruker.com> <20260726-feature-clock-guard-v4-1-e9c8b372b71c@bruker.com> <20260810164000.GA1846263-robh@kernel.org> <20260810165403.GA2145873-robh@kernel.org> <20260810-smilingly-kung-1fddc5e18df6@spud> <20260827-parcel-isotope-22b344bace78@spud> Content-Language: en-US From: Vyacheslav Yurkov In-Reply-To: <20260827-parcel-isotope-22b344bace78@spud> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 27.08.2026 18:55, Conor Dooley wrote: >> It is n input clocks and 1 output clock. It is kind of a mux, but the CPU >> doesn't control the clocks or GPIO signals. The whole idea is that >> peripherals check the output clock, when it's locked that means _all_ the >> clocks are locked and GPIOs are in expected state. That's why the selection >> operation is not really implemented. >> >> Actually the number of input clocks don't have to correspond to the number >> of the GPIOs, because the GPIO signals indicate the locked state of the >> clocks that are not accessible to the CPU. > > I'm not entirely sure what you mean by this, but it is starting to sound > like you're only having one output because that's the minimum you need to do > to ensure that this driver has probed before the peripheral(s) using the > N input clocks. That's exactly the idea. How else I would ensure in peripheral's probe driver that clocks are locked? > Requiring other input clocks to be stable before > declaring the input that's actually connected to the output stable > appears to be a shortcut/hack rather than an accurate description of the > hardware. If that's the case, I'd be much happier with this if this was > implemented as either a) N inputs with N gpios and N outputs, or b) 1 input, > M gpios (if multiple represent the stability of that input) and 1 output, > with N instances, one for each clock. How having N outputs would help? It looks like it would just move the job I do here into each peripheral driver instead. > On the other hand, if this is genuinely a mux, then the binding should > reflect that, rather than only describe a subset of what you can do and > the driver should only check the actual parent out the output, rather > than the N-1 other inputs. > > Thanks, > Conor. Slava