From patchwork Wed Feb 28 10:47:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 129941 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp873021lja; Wed, 28 Feb 2018 02:48:28 -0800 (PST) X-Google-Smtp-Source: AH8x224MTPXZJGITUXlmQE7gas4LyY1k9ly8zJgPJOlPVxRaISrktafz7j06Yp6gsAtzEvbahIE5 X-Received: by 2002:a17:902:4601:: with SMTP id o1-v6mr17530307pld.210.1519814907873; Wed, 28 Feb 2018 02:48:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519814907; cv=none; d=google.com; s=arc-20160816; b=xXFAHOzp22QkT+iQQ71T8VoW81OgwWNl1HrDTfz4qA8Jo4jbDs3KkZBnXGnKWqoNON VBSGmkuZMziSpQyBjeab6zyl/9tksI2rMZNKPygpoSon5vvA9GTVRYbsiSiFoiulsIqq UQrWhZ2OVv2EnAPySb07RpWBc+JaQL2ufxEDKBl0MqKe8EDm7Lw+bKPHiGsbWp48MYbn Y2M/KVJY/CI0IG4wc2CQat45UXwtCD3U4DG5iHWpbZDnIErYArfHP4ub/CN5r15xcgVp 8EukUGrmWnJXy8iWj689K+H7Orset2GAU19M+2UZAWh8Wrvg/4kj8Jr7p4nkZsEvYzPb 4MOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=ZGKTWCRLOrqFBHp3Muz+7jegJcqrXLnG10eQWO5V2W8=; b=Ey9qs2HTHHSadJZeH7MKZIsPavDTzHLtNLTn+d/ELRXX2J3lsUEIUgOUu5/Cg8tPVK N28RCjCeJe5UKTd2vhcaMZfgzoapwdh0zbSxFR1wCPd/ABrqZMq3QynFBK2eUry6tKkj d3+kxT9p77TuFzZrl0SLwTpXAoPC2iap5FNMuyT8zvFegIZu9rFytBMdR8ufZRVAJ/rg Xjygb1N6i+EIRYzv7L6GRMX0VCAwfjwLokybeSN6GYKzmOEaJP/PtZ5LEKU8lYgRHxko +WTJJfRwua9ovliVjhALMFH5nRJp3lXkDokFYGnVw5e6dIkAjnjyLZiumEq5hzl7JTb+ 4CSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K/eWhF/X; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m10si872359pgs.523.2018.02.28.02.48.27; Wed, 28 Feb 2018 02:48:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K/eWhF/X; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752598AbeB1KsZ (ORCPT + 28 others); Wed, 28 Feb 2018 05:48:25 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35164 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932170AbeB1KsR (ORCPT ); Wed, 28 Feb 2018 05:48:17 -0500 Received: by mail-pf0-f196.google.com with SMTP id y186so840069pfb.2 for ; Wed, 28 Feb 2018 02:48:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=ZGKTWCRLOrqFBHp3Muz+7jegJcqrXLnG10eQWO5V2W8=; b=K/eWhF/XSOwYhSCmkHfiYB4HLT/fMmlg/Mzp+7RPQIFdjY6UOGmC/O1R2qfG4UYkga LP7cM5+cuVRZ1+8sGbr2qAAjpNUaoXMiDodEcj26lX1jFMezpXDVUd9IOrzH35pM8Be8 nebFywR+syEOlKZUfw2qZL+BBZn54MYiGBWsY= 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:in-reply-to:references; bh=ZGKTWCRLOrqFBHp3Muz+7jegJcqrXLnG10eQWO5V2W8=; b=JXZyGm2zy7p0R/u+K6zx8veVCdbgMbniSXGIuAMyuwzCDvLheDPZJZ/1BcaXJLlG6A M0BcUM4kVycNwc0bpcSdfGy66iKUSucQymNC9oH5KYV5glzwq1ICH+AWEc+/v5jcyLBP og0LtIKY38lyDE0t0jofneT+B9oCATQmzIUUUplAvhzUVuY508OLUUTOo8HWg0KYPJOj tFyXLfI6SztbuvObhMJZqgQxsW6zfr9zOUi2lUM6ZJQ/bykpwF6pMRexddozuCwZF8ss yKhzfoCdnGwVv+kgRp/neLzBYxay31G3hh6bOiEVZOcWmRBTKJo8CLIIizR2XlrY9K6K q/jQ== X-Gm-Message-State: APf1xPDQChIm0nct+IT58nMWjNP3tgTkhskJ7KRqXSDvoxkQ9LGQHCZs zuVpl233BXGXiYxI2lMUvIP4Hg== X-Received: by 10.99.122.86 with SMTP id j22mr13919692pgn.351.1519814896391; Wed, 28 Feb 2018 02:48:16 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id v14sm3636129pfi.8.2018.02.28.02.48.12 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Feb 2018 02:48:15 -0800 (PST) From: Baolin Wang To: robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de Cc: chunyan.zhang@linaro.org, orson.zhai@spreadtrum.com, mathieu.poirier@linaro.org, devicetree@vger.kernel.org, arm@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, broonie@kernel.org, baolin.wang@linaro.org Subject: [RESEND PATCH 7/7] arm64: dts: Add SC2731 PMIC dts file for Spreadtrum SC9860 Date: Wed, 28 Feb 2018 18:47:10 +0800 Message-Id: <2e0470cdfed459fd01cd92b1ddfcc997848ce425.1519814593.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <5ec790b43c6fea9f36e06b5b20233b2adebd7d50.1519814593.git.baolin.wang@linaro.org> References: <5ec790b43c6fea9f36e06b5b20233b2adebd7d50.1519814593.git.baolin.wang@linaro.org> In-Reply-To: <5ec790b43c6fea9f36e06b5b20233b2adebd7d50.1519814593.git.baolin.wang@linaro.org> References: <5ec790b43c6fea9f36e06b5b20233b2adebd7d50.1519814593.git.baolin.wang@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Spreadtrum SC9860 platform has one SC2731 PMIC, and the SC2731 PMIC integrates all mobile handset power management, audio codec, battery management and user interface support function in a single chip. This patch adds the SC2731 dts file, as well as adding the RTC and regulator device node for this PMIC. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/sc2731.dtsi | 169 +++++++++++++++++++++++++++++ arch/arm64/boot/dts/sprd/sp9860g-1h10.dts | 1 + 2 files changed, 170 insertions(+) create mode 100644 arch/arm64/boot/dts/sprd/sc2731.dtsi -- 1.7.9.5 diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi new file mode 100644 index 0000000..4331006 --- /dev/null +++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi @@ -0,0 +1,169 @@ +/* + * Spreadtrum SC2731 PMIC dts file + * + * Copyright (C) 2018, Spreadtrum Communications Inc. + * + * SPDX-License-Identifier: (GPL-2.0+ OR MIT) + */ + +&adi_bus { + sc2731_pmic: pmic@0 { + compatible = "sprd,sc2731"; + reg = <0>; + spi-max-frequency = <26000000>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <2>; + #address-cells = <1>; + #size-cells = <0>; + + rtc@280 { + compatible = "sprd,sc27xx-rtc", "sprd,sc2731-rtc"; + reg = <0x280>; + interrupt-parent = <&sc2731_pmic>; + interrupts = <2 IRQ_TYPE_LEVEL_HIGH>; + }; + + regulators { + compatible = "sprd,sc27xx-regulator"; + + vddarm0: BUCK_CPU0 { + regulator-name = "vddarm0"; + regulator-min-microvolt = <400000>; + regulator-max-microvolt = <1996875>; + regulator-ramp-delay = <25000>; + regulator-always-on; + }; + + vddarm1: BUCK_CPU1 { + regulator-name = "vddarm1"; + regulator-min-microvolt = <400000>; + regulator-max-microvolt = <1996875>; + regulator-ramp-delay = <25000>; + regulator-always-on; + }; + + dcdcrf: BUCK_RF { + regulator-name = "dcdcrf"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <2196875>; + regulator-ramp-delay = <25000>; + regulator-enable-ramp-delay = <100>; + regulator-always-on; + }; + + vddcama0: LDO_CAMA0 { + regulator-name = "vddcama0"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3750000>; + regulator-enable-ramp-delay = <100>; + }; + + vddcama1: LDO_CAMA1 { + regulator-name = "vddcama1"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3750000>; + regulator-enable-ramp-delay = <100>; + regulator-ramp-delay = <25000>; + }; + + vddcammot: LDO_CAMMOT { + regulator-name = "vddcammot"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3750000>; + regulator-enable-ramp-delay = <100>; + regulator-ramp-delay = <25000>; + }; + + vddvldo: LDO_VLDO { + regulator-name = "vddvldo"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3750000>; + regulator-enable-ramp-delay = <100>; + regulator-ramp-delay = <25000>; + }; + + vddemmccore: LDO_EMMCCORE { + regulator-name = "vddemmccore"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3750000>; + regulator-enable-ramp-delay = <100>; + regulator-ramp-delay = <25000>; + regulator-boot-on; + }; + + vddsdcore: LDO_SDCORE { + regulator-name = "vddsdcore"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3750000>; + regulator-enable-ramp-delay = <100>; + regulator-ramp-delay = <25000>; + }; + + vddsdio: LDO_SDIO { + regulator-name = "vddsdio"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3750000>; + regulator-enable-ramp-delay = <100>; + regulator-ramp-delay = <25000>; + }; + + vddwifipa: LDO_WIFIPA { + regulator-name = "vddwifipa"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3750000>; + regulator-enable-ramp-delay = <100>; + regulator-ramp-delay = <25000>; + }; + + vddusb33: LDO_USB33 { + regulator-name = "vddusb33"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3750000>; + regulator-enable-ramp-delay = <100>; + regulator-ramp-delay = <25000>; + }; + + vddcamd0: LDO_CAMD0 { + regulator-name = "vddcamd0"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1793750>; + regulator-enable-ramp-delay = <100>; + regulator-ramp-delay = <25000>; + }; + + vddcamd1: LDO_CAMD1 { + regulator-name = "vddcamd1"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1793750>; + regulator-enable-ramp-delay = <100>; + regulator-ramp-delay = <25000>; + }; + + vddcon: LDO_CON { + regulator-name = "vddcon"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1793750>; + regulator-enable-ramp-delay = <100>; + regulator-ramp-delay = <25000>; + }; + + vddcamio: LDO_CAMIO { + regulator-name = "vddcamio"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1793750>; + regulator-enable-ramp-delay = <100>; + regulator-ramp-delay = <25000>; + }; + + vddsram: LDO_SRAM { + regulator-name = "vddsram"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1793750>; + regulator-enable-ramp-delay = <100>; + regulator-ramp-delay = <25000>; + regulator-always-on; + }; + }; + }; +}; diff --git a/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts b/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts index 550f323..3bd18e3 100644 --- a/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts +++ b/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts @@ -9,6 +9,7 @@ /dts-v1/; #include "sc9860.dtsi" +#include "sc2731.dtsi" / { model = "Spreadtrum SP9860G 3GFHD Board";