From patchwork Fri May 23 14:24:05 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Bultel X-Patchwork-Id: 892424 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C7E514286; Fri, 23 May 2025 14:24:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.160.252.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748010276; cv=none; b=Db6v+FrdxZL7vm7IrlauDeLd2sDWPZ/he6/Yn15pRCspGp3MAOn+6nb2idYfejcq5e5rGLtAG940ozxP2Ey5NLyS6Ba9EPPGTtTfKlsqvd0l/D7z1Jm7EuiNSROWYlDdkvuWHK1yQE0R76aCSb9NrX70YAHO9BDqXWWxUpDdwWY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748010276; c=relaxed/simple; bh=Vf+auSoeFf6uL/0+48TV95yQilu/xyEfOWUvRHJ7Egc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mIE/giAyBUWlHFF9Cuy+ECM4/L7yLJNd0D+HhPUqWFj4GTey1810CIWsSLYMbMpn8r4aGVLozxEETu1eJEl8uFwwTUErlPomJrllmL77byHvpQoiVC337Cz2UcPVKX/gm/gVsBaYQx1yNNyNK33uS9UgVkDeH49DdM6V+uwrRhQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com; spf=pass smtp.mailfrom=bp.renesas.com; arc=none smtp.client-ip=210.160.252.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=bp.renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bp.renesas.com X-CSE-ConnectionGUID: ZR+O8YDJSZWevl+j9Z39IA== X-CSE-MsgGUID: ECrIav6VR0CszXy0VsgiKQ== Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 23 May 2025 23:24:27 +0900 Received: from superbuilder.administration.lan (unknown [10.226.92.97]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 2CD5E4010DE6; Fri, 23 May 2025 23:24:23 +0900 (JST) From: Thierry Bultel To: thierry.bultel@linatsea.fr Cc: linux-renesas-soc@vger.kernel.org, geert@linux-m68k.org, paul.barker.ct@bp.renesas.com, Thierry Bultel , Geert Uytterhoeven , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v10 01/10] dt-bindings: serial: Added secondary clock for RZ/T2H RSCI Date: Fri, 23 May 2025 16:24:05 +0200 Message-ID: <20250523142417.2840797-2-thierry.bultel.yh@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250523142417.2840797-1-thierry.bultel.yh@bp.renesas.com> References: <20250523142417.2840797-1-thierry.bultel.yh@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 At boot, the default clock is the PCLKM core clock (synchronous clock, which is enabled by the bootloader). For different baudrates, the asynchronous clock input must be used. Clock selection is made by an internal register of RCSI. Add the optional "sck", external clock input. Also remove the unneeded serial0 alias from the dts example. Signed-off-by: Thierry Bultel --- Changes v9->v10: - mention sck in description - no maxItems on clock-names - fixed the #include dependency in dts example Changes v8->v9: - typo in description - named clocks 'operational' and 'bus', and added optional 'sck' clock - uses value of 2nd core clock in example to break the dependency on cpg patch --- .../bindings/serial/renesas,rsci.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/serial/renesas,rsci.yaml b/Documentation/devicetree/bindings/serial/renesas,rsci.yaml index ea879db5f485..1bf255407df0 100644 --- a/Documentation/devicetree/bindings/serial/renesas,rsci.yaml +++ b/Documentation/devicetree/bindings/serial/renesas,rsci.yaml @@ -35,10 +35,15 @@ properties: - const: tei clocks: - maxItems: 1 + minItems: 2 + maxItems: 3 clock-names: - const: fck # UART functional clock + minItems: 2 + items: + - const: operation + - const: bus + - const: sck # optional external clock input power-domains: maxItems: 1 @@ -60,10 +65,6 @@ examples: #include #include - aliases { - serial0 = &sci0; - }; - sci0: serial@80005000 { compatible = "renesas,r9a09g077-rsci"; reg = <0x80005000 0x400>; @@ -72,7 +73,7 @@ examples: , ; interrupt-names = "eri", "rxi", "txi", "tei"; - clocks = <&cpg CPG_MOD 108>; - clock-names = "fck"; + clocks = <&cpg CPG_MOD 8>, <&cpg CPG_CORE 13>; + clock-names = "operation", "bus"; power-domains = <&cpg>; };