Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp814150pxk; Mon, 31 Aug 2020 01:31:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytZa7Y8qaP/XJOpDANURQ+a0DMf5LghT9RXXG5tIZOQp9P/NtThXphCzxAeNLnxaTN6mJ7 X-Received: by 2002:a50:e846:: with SMTP id k6mr172171edn.27.1598862698534; Mon, 31 Aug 2020 01:31:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598862698; cv=none; d=google.com; s=arc-20160816; b=ejpHWI5Q3zMQnN/YQIpYaVY8cQVJVB7dda1kmAOwa01bd5+qFChpZuxTukytbPOyML CweDPFEknsQW6KnjnwQWqXDzz7YamaCWm/0tx9DWKyGqtZFX7jND6BVyCev6CuSgY13q nPSLsNQTJ3ySmkTlMEG5Yqp7oDyP6TcIBKsc9pkXAQgdPuIuUtCp0sx3ZgZilu7p2D4e Vkj6unUqeZTwasHb7DaAL8gZ5zGgBOEnodG+6UOM3l9KyrXilRVmvMy3X828mBg25BJM kL5XfdMPpTfLuL5Pai2AJkuiOmhweAn/+lNUoItm6FlzRSFMax7FC5AK6Q4z05SueoHi J9eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5bmGVS/nnClmGdGVSnVd+7lBlOmwv+P4+nNohCNZM64=; b=K9Zei/kQJBeiURDYgT97jppAFbq05T9OYc2Srizdg9U5xL1YWcRlnqcUuY5ZYalP48 8lH89ikk6pjrN0tmggHvj2w44hM47/lOBDfBqiEm3H3xLSU5mOFqcL8Hysr4i9RdsmBk DAB+3GGF+L3eBx9QblweNR5z7xt9wFRQu8X98mHUybxQNieKPZITJ1P6BvVtxWSL0w+E NGaEcVpKJpB1bdhDWk5jhc4qnZ4UYlDMvyGIqQf83CGMX62y8QbzjTyiIyoukpmDc+fc oChq82gjWMfM9nWKya4re8reb88v0OUrZ1ScPX8xa2hzks2Wxok8lc/pLcnUNIq8pvQm K5MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XaWu+lGX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h89si5884654edd.480.2020.08.31.01.31.15; Mon, 31 Aug 2020 01:31:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=XaWu+lGX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728271AbgHaIaI (ORCPT + 99 others); Mon, 31 Aug 2020 04:30:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728223AbgHaI3n (ORCPT ); Mon, 31 Aug 2020 04:29:43 -0400 Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F380DC061575 for ; Mon, 31 Aug 2020 01:29:42 -0700 (PDT) Received: by mail-pl1-x641.google.com with SMTP id x18so1458632pll.6 for ; Mon, 31 Aug 2020 01:29:42 -0700 (PDT) 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:content-transfer-encoding; bh=5bmGVS/nnClmGdGVSnVd+7lBlOmwv+P4+nNohCNZM64=; b=XaWu+lGXMesNK+tMqt7/wHdqonvaLQ7OeAtp4gK7w7ulHBpkWXmaKwuDFlll+HkN+k j5vdTWK81PJaMOFhetTQMCcgPm305T01fa8JKdqnslKLxuqf9JLWCb5EbncZspVYagTs UfCUb3RFxdHaVvOXlJ1isKXkjPI4ZhkY3N4wQ= 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:content-transfer-encoding; bh=5bmGVS/nnClmGdGVSnVd+7lBlOmwv+P4+nNohCNZM64=; b=jdrXvQ34PAjSUyQByeKF6kQ4MKBY0rhgxlAyx7DCLjG5NTb/Hwhak08G6NQ4DDuo2i NBnslWv4yYcCUnY2ODcPFhJF0AqwrYT96wKw+vyOnIZOr8JwxyNY+44w4faK2dO2+MQC ggpPF9hs+fzyRErPBscQB6BdQJsGPlyL+EANqXpKLO/YhulO3ZcQ9XuA+pNd28WhhRyf 03JNyH8tt+f+4DHZjbkDeKxs8vahGzP6rPR/I106/KoHw8w6dbPUlJfb16kM45Hsf4uq wXCFag+qS/p1FweR+jVRVC5KHkf3Nb4XQVrClUcQMGY2b8S4IM/ov90YDkgDO5ojjbKF YQxQ== X-Gm-Message-State: AOAM532xtRDjt8mZyr21+zv2hTx5NYfZwYUwO5LisJ4QK4i9o73PxgfH PDWs1bQFNeF4tMD7uMGd+zcYuA== X-Received: by 2002:a17:90a:4382:: with SMTP id r2mr387193pjg.144.1598862582124; Mon, 31 Aug 2020 01:29:42 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:d50:45fe:aaf3:66ee]) by smtp.gmail.com with ESMTPSA id b5sm6411335pgi.83.2020.08.31.01.29.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Aug 2020 01:29:41 -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 v3 3/7] arm64: dts: rockchip: Add Engicam PX30.Core SOM Date: Mon, 31 Aug 2020 13:59:13 +0530 Message-Id: <20200831082917.17117-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200831082917.17117-1-jagan@amarulasolutions.com> References: <20200831082917.17117-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Michael Trimarchi PX30.Core is an EDIMM SOM based on Rockchip PX30 from Engicam. General features: - Rockchip PX30 - Up to 2GB DDR4 - eMMC 4 GB expandible - rest of PX30 features PX30.Core needs to mount on top of Engicam baseboards for creating complete platform boards. Possible baseboards are, - EDIMM2.2 - C.TOUCH 2.0 Add support for it. Signed-off-by: Michael Trimarchi Signed-off-by: Jagan Teki --- Changes for v3: - sort regulator nodes properties - add Amarula Solutions copyright - update the patch author Changes for v2: - none .../boot/dts/rockchip/px30-px30-core.dtsi | 232 ++++++++++++++++++ 1 file changed, 232 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/px30-px30-core.dtsi diff --git a/arch/arm64/boot/dts/rockchip/px30-px30-core.dtsi b/arch/arm64/boot/dts/rockchip/px30-px30-core.dtsi new file mode 100644 index 000000000000..16e6cf28a440 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/px30-px30-core.dtsi @@ -0,0 +1,232 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2020 Fuzhou Rockchip Electronics Co., Ltd + * Copyright (c) 2020 Engicam srl + * Copyright (c) 2020 Amarula Solutons + * Copyright (c) 2020 Amarula Solutons(India) + */ + +#include +#include + +/ { + compatible = "engicam,px30-px30-core", "rockchip,px30"; +}; + +&cpu0 { + cpu-supply = <&vdd_arm>; +}; + +&cpu1 { + cpu-supply = <&vdd_arm>; +}; + +&cpu2 { + cpu-supply = <&vdd_arm>; +}; + +&cpu3 { + cpu-supply = <&vdd_arm>; +}; + +&emmc { + cap-mmc-highspeed; + mmc-hs200-1_8v; + non-removable; + status = "okay"; +}; + +&i2c0 { + status = "okay"; + + rk809: pmic@20 { + compatible = "rockchip,rk809"; + reg = <0x20>; + interrupt-parent = <&gpio0>; + interrupts = ; + pinctrl-names = "default"; + pinctrl-0 = <&pmic_int>; + 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>; + vcc5-supply = <&vcc3v3_sys>; + vcc6-supply = <&vcc3v3_sys>; + vcc7-supply = <&vcc3v3_sys>; + vcc8-supply = <&vcc3v3_sys>; + vcc9-supply = <&vcc5v0_sys>; + + regulators { + vdd_log: DCDC_REG1 { + regulator-name = "vdd_log"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1350000>; + regulator-ramp-delay = <6001>; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <950000>; + }; + }; + + vdd_arm: DCDC_REG2 { + regulator-name = "vdd_arm"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <950000>; + regulator-max-microvolt = <1350000>; + regulator-ramp-delay = <6001>; + + regulator-state-mem { + regulator-off-in-suspend; + regulator-suspend-microvolt = <950000>; + }; + }; + + vcc_ddr: DCDC_REG3 { + regulator-name = "vcc_ddr"; + regulator-always-on; + regulator-boot-on; + + regulator-state-mem { + regulator-on-in-suspend; + }; + }; + + vcc_3v3: DCDC_REG4 { + regulator-name = "vcc_3v3"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; + }; + + vcc3v3_sys: DCDC_REG5 { + regulator-name = "vcc3v3_sys"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; + }; + + vcc_1v0: LDO_REG1 { + regulator-name = "vcc_1v0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1000000>; + }; + }; + + vcc_1v8: LDO_REG2 { + regulator-name = "vcc_1v8"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1800000>; + }; + }; + + vdd_1v0: LDO_REG3 { + regulator-name = "vdd_1v0"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <1000000>; + }; + }; + + vcc3v0_pmu: LDO_REG4 { + regulator-name = "vcc3v0_pmu"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + + }; + }; + + vccio_sd: LDO_REG5 { + regulator-name = "vccio_sd"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + + regulator-state-mem { + regulator-on-in-suspend; + regulator-suspend-microvolt = <3300000>; + }; + }; + + vcc5v0_host: SWITCH_REG2 { + regulator-name = "vcc5v0_host"; + regulator-always-on; + regulator-boot-on; + }; + }; + }; +}; + +&io_domains { + vccio1-supply = <&vcc_3v3>; + vccio2-supply = <&vcc_3v3>; + vccio3-supply = <&vcc_3v3>; + vccio4-supply = <&vcc_3v3>; + vccio5-supply = <&vcc_3v3>; + vccio6-supply = <&vcc_1v8>; + status = "okay"; +}; + +&pinctrl { + pmic { + pmic_int: pmic_int { + rockchip,pins = <0 RK_PA7 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; +}; + +&pmu_io_domains { + pmuio1-supply = <&vcc_3v3>; + pmuio2-supply = <&vcc_3v3>; + status = "okay"; +}; + +&tsadc { + rockchip,hw-tshut-mode = <1>; + rockchip,hw-tshut-polarity = <1>; + status = "okay"; +}; -- 2.25.1