From patchwork Tue May 14 09:16:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 164117 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp2378602ili; Tue, 14 May 2019 02:16:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7Cj/Fk59qVfFqvpRmB6ojSTkRPcqcgFfsv+eeZiKhEdWZ/bckeNIaOXWchYfL1n2kuWDs X-Received: by 2002:a17:902:1602:: with SMTP id g2mr36401992plg.325.1557825382084; Tue, 14 May 2019 02:16:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557825382; cv=none; d=google.com; s=arc-20160816; b=smAafsFvM6xK+BX+uMRlQNCtdZmYll6c3nkxL5A5fZp3kGCe7fzEJXVGJYS5T+5kYL wekIkmN03066Mr5paypw1TMvpmXD1KOyXQ/3CFQdijfBqeg2guHB6uSmnE1U/3rneJlD ioUXFEgCudCWhvco2FNKqWMKWBE63fv6QCukEtqpVupwkTCWTrlAAiCI9Xlu+O6UB/kI Xzt0UDaBaiZEUzcN4rhqPGJHg/pSTPPu011rEJgi3Q38CRK4pjA1vgcFZ3WlWQQWL00c A83l2JFMYU9eTeDYylFe9tw4M5N5vL5ImN7OP0He2TjAnn0xH7cOPzUwDHBPdMIphFpj qGRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JBB80kSucULdDTNJYI8igseB69Y8j2lI/J0kpwbCBx0=; b=p3u5za3fQOs+59mJlOpdB/FXJn3omq8U6YZT8NuaDs5pd9JvCHq98QwvfWANq22oqO QywEXJx/9qLS39m6Z2Fb5HH+dHszEkL3NFKIWs3GGOBzJw3QRqmR2puaE9okqzYvR/Tm WUAumOaAlOeWsTIQ4rUlQjkW43FpRyrRahlitaKQYA1NX+cxwnyThdZHtAgggQE2OCGH mF9ZkPXbgNebEcSU8/R4H8kha7KshjvYTegC4MJwjhfj6TboFanthxxzoJPT8L7N9QID KHIncR0RePEnE/nqU6j6IceIfY5l/hx+o1II3uu/rq80a/3Da30dHmiaP7Q4D0pxJXh1 8GKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=xc26U9Tj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x123si23038101pfx.157.2019.05.14.02.16.21; Tue, 14 May 2019 02:16:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=xc26U9Tj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726494AbfENJQV (ORCPT + 30 others); Tue, 14 May 2019 05:16:21 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:37036 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726211AbfENJQS (ORCPT ); Tue, 14 May 2019 05:16:18 -0400 Received: by mail-wm1-f68.google.com with SMTP id 7so2001241wmo.2 for ; Tue, 14 May 2019 02:16:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JBB80kSucULdDTNJYI8igseB69Y8j2lI/J0kpwbCBx0=; b=xc26U9TjeXoczIN1/bNqF4ptrZV+tHSHp/rkfz3AO0zPAh1SCwFrkmrm7aGk7SnG7B 7iAH6MWu3gW2vsM1AjElpXvZdW+mN6dOwLdvX/04LxZrZ+v8NDDSHRE6NGbc/9dEgbUa RHA4YJeX+uVhj8XhpiD1jYoClkJ90D3WUwqn5ihjcUaBN+ZwDII5ivOsr/gI69NJi+dn BstGRfIXuMwnOuKuSgHY+aDtkUjRjyC54qoAwYpswpZlPkZosX8x1gPZ3OsM8PTOStTo IZhfto2a3OebGynN38qUnXV5NpekhN1+8Yb/gf0ugmPlBzWdJKpC2fdwCGXAcAnrZDdp 8C3A== 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:mime-version:content-transfer-encoding; bh=JBB80kSucULdDTNJYI8igseB69Y8j2lI/J0kpwbCBx0=; b=umyjr6ZBKK5N6CnI0z/keuKQuK0XquGh5bGVlCJ7pEsEW4tqVSFlWDli49nRUKiI53 t3tg7tCaweH4Ws6YRHBkK4oxejGH+RW97we/85bfZgP9b2FIj/23uJwJk9BKqxPt3dPW nN/RZ80ENPM4zlvulqte0lxMrO25nhf/S5rZaKG76QlCxWUcP2Sr8ma3ATcbjHrARbIe flDpRA2xcVPNwQ33Jhk6lp0BOKCCq8fzPzkp+/3PG/a83u7vlAC38rYFlenmsAjmVO72 N/i+vb3MT+2sKcj+1p9StMwoWcr70ElMEkqvtnZXiVIxd+VZrAfC9JWjxPFO7gH8Qyqy CBRg== X-Gm-Message-State: APjAAAW7zLGztq9Mgcaff3jHayyw2oCfW27OzFiNjXHh8LNUb+UT+jsb n3cw0IfqC86oa9Y1SEbwQDY7XA== X-Received: by 2002:a1c:4145:: with SMTP id o66mr19288496wma.68.1557825376492; Tue, 14 May 2019 02:16:16 -0700 (PDT) Received: from boomer.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id y40sm17737158wrd.96.2019.05.14.02.16.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 May 2019 02:16:15 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman Cc: Jerome Brunet , devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] arm64: dts: meson: u200: add sd and emmc Date: Tue, 14 May 2019 11:16:10 +0200 Message-Id: <20190514091611.15278-3-jbrunet@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190514091611.15278-1-jbrunet@baylibre.com> References: <20190514091611.15278-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-Patchwork-Bot: notify Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable eMMC and SDCard on the g12a u200 board Signed-off-by: Jerome Brunet --- .../boot/dts/amlogic/meson-g12a-u200.dts | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts index 7cc3e2d6a4f1..972926121beb 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-u200.dts @@ -31,6 +31,11 @@ }; }; + emmc_pwrseq: emmc-pwrseq { + compatible = "mmc-pwrseq-emmc"; + reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>; + }; + hdmi-connector { compatible = "hdmi-connector"; type = "a"; @@ -164,6 +169,43 @@ pinctrl-names = "default"; }; +/* SD card */ +&sd_emmc_b { + status = "okay"; + pinctrl-0 = <&sdcard_c_pins>; + pinctrl-1 = <&sdcard_clk_gate_c_pins>; + pinctrl-names = "default", "clk-gate"; + + bus-width = <4>; + cap-sd-highspeed; + max-frequency = <50000000>; + disable-wp; + + cd-gpios = <&gpio GPIOC_6 GPIO_ACTIVE_LOW>; + vmmc-supply = <&vddao_3v3>; + vqmmc-supply = <&vddao_3v3>; +}; + +/* eMMC */ +&sd_emmc_c { + status = "okay"; + pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>; + pinctrl-1 = <&emmc_clk_gate_pins>; + pinctrl-names = "default", "clk-gate"; + + bus-width = <8>; + cap-mmc-highspeed; + mmc-ddr-1_8v; + mmc-hs200-1_8v; + max-frequency = <200000000>; + non-removable; + disable-wp; + + mmc-pwrseq = <&emmc_pwrseq>; + vmmc-supply = <&vcc_3v3>; + vqmmc-supply = <&flash_1v8>; +}; + &uart_AO { status = "okay"; pinctrl-0 = <&uart_ao_a_pins>;