From patchwork Thu Jul 25 20:44:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 814394 Delivered-To: patch@linaro.org Received: by 2002:adf:e641:0:b0:367:895a:4699 with SMTP id b1csp567000wrn; Thu, 25 Jul 2024 13:48:28 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUCMxUGwBNLNo9Qqr43wkqcJ9Kgo7YTdMS4F6OjoAFOCacZ/OpcUyQLVCvwqwQNvD42KEfM7/DmqqLPJCxgBZ3e X-Google-Smtp-Source: AGHT+IHqcWgu7Ms7ilIkyK9p/I4RNMOf9/Pl+szHg+eYaHzfrIyS/ejdO0wHSxafzgxeiG+5Ng+U X-Received: by 2002:a2e:a202:0:b0:2ef:23ec:9363 with SMTP id 38308e7fff4ca-2f039df3c05mr26184951fa.45.1721940508351; Thu, 25 Jul 2024 13:48:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721940508; cv=none; d=google.com; s=arc-20160816; b=Vb8786yOyaOJVx6eHCXHLLpqFoXRq4PIfVfKJKKOxOwvTlcsTQp+UiU3PrISdy1beY ET8aRySLYf7BC1Gx4uL5qOEMidHyzrf7jRVuJluyMasAf7jcUi7/MOgQKvcfAyDlGqW4 SX4sPpg/gS83CTMriTvBcN6jqu4vX8B63fvQ7OeEjTa21haS/9f2eerSGySlK93lkxKW NX9sk4JuCk6tdIKZioBQhZQGErQj3DsVnUuBD1tojxN6EM4gYnRFFiG8zB1HzcXT4EDO HFBbbTOwIrhS79QSv/Mcn8DC84o01OSeKdis5qtkXprwEb7x8SXyrqLYd/OUK+apDVrU N9GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7O+j1XkcM7xvkRySBd00VSnTG+7noLEDlPYfT97OsBI=; fh=waxWDitXnDxrS4A0u9m9dgjcaUG+oPJiB+06HIAkZWY=; b=MgrBFEDqEtLuftBIW6tRViQLKJvZgfW/tRK9QPCkK4ImtpjsWB7DqHrMe0JNRHGHiZ nCAYqtzZDM1c+9KAGL7hM1xYcQGn+3HV1sFRTaN6VJfKQsstHelKN6tcXIQGGm0YjEik bX+CAq1dfG2OvNthmoHrcCdM2lzt6d7tkAsNNVPI9JG8P0wasCvYkLPUBL1xmLpFGtqH SCuShE1e+jL6ljFvLVcqpBsPKkvpa8mYfHGRGvC+W2u3ctLRk1ntiCcPwu55/PQCkl/M VWPewm6ipelYQNy/nH/NJQTx5EaDstRN4yr/c8XjsSh5+N0gITu46GjgyD6kxLQTnhdp wpPA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aqPF2H4f; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 38308e7fff4ca-2f03d13b209si5878031fa.269.2024.07.25.13.48.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jul 2024 13:48:28 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aqPF2H4f; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A9106885C5; Thu, 25 Jul 2024 22:45:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="aqPF2H4f"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 14EA888548; Thu, 25 Jul 2024 22:45:38 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B5FDB88599 for ; Thu, 25 Jul 2024 22:45:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=semen.protsenko@linaro.org Received: by mail-oi1-x22b.google.com with SMTP id 5614622812f47-3d92e1bc90dso112946b6e.0 for ; Thu, 25 Jul 2024 13:45:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721940332; x=1722545132; darn=lists.denx.de; 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=7O+j1XkcM7xvkRySBd00VSnTG+7noLEDlPYfT97OsBI=; b=aqPF2H4fI67GF9IYDZX2EdJRh/4TecHkdlIsOEAAVKwVMCTKUJSsLj7WVlK+Dc08mF iZXSKUCfsMkfAbcQFpjQ4bu+px2h+TMBEs6HAN7euziuao1/E3M223pe1LKgRqlUm54E g900X1nFgHFDAYxiJHFp+vARWTLo05wWdNsygCXIvnd1u/8U9Swx4RYd4TK+GIYmjh7s u/yDcEJi5CETd+afpp0j6k+S5jHIkgcNSVK0tTUjPrch2VpRmHKZUAfZpkUzFKVQ58k8 7gH/PDDwnmFx1t6YywOZt7YCuBa4YVFgY+bRmdVXFvB+cuSv7JjNYeT23q3mr6SnliyU 4hRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721940332; x=1722545132; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7O+j1XkcM7xvkRySBd00VSnTG+7noLEDlPYfT97OsBI=; b=iEZwqQ9exbQmgJAw7w9eEp1JOtDiIJfmkw7JHxQ+UyqsDSNUbiHjaq7oLfYirTD/Ad iCxVfDQqo3UC251P4IXO/p61rBaMIB2wiYEja79QZpv5uQFbZ8r+IKhS/geLyqNGvzLo jc4/zGjAdOCZAod26vhZkCWJ00YiICp7a5j06Jxi9vmPccI1XSA8j2JKE9Sj9frVdVV0 Kxl/yQYsEoY109tvPy0ymDy8/Ix6qSJzGiFMrIuqbz2i+IYiC997ihtFEgQdyKEn2oC2 bEzUH7JXZzvchgOV76X1XUMg2W6HThTEHW0PQdMSxQCdRPB97S6iRZn3CvYDpYE0Hshc Hi8A== X-Forwarded-Encrypted: i=1; AJvYcCVLu/8Y5liEiECOF3RTmKVG5bmiKG++hIHr7/DjK4//RISgf4Rcf+XqrIkO/fERZdmxVDnuPitUlBhvIE5G5t0gj1SDhQ== X-Gm-Message-State: AOJu0YxhSBxYt8MGPIYiq5EWb1qWealWdgaiB6pNRUKek9n5jQQd4qrm zh3ml8SlRaIOvSS8ktrhFPBP8A+QYUTOtWdefitSR8ERgVMUcJdondvWX3nSfEE= X-Received: by 2002:a05:6808:2012:b0:3d9:4221:606b with SMTP id 5614622812f47-3db10c2fa4amr1461521b6e.8.1721940332421; Thu, 25 Jul 2024 13:45:32 -0700 (PDT) Received: from localhost ([136.62.192.75]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3db13520c1esm436442b6e.40.2024.07.25.13.45.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jul 2024 13:45:32 -0700 (PDT) From: Sam Protsenko To: Jaehoon Chung Cc: Minkyu Kang , Minkyu Kang , Tom Rini , Peng Fan , Simon Glass , Quentin Schulz , Philipp Tomsich , Kever Yang , Eugeniy Paltsev , Peter Robinson , Jonas Karlman , Yang Xiwen , Ferass El Hafidi , Sean Anderson , u-boot@lists.denx.de, uboot-snps-arc@synopsys.com Subject: [PATCH v4 15/38] dt-bindings: exynos: Update bindings doc for DW MMC controller Date: Thu, 25 Jul 2024 15:44:57 -0500 Message-Id: <20240725204520.18134-16-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240725204520.18134-1-semen.protsenko@linaro.org> References: <20240725204520.18134-1-semen.protsenko@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Update the bindings doc for Exynos DW MMC block to follow the upstream example and reflect the latest changes made in corresponding Linux kernel bindings. Signed-off-by: Sam Protsenko --- Changes in v4: - (none) Changes in v3: - (none) Changes in v2: - (none) doc/device-tree-bindings/exynos/dwmmc.txt | 46 +++++++++++++---------- 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/doc/device-tree-bindings/exynos/dwmmc.txt b/doc/device-tree-bindings/exynos/dwmmc.txt index 694d1959162c..d90792be8599 100644 --- a/doc/device-tree-bindings/exynos/dwmmc.txt +++ b/doc/device-tree-bindings/exynos/dwmmc.txt @@ -12,7 +12,9 @@ SOC specific and Board specific properties are channel specific. Required SoC Specific Properties: - compatible: should be - - samsung,exynos-dwmmc: for exynos platforms + - samsung,exynos4412-dw-mshc: for Exynos4 platforms + - samsung,exynos-dwmmc: for Exynos5 platforms + - samsung,exynos7-dw-mshc-smu: for Exynos7 platforms (with SMU block) - reg: physical base address of the controller and length of memory mapped region. @@ -23,32 +25,38 @@ Required Board Specific Properties: - #address-cells: should be 1. - #size-cells: should be 0. -- samsung,bus-width: The width of the bus used to interface the devices +- bus-width: The width of the bus used to interface the devices supported by DWC_mobile_storage (SD-MMC/EMMC/SDIO). . Typically the bus width is 4 or 8. -- samsung,timing: The timing values to be written into the - Drv/sample clock selection register of corresponding channel. - . It is comprised of 3 values corresponding to the 3 fileds - 'SelClk_sample', 'SelClk_drv' and 'DIVRATIO' of CLKSEL register. - . SelClk_sample: Select sample clock among 8 shifted clocks. - . SelClk_drv: Select drv clock among 8 shifted clocks. - . DIVRATIO: Clock Divide ratio select. - . The above 3 values are used by the clock phase shifter. +- samsung,dw-mshc-ciu-div: The divider value for the card interface unit (ciu) + clock (0..7). +- samsung,dw-mshc-sdr-timing: The timing values for single data rate (SDR) mode + operation. + . First value is CIU clock phase shift value for TX mode (0..7). + . Second value is CIU clock phase shift value for RX mode (0..7). +- samsung,dw-mshc-ddr-timing: The timing values for double data rate (DDR) mode + operation. If missing, values from samsung,dw-mshc-sdr-timing are used. + . First value is CIU clock phase shift value for TX mode (0..7). + . Second value is CIU clock phase shift value for RX mode (0..7). Example: mmc@12200000 { - samsung,bus-width = <8>; - samsung,timing = <1 3 3>; - samsung,removable = <1>; -} + bus-width = <8>; + non-removable; + samsung,dw-mshc-ciu-div = <3>; + samsung,dw-mshc-sdr-timing = <1 3>; + samsung,dw-mshc-ddr-timing = <0 2>; +}; + In the above example, . The bus width is 8 - . Timing is comprised of 3 values as explained below + . Divider value for CLKSEL register is 3. The CIU clock rate will be + calculated as SDCLKIN / (3 + 1). + . SDR and DDR timings are comprised of 2 values as explained below 1 - SelClk_sample 3 - SelClk_drv - 3 - DIVRATIO - . The 'removable' flag indicates whether the the particilar device + . The 'non-removable' flag indicates whether the particular device cannot be removed (always present) or it is a removable device. - 1 - Indicates that the device is removable. - 0 - Indicates that the device cannot be removed. + Flag is present - Indicates that the device cannot be removed. + Flag is not present - Indicates that the device is removable.