From patchwork Mon Jun 9 23:22:53 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Prabhakar X-Patchwork-Id: 895013 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 5EB0B207DF7; Mon, 9 Jun 2025 23:23:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749511383; cv=none; b=lheKGYfCkdlCJjPwVphLpK3zdvynhhIfDb3zgTkPmozlZ8Z78tpQVhqQxBx0E5GAwwpjaQqSmaJHssmQAL+rqQakPZdKXulySAGCoqTAir7k0tyV0S1oJ0vsTOw4ck21e8H9uqrYz2k0bHtm4okf7fjrYVWu1RK68gI+Vp6I0Bo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1749511383; c=relaxed/simple; bh=GdmsI7pMe6v/Vb2RwbymOBoTQNKut9pfHgdX/4pQmfg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ox304dGLg/l9tckMCAJh/MSXUXS90IXcOT1N7wpOHovF6iJca8F3u7JljfUHmDp53UGwsv/hvqoq8XvtVpFz0svG+N9XN0bDUd5bPZtEKqdlsj0clZgyrPKleRBUDZ6I9h7tdwVDnfHC+0GkjiUMBsnEZbs7XB2dRnB02TBuzIU= 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=bx/VALp3; arc=none smtp.client-ip=209.85.128.44 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="bx/VALp3" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-43ea40a6e98so61122385e9.1; Mon, 09 Jun 2025 16:23:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749511380; x=1750116180; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ELsjYCnl30x0OWnQc2oxYh9eQERmhciiDwYyV/AXmGs=; b=bx/VALp3xvedkaPNE2q0wjpRnjFZ0HaJe7v2GPzvp4h5qfiAFpnyD9TxT/pK8BElHv PMVnW4VxTEB0DwhsPFm+ipDPccLiR2KPrNUkdjqP63uEgcD/6ONNnN/fIh8Qqid5RTmk 5QWkwU3t7+egTCg67nfpMvmqPuflCt8wExA1s390YGzN1FnrAp6fHSNII+MK0hhjMv/0 WVfV2UbeYIKuDTdwSDk8UKk43KLlKCRsq/ukI8B3uDdhvAeUVti3kkQ75NfZV+d/EQ3i t0enbEHchFq/Z3dB/mn7fbabSH3a3qUpnDeqjU8Hu5iB7xe7e81IaK4BlUeF/rTlgIPP 7ouA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749511380; x=1750116180; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ELsjYCnl30x0OWnQc2oxYh9eQERmhciiDwYyV/AXmGs=; b=rGPvm4uYcTtvOEp1FuudOdHNtc2SHqTRInM79GOQJ2C20PIV/OQYg4me6DOzqKHfxP 3u0dIjDwvj1cdVsibcRf++C5X9mi+No7PFQ6/FtSNlWSiVE6flA0HxSf5ommogvbAWMF foAIIKNymeFCF0fsAY3KP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9PylTL/iJQYYbClRKdB2q0jcR/5cIyx48mQMOjg4Jo64SXDvFWnpnztQuA== X-Received: by 2002:a05:600c:c8a:b0:43c:efed:733e with SMTP id 5b1f17b1804b1-4531de198ccmr4089515e9.14.1749511379666; Mon, 09 Jun 2025 16:22:59 -0700 (PDT) Received: from iku.Home ([2a06:5906:61b:2d00:3c26:913e:81d:9d46]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-45307678020sm74573255e9.15.2025.06.09.16.22.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Jun 2025 16:22:59 -0700 (PDT) From: Prabhakar X-Google-Original-From: Prabhakar To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Wolfram Sang Cc: linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Prabhakar , Biju Das , Fabrizio Castro , Lad Prabhakar Subject: [PATCH] dt-bindings: mmc: renesas,sdhi: Document RZ/T2H and RZ/N2H support Date: Tue, 10 Jun 2025 00:22:53 +0100 Message-ID: <20250609232253.514220-1-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-mmc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Lad Prabhakar Add SDHI bindings for the Renesas RZ/T2H (a.k.a R9A09G077) and RZ/N2H (a.k.a R9A09G087) SoCs. Use `renesas,sdhi-r9a09g057` as a fallback since the SD/MMC block on these SoCs is identical to the one on RZ/V2H(P), allowing reuse of the existing driver without modifications. Update the binding schema to reflect differences: unlike RZ/V2H(P), RZ/T2H and RZ/N2H do not require the `resets` property and use only a single clock instead of four. Signed-off-by: Lad Prabhakar --- .../devicetree/bindings/mmc/renesas,sdhi.yaml | 88 +++++++++++-------- 1 file changed, 53 insertions(+), 35 deletions(-) diff --git a/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml b/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml index 7563623876fc..7d524646da8d 100644 --- a/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml +++ b/Documentation/devicetree/bindings/mmc/renesas,sdhi.yaml @@ -72,6 +72,8 @@ properties: - enum: - renesas,sdhi-r9a09g047 # RZ/G3E - renesas,sdhi-r9a09g056 # RZ/V2N + - renesas,sdhi-r9a09g077 # RZ/T2H + - renesas,sdhi-r9a09g087 # RZ/N2H - const: renesas,sdhi-r9a09g057 # RZ/V2H(P) reg: @@ -129,59 +131,75 @@ allOf: compatible: contains: enum: - - renesas,sdhi-r9a09g057 - - renesas,rzg2l-sdhi + - renesas,sdhi-r9a09g077 + - renesas,sdhi-r9a09g087 then: properties: + resets: false clocks: - items: - - description: IMCLK, SDHI channel main clock1. - - description: CLK_HS, SDHI channel High speed clock which operates - 4 times that of SDHI channel main clock1. - - description: IMCLK2, SDHI channel main clock2. When this clock is - turned off, external SD card detection cannot be - detected. - - description: ACLK, SDHI channel bus clock. + description: ACLK, SDHI channel bus clock. + maxItems: 1 clock-names: - items: - - const: core - - const: clkh - - const: cd - - const: aclk - required: - - clock-names - - resets + const: aclk else: if: properties: compatible: contains: enum: - - renesas,rcar-gen2-sdhi - - renesas,rcar-gen3-sdhi - - renesas,rcar-gen4-sdhi + - renesas,sdhi-r9a09g057 + - renesas,rzg2l-sdhi then: properties: clocks: - minItems: 1 - maxItems: 3 - clock-names: - minItems: 1 - uniqueItems: true items: - - const: core - - enum: [ clkh, cd ] - - const: cd - else: - properties: - clocks: - minItems: 1 - maxItems: 2 + - description: IMCLK, SDHI channel main clock1. + - description: CLK_HS, SDHI channel High speed clock which operates + 4 times that of SDHI channel main clock1. + - description: IMCLK2, SDHI channel main clock2. When this clock is + turned off, external SD card detection cannot be + detected. + - description: ACLK, SDHI channel bus clock. clock-names: - minItems: 1 items: - const: core + - const: clkh - const: cd + - const: aclk + required: + - clock-names + - resets + else: + if: + properties: + compatible: + contains: + enum: + - renesas,rcar-gen2-sdhi + - renesas,rcar-gen3-sdhi + - renesas,rcar-gen4-sdhi + then: + properties: + clocks: + minItems: 1 + maxItems: 3 + clock-names: + minItems: 1 + uniqueItems: true + items: + - const: core + - enum: [ clkh, cd ] + - const: cd + else: + properties: + clocks: + minItems: 1 + maxItems: 2 + clock-names: + minItems: 1 + items: + - const: core + - const: cd - if: properties: