From patchwork Thu Jun 18 16:12:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1415 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 224FC3F0D3 for ; Thu, 18 Jun 2020 18:12:43 +0200 (CEST) Received: by mail-pj1-f70.google.com with SMTP id o7sf4326633pjw.8 for ; Thu, 18 Jun 2020 09:12:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1592496762; cv=pass; d=google.com; s=arc-20160816; b=y0MvtiKKqi/u91wm4GnUHEmtnJVeJuz1ADtKppKM/wxJDRDTGFSVl9MUSpMBc+yPUx CT7iCp03iIXyD1733qwxjHRnOsYgya2/9Kn/CcTrcgWWdc2fXEyiwx4A5o9r7dT1Th4y 2Y8J/0O8Gf2L5An4CkXEcttquS5pvQ1fEWLgJa6TZ+ejHY/HfOUEHm652hPBbyAlzjMJ xsrUS8Axa2e2aQ2C3ounJ7oRTgBV7BRnLjjm+z4nKWn4TcdkWNwj9nty3pglmKI5Os0P 0mpahoQgezbPkRK4M2p9smqfFIeI90xhZ9Z5IGsGK9qJBpLBbY92WXPjdVyVg2BwTizp h5bQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=MGs416H71NxDiEqmr4AeFBIwApWkbu8nDudlXuXcG5g=; b=VptacrgHh4NcejGDSoQNEcixbuOhCpiwIkquKYjDxKTEC/ZOOGugWT3LejX7ScDsHO muu8CC3IpalXdgmGvJkGhhIe2+6ZkEXfaLc/tSI6GFYimTnbBDoTsPilyqDaN+x6NIAV lsRDQHJWnRKaAsixSqkE/ykLrp/alpdjto5heNe3LPJg9qs2b48wKw7Z4PJW7ZUOMTbl JMwYsR3FJJXnlDFHnqkMQcm9irrNGYqQZE9ZkEnmavLZR6kedyVKkkrEYzxHTYFwIqrq aPFu8s+GRRK6yeIQTXDgqPTizW4ZtvtR4TQiVYVgiDpwr2rCtJvHbMLq1sqiNn2+tOw8 LM2Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Cz9Fi93B; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=MGs416H71NxDiEqmr4AeFBIwApWkbu8nDudlXuXcG5g=; b=Zfmw/VcZcE40UzBR4tuhKbA78yefqNJRClzyzTWmuoQI800IBnBJ5Ddnukwvv37A+P Lx1nJA9ZIIvk/KzocSuJ2rJombFFcCV1xwbruOtfJI4fZktdbG9gkWxjWplisgoj2rby 4tDukFshU4pFukoK7OBFT6sF+0LTFE7HNAvYw= 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=MGs416H71NxDiEqmr4AeFBIwApWkbu8nDudlXuXcG5g=; b=sxSd4VKfJSfqGkqSwie30/71thjbr5rMXLCMDAdJ2UonnLNLZiShzhUBaWjKJ44Ya8 ZYTxsDSDX3DAHeqzoFFfhQxag5ivdEOnVKBp6Ne8KI9aNI2FT1LrVqo56KD+m3MrNuU4 5m80cYwAeDzGT21R8w6ygySbByokeIwtC69PzdJANMg00hZKn4PPHkFoGcGsRUv2hqqj dcat7nh1leEQSPDeakPfBtVESLukegGQO1ZansEjg6Du0JzsS8NZMlfwAJdjYCY8+uZt cSKPNlJBZSQR4adMGBGegVcxgRkwt8VsfIgNWLF+i9f9AuTJT3WAgupldvo2tk4RFLbF tSMA== X-Gm-Message-State: AOAM533RGw4US9TlE8iFh2A7yC9Fd1T0zOqr13OBYArSDV1y+VZjCyy5 glc4oQndz54GVXigW2rDTHu0SN0g X-Google-Smtp-Source: ABdhPJzAtzlXOy3ka8XMJAS3v4vjqiRfG7XIHT2pO7tW/jO5DD8v1/elckg8b4+vV2jecEMyNciubA== X-Received: by 2002:a17:90a:ac0f:: with SMTP id o15mr5041338pjq.105.1592496761934; Thu, 18 Jun 2020 09:12:41 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:147:: with SMTP id 65ls2374594plb.9.gmail; Thu, 18 Jun 2020 09:12:41 -0700 (PDT) X-Received: by 2002:a17:902:341:: with SMTP id 59mr4087169pld.119.1592496761410; Thu, 18 Jun 2020 09:12:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592496761; cv=none; d=google.com; s=arc-20160816; b=fRw+tH1ooMxFbwBSCh7GC+sx3YDwtwE2iaNl4cMJHLYDW/UD9/F+whDJFC3OZyUJYQ +YYtw3Febv+FznGz84Lpv0SY5vE63OP8DKOTb5uESzm0/f1rmTJBl/C+b7Lq8ZKiQiZ7 dCDDx1EOzAej3c90/D51v9tin3vDNBNCmlE8ePlzfc36Qxx6nhO1dmp8HJT6Orzrdatf GPnPvzP9u+6J5rAOy0T5TGmF0GzpFrcXiwUGaXyBE4qg6YfeNHXX54Irr3VZA88rC3/Q RwkCqONO+JK8dUIYjQ/JW2HkNPLgzoebnttTeOVpoYyfmF/a4XYIjW9JFUktbojKPPRs 1lhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Fr3UyAk9GdSSwdSlzqC72aIW5MXTMXqS7YI03Tn7qfg=; b=g/V98h2II0zlew7kvq1ih1hO0HlEBoJW7VIzD0OspH7e2gy2CSs0D8pcUmRTAnYxNb sCDc2rgDwqobCN2OpYkgysB7NVlvMldhqQBddIRF8bsmGnNLZ6dVYrmhqsI/+bFn0vE7 uNPYFQ2Eue3FX/fIlfwDf7i/N8XJ3FSQESV29H8bX9RkDrSFtJhg4Y1y99QAJ8cAv58J MawV09Kx/qGlLCf7UE6JpYwLDBdcaHY8C470b/I2LHQeyCuHMqkmfLV1H2Nl4uu4fy3c EgMDnX7Wg2JdJFJU6pJPNoS7vi3wwOgHjpGh9JLrZ7mSP0znZ1FUdH89f+jjk/Cihhw3 CLIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Cz9Fi93B; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id i1sor4696252pld.33.2020.06.18.09.12.41 for (Google Transport Security); Thu, 18 Jun 2020 09:12:41 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:8d97:: with SMTP id v23mr4341784plo.3.1592496761006; Thu, 18 Jun 2020 09:12:41 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:b0c7:f192:869b:df87]) by smtp.gmail.com with ESMTPSA id b3sm3247252pft.127.2020.06.18.09.12.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 09:12:40 -0700 (PDT) From: Jagan Teki To: Kever Yang , Philipp Tomsich , Simon Glass Cc: Tom Cubie , Suniel Mahesh , U-Boot-Denx , linux-rockchip@lists.infradead.org, linux-amarula , Jagan Teki Subject: [PATCH 2/3] ARM: dts: rockchip: Add VMARC RK3288 SOM initial support Date: Thu, 18 Jun 2020 21:42:19 +0530 Message-Id: <20200618161220.219452-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200618161220.219452-1-jagan@amarulasolutions.com> References: <20200618161220.219452-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Cz9Fi93B; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , VMARC RK3288 SOM is a standard SMARC SOM design with Rockchip RK3288 SoC, which is designed by Vamrs. Specification: - Rockchip RK3288 - PMIC: RK808 - SD slot, 16GiB eMMC - 2xUSB-2.0, 1xUSB3.0 - USB-C for power supply - Ethernet, PCIe - HDMI, MIPI-DSI/CSI, eDP Add initial support for VMARC RK3288 SOM, this would use with associated carrier board. Signed-off-by: Jagan Teki Reviewed-by: Kever Yang --- arch/arm/dts/rk3288-vmarc-som.dtsi | 298 +++++++++++++++++++++++++++++ 1 file changed, 298 insertions(+) create mode 100644 arch/arm/dts/rk3288-vmarc-som.dtsi diff --git a/arch/arm/dts/rk3288-vmarc-som.dtsi b/arch/arm/dts/rk3288-vmarc-som.dtsi new file mode 100644 index 0000000000..1549ac4044 --- /dev/null +++ b/arch/arm/dts/rk3288-vmarc-som.dtsi @@ -0,0 +1,298 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd + * Copyright (c) 2019 Vamrs Limited + * Copyright (c) 2019 Amarula Solutions(India) + */ + +#include +#include +#include + +/ { + compatible = "vamrs,rk3288-vmarc-som", "rockchip,rk3288"; + + ext_gmac: external-gmac-clock { + compatible = "fixed-clock"; + clock-frequency = <125000000>; + clock-output-names = "ext_gmac"; + #clock-cells = <0>; + }; + + vccio_flash: vccio-flash-regulator { + compatible = "regulator-fixed"; + regulator-name = "vccio_flash"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + startup-delay-us = <150>; + vin-supply = <&vcc_io>; + }; + + vcc_sys: vsys-regulator { + compatible = "regulator-fixed"; + regulator-name = "vcc_sys"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + regulator-boot-on; + }; +}; + +&emmc { + bus-width = <8>; + cap-mmc-highspeed; + disable-wp; + non-removable; + pinctrl-names = "default"; + pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>; + status = "okay"; +}; + +&gmac { + assigned-clocks = <&cru SCLK_MAC>; + assigned-clock-parents = <&ext_gmac>; + clock_in_out = "input"; + phy-mode = "rgmii"; + phy-supply = <&vcc_io>; + pinctrl-names = "default"; + pinctrl-0 = <&rgmii_pins>; + snps,reset-gpio = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; + snps,reset-active-low; + snps,reset-delays-us = <0 10000 50000>; + tx_delay = <0x30>; + rx_delay = <0x10>; + max-speed = <1000>; +}; + +&i2c0 { + clock-frequency = <400000>; + status = "okay"; + + rk808: pmic@1b { + compatible = "rockchip,rk808"; + reg = <0x1b>; + interrupt-parent = <&gpio0>; + interrupts = ; + pinctrl-names = "default"; + pinctrl-0 = <&pmic_int &global_pwroff>; + rockchip,system-power-controller; + wakeup-source; + #clock-cells = <1>; + clock-output-names = "rk808-clkout1", "rk808-clkout2"; + + vcc1-supply = <&vcc_sys>; + vcc2-supply = <&vcc_sys>; + vcc3-supply = <&vcc_sys>; + vcc4-supply = <&vcc_sys>; + vcc6-supply = <&vcc_sys>; + vcc7-supply = <&vcc_sys>; + vcc8-supply = <&vcc_io>; + vcc9-supply = <&vcc_io>; + vcc10-supply = <&vcc_sys>; + vcc11-supply = <&vcc_sys>; + vcc12-supply = <&vcc_io>; + vddio-supply = <&vcc_io>; + + regulators { + vdd_cpu: DCDC_REG1 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <1400000>; + regulator-name = "vdd_arm"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vdd_gpu: DCDC_REG2 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <1250000>; + regulator-name = "vdd_gpu"; + regulator-ramp-delay = <6000>; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_ddr: DCDC_REG3 { + regulator-always-on; + regulator-boot-on; + regulator-name = "vcc_ddr"; + regulator-state-mem { + regulator-on-in-suspend; + }; + }; + + vcc_io: DCDC_REG4 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc_io"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; + }; + + vcc_tp: LDO_REG1 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc_tp"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcca_codec: LDO_REG2 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcca_codec"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; + }; + + vdd_10: LDO_REG3 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-name = "vdd_10"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1000000>; + }; + }; + + vcc_wl: LDO_REG4 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc_wl"; + regulator-state-mem { + regulator-on-in-suspend; + }; + }; + + vccio_sd: LDO_REG5 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vccio_sd"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; + }; + + vdd10_lcd: LDO_REG6 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-name = "vdd10_lcd"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_18: LDO_REG7 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc_18"; + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; + }; + + vcc18_lcd: LDO_REG8 { + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc18_lcd"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_sd: SWITCH_REG1 { + regulator-always-on; + regulator-boot-on; + regulator-name = "vcc_sd"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + vcc_lcd: SWITCH_REG2 { + regulator-always-on; + regulator-boot-on; + regulator-name = "vcc_lcd"; + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + }; + }; +}; + +&io_domains { + bb-supply = <&vcc_io>; + flash0-supply = <&vccio_flash>; + gpio1830-supply = <&vcc_18>; + gpio30-supply = <&vcc_io>; + sdcard-supply = <&vccio_sd>; + status = "okay"; +}; + +&pinctrl { + pcfg_pull_none_drv_8ma: pcfg-pull-none-drv-8ma { + drive-strength = <8>; + }; + + pcfg_pull_up_drv_8ma: pcfg-pull-up-drv-8ma { + bias-pull-up; + drive-strength = <8>; + }; + + pmic { + pmic_int: pmic-int { + rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + + sdmmc { + sdmmc_bus4: sdmmc-bus4 { + rockchip,pins = + <6 RK_PC0 1 &pcfg_pull_up_drv_8ma>, + <6 RK_PC1 1 &pcfg_pull_up_drv_8ma>, + <6 RK_PC2 1 &pcfg_pull_up_drv_8ma>, + <6 RK_PC3 1 &pcfg_pull_up_drv_8ma>; + }; + + sdmmc_clk: sdmmc-clk { + rockchip,pins = + <6 RK_PC4 1 &pcfg_pull_none_drv_8ma>; + }; + + sdmmc_cmd: sdmmc-cmd { + rockchip,pins = + <6 RK_PC5 1 &pcfg_pull_up_drv_8ma>; + }; + }; +};