From patchwork Thu Aug 8 03:14:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 817679 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e11:0:b0:367:895a:4699 with SMTP id p17csp675199wrt; Wed, 7 Aug 2024 20:17:37 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU9E8VLPXEs8c4ebt0oqm8XseHlCVEJ0GBKkMEcl1WmPCnXSDb3fZTtQngv4lCwEvMiwl661h8AsL88XVcJ6Clw X-Google-Smtp-Source: AGHT+IEzCMrwe07dmIqRAgSkRe0V8vxubUoRoOJopOB3CdVTSUiwe2wYgIh8h0o/MfwPSvj00bLC X-Received: by 2002:a05:6512:4006:b0:530:aea2:2454 with SMTP id 2adb3069b0e04-530e5811e58mr269453e87.7.1723087057163; Wed, 07 Aug 2024 20:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723087057; cv=none; d=google.com; s=arc-20160816; b=jz+6YMJWa3jc3xDZvc7qHWvEyaH2sObRTQZn/XJmXhUeYAkQEOsuQiq86j7eyFiywa Oiqk+Ew9dJiJh3f2O7B+XbpMPlAxuqvo4Wb+JsLyII7h/AO8uaIKLPNqKm6DRaRfVH+I Vj28uHcylBteQhE6Lix05gTpWnvE3Pp2YWj1xtoxxGfCpTZepSIns5RBhgF+vuBs5vCX CRtLUIOP29iSw3xtOcoOsVCtwp24r3whTXrl+lkt+QGVkjRCstkLmLRdqbzZWl5jnHEc 3N/K3adfUeKj+LJIWoMvp/i+Vpy/PFagxorQ1oQALjNyP11ub4T0aJ7vOShCcqysUExo Sw7w== 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=6cUfHwk0Yus8LngelZKE317fNTQM+N79ervvdou1M48=; fh=c7/oQLOLfpi5Ef8nQDFdhsIjQUXDwNkZQVexC9lMY+c=; b=dzerI+Bu73KVttAduYI1VuaBYzabAGqu5kKWo+apKyZghRdm/Zhju15SXHZ4w79S0H 8eTEsgga6IwisVD36ego2eHdQHZpGBtYWMHJVr+6+NClKKZ/bC+LACFJwcjvnI9LBW0l jGGRFHvnQ5vMtVB4cxz7QcAIumrMndf9cBgMYzxZtAefGLROYPFJcPQJcoWdi5Srkb0U OjI1kOTdcdcMOMxc+wVChxj614p8VfYOpA5DB3Xc2rm0ZKVkTSzroSTnjt7BN1ZK6b0n 8wsmlJ9h4g1p54IpieocDyYRGfCUGuJiRV6Goowhf7747yXP8cQiHEKt52qVQwIv94f4 ZS1A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cjiJfipj; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5bbb2c1f7b1si256618a12.160.2024.08.07.20.17.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 20:17:37 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cjiJfipj; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 8555688B57; Thu, 8 Aug 2024 05:15:07 +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="cjiJfipj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8BE5388AE3; Thu, 8 Aug 2024 05:14:59 +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-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) (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 545E588A34 for ; Thu, 8 Aug 2024 05:14:57 +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-oo1-xc2d.google.com with SMTP id 006d021491bc7-5d608060241so294618eaf.1 for ; Wed, 07 Aug 2024 20:14:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723086896; x=1723691696; 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=6cUfHwk0Yus8LngelZKE317fNTQM+N79ervvdou1M48=; b=cjiJfipjmiiu4D6+OsUztiWlzynDctYOJG9hz5lIK0LaAtqv+2GTybftbycvWYsJwm wMYpAylw/RVpxPCJyFpCo3N9QxXp7gSwyyPx96R8wDLMowme6vumQ/Cq57MoLtMbUGR/ tP3vOZZrj4FL1rwby/5MClyhBpECjRJQKruceu5SYSav3DxKHzc6i7mVez87+gTYFrBw T3xksoONqfeIx6ioQe3yWB49qdwgrYwH+NfPtFfopWinkm1eoNePSA/dF2n9zs9wisQt 30oFxTx5Or6tkrKVAKA1KewGAIZGZxsIZOsAe1AYWlmWJnMhUe2TMKwmiuXFwJlxPziw Bv1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723086896; x=1723691696; 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=6cUfHwk0Yus8LngelZKE317fNTQM+N79ervvdou1M48=; b=TcNLGanPYiGQxu3mY3m8ZwvyoTaVIKURh+MmkDYVccFFEQuJ9rGOd/7x47B9X33JHN Z7mPhVoEw8g0SO3cJeL4BPU0b5b8itjEUxt9jeSCnDrXjXizW28ytDSLDiBT8jCfXDdu FtFZfxENdk1vSIOq3BUwEwTT3UHnvTMnSRKE+nTyTrjWoy1nW2dVf0iCd8okrGX9ep+q rJC0EfJGRY6LxDYEmV7ZN9z+blVzmFGmsy/O6ctgBy3cVtaANO/cV2+nBdTbMWfZ7yMe hgI0syxXKXt/vMTL6dSLvJwwFMjEi0f5WaRiW2d3/5MP4lY+DzqvbTZ/U34mRqGZyidw Wadg== X-Forwarded-Encrypted: i=1; AJvYcCX00c7/Ejz1iT10LfE24x0oOOq8udAU1P8/2oqiw4tLIfwmhZuID6Mr/pF7+eCb72L80zyMOGusHrQ0O5dBFKYh4AkfNw== X-Gm-Message-State: AOJu0YwKz/TVxFibRcX7msguV26OMIEiwRFTrhCjPLpvrRW6zgikE8m7 /ePtOg47VyeXOiKPFgtXimPkYE/7yiUouH8kOJu68PlRjULUgrr5uB/+35WDLmY= X-Received: by 2002:a05:6820:4b0b:b0:5c6:61b9:20ba with SMTP id 006d021491bc7-5d855a51016mr881507eaf.1.1723086896050; Wed, 07 Aug 2024 20:14:56 -0700 (PDT) Received: from localhost ([136.62.192.75]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5d757179759sm3497983eaf.8.2024.08.07.20.14.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 20:14:55 -0700 (PDT) From: Sam Protsenko To: Minkyu Kang , Minkyu Kang , Jaehoon Chung Cc: Tom Rini , Henrik Grimler , 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 v5 15/38] dt-bindings: exynos: Update bindings doc for DW MMC controller Date: Wed, 7 Aug 2024 22:14:21 -0500 Message-Id: <20240808031444.9619-16-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240808031444.9619-1-semen.protsenko@linaro.org> References: <20240808031444.9619-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 v5: - (none) 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.