From patchwork Mon Sep 16 15:45:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 173860 Delivered-To: patch@linaro.org Received: by 2002:ac9:19ad:0:0:0:0:0 with SMTP id d45csp4056614oce; Mon, 16 Sep 2019 08:46:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqySaVF6ujdowZy4WXjdq9MT8i6PquKzR7bez9NrNHEclm8HFCcwbgEyHkKoEa7KObOgz3Kz X-Received: by 2002:a17:906:b298:: with SMTP id q24mr669235ejz.168.1568648801804; Mon, 16 Sep 2019 08:46:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568648801; cv=none; d=google.com; s=arc-20160816; b=Al7/2SxZeqQnXfNoW8rjHemQQ3Pl87ONcZgxNC5rdZOEKJxIyHx+ZhdlwXZtGBATNu nxvpTx43pYWv+VjXvZ/hbE89mnP8GeALgvGGhbayhLImQ5yJwbJIsGALPUQkWuhY5n9x Z6gSGjv2LErcJcQcKAwc5pArosAZdDXlRD5+mPNmXUMoJizr5MpBzwNF/jvz4anZDOrW rEIhlEEis726xHk2MbVj3gYSY1jckignoWVwX9ZmROi6TbqNww4A0azvr6uEyJDKahK5 8ZvXArCE8j7QVmSUUcBgVsP39W4f2l2t86wgeqISYeU3DVc307n0hhNxz6Jq4OHhINAp a24A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=nH4eH2+AdUUr/ixPubTt3rBpS2s2N2X/tbfYHc3R6f8=; b=cX6oDUn3BR1c4oRgfy8pgAd0PxuYKfYu/Vd5Ey9OpG08ibR0tRRqfh0k23+fyEJNHi 3jEbI4WjTx49sJDJTw9uV4FxAzB/4NF5jZppoNeeC+bXaMMLA1/PuS3aF3gonazE6MXz xvB/uTdHx5YrHi6RUk+7atIT0MjBxqsOxZne/l/oLhW9lc3fC1/n3nGHPbmXs8dnT0Qk c7KwGR26Zoyv5lOEEzJ5vxj2a7uhEv63hZp5Gxo1xJq9ZuJbxcd6Gn9Qz8VWeUz9NNTy PRMZV57ClhXtdue47yCRZMB+vNlcZaRXOjGdn3e0Qc7rjTLRDGqvhyVO0jWDXcXgdqZ3 g7uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="koaQCYI/"; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j47si23126812ede.117.2019.09.16.08.46.41; Mon, 16 Sep 2019 08:46:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="koaQCYI/"; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389450AbfIPPqk (ORCPT + 5 others); Mon, 16 Sep 2019 11:46:40 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:35219 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389441AbfIPPqj (ORCPT ); Mon, 16 Sep 2019 11:46:39 -0400 Received: by mail-pg1-f195.google.com with SMTP id a24so242160pgj.2 for ; Mon, 16 Sep 2019 08:46:38 -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; bh=nH4eH2+AdUUr/ixPubTt3rBpS2s2N2X/tbfYHc3R6f8=; b=koaQCYI/sf25OYQBe6JaYlxFU6qwSJ6+tixnBZk1pjOixcbOlAxK7u4fn4kIT6+6hI 88SnbXzYYqNKQHlHSm4Ft6hrDz6/OetP2zU+wLoEMdxnZXyVjv8ivHmSnrvDaZCJA9B8 e7KAjxcmSFiDkte8Vk3dmfv5n5UPxHmfUmddq1hiRWXXXZhgILD+pHM8NW2ZO1PpD84N 8a/WgV1TsGUXohhn0e+5t96CIzyLTTqukq5noEpz7tWs9uzTxGZwWrmw+QyPj8JthLup kxpkHUb35LLJMj1mqf40/xzu4gxj0Qg2RgMOdaIxQbOomnK1xQyEomnf2arLyPE9SHqK yCKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nH4eH2+AdUUr/ixPubTt3rBpS2s2N2X/tbfYHc3R6f8=; b=Nac1Yd6nRTC1qmrndmhitEfKX2XhyWjchGG5SDGL93XiUsxY69oV0CJBLJVS618Naf CbT9vSgi98DjBBc9lDOLxTXM33OKWyapc9eDNzul91BghziuYSZXnWrNlBH8YqCQrAFE rbWpAw1s3VXbBKOVAZOPQwJYULQDPLAKU1nlioE1aj8sIeImYd2SGbXv4sp+oUTeQNer EJHBCeDxudgWgXCAnpMADhcW6iohFFS6dpciLQ56PsjOL3oscS1ikdiEzLSYeH4GKJS5 s3rfPuVBiANQ2T7wKgApqxGLRHaVzs6jHwHsOGbMTd15xlZLX8jfaio1VhL3yfyE2C4I 1rlw== X-Gm-Message-State: APjAAAWDCB+GV8ewALIgMgV0R/6TF7nnhMdg6e5/Jtt8TxUzMw3J5lon HvhhCud7kOF8EKRGswVbRzVp X-Received: by 2002:a63:31c6:: with SMTP id x189mr19821528pgx.240.1568648798287; Mon, 16 Sep 2019 08:46:38 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:90b:91ce:94c2:ef93:5bd:cfe8]) by smtp.gmail.com with ESMTPSA id s5sm36227670pfe.52.2019.09.16.08.46.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2019 08:46:37 -0700 (PDT) From: Manivannan Sadhasivam To: ulf.hansson@linaro.org, afaerber@suse.de, robh+dt@kernel.org, sboyd@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, thomas.liau@actions-semi.com, linux-actions@lists.infradead.org, linus.walleij@linaro.org, linux-clk@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH v4 4/7] arm64: dts: actions: Add uSD and eMMC support for Bubblegum96 Date: Mon, 16 Sep 2019 21:15:43 +0530 Message-Id: <20190916154546.24982-5-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190916154546.24982-1-manivannan.sadhasivam@linaro.org> References: <20190916154546.24982-1-manivannan.sadhasivam@linaro.org> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Add uSD and eMMC support for Bubblegum96 board based on Actions Semi S900 SoC. SD0 is connected to uSD slot and SD2 is connected to eMMC. Since there is no PMIC support added yet, fixed regulator has been used as a regulator node. Signed-off-by: Manivannan Sadhasivam --- .../boot/dts/actions/s900-bubblegum-96.dts | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts b/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts index 732daaa6e9d3..59291e0ea1ee 100644 --- a/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts +++ b/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts @@ -12,6 +12,9 @@ model = "Bubblegum-96"; aliases { + mmc0 = &mmc0; + mmc1 = &mmc1; + mmc2 = &mmc2; serial5 = &uart5; }; @@ -23,6 +26,24 @@ device_type = "memory"; reg = <0x0 0x0 0x0 0x80000000>; }; + + /* Fixed regulator used in the absence of PMIC */ + vcc_3v1: vcc-3v1 { + compatible = "regulator-fixed"; + regulator-name = "fixed-3.1V"; + regulator-min-microvolt = <3100000>; + regulator-max-microvolt = <3100000>; + regulator-always-on; + }; + + /* Fixed regulator used in the absence of PMIC */ + sd_vcc: sd-vcc { + compatible = "regulator-fixed"; + regulator-name = "fixed-3.1V"; + regulator-min-microvolt = <3100000>; + regulator-max-microvolt = <3100000>; + regulator-always-on; + }; }; &i2c0 { @@ -241,6 +262,47 @@ bias-pull-up; }; }; + + mmc0_default: mmc0_default { + pinmux { + groups = "sd0_d0_mfp", "sd0_d1_mfp", "sd0_d2_d3_mfp", + "sd0_cmd_mfp", "sd0_clk_mfp"; + function = "sd0"; + }; + }; + + mmc2_default: mmc2_default { + pinmux { + groups = "nand0_d0_ceb3_mfp"; + function = "sd2"; + }; + }; +}; + +/* uSD */ +&mmc0 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_default>; + no-sdio; + no-mmc; + no-1-8-v; + cd-gpios = <&pinctrl 120 GPIO_ACTIVE_LOW>; + bus-width = <4>; + vmmc-supply = <&sd_vcc>; + vqmmc-supply = <&sd_vcc>; +}; + +/* eMMC */ +&mmc2 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mmc2_default>; + no-sdio; + no-sd; + non-removable; + bus-width = <8>; + vmmc-supply = <&vcc_3v1>; }; &timer {