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";