From patchwork Sat Jul 4 20:16:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1441 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4A5B83F03F for ; Sat, 4 Jul 2020 22:16:31 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id t6sf1400956pgv.5 for ; Sat, 04 Jul 2020 13:16:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1593893790; cv=pass; d=google.com; s=arc-20160816; b=xYKjMQE6NFJUt77BAUpgpMDWJVGKcLLtgrU/lcnfcPa2yOHDNz6Pp6CjT25/x4X9OU mPiQ/OGJKKK9Rpv7ABvOWqsf6xaUVScmpwUjYdkZaQ6HzD3yoVbPSPPYglA2oO5dChjS iKOKqJGy6W/Xg7OcI15fWCg98SoC1/IKVkGEMShn+P4gzbhZrqZe+Dxr1yGpg74PCASr MKncrl+jMxfAu4ytuDk/hnH3N2KeneH2zvlEPu7TGnzTRiqagxenkRjMdowfN53YUIww JvPbQjMvyfkh50XHR4JR9qYxacKjgThOJo7aIgCWERRAApZHVLj1CHsh/GZCwQurjUeH k3Pg== 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=AyR0G0SN+JBdOshLwuyX+GNF6kOOmvmkSl6QFX5j8vc=; b=h9B0uiOtTVFUqF4oP4cFTSQhygyEmsznB6gSTi9XKNqgcXlcd2ukq9UU4pHYAWvyrd FKXxO3CPkIjM+zjMNPjCEKoEQzrLm0vU5Ls1GSzU7+HvCkJigv0cRfAZVn/IH5GN4w9G iozo44bXX/MLVH0GEb4OZDiSWyXOk5Xkk8g9uVDsrrBQlq23P206Cfagp1f1SeX8TxNq kXSybECTw3llzaj2uFcsLAAHhxI9iC6eGS2l8fCPYf3hBxR5Nz2dP07/zDEIdX0p40qq vHRuss30eoVZNCCN8BaRwpNGH8S0whet+Kf+tBFmj2BBy3IJcHKNnyD1wKYa1fYrqXsZ 4F5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jQCfdmTz; 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=AyR0G0SN+JBdOshLwuyX+GNF6kOOmvmkSl6QFX5j8vc=; b=ZEXlguQq6U3IoiMeNrgeHSDFPttNu0Cz31RNFsb9/9rgS3X03CNs0r7Qe7fbxh2EkR jM6bWHJU+K6D0xI4dgAwkaUaWqeBPZKrRYWUEl/E7XAFGu6UohKjmMCxRgKjbOLdJlrM ueKKH07smJPxeRt1QQYymkJ5tMmRQ/ZIPaTis= 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=AyR0G0SN+JBdOshLwuyX+GNF6kOOmvmkSl6QFX5j8vc=; b=a9taLgHhjMEJ1NEHrIEkzEwNy6AercISgbdkzdQDbIbxLWDP3zho1ohIJq2UClIt18 tqstoJP5Yd6JBKkdarAwnYha0oswXLeOBzTaks9BMm5l2f6wje1253NAnvbJ8kTJJ7DM EnAcKyCRO5Iw0jL9nspwxDLE75aJjPPKtzKU8yoOAS/V/OSZEFMrT10v8ObtlHON6fyX SyDEP+VT7kECWdKgQU9O1vONAtVU8zO190/9VtpJQcNqOIS5QLKWxzogg3yseXEE80G6 8dulzFO4nXwDrQ3OCUz9RZmanArNrswE6nw5gZY6eiOH+dJ7cRnP8JnXdTy6R5U0famj WbWg== X-Gm-Message-State: AOAM532hY47R4k4RhYLM6DEqQDadT4WywYCSdh+86wNmvt5MJp52Xkxw Qn1V/2I9JHhpffZ0pAZmBtbrjWlV X-Google-Smtp-Source: ABdhPJxg0ExZF2ifQ1reF7b40RaB5r5BBde8XCB6MutALsp7ncfSBqbEI8HeqFE7CJV1CxpGgJzaZg== X-Received: by 2002:a65:644d:: with SMTP id s13mr34630407pgv.103.1593893790118; Sat, 04 Jul 2020 13:16:30 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:ea0e:: with SMTP id w14ls1495122pjy.3.canary-gmail; Sat, 04 Jul 2020 13:16:29 -0700 (PDT) X-Received: by 2002:a17:902:9689:: with SMTP id n9mr10726252plp.160.1593893789646; Sat, 04 Jul 2020 13:16:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593893789; cv=none; d=google.com; s=arc-20160816; b=RIZOTteprls0tIqMa5k9nMNLiaolSyQO/Tbi787reSxOMhuSinzZa0J3S8svnfUnOC CBP3ruu8ktYT/gEupK1G2VKuRp5uh7oiTlUAGIixe2KQFg5VUF5yLnd9RGKkxrI0mXMC skPmpmb1ClaJzsberXD1A1kmH29ZDRwntf8KQ90d/jQ1qUTgqGU5KeS08dORiWTO7aLl ekifszuGFZLCViq5tUTpdEH/rtVQKYhi3hDajFinRiL8S8zYOB1aRkmnWvd14nCyoKsw GmUdN4ltPbD6P2S3VL4hFkyFWgNrq34ZoazrPK0DY6ry45X+hTORK2VCk3R40FMiBllg ZGhg== 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=stgYGI05GMpLc1dby1HK3//+vvGghHGDspfaIVM0Hak=; b=FcRNUurR7xaGKIqCLxWB8kNu1VjFc7a1M2fA1Yq3vyWA9bPOi6ND6I6VbiA/TjlXnd HekGwnEtxF4+o+OeJG7+tsknG7Hcv4V9X8Ze9bIQmdzYPBDvLzyiDNYG5f1aetA0f5wN 3LszbJq3X/u3zYSQP5jetSW5znyrhVZHheZXgN71foN9dtpqrKauQPjcl0tRQv/QoRvB 3omBtBlO8Dbj+JrhlJWCYqi2QVRoJL+kjvLOwsfwnaZEQDIdCh72G5g9dVXEcxdrYYW6 KNTfiu0/5EhlndfEa3Hwo5db+/IwV8HM+FSj6J0BKoKRcKJimSQidJxsOtIkQqaSG6ep Ht+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jQCfdmTz; 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 br17sor2293791pjb.13.2020.07.04.13.16.29 for (Google Transport Security); Sat, 04 Jul 2020 13:16:29 -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:c915:: with SMTP id v21mr7975668pjt.48.1593893789294; Sat, 04 Jul 2020 13:16:29 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:bdf4:3289:4b66:dcc0]) by smtp.gmail.com with ESMTPSA id d16sm14960791pfo.156.2020.07.04.13.16.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jul 2020 13:16:28 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Cc: Tom Cubie , 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 v3 3/4] ARM: dts: rockchip: Add VMARC RK3288 SOM initial support Date: Sun, 5 Jul 2020 01:46:03 +0530 Message-Id: <20200704201604.85343-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200704201604.85343-1-jagan@amarulasolutions.com> References: <20200704201604.85343-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=jQCfdmTz; 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 v3: - none Changes for v2: - drop pwm include - adjust dtsi based on trivial changes in 1/4 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>; + }; + }; +};