From nobody Tue Apr 28 07:46:32 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F559C433EF for ; Fri, 3 Jun 2022 09:50:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243246AbiFCJuS (ORCPT ); Fri, 3 Jun 2022 05:50:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236813AbiFCJtz (ORCPT ); Fri, 3 Jun 2022 05:49:55 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F1FA248ED for ; Fri, 3 Jun 2022 02:49:54 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id gl15so1014574ejb.4 for ; Fri, 03 Jun 2022 02:49:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WaLJt1WvpAiKJ7sF3CVE05WSOaNxkvjsdRpKOJWQz3Q=; b=w74wUAT9vqdRHGsMZNYQK3D7R/1cOktInyuV3fwhPb7HPQK2zLCUKUUKQhTPs62P1n FLnH8MilsWpm0RuOcos8h1k4GpOMYjAuJqyZ4a+4kKQxf4F1obBBA2Pfo5RKyGOVlwt2 G7mtY3lsidPC2qFBmlvkgOgBuimHJML5s4I2R4kFaQAPFw0AN3iOP/wUmNJelAh+/K3M YyGY9T8NwhrcpSGt+umTNtoQkf13Rb+7ZH3hj4/4smvuIFwCckVaDECNJ530f64f2Dgc G25AP36CmCteILLGiadoBbi6ixGeJOHLt2i8vNERbxN4DhwcPYxGhYaFxAcaRCSRuigH 77tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WaLJt1WvpAiKJ7sF3CVE05WSOaNxkvjsdRpKOJWQz3Q=; b=AcE9wBFgkKATLVm0G9YBnQqTaqLchQuMJGib+Sk8I5Dzp5eXNZACDcUQweVeuEp/FZ KxyN2NHrEc8GDvswv8iwg+WxEG2rY3tM4KxTFr+9hhC+BQdrj8ffAp51fVZDSLSiL0EN HNBQ+bzTOKs6qSmJmey/MlWnosCnt+8a7E13XbRJVht81t3EDF4U7qLZ/JdJQ3jfY1tf URq6fwxTQ28RzP2qYgoh2umzbhTymvDwTM0lHFBUVduTug4/WNpzLMeOkKXJkr7FmtM2 BTWP05SSPIifhYUDCxP069BnhHOKIkQcGD6ZJult2e/cri5tmqpb9Hlft0Jz5Cncpjfq emcw== X-Gm-Message-State: AOAM531a13N/zP3Yl+ywF71zeJRRpr1eZHkZ5ogR42+j/m4Q9PaCsuL9 bZ46EZxp8Aq1OEIOD9APF/TM4Q== X-Google-Smtp-Source: ABdhPJyzQR9OcqECUT1o4sZ9dbMtCmyD8F4HPSgsDufPrHUEHfgWUWoSq+1elGkdLtHzgNdMTz9rmA== X-Received: by 2002:a17:907:94d2:b0:6ff:2690:eae9 with SMTP id dn18-20020a17090794d200b006ff2690eae9mr7825022ejc.307.1654249792755; Fri, 03 Jun 2022 02:49:52 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id y22-20020aa7ca16000000b0042dcbc3f302sm3669561eds.36.2022.06.03.02.49.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jun 2022 02:49:52 -0700 (PDT) From: Krzysztof Kozlowski To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Alim Akhtar , Jaehoon Chung , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/3] ARM: dts: exynos: align MMC node name with dtschema Date: Fri, 3 Jun 2022 11:49:44 +0200 Message-Id: <20220603094946.509919-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220603094946.509919-1-krzysztof.kozlowski@linaro.org> References: <20220603094946.509919-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The node names should be generic and MMC controller dtschema expects "mmc". Signed-off-by: Krzysztof Kozlowski Reviewed-by: Alim Akhtar --- arch/arm/boot/dts/exynos3250.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/exynos3250.dtsi b/arch/arm/boot/dts/exynos32= 50.dtsi index 78dad233ff34..326b9e0ed8d3 100644 --- a/arch/arm/boot/dts/exynos3250.dtsi +++ b/arch/arm/boot/dts/exynos3250.dtsi @@ -376,7 +376,7 @@ hsotg: hsotg@12480000 { status =3D "disabled"; }; =20 - mshc_0: mshc@12510000 { + mshc_0: mmc@12510000 { compatible =3D "samsung,exynos5420-dw-mshc"; reg =3D <0x12510000 0x1000>; interrupts =3D ; @@ -388,7 +388,7 @@ mshc_0: mshc@12510000 { status =3D "disabled"; }; =20 - mshc_1: mshc@12520000 { + mshc_1: mmc@12520000 { compatible =3D "samsung,exynos5420-dw-mshc"; reg =3D <0x12520000 0x1000>; interrupts =3D ; @@ -400,7 +400,7 @@ mshc_1: mshc@12520000 { status =3D "disabled"; }; =20 - mshc_2: mshc@12530000 { + mshc_2: mmc@12530000 { compatible =3D "samsung,exynos5250-dw-mshc"; reg =3D <0x12530000 0x1000>; interrupts =3D ; --=20 2.34.1 From nobody Tue Apr 28 07:46:32 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9DC6C43334 for ; Fri, 3 Jun 2022 09:50:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243241AbiFCJuM (ORCPT ); Fri, 3 Jun 2022 05:50:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243217AbiFCJt5 (ORCPT ); Fri, 3 Jun 2022 05:49:57 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5639D2494E for ; Fri, 3 Jun 2022 02:49:55 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id er5so9433025edb.12 for ; Fri, 03 Jun 2022 02:49:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ums06lpbM+PTGvsWcIDhEEbhw0J/2ZTCTZEOaQpH01c=; b=atYIgWK/6FRawaETkeUwdXYIh+5RCPmZ6VyzX0t1MxzCN7gsZGXo89BKMBDxxpxCbw ESnWPHa3fkokCeYzHS7HI/ToXVIi+ZqW9WQ5Fhvbkhnx1eANmO222pfUml31+LYrH2y7 EkW/Ww2cZdpMyFu8XuHwezN3rEDD/utnsi2LIR7+vzN0vaRMlSLbd5MbeeTUoQGcHGY3 Z0bRgDr7z7LoDz60cBWExz+ScIQXHVfa8lXxnOT1iNM9rg2dljw1Giy0PdKw4F+sdgeu BvVn0XDB3Ww6dfdY5j8wOqGk/5DHoFQ/PdN9AJ9AGjYtEFACIM0l173LQDYeZNPB9Vyt VxTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ums06lpbM+PTGvsWcIDhEEbhw0J/2ZTCTZEOaQpH01c=; b=en6B6/4Ehp4tfybT0j8NYjkY8H5co42lDhR9c2irVJbwBdKzT8t5sa6wS1aJwWKrRw T+Rfxqt8ZcRLnUrOpwqlBBEkD/cVRmAmjsIlhADRG6QkeTo0O/R3rgkF8W0epA1U7cc4 KWH/7qPObMcPabLifTUgp/N6Ms2978LXr6ja/pSmI3I9C6UfeYo+ONui2ikBVwvCiaZt F8LiuQZGnJ1zuDXYDzxmqpt9DUD3KU8q0h3dD4NAVwqZVmdjKY0/DSeyVlF9JQJutPAx ptSKsY6fA3zWl70qaPdKbdqEID5bnxcEvSpjkgmgMt1ZVPcdLZ8+mjrqH6N12EqQgx4H 16Zg== X-Gm-Message-State: AOAM533GKB6VEddljDa70ycwUGmArBEbaC9CN6QtSW78YCGYNnotTNIS y9DcrXfnjequAmKAdpuasiwk3g== X-Google-Smtp-Source: ABdhPJzrd3PUALKrqr7kQ7Hn+0AluZ6uwepz5o7BbwOoD/e3jxFINqcWp42bWORfoFn+OT2gGlztHg== X-Received: by 2002:a05:6402:e99:b0:41d:11f2:85e0 with SMTP id h25-20020a0564020e9900b0041d11f285e0mr9670216eda.339.1654249793985; Fri, 03 Jun 2022 02:49:53 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id y22-20020aa7ca16000000b0042dcbc3f302sm3669561eds.36.2022.06.03.02.49.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jun 2022 02:49:53 -0700 (PDT) From: Krzysztof Kozlowski To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Alim Akhtar , Jaehoon Chung , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/3] arm64: dts: exynos: align MMC node name with dtschema Date: Fri, 3 Jun 2022 11:49:45 +0200 Message-Id: <20220603094946.509919-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220603094946.509919-1-krzysztof.kozlowski@linaro.org> References: <20220603094946.509919-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The node names should be generic and MMC controller dtschema expects "mmc". Signed-off-by: Krzysztof Kozlowski Reviewed-by: Alim Akhtar --- arch/arm64/boot/dts/exynos/exynos5433.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/exynos5433.dtsi b/arch/arm64/boot/d= ts/exynos/exynos5433.dtsi index 75b548e495a0..bd6a354b9cb5 100644 --- a/arch/arm64/boot/dts/exynos/exynos5433.dtsi +++ b/arch/arm64/boot/dts/exynos/exynos5433.dtsi @@ -1820,7 +1820,7 @@ usbhost_dwc3: usb@15a00000 { }; }; =20 - mshc_0: mshc@15540000 { + mshc_0: mmc@15540000 { compatible =3D "samsung,exynos7-dw-mshc-smu"; interrupts =3D ; #address-cells =3D <1>; @@ -1833,7 +1833,7 @@ mshc_0: mshc@15540000 { status =3D "disabled"; }; =20 - mshc_1: mshc@15550000 { + mshc_1: mmc@15550000 { compatible =3D "samsung,exynos7-dw-mshc-smu"; interrupts =3D ; #address-cells =3D <1>; @@ -1846,7 +1846,7 @@ mshc_1: mshc@15550000 { status =3D "disabled"; }; =20 - mshc_2: mshc@15560000 { + mshc_2: mmc@15560000 { compatible =3D "samsung,exynos7-dw-mshc-smu"; interrupts =3D ; #address-cells =3D <1>; --=20 2.34.1 From nobody Tue Apr 28 07:46:32 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1AA33C433EF for ; Fri, 3 Jun 2022 09:50:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243252AbiFCJuV (ORCPT ); Fri, 3 Jun 2022 05:50:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243230AbiFCJt5 (ORCPT ); Fri, 3 Jun 2022 05:49:57 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8415724977 for ; Fri, 3 Jun 2022 02:49:55 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id 25so9180330edw.8 for ; Fri, 03 Jun 2022 02:49:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=99fGaK4RqqX9TZZDosYGNUyUM6sQSl8Udc/LexVf/3o=; b=QCS+MIM1geXNdiRcZOC4FD0SyAAqkSlkfTTUPJw4QLBCQF889VGxDCbxdlALwKGjWz rLuFPiz7C+dq5dJJ4F8XDRvvf7wAIK0AEKNjSqQyJoZyK/WLd70iLsBVEOLxBYZHrrLQ Sve9nlrCz+AL/4UrefSaHN5L0iexFfWRaU43Y764pCBdo6EXF7hjvH2bw89U/+cUiqU/ Nhdt0e3nK8QAwWhUtwOU3j0GXfYH3BbrjMv87Ts4UCFNiIyiFyOtRmMLB0I3yG16Qy2i tAs6NOV0OmGUdVhPwUY/GCx81HbePeNIisAaxZ27V/fqo22DVS4VnGDaXUXQt/9gF45D upkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=99fGaK4RqqX9TZZDosYGNUyUM6sQSl8Udc/LexVf/3o=; b=FFAJni2U8eSgJWEZaLqFY5VVcBv4iMnxufV7RYL5R/C+GEKavb9zV5hCqIhT4Pa+Et s2HUHoBVZ7IVO9N2PF9g/oGheaoy0uVrWfnaPPi0b3zkvzH/Ck6zoxY53CE+u/m4bK0o GskqG+wjIGTgaf+rWzemeqbebf0p40n65wcAEO3UrKV/uKUKqt8fxKtuelC7c5r4l0k2 sV4ENQPquktdTLMiotdFMVp8YgCQGE9D4Q/7IT3CgkWsw7QFgvlSg1w4wyxEBv+yrW1O nW5gv4oN9gKMp6Vkq5B913VrngWQMDcd6ciBVdlXVQOHBlQXFYDnkcOe9Ojxrgw6SsJ5 Sn3Q== X-Gm-Message-State: AOAM530qQ4VHIKMlgTGsJjFI3IIZtShpQyrSsJYTKklfNcHyqYywOULi bBazh3tN/sHOxwf0E6YXBFVXzA== X-Google-Smtp-Source: ABdhPJzIhBBSSjBKJbGWTQF1sawSyCvgi/jnEyy+I3PWM2Bn6W08R7yGLlLw2HEYq8rp9W3gbT7jAQ== X-Received: by 2002:a05:6402:3310:b0:42d:e77b:fef0 with SMTP id e16-20020a056402331000b0042de77bfef0mr9668823eda.193.1654249795082; Fri, 03 Jun 2022 02:49:55 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id y22-20020aa7ca16000000b0042dcbc3f302sm3669561eds.36.2022.06.03.02.49.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Jun 2022 02:49:54 -0700 (PDT) From: Krzysztof Kozlowski To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Alim Akhtar , Jaehoon Chung , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/3] dt-bindings: mmc: samsung,exynos-dw-mshc: convert to dtschema Date: Fri, 3 Jun 2022 11:49:46 +0200 Message-Id: <20220603094946.509919-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220603094946.509919-1-krzysztof.kozlowski@linaro.org> References: <20220603094946.509919-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Convert the Samsung Exynos SoC specific extensions to the Synopsys Designware Mobile Storage Host Controller to DT schema. Signed-off-by: Krzysztof Kozlowski --- .../bindings/mmc/exynos-dw-mshc.txt | 94 ---------- .../bindings/mmc/samsung,exynos-dw-mshc.yaml | 162 ++++++++++++++++++ 2 files changed, 162 insertions(+), 94 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mmc/exynos-dw-mshc.txt create mode 100644 Documentation/devicetree/bindings/mmc/samsung,exynos-dw= -mshc.yaml diff --git a/Documentation/devicetree/bindings/mmc/exynos-dw-mshc.txt b/Doc= umentation/devicetree/bindings/mmc/exynos-dw-mshc.txt deleted file mode 100644 index 753e9d7d8956..000000000000 --- a/Documentation/devicetree/bindings/mmc/exynos-dw-mshc.txt +++ /dev/null @@ -1,94 +0,0 @@ -* Samsung Exynos specific extensions to the Synopsys Designware Mobile - Storage Host Controller - -The Synopsys designware mobile storage host controller is used to interface -a SoC with storage medium such as eMMC or SD/MMC cards. This file documents -differences between the core Synopsys dw mshc controller properties descri= bed -by synopsys-dw-mshc.txt and the properties used by the Samsung Exynos spec= ific -extensions to the Synopsys Designware Mobile Storage Host Controller. - -Required Properties: - -* compatible: should be - - "samsung,exynos4210-dw-mshc": for controllers with Samsung Exynos4210 - specific extensions. - - "samsung,exynos4412-dw-mshc": for controllers with Samsung Exynos4412 - specific extensions. - - "samsung,exynos5250-dw-mshc": for controllers with Samsung Exynos5250 - specific extensions. - - "samsung,exynos5420-dw-mshc": for controllers with Samsung Exynos5420 - specific extensions. - - "samsung,exynos7-dw-mshc": for controllers with Samsung Exynos7 - specific extensions. - - "samsung,exynos7-dw-mshc-smu": for controllers with Samsung Exynos7 - specific extensions having an SMU. - - "axis,artpec8-dw-mshc": for controllers with ARTPEC-8 specific - extensions. - -* samsung,dw-mshc-ciu-div: Specifies the divider value for the card interf= ace - unit (ciu) clock. This property is applicable only for Exynos5 SoC's and - ignored for Exynos4 SoC's. The valid range of divider value is 0 to 7. - -* samsung,dw-mshc-sdr-timing: Specifies the value of CIU clock phase shift= value - in transmit mode and CIU clock phase shift value in receive mode for sin= gle - data rate mode operation. Refer notes below for the order of the cells a= nd the - valid values. - -* samsung,dw-mshc-ddr-timing: Specifies the value of CUI clock phase shift= value - in transmit mode and CIU clock phase shift value in receive mode for dou= ble - data rate mode operation. Refer notes below for the order of the cells a= nd the - valid values. -* samsung,dw-mshc-hs400-timing: Specifies the value of CIU TX and RX clock= phase - shift value for hs400 mode operation. - - Notes for the sdr-timing and ddr-timing values: - - The order of the cells should be - - First Cell: CIU clock phase shift value for tx mode. - - Second Cell: CIU clock phase shift value for rx mode. - - Valid values for SDR and DDR CIU clock timing for Exynos5250: - - valid value for tx phase shift and rx phase shift is 0 to 7. - - when CIU clock divider value is set to 3, all possible 8 phase shi= ft - values can be used. - - if CIU clock divider value is 0 (that is divide by 1), both tx and= rx - phase shift clocks should be 0. - -* samsung,read-strobe-delay: RCLK (Data strobe) delay to control HS400 mode - (Latency value for delay line in Read path) - -Required properties for a slot (Deprecated - Recommend to use one slot per= host): - -* gpios: specifies a list of gpios used for command, clock and data bus. T= he - first gpio is the command line and the second gpio is the clock line. The - rest of the gpios (depending on the bus-width property) are the data lin= es in - no particular order. The format of the gpio specifier depends on the gpio - controller. -(Deprecated - Refer to Documentation/devicetree/bindings/pinctrl/samsung-p= inctrl.txt) - -Example: - - The MSHC controller node can be split into two portions, SoC specific and - board specific portions as listed below. - - dwmmc0@12200000 { - compatible =3D "samsung,exynos5250-dw-mshc"; - reg =3D <0x12200000 0x1000>; - interrupts =3D <0 75 0>; - #address-cells =3D <1>; - #size-cells =3D <0>; - }; - - dwmmc0@12200000 { - cap-mmc-highspeed; - cap-sd-highspeed; - broken-cd; - fifo-depth =3D <0x80>; - card-detect-delay =3D <200>; - samsung,dw-mshc-ciu-div =3D <3>; - samsung,dw-mshc-sdr-timing =3D <2 3>; - samsung,dw-mshc-ddr-timing =3D <1 2>; - samsung,dw-mshc-hs400-timing =3D <0 2>; - samsung,read-strobe-delay =3D <90>; - bus-width =3D <8>; - }; diff --git a/Documentation/devicetree/bindings/mmc/samsung,exynos-dw-mshc.y= aml b/Documentation/devicetree/bindings/mmc/samsung,exynos-dw-mshc.yaml new file mode 100644 index 000000000000..ccb9d22c1702 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/samsung,exynos-dw-mshc.yaml @@ -0,0 +1,162 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mmc/samsung,exynos-dw-mshc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: + Samsung Exynos SoC specific extensions to the Synopsys Designware Mobile + Storage Host Controller + +maintainers: + - Jaehoon Chung + - Krzysztof Kozlowski + +properties: + compatible: + enum: + - samsung,exynos4210-dw-mshc + - samsung,exynos4412-dw-mshc + - samsung,exynos5250-dw-mshc + - samsung,exynos5420-dw-mshc + - samsung,exynos7-dw-mshc + - samsung,exynos7-dw-mshc-smu + - axis,artpec8-dw-mshc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 2 + description: + Handle to "biu" and "ciu" clocks for the + bus interface unit clock and the card interface unit clock. + + clock-names: + items: + - const: biu + - const: ciu + + samsung,dw-mshc-ciu-div: + $ref: /schemas/types.yaml#/definitions/uint32 + minimum: 0 + maximum: 7 + description: + The divider value for the card interface unit (ciu) clock. + + samsung,dw-mshc-ddr-timing: + $ref: /schemas/types.yaml#/definitions/uint32-array + items: + - description: CIU clock phase shift value for tx mode + minimum: 0 + maximum: 7 + - description: CIU clock phase shift value for rx mode + minimum: 0 + maximum: 7 + description: + The value of CUI clock phase shift value in transmit mode and CIU cl= ock + phase shift value in receive mode for double data rate mode operatio= n. + See also samsung,dw-mshc-hs400-timing property. + + samsung,dw-mshc-hs400-timing: + $ref: /schemas/types.yaml#/definitions/uint32-array + items: + - description: CIU clock phase shift value for tx mode + minimum: 0 + maximum: 7 + - description: CIU clock phase shift value for rx mode + minimum: 0 + maximum: 7 + description: | + The value of CIU TX and RX clock phase shift value for HS400 mode + operation. + Valid values for SDR and DDR CIU clock timing:: + - valid value for tx phase shift and rx phase shift is 0 to 7. + - when CIU clock divider value is set to 3, all possible 8 phase s= hift + values can be used. + - if CIU clock divider value is 0 (that is divide by 1), both tx a= nd rx + phase shift clocks should be 0. + If missing, values from samsung,dw-mshc-ddr-timing property are used. + + samsung,dw-mshc-sdr-timing: + $ref: /schemas/types.yaml#/definitions/uint32-array + items: + - description: CIU clock phase shift value for tx mode + minimum: 0 + maximum: 7 + - description: CIU clock phase shift value for rx mode + minimum: 0 + maximum: 7 + description: + The value of CIU clock phase shift value in transmit mode and CIU cl= ock + phase shift value in receive mode for single data rate mode operatio= n. + See also samsung,dw-mshc-hs400-timing property. + + samsung,read-strobe-delay: + $ref: /schemas/types.yaml#/definitions/uint32 + description: + RCLK (Data strobe) delay to control HS400 mode (Latency value for de= lay + line in Read path). If missing, default from hardware is used. + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - samsung,dw-mshc-ddr-timing + - samsung,dw-mshc-sdr-timing + +allOf: + - $ref: "synopsys-dw-mshc-common.yaml#" + - if: + properties: + compatible: + contains: + enum: + - samsung,exynos5250-dw-mshc + - samsung,exynos5420-dw-mshc + - samsung,exynos7-dw-mshc + - samsung,exynos7-dw-mshc-smu + - axis,artpec8-dw-mshc + then: + required: + - samsung,dw-mshc-ciu-div + +unevaluatedProperties: false + +examples: + - | + #include + #include + + mmc@12200000 { + compatible =3D "samsung,exynos5420-dw-mshc-smu"; + interrupts =3D ; + #address-cells =3D <1>; + #size-cells =3D <0>; + reg =3D <0x12200000 0x2000>; + clocks =3D <&clock CLK_MMC0>, <&clock CLK_SCLK_MMC0>; + clock-names =3D "biu", "ciu"; + fifo-depth =3D <0x40>; + + mmc-pwrseq =3D <&emmc_pwrseq>; + card-detect-delay =3D <200>; + samsung,dw-mshc-ciu-div =3D <3>; + samsung,dw-mshc-sdr-timing =3D <0 4>; + samsung,dw-mshc-ddr-timing =3D <0 2>; + samsung,dw-mshc-hs400-timing =3D <0 2>; + samsung,read-strobe-delay =3D <90>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd= 0_cd &sd0_rclk>; + bus-width =3D <8>; + cap-mmc-highspeed; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + max-frequency =3D <200000000>; + vmmc-supply =3D <&ldo18_reg>; + vqmmc-supply =3D <&ldo3_reg>; + }; --=20 2.34.1