Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp688191lqp; Sat, 13 Apr 2024 15:15:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWjFiwzFPHgnHUUMNS1LBGC87H/pY6J45P1F8N7LGuFuAkjAW9T8LyG2jx+gW/dfaodnuyep2+cojXJfQEvFTgmLPV2hnHFjhsbMXx++w== X-Google-Smtp-Source: AGHT+IFzcLDJ3yo8Mb5w+4cPvnM9ZmnHkT0cfR3KJRux/0gD7jrJXycJJnFQLYudGxppJQL5yv4F X-Received: by 2002:a17:907:7d8d:b0:a52:57d2:1cfa with SMTP id oz13-20020a1709077d8d00b00a5257d21cfamr642061ejc.62.1713046512924; Sat, 13 Apr 2024 15:15:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713046512; cv=pass; d=google.com; s=arc-20160816; b=G7BzXpqBDV0UDwTC5SYFZwtiLauXEoxZ/LYETZ4UfkVabYLpgkkhc5IGluUXqzGaXR XeAG44cbpYfd08R+g2ByPe4XOMobnYrSZeqkOkdrgIsMYv1LMLaw2fJDyIx7+l9/lC4E 5Z1Oic+efpfi4nnfoIjGloZdQoRXZq5KHy6GUbUN3OJTKj7bBUK3I2LtJBjZ1MeDRU0E 555cETRm0Wm+8M6MpeJLMOmb+DP1hVNbtRR9fQzpoJ8VMvAOHPYAXTwyFrLmUX57SB81 LvV+USm9Q2vRrcCuFtGNEzeEIzkkg5bmb1OD9lqYDzO/7ktIxXYAhrYCUsMlW5qlGz7Y pXCg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=XZwqKfG6p8JaM/Q71ad/MDCBd7iRVLRuGbWu8s7oPwE=; fh=RmeOvjy35gU/MkKhf5YJ9RF6UU6chVtoULvS/ZyREUI=; b=sbFcKG5NjGeL6LcDOIFOyzSUJWvQOK56QeR7y5b0wyzTws8xd6SRJEI485lJlUkpmw XDzk3OU4xHkR3jtbSlNmBo/3R9uM9fQaFIWJ/ehxNBaRuyc+oZmhiv65YLGfEoqfmjyU WmFWMYrhC0oQrE60wM8xm5OXL4+WJFsMl6ueYREbx/IN0BJFoB+t4yBEqIQV9J+tmgEr Xdq/9Ej1ofVKEUhkvAfPrBHKBQm650YbK04CCA3PWtRPDsRvVHdL7InnbIwSY/5TDtX8 ZJvsPFj7NKLtypj8Gs+xIhs1xzx4n5GLJ9bdZs8gEItGLZPL042gYGisWa/h+AJ5DqOz Ydiw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=HUUswcw3; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-143910-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143910-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x19-20020a170906b09300b00a51e4539384si3141108ejy.773.2024.04.13.15.15.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 15:15:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143910-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=HUUswcw3; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-143910-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143910-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7DEFD1F21524 for ; Sat, 13 Apr 2024 22:15:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2718758113; Sat, 13 Apr 2024 22:14:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="HUUswcw3" Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (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 4066856B9B for ; Sat, 13 Apr 2024 22:14:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713046487; cv=none; b=ROd/3NEUCqUt4XiEMz/U/2zbdQKSJg6MdJOW7boKDrl57npBAKRIzYxphwmdL+/tkhbMMYim8WnURYuXFYANr16V2XupCrGbiW8FT1CEQF+c8ZAISqZiuHTl2WgEDv7gVEzM+j1UrJQoskwdd9OOHgzO/V08ZHKXX/IAu/ctego= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713046487; c=relaxed/simple; bh=ZtByzIHxpfuAEFUa9VWbWb1E2J8uKDy/v2iO84NC0x8=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Dg0UN0SesqkYCqyryG7YHlGIFebPJjVlxU49maaA3Cqb4ANFWxGYZvQYorHR4WCabBcEQ9OCxPH1MM0w4F6vK+zKN+zw+9eAcdXDp5xn24OXiFpaoYVhE9rKxukWFbZnSy+W5eSHq9OVp+YLB7hbneju65KG4WwR51GE+G+4H2g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=HUUswcw3; arc=none smtp.client-ip=209.85.208.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2d094bc2244so21328851fa.1 for ; Sat, 13 Apr 2024 15:14:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1713046483; x=1713651283; darn=vger.kernel.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=HUUswcw3D5xv2UFGEh4YE4WeduhJPSAq51pdhJr0CXJO345ZtZbR4gx5JU4DHMii7/ 3/8AvsbdXnvjWg60LvzFmfoWUS3fTRQ/6sSMIdCDuJyr4IZB+BvFgD47Dn0RdVFd01gM G4ARA1PoGWTfi6glC0RPaGnp9pym7if+cqIaV72m9CS+LR0+9k0mN0zQwI2BCzPPBsnm x1fLmvm0GtlaoJboHkRZySGnkPB2JF59HV8QjvofmbLjF1bYYU4DdW/Ub5ousy/8Q4PF UE+vUbm5EIuoKJxEIIu5kdT5WPodDvEy+d8KFINhDsV2XwN1YYQqeYB/7l/xSouKH7+T qaog== 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=uDmbnvYuy1XOaqSqz3P0IjtSLZtxAxEtXlZx6B8PA4FNFXQ/HPMlucPaqs5+ePkAWi XyjwR0W1Pg1FwSh61FHj1GHq287gU5Kx4Uigz/J2gEv0Eg4lWo/GxPY6xWB7cTgTWbrV WfFM0tLzfwW8w7F7pcCUHMqWYWDV8IDYeQmVqYUHwKmc+CYDVom1Lv5J+R5TQUzdThCA F9N+OtYYLjBxXCRBx43foGW89YMuTm1UPhhkz3zi7zYa/3sA60vznT4pxgHuiOj/0byE ++fgT2tqUgvIBjutiCddM/Nbn1dJpvkCbRDNSmszMH22ftbrRQL1r02MqWDSgjsNvBSV 8cYg== X-Forwarded-Encrypted: i=1; AJvYcCXLLAVMiRkBpaEDGeMl6kBE6Z8G4ywlq3qVse0/+bAX7iut/2e2CN7y3aqibAvViU+JiUcV4H3Bt7gEVJL5fks9sYpIxybVksXWcSRW X-Gm-Message-State: AOJu0YxB7pE6cVRoK+UMmHJhbGNNzomnt+sDpdY+c2wNCqC63MS86yRj siUfgrenhLBA8gY3u9Iaq03JfGWFWkBCGLqtWDI6POQN/wu1HyCFjH1/WY4ckEI= 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: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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"; + }; + }; -- 2.35.3