From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79202C28CC5 for ; Sat, 8 Jun 2019 19:54:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5734E2166E for ; Sat, 8 Jun 2019 19:54:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="tnwLNtQS" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727657AbfFHTyI (ORCPT ); Sat, 8 Jun 2019 15:54:08 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:38582 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727622AbfFHTyI (ORCPT ); Sat, 8 Jun 2019 15:54:08 -0400 Received: by mail-pf1-f196.google.com with SMTP id a186so3034261pfa.5 for ; Sat, 08 Jun 2019 12:54:07 -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=XpMZFRZzyjrvKa6MiNS3nj5D2wr/GZuHVNnpChhgBew=; b=tnwLNtQSWIcN1GWkYya6TEicR1plRzZSpEhodiIXgdFONkHoZSMV6CN56vul1iLXg6 aatOECCTQ6kM4mlLc+7OpK023jqNzPi02mnXhH4qTeMHyVQdNGnMcFCEBwxmZS5l9EMN Z5ccLf/J2Y8D7jBYEdhO4HUXAVpkdxkXgH9qBCfRwSMqTbwt8JfQeWBKNqZZudc94g/L nSm7oMQL/qqR5gWYXJ7ePsO98hxehnFpGvWiNobjsuruf082YMIlNnwas+njWmBf+u3C scAEpJvz9Lg00u7aIk5PxfhqN+uzXL+ARfOR3MRotfO0Ouc+s96M/XJp1Vf1dMO58A0G u3dw== 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=XpMZFRZzyjrvKa6MiNS3nj5D2wr/GZuHVNnpChhgBew=; b=bx8huKyKEBg6Fv98in1ffNnMMGGPWDTHABewUyD/oPb478w4i19Nlpg8mo7sTizOkt 5/X+yPPcjuIqXCxzpZwDy859F0B1fGH9jrcdxXtP9IBCdcyRyyML2KTN9xmildmhJlR8 ZSLxFmWUlTU0RpCVPRSmoySB684ShBZmMIM/JV/v9zFbgx7nY4spKjL/Pdbj9/WyEWjv /O0Cd9FW/6b7/qnVqfyL9ZySXf4xeMsl7ntsbsuiH3tvEnprzIVzLLeeHySNMXvJJksU Hr5Rctmc2mCmBdastcBnKNwMm8G58SHnsYCkkUBpaAwSiPcCMPVgsXbIDPO/Cf+Su3oZ lSgg== X-Gm-Message-State: APjAAAWnKuhdUq2kz5bahX9YYa/gkH5F83WqM0hmOa7w0kA+I3mhfCse hScqD6j8eUR7XeJcAJIUDEiF X-Google-Smtp-Source: APXvYqzv6fejPrj7wJ/aQHxyLJUur6M3xTxJLG3IDcac6YVSTdsseFEOFSZ14VVA2do49rHCjgbMag== X-Received: by 2002:a63:84c1:: with SMTP id k184mr6683151pgd.7.1560023647269; Sat, 08 Jun 2019 12:54:07 -0700 (PDT) Received: from localhost.localdomain ([2405:204:7185:fba9:ec1e:ad07:23ac:d3ee]) by smtp.gmail.com with ESMTPSA id b35sm6034377pjc.15.2019.06.08.12.53.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Jun 2019 12:54:06 -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 4/7] arm64: dts: actions: Add uSD and eMMC support for Bubblegum96 Date: Sun, 9 Jun 2019 01:23:14 +0530 Message-Id: <20190608195317.6336-5-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190608195317.6336-1-manivannan.sadhasivam@linaro.org> References: <20190608195317.6336-1-manivannan.sadhasivam@linaro.org> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Add uSD and eMMC support for Bubblegum96 board based on Actions Semi Owl 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 | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts b/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts index 732daaa6e9d3..3b596d72de25 100644 --- a/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts +++ b/arch/arm64/boot/dts/actions/s900-bubblegum-96.dts @@ -13,6 +13,9 @@ aliases { serial5 = &uart5; + mmc0 = &mmc0; + mmc1 = &mmc1; + mmc2 = &mmc2; }; chosen { @@ -23,6 +26,14 @@ device_type = "memory"; reg = <0x0 0x0 0x0 0x80000000>; }; + + reg_3p1v: regulator-3p1v { + compatible = "regulator-fixed"; + regulator-name = "fixed-3.1V"; + regulator-min-microvolt = <3100000>; + regulator-max-microvolt = <3100000>; + regulator-always-on; + }; }; &i2c0 { @@ -241,6 +252,45 @@ 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"; + }; + }; +}; + +&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 = <®_3p1v>; + vqmmc-supply = <®_3p1v>; +}; + +&mmc2 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&mmc2_default>; + no-sdio; + no-sd; + non-removable; + bus-width = <8>; + vmmc-supply = <®_3p1v>; }; &timer { -- 2.17.1