From patchwork Sat Apr 13 22:14:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrea della Porta X-Patchwork-Id: 13628831 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 039C7C04FF8 for ; Sat, 13 Apr 2024 22:15:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ua0r5Hwwdw+MoZShBe1NB4h/Oo+u7ynkXnmABRoZ7xQ=; b=vcbo+SWtrzSGNW OhUYz8FQb42XwWaZT5M4MfLnRResTKNuN8lDAD+CzsIng6TYiCI1naVYoUwFkb7KcpmpeAajM3eZv zVMdybkRkw9ELR7P4egcezZkWbSm9JVXxExJkXB/5HwT0TFLibl0yJcWe4t0PqMenDdgdhO5VvSxO +xjk4cAsOFjtDBdysFC1Y7FPNBLGYu06Xe+Ythr3l2XBRnyX7u26f552zqLQycAw1hiKFM1D9z8Oy XOLc/gaJAS22YE+M1TbT7ModIGa/cSAOMRbSe/PSzvGnONZ+Hnn2VYwmocFmKGpIyJPXU1XaB7b7c C6W91nbBsAD0J4L+XE2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvleG-000000044bP-0GYq; Sat, 13 Apr 2024 22:15:00 +0000 Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rvle1-000000044UB-3Ozl for linux-arm-kernel@lists.infradead.org; Sat, 13 Apr 2024 22:14:47 +0000 Received: by mail-lj1-x236.google.com with SMTP id 38308e7fff4ca-2d6ff0422a2so24448391fa.2 for ; Sat, 13 Apr 2024 15:14:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1713046483; x=1713651283; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=XZwqKfG6p8JaM/Q71ad/MDCBd7iRVLRuGbWu8s7oPwE=; b=F0UMKnazO11ScMvfRPzrpbL31kYtZ/rquMVc9J6X7hmzGWFInpsVmLE/pLHYHT2sat nEo8EfEdORrxSAZI7PJ2CGt5bEW5EHax0/IljgEXcc4na8H/6zPa6rx0+TR8d52Ezc8P clAZ2pX6yeWtf4BTL9wDD/TitoaoAbgu8XKt3JHiWHYiexrf8ojN8LEk9q5yVHArSWda CyW4XtOO+mUa5VVE0WsMsgpoOQ4CpGMWYyDbA6auPQ6km8R4gHmE7o/EEpi8m7Uulby7 bnKTSz6H49JOfzgyjU9yAkt+nkAC5AXz5RzVLe2viKvhPDEmk91pzbfvM5T0wXQOT0Uw PCOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713046483; x=1713651283; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XZwqKfG6p8JaM/Q71ad/MDCBd7iRVLRuGbWu8s7oPwE=; b=oMJfDoG03a27Qz3YlHIZ/ptMuPlHJ9xZCpaAD47lVe5J4nS5lAdQpBnl7W3ofOSfCt kswiVCLzM/z8curEYju2OH13NR83EH/t1BcgQ4tGcmU3r8fhP5eGOgImZehgDFwYtRmD 19vBvxHYPKcLVM8f7ld0QtfJv6x/KO0DQ5o78b8weqQ/QqtzKZvAeUg0AcY6F8uRh1uf 43g1PBqwo7+FDZV3yapd5zfpBY/RxWDlxbV/C4EXN1VnQGIiwHK4UgL1Sn43S78+iOei ab3gl9yXrfWxzQADA0g3ZVC7mv6EmfiUCkNTb/tYC0GXHxxqUYDzE0RvGBhl9i37Hmcd YnJg== X-Forwarded-Encrypted: i=1; AJvYcCUedn0kEjCeVbwtKKLUX8vwwPmokCT5LlEEk4lV0TL0BN1vtjkgZyWvMsD67Ny+mAm0srGoHH+4eXy96zFhanGLm+tmnHQuJGFxM71XmWkhcFSab+4= X-Gm-Message-State: AOJu0YwQclNDJwxy3GkvySDJaMewfMGfNmdnqc8bTbJrXrL+wEpLR+dW qClVHEKj0Sjd0mJTMR7tcEy4ghG/VknYdyBDYR1NtzwN/N8yuIA0EK9CYdzBQbU= X-Google-Smtp-Source: AGHT+IFfx3Ukte+/jbUIOHsuAj8JYMvFoe/VC/sh9UZQlEdV09O7BFS5ROv7MMq6W1YAyuALnuGL8w== X-Received: by 2002:a2e:9b1a:0:b0:2d8:b2e:7bf3 with SMTP id u26-20020a2e9b1a000000b002d80b2e7bf3mr3537864lji.0.1713046483364; Sat, 13 Apr 2024 15:14:43 -0700 (PDT) Received: from localhost (host-87-4-160-102.retail.telecomitalia.it. [87.4.160.102]) by smtp.gmail.com with ESMTPSA id dh5-20020a0564021d2500b0056e3e0394absm2970717edb.68.2024.04.13.15.14.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 15:14:43 -0700 (PDT) From: Andrea della Porta To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list , Linus Walleij , Adrian Hunter , Kamal Dasu , Al Cooper , della Porta , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Jonathan Bell , Phil Elwell Subject: [PATCH 2/6] dt-bindings: mmc: Add support for BCM2712 SD host controller Date: Sun, 14 Apr 2024 00:14:24 +0200 Message-ID: X-Mailer: git-send-email 2.44.0 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240413_151445_947416_28CAA50C X-CRM114-Status: GOOD ( 11.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Signed-off-by: Andrea della Porta --- .../bindings/mmc/brcm,sdhci-brcmstb.yaml | 51 ++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml b/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml index cbd3d6c6c77f..6aa137d78e4f 100644 --- a/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml +++ b/Documentation/devicetree/bindings/mmc/brcm,sdhci-brcmstb.yaml @@ -13,6 +13,7 @@ maintainers: properties: compatible: oneOf: + - const: brcm,bcm2712-sdhci - items: - enum: - brcm,bcm7216-sdhci @@ -26,12 +27,16 @@ properties: - const: brcm,sdhci-brcmstb reg: - maxItems: 2 + minItems: 2 + maxItems: 4 reg-names: + minItems: 2 items: - const: host - const: cfg + - const: busisol + - const: lcpll interrupts: maxItems: 1 @@ -60,6 +65,7 @@ properties: description: Specifies that controller should use auto CMD12 allOf: + - $ref: sdhci-common.yaml - $ref: mmc-controller.yaml# - if: properties: @@ -71,6 +77,28 @@ allOf: required: - clock-frequency + - if: + properties: + compatible: + contains: + const: brcm,bcm2712-sdhci + + then: + properties: + reg: + maxItems: 4 + clock-names: + const: "sw_sdio" + + else: + properties: + reg: + minItems: 2 + maxItems: 2 + reg-names: + minItems: 2 + maxItems: 2 + required: - compatible - reg @@ -114,3 +142,24 @@ examples: clocks = <&scmi_clk 245>; clock-names = "sw_sdio"; }; + + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + mmc@fff000 { + compatible = "brcm,bcm2712-sdhci"; + reg = <0x10 0x00fff000 0x0 0x260>, + <0x10 0x00fff400 0x0 0x200>, + <0x10 0x015040b0 0x0 0x4>, // Bus isolation control + <0x10 0x015200f0 0x0 0x24>; // LCPLL control misc0-8 + reg-names = "host", "cfg", "busisol", "lcpll"; + interrupts = <0x0 0x111 0x4>; + clocks = <&clk_emmc2>; + sdhci-caps-mask = <0x0000C000 0x0>; + sdhci-caps = <0x0 0x0>; + mmc-ddr-3_3v; + clock-names = "sw_sdio"; + }; + };