From patchwork Wed Jul 8 06:36:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1453 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E14733F209 for ; Wed, 8 Jul 2020 08:36:59 +0200 (CEST) Received: by mail-pg1-f199.google.com with SMTP id o15sf34296707pgn.15 for ; Tue, 07 Jul 2020 23:36:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1594190218; cv=pass; d=google.com; s=arc-20160816; b=MwwUxkRbYIFuBQeY1C8OSmGyGPLYQ7Y7hdbpUX6wdLvwzMaQdSU4L0Hm4mVsostDPi wicBXfqEYEYarZrLujlbkfHNQ5Q8gr0GGqmVxvgmhJXZMtQiFYtO7gP8QHwpiGgy69i2 cWGfHWh5Xa60BKobIg1/fypOGJRAeXfcv3lDcEkg7DED8tCd+drojvULvkH9k20dZ7cU RWW2DtzOUWhtgdlBUNWNmgGY/W9u9/zPHj0jeHSInxUsaVOrCiSZWBZfNtbmgtQ2ZnrF 6EXIIFa5YFDAcz0V+ZFrrNcVHHJC+lyjv9gytlybor8SJfFV20EP++CGnoJgv0q3V+1w JjCA== 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=2Yg15v/SXmF4/29l6pY1ajnUJUINKPG4pIV6Xy7vTKw=; b=kTJN+68pTC47+dfBzRaLwLnxMheS2Fax7EWIX5yRV794+4q+rQVb0wo/B3QaVyL+XQ Jbx2ZTXBGoPD4aP776KgNMMFnjtMcdzGNlpZv7ovtHRQb18YglkpV6hjUKVTQzHeAVVk sd6SdOGXyacfOOghl9Ydqh0j/GR5pkq3FW2kFR9HwHO2Uj/FzLehiSRDPxRUutbwTuqb vZLe7/u82D8olUS2oMfsI085zxa4/nIQhpFUk4TuK5k0mk3H2TYjE/wh9GDFWf1fMz0D +UUbrw7RJmvJEQNPxBG0ULzHx0OLMusRnDgDGSdKgWqUPSY53ziIUGn1CYJ3Hcs7oQCa 34wA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nrhqPqHU; 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=2Yg15v/SXmF4/29l6pY1ajnUJUINKPG4pIV6Xy7vTKw=; b=q1n2JOkeOQEHgc+rUa0owGq7V0dIJr9saLSSTDhxnZYJhjDwVelUWPOMa0iqBazL7Z ChZNcHUZivOuUtuQ/8FGMljUx0FiEvqOLUCLPTl7opLln5WnfgnXv+oMLSFd4k0fr0M5 Uvaomu5e4ATY22b9+qpsD71TWZojPoBhQQEj4= 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=2Yg15v/SXmF4/29l6pY1ajnUJUINKPG4pIV6Xy7vTKw=; b=U9C5R7snXNE9lKcghRL0TwOs79YW4c80nd5zuxg+XDQOAe5a2YT13bhdTTwKsN4k8F c1cH5+cvD7u/CiF01esZF8yw1FodjufMBIAXhWgHZidVPwdSgWhozCsyAfSpS2BQp7tU FESCASGykegGh2+zxDqUMhaH9ZReXgisGpTeXfAAaB1bYT1464MO8pR6KTj2oJ9nN3cO W2+q/miCc9O/389IIV+xZxdkb+1ec1Al7P7wz4+b9EzsIO5vnkIssCT/k9s3JE6dGnCT /MejWwK0LMMa062+6HOlu5+XQE7lFKkrE3hw3Xq9xQ/FXmY7feWKU09cWRsyvITFGcox Mosw== X-Gm-Message-State: AOAM531mta16ALG+3U8ELrV150+9ySl/xix8wlQGYGqVKMZy/9BRnSkY IWzAJ5tYJTVStWNdUuTj3yF9eWi+ X-Google-Smtp-Source: ABdhPJwR0D0p2WBcNItO6nEB5lkyCbFsM1gW5y9gBo4WHdXxB5m9W/mtMQUm8ndNig9uY7iw0Fjvow== X-Received: by 2002:a63:8949:: with SMTP id v70mr47479974pgd.256.1594190218707; Tue, 07 Jul 2020 23:36:58 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:7b91:: with SMTP id w17ls561349pll.10.gmail; Tue, 07 Jul 2020 23:36:58 -0700 (PDT) X-Received: by 2002:a17:90a:d30e:: with SMTP id p14mr8449031pju.72.1594190218192; Tue, 07 Jul 2020 23:36:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594190218; cv=none; d=google.com; s=arc-20160816; b=0ZHkea/P9u1J36YtAH1Fxcr525dzjDc5+tHj4ePNcqofhT4g/BWtjHqev4FVuO+DeT jY5dxgV+L9z18xDQCwoKBRbFHY3ADOpBtNO7lppsnP+loGZWrQBPyUM+27R0xCmY41oG JuPQaTPJaM6KvPohtJoS+uJ801au1XhSg5CohIsCgILmUTcoV473zuaf29KTgKekNtm6 3Eg+Ix6VJVTFt58KekDzcj2rDm5KRwaViAZItvTOpEAyCB2nQlIBLUbWcOnGim+KNBOZ WN9UQMv5VwZ8+rym5HBw90bnOvBrZ41JypjG3WI/bAfJBAV88E1FN04v/4MtWAZDoX3U I/5A== 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=NqXQRBtFUvoVchZPgi3sQ7HBGlGFCLxiz0gQ606yhhc=; b=UTQerSkC/Vc03mgDv8pxy3DACLcEMv92qN3v/QghigWq8ak8FPN214ZRFj5sSFycUQ xFCQ1i4g5Awb4a7g1rNgBx+kCEe3zimknN+UOlKJpumQwbFEuJihIZF1fEtj/U5IHw+J CJWj/Wo3iG5aCWYNj18yrdTr23vu8FFXEroGvds2gogYpEL0WxzW6WXwvlkpmdV96h6j M5NNKbdH8UdgXK6n/yKQQvc9xXIdOy5Q2A5/lLHgKmTGVMehLM1gfhSa7w3yYcdSeZu3 8obSO6hsEZuKDHPXSyaucr4gnGPtlzLtdnE1juQtGbPFKCZ3IzmOL8bYfWU5i5o6xR0F eU+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=nrhqPqHU; 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 mw7sor6171478pjb.35.2020.07.07.23.36.58 for (Google Transport Security); Tue, 07 Jul 2020 23:36:58 -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:eaca:: with SMTP id ev10mr7772734pjb.151.1594190217851; Tue, 07 Jul 2020 23:36:57 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:ade2:f5f3:8cc0:52f9]) by smtp.gmail.com with ESMTPSA id c12sm24587898pfn.162.2020.07.07.23.36.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 23:36:57 -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 v4 3/4] ARM: dts: rockchip: Add VMARC RK3288 SOM initial support Date: Wed, 8 Jul 2020 12:06:26 +0530 Message-Id: <20200708063627.8365-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200708063627.8365-1-jagan@amarulasolutions.com> References: <20200708063627.8365-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=nrhqPqHU; 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 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>; + }; + }; +};