From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (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 8DF033BB9F5 for ; Mon, 13 Apr 2026 10:07:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776074881; cv=none; b=NiN4yNRqJiBiPqybLB1jvPWRf7QEmsf74Kt9NEDA2hKMp1rJla0KMh7/EueIjb9UmvVL0ceiFW45FfAPIBWGQ4bMghdGxEQVV4XSuiEV9w2LxbclPDOa6b7ANc1vxgbAW8JroZVwyEti92eTpRuZ0GxcEJ1/45PfvClo3HYvulc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776074881; c=relaxed/simple; bh=r3lJLyo4pwKES9BKycKLT/FzReE1LAodZaW0RGMG4wM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RYeueohpJkFXUe0hrHu9T/v0YGHsDpgw20ZB+gl7shFUTJQnh08DA1B0QkvUvbUR8OpysdfSTad4l795tlXmRItLgp2OqX9y3+coMpSvIGWI05nFB8WS0al8tCHbuF22q6Kka5sK0mhGmf0VtOZ+IgNhnvPDu02dyRJjg4lUnco= 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=sXMbh7Xk; arc=none smtp.client-ip=209.85.210.173 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="sXMbh7Xk" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-82cd5c07f93so1849159b3a.1 for ; Mon, 13 Apr 2026 03:07:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776074877; x=1776679677; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MkTJde6ErisNFz71GX/g+WRnRx4lnEoOHW1gq8vDPR4=; b=sXMbh7Xku6gnotaijSj5fqL7mkcQeJyGJQzAczF/sOI+mJ/WUFEd9PHllggbZl/xvj neWcTmvuK98tpb45QyjupXNi94b6yGOq51QRxAc6oCbJJVYW7Z9yLOWcY11MVI722SxN Lid7iaM71hWjAmz+NlB576hRrYl/hSxKwd2I7+12W8ba/EtmqeX1zBgC9e/qMrwxVStt ZL5GAG5m+nagL1buW9D6Kt+wcRdKvEHIfqg8Z/mZ2dv63iR18LeEHXYSKj4ZA/HBPRL8 myah57R0WCb/FjQRUnFZGM1N+UAy+3G1LM5NxfGTQwsQr6BdqzJ5msVv8f5idNW8EcUF JTag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776074877; x=1776679677; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=MkTJde6ErisNFz71GX/g+WRnRx4lnEoOHW1gq8vDPR4=; b=WyJ8bUvBBvM/CRZNjnSHiy+vSiyJWIk4P8Imc/I1b2VvJJ/zwMZsGZiQZE+abz4nao z2jlC5reboxzZweMGwf83vrxeI06ivWLcU0iEwnUM6X5XNp2HElg6R/M3DID39LXr3cR ggm3VWMI9085Hm2Ok341PVW1cFbVvHcIuwkcRievIG5CsK+6k7d60Klr3g8noMiaER/6 5mHSiCj4+8l3c7pGdlmAZEneRv8o8WNEQIxAnX/rwz5zgJ4b36aayAhOdr/N01g2CFx6 88DD5sANGBkdbhhFwjbnlxNgveSMcFFKim0QjgzHoKkL0s48E+QmwtsEXkCfuHXnYAzM 8MGA== X-Forwarded-Encrypted: i=1; AFNElJ9MEsm5y8mRvW94tZV1bcva7e6it1GgWwcgMs0ILZA+YpSSxUlIxGQnUQV3USx2b4sYRNHBwtxkOucL9Rw=@vger.kernel.org X-Gm-Message-State: AOJu0YxjSxUlVXbKHG0W3rNZTs+XP+pGD4ZtyN/1S9U5BBxhnpQ+MM4r /NkrEvrMkBt9/JZuVYpGsoveX2P6cUeSROf5rNIogUn0HAZTVpVjCAIx X-Gm-Gg: AeBDievsMdbKYeQTW1wOdPx2LXksMZQ0Fcq6Zfh1qI90C67csvXMPiVzpZl0UU+IY7W 3Ud7l+Q5+PxJ6X5oNYVm5JJEy1PLILgtSNYY1uPJxVpIVSY/8PPMT1GtL7oDHWWUbgMT0jwjGl6 yxi6MReRFwXcbSpWqve5j1rbKK5MVAz64AfVbXwon97ysK+/jOxhxezdLK7Y6YmOV33RFeaOEGz e31zagLIDxQ8TPtAUtQowg58xOm8Vfa30hu0+K+1zineM4uZki5X1lyvYbrQRgfdFHbWHDK1KE2 C5ZR0+CwJlIrK1b7BtNUyCkauli9Q4jNIjmB0DfNhIRBTYlwvfTgO40B3JnJNDREjx3JqW+eKeo YUsYn8owpT61/dL/tWaHJBpHm8o1NGyQQkdLHdZOL6cbIz6gByKUKP82QpeG8qqi06SGpGD8VUr LtA2SblTZ5nwtesBI7tdc53lgcqwcburS7AGGGOKq6ILngtMmg9InCVIOH5g== X-Received: by 2002:a05:6a00:84c:b0:82f:4cc9:186d with SMTP id d2e1a72fcca58-82f4cc936a7mr445459b3a.46.1776074876725; Mon, 13 Apr 2026 03:07:56 -0700 (PDT) Received: from phuc-desktop.. ([183.91.15.56]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-82f0c50a8f7sm10232140b3a.56.2026.04.13.03.07.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2026 03:07:56 -0700 (PDT) From: phucduc.bui@gmail.com To: kuninori.morimoto.gx@renesas.com, broonie@kernel.org Cc: lgirdwood@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, geert+renesas@glider.be, magnus.damm@gmail.com, perex@perex.cz, tiwai@suse.com, linux-sound@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bui duc phuc Subject: [PATCH v2 6/6] ASoC: dt-bindings: renesas,fsi: add support for multiple clocks Date: Mon, 13 Apr 2026 17:07:00 +0700 Message-ID: <20260413100700.30995-7-phucduc.bui@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260413100700.30995-1-phucduc.bui@gmail.com> References: <20260413100700.30995-1-phucduc.bui@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: bui duc phuc The FSI on r8a7740 requires the SPU bus/bridge clock to be enabled before accessing its registers. Without this clock, any register access leads to a system hang as the FSI block sits behind the SPU bus. Update the binding to support a flexible positional clock list to properly describe the hardware clock tree, including: - SPU bus/bridge clock (spu) for register access. - CPG DIV6 clocks (icka/b) as functional clock parents. - FSI internal dividers (diva/b) for audio clock generation. - External clock inputs (xcka/b) provided by the board. Signed-off-by: bui duc phuc --- Changes in v2: - Rename FSI module clock to "own" to match driver. - Add "spu", "icka/b", "diva/b", "xcka/b" clock names. - Use YAML anchors to constrain clock-names properly. - Add "if" rule to require "spu" clock for r8a7740. - Update example with full clock configuration. - Clean up schema by moving allOf location. .../bindings/sound/renesas,fsi.yaml | 61 +++++++++++++++++-- 1 file changed, 56 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/renesas,fsi.yaml b/Documentation/devicetree/bindings/sound/renesas,fsi.yaml index df91991699a7..d0ae54f3d321 100644 --- a/Documentation/devicetree/bindings/sound/renesas,fsi.yaml +++ b/Documentation/devicetree/bindings/sound/renesas,fsi.yaml @@ -9,9 +9,6 @@ title: Renesas FIFO-buffered Serial Interface (FSI) maintainers: - Kuninori Morimoto -allOf: - - $ref: dai-common.yaml# - properties: $nodename: pattern: "^sound@.*" @@ -38,7 +35,36 @@ properties: maxItems: 1 clocks: - maxItems: 1 + description: | + Clock driving the FSI Controller. The first clock must be + the module clock ("own"). + minItems: 1 + maxItems: 8 + + clock-names: + description: | + Names of clocks corresponding to entries in "clocks": + - "own": Main FSI module clock (must be first and always present) + - "spu": SPU bus/bridge clock. On R8A7740, this clock must be + enabled to allow register access as the FSI block is connected + behind the SPU bus. + - "icka" / "ickb": CPG DIV6 functional clocks for FSI port A/B + - "diva"/"divb": Internal FSI dividers for port A/B used for + audio clock generation + - "xcka"/"xckb": External clock inputs for FSI port A/B + provided by the board + minItems: 1 + items: + - const: own + - &fsi_all_clks + enum: [spu, icka, ickb, diva, divb, xcka, xckb] + - &fsi_no_spu_clks + enum: [icka, ickb, diva, divb, xcka, xckb] + - *fsi_no_spu_clks + - *fsi_no_spu_clks + - *fsi_no_spu_clks + - *fsi_no_spu_clks + - *fsi_no_spu_clks power-domains: maxItems: 1 @@ -69,6 +95,27 @@ required: unevaluatedProperties: false +allOf: + - $ref: dai-common.yaml# + - if: + properties: + compatible: + contains: + const: renesas,fsi2-r8a7740 + then: + properties: + clock-names: + minItems: 2 + items: + - const: own + - const: spu + - *fsi_no_spu_clks + - *fsi_no_spu_clks + - *fsi_no_spu_clks + - *fsi_no_spu_clks + - *fsi_no_spu_clks + - *fsi_no_spu_clks + examples: - | #include @@ -77,7 +124,11 @@ examples: compatible = "renesas,fsi2-r8a7740", "renesas,sh_fsi2"; reg = <0xfe1f0000 0x400>; interrupts = ; - clocks = <&mstp3_clks R8A7740_CLK_FSI>; + clocks = <&mstp3_clks R8A7740_CLK_FSI>, <&spu_clk>, + <&fsia_clk>, <&fsib_clk>, <&fsidiva_clk>, + <&fsidivb_clk>,<&fsiack_clk>,<&fsibck_clk>; + clock-names = "own", "spu", "icka", "ickb", + "diva", "divb", "xcka", "xckb"; power-domains = <&pd_a4mp>; #sound-dai-cells = <1>; -- 2.43.0