From patchwork Thu Jul 9 10:07:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1466 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 29E6D3F06D for ; Thu, 9 Jul 2020 12:09:42 +0200 (CEST) Received: by mail-pj1-f71.google.com with SMTP id h93sf1263191pjb.2 for ; Thu, 09 Jul 2020 03:09:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594289380; cv=pass; d=google.com; s=arc-20160816; b=PwsopT55N4rfTEPBLtlZcNwzWoo+ZRJc6x/tCbNS8LFh+w9wtZkaOwHOOd1eyRyVUa 198jWOI9BqP9zsyV7rKcZoM9Cdm4TLNL/FrVCH/4egFgSrwnrIU3Lx40iMC2RrACt87J aeyjLSl49Oe3JjCjsgj6FaIzP4t1EhEmXphSRW1glddpQRmvVwXZUWeZLWw/mSjH822T J5LPgpGDdT9pajz4VR/SejIJtDjy1k3bEy/OXtANsi+hqNPtdVJgRzfYRgxGvabS4fNU 7/bRGVWHDsty0gL/2pts6bTQh3+oaky8pw/Ab+kcz0m7xkWFxwEuniTPxd3juDCD8n/H 74Dg== 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=9cJu0Z9aqr2OAt6vWeO99/fi4bv3mu8OY3M4mIU5bno=; b=U/CPw0w3iBgA9d0+q7j2CeP21i4fj7XXbqSnNRZlBI3T0omeWfb00qSDjPOF7Zf2iu D6lamkRjn9z/CH/Ze7lFp4W8H+JkIWTrjB0JYClSwFayOOPPp7ThJLo233ZqFQdLtg8i 2OfEqjx6mEXjQ0lXicd+aDNmxXal6C53k4NM1PAk4vdeLQl2dNqjJKCf4O3Xilx8nztT +plgfotR7oehqUtnEYVnE88eqci21UwjLavs+RrWIe0Fbzdk/+Qv3HIFgLdhHRngd78P KbP5E+bLMdG1/9n1IEOIP2xOZZlrdpEj2DTZ9labF+lwGGQa+aJiojbJDcZ2ZLVsg5ZV 26Tg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=k7ImIHHc; 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=9cJu0Z9aqr2OAt6vWeO99/fi4bv3mu8OY3M4mIU5bno=; b=ViLCDl0jnkzRQ5GHoUleDN7f8WoYGqxkNGsBRvhy/RuOiJTd94CoF+iJzBd5d6Lzzw 0SryzKGsjFp9K5iVK1dLVJwGchSnURdr4WpiLuHoSJun0RDLhQ/mdX+6TUOySHMPRPl5 S2wdMYeFero2aIGj0YVsfIrHt8JzdIy9w67Lg= 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=9cJu0Z9aqr2OAt6vWeO99/fi4bv3mu8OY3M4mIU5bno=; b=syNOxuZ6oPBcFAam+OAuWn/V8TK1v0gVrx8O2xH2ITvtFi/lQMNRqhiHOPPfWwhl1K zwUgqrTOffDWWxXO1BTe1x5YhqIDnXY3y4NQbr5ZKp5/YiEjs/ozX5RsFdlhFOWG1g3R gKbiQHJeiWxabjPtaiBVO4pzbAlPXtKzDFUfuFthVMPRXhbfAnuK5sBM5j5zfv+zewZ1 DMQijB/A8YlsT41Bjt4399izGSLLx5+71ieNd2GAQYR9dQknHaCoIxs2oFdQ142aUwZW yHPvicCpL3smP7KzWGum0FhnTa6fc7XJusl7vYC0E8yPC/wVdcDHuDfpXP8sneIhMBfT 4arA== X-Gm-Message-State: AOAM533J/kH8DZnqrsEX2ip4+R/GGPBmK7lxdKO/eD++dU8EzJ6G63rH yujZM9i3JrXKSbmqdxMcrpC+dvej X-Google-Smtp-Source: ABdhPJxv9UoNPevaoMoE760ocnsS3bbzsjnE0t0hXGPQAakYPBUpjownCB1MWhBlP5mFHjJRiogR1Q== X-Received: by 2002:a65:644d:: with SMTP id s13mr54104847pgv.103.1594289380658; Thu, 09 Jul 2020 03:09:40 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:ce4d:: with SMTP id y74ls1771659pfg.3.gmail; Thu, 09 Jul 2020 03:09:40 -0700 (PDT) X-Received: by 2002:a05:6a00:84e:: with SMTP id q14mr57807511pfk.309.1594289380218; Thu, 09 Jul 2020 03:09:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594289380; cv=none; d=google.com; s=arc-20160816; b=wOmGpkgGDH5YSQNBNJ5rhQgZoeE+pZLhndsvGQnzPWHTrKoqdp5HUxbpfSfFeimkJx +WHAodrUL46DamAE4jwZy0QOu5AzjfN48YAGSDNh2+YfZ9Z1i6uPq/Lk9o1nrb9Spo0r +iPoUoU1PS549rChpsgEqDVv0MP9cJvKe5VitYE8zqG9328ZGZkMWgUrvbY2slCkIoP0 H/iUFVxyIKP2jdWVww+0YpWZm5As2W7bxKv1ZC1o8QB+OGgqp/Cj/C8tQr7N7U/nhKuC qKQEAhUxfY+XpMyS7JM+05ZO0ZmNKXg3cIQZr89LIpD4UTFj0WShsVZ/6agxTjOS2QFU PINQ== 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=5zxC1xQwcAxpqIOKvr+x57/yu/LASlbZKZ/U/0+Q6YY=; b=iKqgDRfE1HOefx23jklexmgk80bsOgP4SEqVesZu9G7QpdzFmP0qY56sxCPaZiuE0h V3cfEN5XYt9FUXmEm+VHvfjeLOgA6mCSO5zaQ9twe5+f9hAavFYAR5w+9NSwI8iRGDYw kN+Mj5ggjUbJbVT4MJDyKBL7U9IxJrb4YxKVT2+qJmyTtfoBOf2xfrgKoJgo+WL7f1E2 Wm29cWBbKwBYUrZYVVVwA/jkvR68/mQiNJq9EgonMXeBhng8fq/Evb/RxiBiicbDbudZ ywUtMd5gEcBGc4KC8xgYdIB4ZILaxmRAU7DWSS92T2HVR9F4NhbD7ONE7UCyK8yzHZeQ k3Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=k7ImIHHc; 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 k14sor3245376plk.15.2020.07.09.03.09.40 for (Google Transport Security); Thu, 09 Jul 2020 03:09:40 -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:9a02:: with SMTP id v2mr39443442plp.59.1594289379870; Thu, 09 Jul 2020 03:09:39 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:24b9:69b0:e917:1d11]) by smtp.gmail.com with ESMTPSA id ji2sm2076527pjb.1.2020.07.09.03.09.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 03:09:39 -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 v5 3/4] ARM: dts: rockchip: Add VMARC RK3288 SOM initial support Date: Thu, 9 Jul 2020 15:37:55 +0530 Message-Id: <20200709100756.42384-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709100756.42384-1-jagan@amarulasolutions.com> References: <20200709100756.42384-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=k7ImIHHc; 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 v5, v4, 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>; + }; + }; +};