From patchwork Tue May 14 09:16:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 164118 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp2378617ili; Tue, 14 May 2019 02:16:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqy22Ln9LcgukV79akSqrtzFF34BCegG5t4YOeUkVOZ7IMvdoo4gSC7JZ+UGFrmGT9jHLT03 X-Received: by 2002:a62:86c4:: with SMTP id x187mr38968024pfd.34.1557825383476; Tue, 14 May 2019 02:16:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557825383; cv=none; d=google.com; s=arc-20160816; b=wO2xv9O6g3OnESVAGpThop0W0HoLLh0NDTveudSnDGKC4xwfb37VIPyvE75F1dOj7M onV+g5bP8mC6rXd5yHLUkcQsFvuy60U7q6C7A4AiWc8duIt3xUydFTvyCFOk6cipL7lW snQcgk9J1PBIA3HKUu53d0fYCl8fpzg1dMXcyqvrHlY99FvIiBZGc1+BJVbzluwr4f2B MxJoedxMPaGS4U+iPeSZAdD73HqqTBhH6OOe2ZxmjrbgPO+coIaYKHaUC3tsMWUmmdnN 3EJrAuDl+NE3mGD2GclCyxcwybEJbEWazq+OcjWQgSsRMw4LcFhkqXbA++Rob9otZERO 3fuA== 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=PQxKZYI/w8DMXMSBGmGRGcJhp1dgIyZNVNnv6yd34UI=; b=rUP/uzQduHCQ9xQQfr7E5vrnHRzgI1d7FvILUIkIZWuwdEtNVUEgrZSw4x8kMVAlvd jtTKuqsT4Ipq/4jtRWDxxmVAl0ImjjTeiIbqi3vVjfwxJQbIDjV6Sq7PKn0ORv274lKH g7k7uCAvEHEjD+9wLyXj9c3WEP5cMZjpMrDvImtACVusIqv/U6UeEYYxNKHTQ1N34Gph 5PCqGVx90sBRS5RkbMxIKe3FDk1wydyIjVDnHtlBSC6KyJeyzckkgwQt9IbYXcd3z0sI l6DAoIx8QIIID/sjzU5KZaSiyQfbA+aip12XM6Dztc52UlGcgoZ4/tio3bu55FbV2lWY Mg7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=mwqwPElR; 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 s8si7938980pgn.430.2019.05.14.02.16.23; Tue, 14 May 2019 02:16:23 -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=mwqwPElR; 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 S1726541AbfENJQV (ORCPT + 30 others); Tue, 14 May 2019 05:16:21 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:33585 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726134AbfENJQS (ORCPT ); Tue, 14 May 2019 05:16:18 -0400 Received: by mail-wr1-f65.google.com with SMTP id d9so9945991wrx.0 for ; Tue, 14 May 2019 02:16:16 -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=PQxKZYI/w8DMXMSBGmGRGcJhp1dgIyZNVNnv6yd34UI=; b=mwqwPElROfHEc3Bz9sh7TzW90jpe117C1IEvXl20A2ih7GihRMBg/5AtdkYB58EpKX WMdoYrQRVrTh7p5bJmFQJsnoQLMecuqWBPRaHBYzJDj367jbJ8wX1KntMczNOHNw1mM2 vDNO79ghUwWSc6uCwkxo1Xgbu/BRkJawUBbwBRy8aRlVrB5pXdV0t0VDiFUcvLOhDHJO /TKvPJiLeIz+z4QOGD1ryi+u0kbZTN1CWnrAMl0iMysN4R/P0Mlpsrk3eOcE2Rm2dNCD 9X+6me/HJs6Q+g4PpxKQ28as9tcEkqqkjPC4140f53dvkg5jWNgXU+BRRlqu/J+mXZGS YMqg== 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=PQxKZYI/w8DMXMSBGmGRGcJhp1dgIyZNVNnv6yd34UI=; b=XnG94B9FDTm+TTOLn2zb5pLtfgSTvHp2Ip/8YFOdEn7zDEA0PVINEouz0OdKX5IHel ojH7r6H74VPekFNHfOVdMdRTGaEauaa5DNI5JkzSFAcPiLGKIba9IAfeA26VLycH+H8d hGSRXYaGLu3c9iF9cWkrDhTl/ZOVUZATTgw7tZVk54PYS1jppW7swbhTfqI2Y/iNPjw/ oIL5vc8cUCdu2LBojLCd/63huV05oih+Zw1TpADWgxe/l7zgWJ9fr1mP29O3T151B2ov ZY+BkFkHH4hg107s5BxA/0zfvhidTXVeHMN8zfRWK5VTBTMpcKAJYvGeBCujkIbJG8NU 8A0A== X-Gm-Message-State: APjAAAW4eG+Woh241qwNmJM81OkvYjgQQ8glQ3j5LyBBWot9y4nKtxHb 8xAJ2J+6wsvhJHfo5NfVxlFt9A== X-Received: by 2002:a05:6000:10c4:: with SMTP id b4mr8179544wrx.145.1557825375605; Tue, 14 May 2019 02:16:15 -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.14 (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 1/3] arm64: dts: meson: g12a: add mmc nodes Date: Tue, 14 May 2019 11:16:09 +0200 Message-Id: <20190514091611.15278-2-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 Add port B (sdcard) and port C (eMMC) pinctrl and controllers nodes to the g12a DT. Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 124 ++++++++++++++++++++ 1 file changed, 124 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index 2f4f4dd54cba..b2f08fc96568 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -185,6 +185,48 @@ }; }; + emmc_pins: emmc { + mux-0 { + groups = "emmc_nand_d0", + "emmc_nand_d1", + "emmc_nand_d2", + "emmc_nand_d3", + "emmc_nand_d4", + "emmc_nand_d5", + "emmc_nand_d6", + "emmc_nand_d7", + "emmc_cmd"; + function = "emmc"; + bias-pull-up; + drive-strength-microamp = <4000>; + }; + + mux-1 { + groups = "emmc_clk"; + function = "emmc"; + bias-disable; + drive-strength-microamp = <4000>; + }; + }; + + emmc_ds_pins: emmc-ds { + mux { + groups = "emmc_nand_ds"; + function = "emmc"; + bias-pull-down; + drive-strength-microamp = <4000>; + }; + }; + + emmc_clk_gate_pins: emmc_clk_gate { + mux { + groups = "BOOT_8"; + function = "gpio_periphs"; + bias-pull-down; + drive-strength-microamp = <4000>; + }; + }; + hdmitx_ddc_pins: hdmitx_ddc { mux { groups = "hdmitx_sda", @@ -290,6 +332,64 @@ }; }; + sdcard_c_pins: sdcard_c { + mux-0 { + groups = "sdcard_d0_c", + "sdcard_d1_c", + "sdcard_d2_c", + "sdcard_d3_c", + "sdcard_cmd_c"; + function = "sdcard"; + bias-pull-up; + drive-strength-microamp = <4000>; + }; + + mux-1 { + groups = "sdcard_clk_c"; + function = "sdcard"; + bias-disable; + drive-strength-microamp = <4000>; + }; + }; + + sdcard_clk_gate_c_pins: sdcard_clk_gate_c { + mux { + groups = "GPIOC_4"; + function = "gpio_periphs"; + bias-pull-down; + drive-strength-microamp = <4000>; + }; + }; + + sdcard_z_pins: sdcard_z { + mux-0 { + groups = "sdcard_d0_z", + "sdcard_d1_z", + "sdcard_d2_z", + "sdcard_d3_z", + "sdcard_cmd_z"; + function = "sdcard"; + bias-pull-up; + drive-strength-microamp = <4000>; + }; + + mux-1 { + groups = "sdcard_clk_z"; + function = "sdcard"; + bias-disable; + drive-strength-microamp = <4000>; + }; + }; + + sdcard_clk_gate_z_pins: sdcard_clk_gate_z { + mux { + groups = "GPIOZ_6"; + function = "gpio_periphs"; + bias-pull-down; + drive-strength-microamp = <4000>; + }; + }; + uart_a_pins: uart-a { mux { groups = "uart_a_tx", @@ -759,6 +859,30 @@ }; }; + sd_emmc_b: sd@ffe05000 { + compatible = "amlogic,meson-axg-mmc"; + reg = <0x0 0xffe05000 0x0 0x800>; + interrupts = ; + status = "disabled"; + clocks = <&clkc CLKID_SD_EMMC_B>, + <&clkc CLKID_SD_EMMC_B_CLK0>, + <&clkc CLKID_FCLK_DIV2>; + clock-names = "core", "clkin0", "clkin1"; + resets = <&reset RESET_SD_EMMC_B>; + }; + + sd_emmc_c: mmc@ffe07000 { + compatible = "amlogic,meson-axg-mmc"; + reg = <0x0 0xffe07000 0x0 0x800>; + interrupts = ; + status = "disabled"; + clocks = <&clkc CLKID_SD_EMMC_C>, + <&clkc CLKID_SD_EMMC_C_CLK0>, + <&clkc CLKID_FCLK_DIV2>; + clock-names = "core", "clkin0", "clkin1"; + resets = <&reset RESET_SD_EMMC_C>; + }; + usb: usb@ffe09000 { status = "disabled"; compatible = "amlogic,meson-g12a-usb-ctrl"; 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>; From patchwork Tue May 14 09:16:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 164119 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp2378822ili; Tue, 14 May 2019 02:16:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqzc2Uuhd+wGgX1Rw4i8nfG/+hBVNLNmL/1X9Zivz5qIgcPCz0N+cqaYtKmtaLY34xbX7w5/ X-Received: by 2002:a17:902:bc4b:: with SMTP id t11mr29348044plz.255.1557825396685; Tue, 14 May 2019 02:16:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557825396; cv=none; d=google.com; s=arc-20160816; b=0KGn2A4VVSEGHaDw7GmXK/HA/9l4XFxZXuuNHZdOOQoFVvi46msM7uSpAo3WA5NKTT OrKeVzDf28n6dYi3YM3okyzoj9g2SxZgFtAChClxu0pnItSdAv9Y9F3cWGrYNyD1CtlY gqE2yv7FpMgL+jxPBrrax18ad+E28w4ECbGFH0S7dGRaZcUPtaI2StSf4auj9zq3vXD9 jfmLw2s3jAwKEd7wv06CvF/MRBRCvpSzFdnLyVakrBp8bwGGAIOO/QOuju0ipvhud/zl eqMVcoOZRdR//dS4Q3/VPlgJL1wFos+Y7KnZhzQml9wn3tT6VpqEPX0S31bfWJh1WUK5 O8sw== 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=kpOWVi+iL5/F7dUkDp6tEgosj6/Jy76yQKEnOVON8t8=; b=D05TiK4pyCFDJIbzar7mfl7i1GPO3E9airhrBxoecCPUI6cazyBkTn5L3QDZpSTu1K tSUzcDxjuko6vr0jbiOftJmKl0akqRo2OTSfd68Brh5dXql2vwE1MT4slTqOygqlni03 WY+4l9G/vC18kii9GeIBWHeibB4T8wRuRFWpY/oGYwx8CpXVU+dI0nXB8Uhtd2R9omyl KOggb+IAZdANovlBL/nfGQCssW5RywVFZYn/enc2I6rLPC35MxFlpzjfN9Eufr4dvhiI BEUgS3VtTlBh+Q8ymje1yrAVqkGlQf8lpXFW4fHjOHZmYwRgh9Kmkht9KCxQ4YkuTb+0 ZZlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=rC6MRUoA; 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 u7si247331pfb.223.2019.05.14.02.16.36; Tue, 14 May 2019 02:16:36 -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=rC6MRUoA; 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 S1726621AbfENJQf (ORCPT + 30 others); Tue, 14 May 2019 05:16:35 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39232 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726447AbfENJQT (ORCPT ); Tue, 14 May 2019 05:16:19 -0400 Received: by mail-wr1-f66.google.com with SMTP id w8so15872510wrl.6 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=kpOWVi+iL5/F7dUkDp6tEgosj6/Jy76yQKEnOVON8t8=; b=rC6MRUoAeXcZYcOl6WnfStMHiWZp73qbyzqDaXJhKatvwz034xBBPVSbzBOeGvhVUo 0I7dXKeLRZjy2RMWxuKHIuwHB4Zmk0lwjL933lY/A4z1MFE0YkUCgvhLMKntIkLbVoQJ EGhLsHDVR3k75PjeUUMf0aZW4lC3cdppsh3UkMoaWkloqxFdqoeNY2nixkE1TdKWLwZw pV3LhspPkKbSoJ0rBs/mCPk+BnU3nw1+na3WcjIkJSvyqPH4skrYLCJUPUQ05c3EwHA7 kMVqJ9I81KGv9SBllGHrxT+DK6C/wpQJ80BaEfsI3N14WnPJydqvxtuL/ByvIlJCWV2l CAww== 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=kpOWVi+iL5/F7dUkDp6tEgosj6/Jy76yQKEnOVON8t8=; b=AWCgv0TR8zEVWmLeJ1iBXlVLMpJZGJ0tBm8edqmnlYWaId+bGvIKSgt1Z4UWYB8n7b LPHKnSVXhlIQ78ecWbov1qXyc1hUg41VY+mvL2pRM4nGQvpN9CByYRrwk9Y41fnglbC0 N/k18q098sXBfqln8g0IIqYnuWJJCUwWkOPc3tyX43tZ0axG/+dN0zfZN1QH62f//aNa OAdH9XsWxF22uOF+wF+R+93Wt4Y7u7f7FecxJYACmsAEbsUX5sp/AyAVIO7S7fEdoIZb DLfdjlbuGh9lCTMmP2OPfxann9Ocm5HL/RniUXmoUX9oyvBqSde87Wc1aQNpky05XbwC hK6w== X-Gm-Message-State: APjAAAXCLOYxMHeA3OSE7jxUNlc5BYgK/BBRn/NJzqBGO2NzTT8rfV1j VUvKiVWMvZp0XCzTPD95uigVcg== X-Received: by 2002:adf:ee01:: with SMTP id y1mr2274845wrn.51.1557825377292; Tue, 14 May 2019 02:16:17 -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.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 14 May 2019 02:16:16 -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 3/3] arm64: dts: meson: sei510: add sd and emmc Date: Tue, 14 May 2019 11:16:11 +0200 Message-Id: <20190514091611.15278-4-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 sei510 board Signed-off-by: Jerome Brunet --- .../boot/dts/amlogic/meson-g12a-sei510.dts | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) -- 2.20.1 diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts index 61fb30047d7f..bb45e3577ff5 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts @@ -45,6 +45,11 @@ }; }; + emmc_pwrseq: emmc-pwrseq { + compatible = "mmc-pwrseq-emmc"; + reset-gpios = <&gpio BOOT_12 GPIO_ACTIVE_LOW>; + }; + hdmi-connector { compatible = "hdmi-connector"; type = "a"; @@ -161,6 +166,43 @@ vref-supply = <&vddio_ao1v8>; }; +/* 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 = <&vddao_3v3>; + vqmmc-supply = <&emmc_1v8>; +}; + &uart_A { status = "okay"; pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;