From patchwork Wed Jul 15 08:34:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1498 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pl1-f200.google.com (mail-pl1-f200.google.com [209.85.214.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8CC3B3F1D9 for ; Wed, 15 Jul 2020 10:35:13 +0200 (CEST) Received: by mail-pl1-f200.google.com with SMTP id w8sf1965122plq.4 for ; Wed, 15 Jul 2020 01:35:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594802112; cv=pass; d=google.com; s=arc-20160816; b=mp525ChumJMVRgqeZWfvKnajzS6WWfODXjwdGZw9iEvxAlsNdlxzgGG6Z2U8Gmd6sd xJKVzl2IMQy08/2Hi3UXwidADDKWLTG/p9nU1Ww7ITXlFYqPA93HkD8PZgvI2fzgUFJO Fqt1Vjbysgm1LaC3ketaQ8Y9aHnWhsxiMv5Ai/8paYoayed+ZxOcCK0YbLoeFFCPZHcM pFtvRy43srctA8eaGCm1hO/9Jcm+cx3SaiBDMCQQqeXGcgJ7Qlgw2AhiZ5lcD4qahhqD v4gx5cUvH5ZlNtgjnMB7K+u/piTyl6iIhMBYphMJERGTO9lgbRada5pbtG0G23Ld+DzA 0tgQ== 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=Dxb43y9qFQHCDyewKQNZzbdgPht/5FYlAtTtGCS0eB0=; b=dsGvhdhD114Pb584TY6TqRdrSsJg40cAV5N2swbQquqamlL6QQAIrcvDUTAXmmcVUX xxMxCpU2+2LxZj+zdPzgfWyN0mPfPxCEaYZ/Tw8Cg9zv98xZ9pPUzT8mxLRpSXJJLh6P 5C3P/Klv8EuiWe0LXq8sFgMSDMhb26bxIR6Jg81X1FVYlTpODstMGUHpFo+W5zGd0O/7 yQj8ZK3VeLmeQfNRKfNf8iARO1AWB9zZ+xfzNdKQ0KYt30B/2EYC56XBlPdb0+uwznBu rufZOCTiaHR8uUFh/+lJY0Htp84JTY4GPnUnjztfkokSqJ+EBcpfGLIR2jmfAv5TU4IO ScXw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gnd03RJ9; 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=Dxb43y9qFQHCDyewKQNZzbdgPht/5FYlAtTtGCS0eB0=; b=dwQjuYdAH+MExd3002w+FeSatUkuca11PavxsWJiTXCrkHQ24o8uVwN+HCm14sOBl+ r4SddEdoEho03yhCEO9gg1+f1uc21boWKMabmhH4DO7eQ0a/vBq+IBQ8wdUkwICeviZy oz82QDduJlG/TONAW2U4vJibDJA8XzvNr7MZ4= 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=Dxb43y9qFQHCDyewKQNZzbdgPht/5FYlAtTtGCS0eB0=; b=MwMCvvflEoIzKVRMpRIvyOdTUFUdpiUEeUFSAurCEremL9eciMvVLQ3J+mFaLaoKP1 QUV5mOvtO1e37SUkg/JLqIwei/h7ShCPCBBFKiLBvODOJSldJFkLY7MknUqQK9MbQmvD 5iR/dOJDfYnop/rMhF6HY7o+UxU52DcdOnzwjOvY5Vu5dznCXMY5CbVBqtPhcPxJ1xIu mMxo+Z8kdz75qwBJzuhEU388ZCGLQj/zx1AyUueFfYm669+HikNoJmYUf1pmF7t9oS2f v623Q/Db1WTZcQ5oWH7kp75Ct8E4qeolef7IaDHPYQCo3krQ8uH4z2+Us5bhb5W9kFSR Cx1g== X-Gm-Message-State: AOAM533hSYMG9bCIHGsnmcsTdlV6t5AYQq3nHMMmQmGaETEuNl1QT4sa nPhTH/klbKx+b++GwpK9CR2fbl7d X-Google-Smtp-Source: ABdhPJy/KVrbOlm6UJQaqCoD3GuQe/QYZq0Yix92F8n4dlErQD0qLiuWoFDUXiwwGDH97QDLOOebcg== X-Received: by 2002:a17:90b:19d4:: with SMTP id nm20mr9669167pjb.206.1594802112221; Wed, 15 Jul 2020 01:35:12 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:38d:: with SMTP id 135ls641699pgd.0.gmail; Wed, 15 Jul 2020 01:35:11 -0700 (PDT) X-Received: by 2002:a63:5806:: with SMTP id m6mr7129258pgb.362.1594802111681; Wed, 15 Jul 2020 01:35:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594802111; cv=none; d=google.com; s=arc-20160816; b=Srxsx6eWnFPeJokOX8a03lsKnm3Lv8DNeeUt7kfcPDKXqVwKCX77jZp18sM5+dukh5 iKz6ZBv5RulgLjvj0S0POdqEoOTKa8ZF9pCIj67Q3LA2Vs4LR+BbMtjgplf4wVDhi91E JpwhaoqyFPusfOXmSfwO6KJ0VnhfXm/YKmcVvaJE2b492APni+HOY2aX4DlH5dx8t9Wj p4SvmpCzZu6MFaBuhvJzAY7nzTaGFvKZDzKgmdaAJUfCoimMJg6VBmzS0FO2CxaeBQo1 bxzgMmQXCjZ6Dy06PAxMcWO4z9dvs/uvtXDRpQOBi5y6ovB4eX3bHWEgNlT8LLzIOt2I AweQ== 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=QQpdm3j3v/qHsRB9h01sHsvWi3OKWTpBX209yVhTeXA=; b=kJqi5bWJGMfoLQonLtI9/ngoDU7LGYqdT0Y4LLg++85vZo7QhpDgFJA6Rz/siqEyuA 6kfVSoVf/lS4VaXBIj67D68H6osNU1Mgq0+eIdNnszbDrpyFHH98yf0SdQ1eERA4y7v2 jfdW0aNLtQOzwRApOKrsK9FVvECd4dH2IYMsmM/kJR2DSruX4uGJR3smm28yRgiyPIab I4J4pnoQk3JDl4ZRp4ubhWcCJI8SC/g5VVkTgFEdMYLGhUgmk0G4Yndm6sX/hbjCaQ5b aiY9AnwwqboDNdJq5rt+PbRvrZjjuR/IPJSw6I+c0MxsCgpvHkl0w5psX2+sI9jYHj/g 3xcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gnd03RJ9; 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 m6sor1449987pjk.31.2020.07.15.01.35.11 for (Google Transport Security); Wed, 15 Jul 2020 01:35:11 -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:90a:a887:: with SMTP id h7mr9168908pjq.0.1594802111284; Wed, 15 Jul 2020 01:35:11 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:9887:56a8:c916:cfdb]) by smtp.gmail.com with ESMTPSA id m92sm1467584pje.13.2020.07.15.01.35.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jul 2020 01:35:10 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Cc: Suniel Mahesh , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula , Jagan Teki Subject: [PATCH v6 6/7] ARM: dts: rockchip: Add VMARC RK3288 SOM initial support Date: Wed, 15 Jul 2020 14:04:17 +0530 Message-Id: <20200715083418.112003-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200715083418.112003-1-jagan@amarulasolutions.com> References: <20200715083418.112003-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=gnd03RJ9; 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 - eMMC: 16GB/32GB/64GB - SD slot - 2xUSB-2.0, 1xUSB3.0 - USB-C for power supply - Ethernet - HDMI, MIPI-DSI/CSI, eDP Add initial support for VMARC RK3288 SOM, this would use with associated carrier board. Signed-off-by: Jagan Teki --- Changes for v6: - none arch/arm/boot/dts/rk3288-vmarc-som.dtsi | 270 ++++++++++++++++++++++++ 1 file changed, 270 insertions(+) create mode 100644 arch/arm/boot/dts/rk3288-vmarc-som.dtsi diff --git a/arch/arm/boot/dts/rk3288-vmarc-som.dtsi b/arch/arm/boot/dts/rk3288-vmarc-som.dtsi new file mode 100644 index 000000000000..0bcb9f067d66 --- /dev/null +++ b/arch/arm/boot/dts/rk3288-vmarc-som.dtsi @@ -0,0 +1,270 @@ +// 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 + +/ { + compatible = "vamrs,rk3288-vmarc-som", "rockchip,rk3288"; + + vccio_flash: vccio-flash-regulator { + compatible = "regulator-fixed"; + regulator-name = "vccio_flash"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + vin-supply = <&vcc_io>; + }; +}; + +&emmc { + bus-width = <8>; + cap-mmc-highspeed; + disable-wp; + non-removable; + pinctrl-names = "default"; + pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_pwr &emmc_bus8>; + vmmc-supply = <&vcc_io>; + vqmmc-supply = <&vccio_flash>; + status = "okay"; +}; + +&gmac { + assigned-clocks = <&cru SCLK_MAC>; + phy-supply = <&vcc_io>; + snps,reset-gpio = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>; +}; + +&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 = <&vcc5v0_sys>; + vcc2-supply = <&vcc5v0_sys>; + vcc3-supply = <&vcc5v0_sys>; + vcc4-supply = <&vcc5v0_sys>; + vcc6-supply = <&vcc5v0_sys>; + vcc7-supply = <&vcc5v0_sys>; + vcc8-supply = <&vcc_io>; + vcc9-supply = <&vcc_io>; + vcc10-supply = <&vcc5v0_sys>; + vcc11-supply = <&vcc5v0_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>; + }; + }; +};