From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6CA8E33B6D5 for ; Mon, 30 Mar 2026 15:09:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774883353; cv=none; b=td225BNOdgQt4p2QyeXoDkZLCryhGgQtLR6cauni/5On32zLXrq/RkoowXI/bvFLs7zaGmwxG9BzBjqE/OxghHByX2CsPZzhD2hBloVwoGRC86ddEEu0tXVpXw5/jWSF6LEAKp8ck+VgFKutWyf6FqstG6GLakOYB2epFe5iHY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774883353; c=relaxed/simple; bh=UETGGgVBuUFVU//IoPb6yqREGa8Fyc8FmIKlatx8jKM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DCgQlCpjSHoPlMli2qlDxfnCxqnjnOnn3e4n0YhI44ImleM9jBxDHK9w7NKBugR5w1z37NxaXM47Q5VQBbVXiFluGMRku/H/o4/NwA7/Gqp8qQ1dPnxegDS6IRRWojZ93KNDkac9NLXlWuGvsp9aeQhtUHb+8HpSHqBJWFuFGhE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=P8vUAr6k; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=Ol99mi3B; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="P8vUAr6k"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="Ol99mi3B" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1774883350; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7RZylSVCYgAIw5EH+90iXOfbLfETW2Xky5UhPlA+i2U=; b=P8vUAr6kFaYk/Ch4fnNpG9bGn2sPJV3RtjeRefSlJK0RP718rfk11wWj3nrwFBtLykaVx7 CEKfOn9BUa6mfrUnAlPjz7jt8BIZjAuDc15Hzx1aZyIuEjNuQv13tzrYZJrmH/b0CVGGgF PM26Vyynv7adL/ufZ8ZtDAKsnAyDU3s= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-696-pgdcBW1TMbS6h8CIEq1idg-1; Mon, 30 Mar 2026 11:09:09 -0400 X-MC-Unique: pgdcBW1TMbS6h8CIEq1idg-1 X-Mimecast-MFC-AGG-ID: pgdcBW1TMbS6h8CIEq1idg_1774883348 Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-50b220c72bbso167614401cf.1 for ; Mon, 30 Mar 2026 08:09:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1774883348; x=1775488148; darn=vger.kernel.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=7RZylSVCYgAIw5EH+90iXOfbLfETW2Xky5UhPlA+i2U=; b=Ol99mi3ByiWoZqk2YGxdee5Ky9+lYtw255wjlUjibu9l6572lHPLF0dP59LFtQKngU w08awrwKoeRJKHsf8luQYoAa8mz4C41vFLwWyji/F36OU1k4qseYMmhBMlRKxI4nPKK9 MCKNCCKKJr2xFL8JowkuaiWqlg5g9f7VqhKdKNQv7LrtLU7wTj9DVXn4sCdheIim4J8q l7ZzEXZIhB87/xNIjBqt3/VPs4jXBTTFXCkSokyke285ls3ckSKMFC2azLGcCU+p2DHs brT9yXQOYMWHeRYQFXOLtkGB8RqaD2uVW0MXF88d0Tu/ydSVPOxK+rUwudLi9uGQEois GHQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774883348; x=1775488148; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=7RZylSVCYgAIw5EH+90iXOfbLfETW2Xky5UhPlA+i2U=; b=odaNhXlVcUL9YhC5Ce5jQzVjtfslXnfWO+cXAA8wQXT4Mu0cFtC/gjvDosD+rmS3jL zV3hEPuohaosDkf5KrxKUVsiq95hjMQUxO7ocfzGRmUArJZAZ0t/1OyrUv0rvWPHOuvm KH5a0kOwY/kd1RYnRbGtA9a1jK3mhIfXt40gvtvFIgr1Fq7USoIS5anOEJ8t9Jq2Xpem YS64ZYFABKs7IKNaKJjgK+2O5ANXfFNIXucFc1zKyOLvLN05VlRBoXmZx80SNIJt03gP 3c6509VEgVE+wVgEF3gODimjq/zmhk/UdabPF9JGj4IPICerFu7yaInTpOwmTPZ6rGfR 5Ryg== X-Forwarded-Encrypted: i=1; AJvYcCWF3QxPGDdlNtIpA+v/QDTMb3LMU0oaXgEDtIvy9uP8o9Xb1D80Y5R7hfeiVvuP1l1fODYjgYEC/Wt6udw=@vger.kernel.org X-Gm-Message-State: AOJu0YyliDmYoqfNFj8cutrjB6hTb309fiSQRUoV/0jbKE3UwAdZCM5D 5vpe5QANkACj3BcGY16+S+zn/93gxTqBdFqkt50T34z8fjTpxtOLaBrVxMn3fkOKLt/tBqFnnB5 yxv+Vr6H7oqaH8zhNz7/Q+Zt6eg+ilOaKRFVhZuQNfX1IN8Pv2HQdDUUPmzokS3NVPg== X-Gm-Gg: ATEYQzza7N3DBFDC+xysDrNMnHOA9/+RTQtJWVyMdekOSH8EXEb1OFK706gWAqgYFF2 fjFhqAmJGFRGMLbf0MzLtb80gi5R9SJTyX0xri0u3s22035V110R5zyfu1c9skf7MWY3rVQdg+g OwOMpqjgOmUMAKqBWnMYGOBLIXfhxdY41KZP/BUJoPDOP2whHXlrD61dMx2FM6AMZ1tnAE0weaP /smabP23xGJK4wyb82OPsx+QZWZSznJg9DSP9BGzH+SARZKXmz9SgUyVkq8Nk4LgkFMWYpFOZTQ WYcusAD7Kin3kMjUBUnH69U44K7SEReYYnLIP7NXYsJLAq7Y0R6yT7EFaKejHU0lhFIku/CDZqr p6EGO3hU2DMv/kHkKW5XY7XclyNwbPVWyE0TlZVJAEQQmcBwXegVt1wCZ X-Received: by 2002:ac8:5dd1:0:b0:50b:3b54:d796 with SMTP id d75a77b69052e-50ba380f13dmr171149731cf.27.1774883348279; Mon, 30 Mar 2026 08:09:08 -0700 (PDT) X-Received: by 2002:ac8:5dd1:0:b0:50b:3b54:d796 with SMTP id d75a77b69052e-50ba380f13dmr171148751cf.27.1774883347545; Mon, 30 Mar 2026 08:09:07 -0700 (PDT) Received: from redhat.com (c-73-183-52-120.hsd1.pa.comcast.net. [73.183.52.120]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-50bb2e0fe31sm63567841cf.20.2026.03.30.08.09.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2026 08:09:06 -0700 (PDT) Date: Mon, 30 Mar 2026 11:09:03 -0400 From: Brian Masney To: "Miquel Raynal (Schneider Electric)" Cc: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Gleixner , Olivia Mackall , Herbert Xu , Jayesh Choudhary , "David S. Miller" , Christian Marangi , Antoine Tenart , Geert Uytterhoeven , Magnus Damm , Thomas Petazzoni , Pascal EBERHARD , Wolfram Sang , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Herve Codina Subject: Re: [PATCH 10/16] clk: Add support for clock nexus dt bindings Message-ID: References: <20260327-schneider-v7-0-rc1-crypto-v1-0-5e6ff7853994@bootlin.com> <20260327-schneider-v7-0-rc1-crypto-v1-10-5e6ff7853994@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260327-schneider-v7-0-rc1-crypto-v1-10-5e6ff7853994@bootlin.com> User-Agent: Mutt/2.3.0 (2026-01-25) On Fri, Mar 27, 2026 at 09:09:32PM +0100, Miquel Raynal (Schneider Electric) wrote: > A nexus node is some kind of parent device abstracting the outer > connections. They are particularly useful for describing connectors-like > interfaces but not only. Certain IP blocks will typically include inner > blocks and distribute resources to them. > > In the case of clocks, there is already the concept of clock controller, > but this usually indicates some kind of control over the said clock, > ie. gate or rate control. When there is none of this, an existing > approach is to reference the upper clock, which is wrong from a hardware > point of view. > > Nexus nodes are already part of the device-tree specification and clocks > are already mentioned: > https://github.com/devicetree-org/devicetree-specification/blob/v0.4/source/chapter2-devicetree-basics.rst#nexus-nodes-and-specifier-mapping > > Following the introductions of nexus nodes support for interrupts, gpios > and pwms, here is the same logic applied again to the clk subsystem, > just by transitioning from of_parse_phandle_with_args() to > of_parse_phandle_with_args_map(): > > * Nexus OF support: > commit bd6f2fd5a1d5 ("of: Support parsing phandle argument lists through a nexus node") > * GPIO adoption: > commit c11e6f0f04db ("gpio: Support gpio nexus dt bindings") > * PWM adoption: > commit e71e46a6f19c ("pwm: Add support for pwm nexus dt bindings") > > Expected Nexus properties supported: > - clock-map: maps inner clocks to inlet clocks, > - clock-map-mask: specifier cell(s) which will be remapped, > - clock-map-pass-thru: specifier cell(s) not used for remapping, > forwarded as-is. > > In my own usage I had to deal with controllers where clock-map-mask and > clock-map-pass-thru were not relevant, but here is a made up example > showing how all these properties could go together: > > Example: > soc_clk: clock-controller { > #clock-cells = <2>; > }; > > container: container { > #clock-cells = <2>; > clock-map = <0 0 &soc_clk 2 0>, > <1 0 &soc_clk 6 0>; > clock-map-mask = <0xffffffff 0x0>; > clock-map-pass-thru = <0x0 0xffffffff>; > > child-device { > clocks = <&container 1 0>; > /* This is equivalent to <&soc_clk 6 0> */ > }; > }; > > The child device does not need to know about the outer implementation, > and only knows about what the nexus provides. The nexus acts as a > pass-through, with no extra control. > > Signed-off-by: Miquel Raynal (Schneider Electric) > Reviewed-by: Herve Codina Reviewed-by: Brian Masney