From patchwork Thu Jun 18 10:08:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1399 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4C3B63F0D3 for ; Thu, 18 Jun 2020 12:09:05 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id b186sf3966867pfg.10 for ; Thu, 18 Jun 2020 03:09:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1592474944; cv=pass; d=google.com; s=arc-20160816; b=KNJsMpj5RuSQYQTCV478GpCLrf8cG1vWomHUWp+9Lkr3WEYxeRshU59lFijaYzeb5U I3crfMP3+MDs3vCaMbI6x+F8WlCol6gfam3Qw9kJUUwjTdcBd/BoCHNA5jTpV/XOiM5T QFLhbvwXjC81jIo1u1LpNjsw0oKflmFuAqykExSN5IwkF3p/vzvXoEd+Q0otJeM+Jecz L9hMEjRycWQAPk8kj3pOvEpzzkvusgn753/kqdZEIhe0xlxpmPjK7ftI+k7g9a7EGJor e3JoKpZKI/l/Luem7ykHZ3n1FxOFOhw2Hc2t70UPcrlyJSN1e+QKbetR+jCxh72Hsr+y imWg== 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=VD2HuT2IrNRyzdWFKKOWi8T3Gi4wORQ4JEN61beNgbg=; b=mIJ1S50CdKZK/GEXu03Vjvimjyla2OZ2CJcdv93b4JbKlNK7rICYfYOcbbYggw3jjJ hkusjl28OnJUNhcsvj2Td2j+vxQYMna5a+Ptobtgv8fcQXvbZpSFNbx7UAz63WFA46c3 j8UvZIN864WMnpFSIyf0dTT3uD4JICEF2Kxyw5b+TfHG1+IIspPahKdcvT/oUVJjVID8 dMW5xm9BS9B01qkFnKTTUsj+I2oxb8P6lhtaBbh42ETvSJaLxHEht7ChpqaPsJxkHxPK lEro11+fR/a1WkEaXEIIItRXEvarcgYrXIlFd3eZ/FCfiM5cGdpj6Dti2kHqVD/FJgeX +Ozg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="hpyufXX/"; 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=VD2HuT2IrNRyzdWFKKOWi8T3Gi4wORQ4JEN61beNgbg=; b=rW+DHE3XJIH+8pngfhyqok+YLtTPb+8iHJ96gI3fuC1m4xXBCBz1OUH7bKp1CE0DJh O8J5g+sBGhkdchvIrRx+5GdF9mQlNbPcrDG8IoOuKj0rZu7eEF7qsPwJVf37h+Xtk3sD vbKlAekfkg4kYO1URI7Ibsl3Q7pvlQKecFNTQ= 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=VD2HuT2IrNRyzdWFKKOWi8T3Gi4wORQ4JEN61beNgbg=; b=e0iI/drxazvR/Grwyro+sjNly1f7ge5ufodD6EOV09WjHuzff7/GkknkdtpJ63dzEP WU4Hmj9Px5UvAVPlvwsUcB3cfpbWNcnXE8uLIll8n7kn5jrJh8qBBF085re+e6lV2aiF hzy/zlamn0/9c265G6buUZ0MfUjzmJcetIbcKNJ3qDgYmpbnkI/t7GWnrJMLeJlRH0xD 4eopfz41qBLV/uIhzmbZYhdvWZrFjFx2bobhXy7cmenl97BEHs2vT/20QO+daYPjW0AR yzatn+Ob5zsDI4hnr38H3HdTD0hdpuyK47M8fZL1BD7Xr79xrVtO5KM39n1lsH7VsON0 kpcA== X-Gm-Message-State: AOAM533TX8G+wnHjkVqVd00FZCFgIPSKJaCF2qgyKUzVhhCzFX+KJOFq JxExP10E8iPrjiIHP5BJS/OuMa1f X-Google-Smtp-Source: ABdhPJzU+JpIsekKrMwximBPeznL9T//QhfL38jiAYx+bkGhj0c1kq2BMHKeVfkQ/nqZtTj9WbK6Gw== X-Received: by 2002:a63:e455:: with SMTP id i21mr2762144pgk.23.1592474943942; Thu, 18 Jun 2020 03:09:03 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90b:384c:: with SMTP id nl12ls2231869pjb.2.canary-gmail; Thu, 18 Jun 2020 03:09:03 -0700 (PDT) X-Received: by 2002:a17:90a:d305:: with SMTP id p5mr3345259pju.44.1592474943389; Thu, 18 Jun 2020 03:09:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592474943; cv=none; d=google.com; s=arc-20160816; b=INM6Jswra2DRg34sJFXtWMQxPJXe7oPFsigpmQ04G/XDGwmypUAN7uZkyLadN+fxDD 7JOUVdfesXjiMfv1sT5AUy+TNVo1qNewUChUwlQHLTm7VVAq6Nzt59kXnQTN8sBeIL84 5FwaOfSScm2qQWDbx6yTqBZffNfAfrahuFaZ+XfNyeuQ4noo4XcP6q3l84ggI21acIxe GIuzv/e3HwhioEkzhplCd9mGiEGrdUGh2fOVIEhdpGw5vszGBEI+zGefstmaOX3e1v/Q IYZwp5GIi0jb+ejVMpuWwKBjkj8Ty1ANZXOH3fX0FHFjUOzJvohuisfVyB6V5RsVgeEz ijPw== 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=OcplZ+ZedkXeLeGU4PsU+3UbK42Jbzafrwx7wAtyyR4=; b=wKYjpM5qbFlzuxRIpLG7NVwP0Ird4m/eJEOyUUVMPsVdAoCUJ5r4SXOK1OTJEB3nBv MeN2Racih1TwplCoYyD3iQaOffEikZfKe4CSXm/JAFglA8ZZBiXq1PHtMTpAU69NVQqZ VkmGeDgf2Cjz1wcgaPhDDIV+qE4BPfuEPPE8j5xQnWqZYaGHbQKMCt5o63UuHC2Bs4up J1pxck0wVx19q+R6ljWyQshcPcuap5Kd38ZHsYUyR5BxIQIV9Awml+kohfd8ymltv3bw wKYZyurFuY5c8yDC7bxlEnVj4nUkO2fdpW0GbuJfNsPqro1LZ+6pbWFDKvPKk5nHdAon jKVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="hpyufXX/"; 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 z21sor2953140pgu.54.2020.06.18.03.09.03 for (Google Transport Security); Thu, 18 Jun 2020 03:09:03 -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:a63:ee0c:: with SMTP id e12mr2533914pgi.83.1592474943008; Thu, 18 Jun 2020 03:09:03 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:b0c7:f192:869b:df87]) by smtp.gmail.com with ESMTPSA id o16sm2190793pgg.57.2020.06.18.03.08.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jun 2020 03:09:02 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring Cc: Tom Cubie , 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 3/4] ARM: dts: rockchip: Add VMARC RK3288 SOM initial support Date: Thu, 18 Jun 2020 15:38:31 +0530 Message-Id: <20200618100832.94202-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200618100832.94202-1-jagan@amarulasolutions.com> References: <20200618100832.94202-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="hpyufXX/"; 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, 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 --- arch/arm/boot/dts/rk3288-vmarc-som.dtsi | 298 ++++++++++++++++++++++++ 1 file changed, 298 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..1549ac404428 --- /dev/null +++ b/arch/arm/boot/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>; + }; + }; +};