From patchwork Tue Feb 6 09:28:21 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: 126961 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp2740595ljc; Tue, 6 Feb 2018 01:29:07 -0800 (PST) X-Google-Smtp-Source: AH8x224RoW2BWV3i3hNlobuDVUKENnD0rimPzVfVhiUQvyAJQdO9+hUS3yMjhIl4wOaPPoHRL099 X-Received: by 10.98.226.22 with SMTP id a22mr1818019pfi.192.1517909347647; Tue, 06 Feb 2018 01:29:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517909347; cv=none; d=google.com; s=arc-20160816; b=0MQcpTDlEyZm/AobSST0dM0lqnXr61s7U6fcvwrLiQBS4GZxXulT9PQTMHCvOfRA96 QzwSTuofNyM2lJqn3JRKvsNHDaA2hOziYbgYO4Hlje3aZn0otEiwraLCeZSAzMzLI95i sU5R1MRQ1aWLuqpZBcRnpdluMVFCqaw8LFanzhTTYOp3h5QYy3QHdBeQ/5KMDX+4ARDG 1JHnoyZJ7H6jQeut+iOoHBP4BQpKLxPOVj2A7q6zsGQ9CYQFs1gJuWAYwyFAw98IwL3f IRUm/uW+yNHvUqK4IZ+IYwBVBlqBMYrOghiNRzgCZEvj+OUCO9dUhcgZn7ya++uf0qDZ 2ahg== 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=uXtOrH/3wEeov1HCqZof2FKW5mNllrtWg/pBITWbr6U=; b=xLCGG68+ojYn1+tPfy6xqysDIUqUCwg9EAUBVIpLWQ2k7cjz7va8pIPgW7Qp+A71Q0 H8d1REZFlYuiHNbSxvnkDKBmVr21acgIeQFPUeQKby7Z+svyCs32t7m8TnTTOZgede73 lzP3x80IZC0neI3ff0YK/tQQh9tb3hcIgGHLQK8JtHaZL/zE8OEgHWpd+qbDPxWd9Pts CBXmSVer6/rqzDjQ7r7IlmPJSfD1H48UvcTBzIhLetts3F7C3GlKpbbswtyp9ZoxmbaN S5bapLyUqVjq/JrTxF7og+LMdo8PYJTkCxLa3lfuJCzFdlTfUT3YyOpIL0E63IE4+7vS 9mww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DzoPFDSJ; 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 s127si4058748pfc.215.2018.02.06.01.29.07; Tue, 06 Feb 2018 01:29:07 -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=DzoPFDSJ; 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 S1752722AbeBFJ3G (ORCPT + 21 others); Tue, 6 Feb 2018 04:29:06 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:46127 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752335AbeBFJ2x (ORCPT ); Tue, 6 Feb 2018 04:28:53 -0500 Received: by mail-pl0-f66.google.com with SMTP id 36so885632ple.13 for ; Tue, 06 Feb 2018 01:28:52 -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=uXtOrH/3wEeov1HCqZof2FKW5mNllrtWg/pBITWbr6U=; b=DzoPFDSJ/XY37IAQJN7OoKJ2smXcEyO+wVq8ZXYt9uAZUgws50P2loRsqzivFTG/ZW D2Ru/NBGh/ntuS37qYMuCoDVXfXs0fIasdtsBb86Iz4HhY181sL2UdKUZ9ucAV2tKbTi zWOV5YRsxMyfYdK2swbErjSjNIlRsdybh4g2M= 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=uXtOrH/3wEeov1HCqZof2FKW5mNllrtWg/pBITWbr6U=; b=mHRS1wPXW6QXOjBBUR+VSOyOwWdWXHpCbij1SDpidx7Db0F5Jh5Ly6bUzx0devnni2 1XYXSZvwFDkzUsEUvXNfcUVjgH7+j6yGs41skgzolzWLhXe1CC2kQItEXAV/bJ5u70qK IkeTaieuauDLkD6FQZQU51z9/i8C99B+WzEh/3O0dYHO3LUMc3rVPTUdIVxkAHLNVCW4 q1R+pk9RWsXXu/NYKY5tVlpjYmulGnu8pHLiNL+BdeYKmA7WJKw47PGprUR/7LaFnBVO yBlRVGVQ0LYkCh6FUTgrHfxDKCRN2odMdFfVBJmtbb8IaVtKlqjqcGVgOFvV/vBlXHf3 I7vQ== X-Gm-Message-State: APf1xPAPY5XJj4E2Y0AgjcAWzaUAQqKtLn5rg7dzrnHxv1Qq180psgYV OuBQp8/rSAZmgQmdljcgy3tG+RLR5J4= X-Received: by 2002:a17:902:7886:: with SMTP id q6-v6mr1808865pll.364.1517909332522; Tue, 06 Feb 2018 01:28:52 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id t16sm18618429pfh.131.2018.02.06.01.28.49 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Feb 2018 01:28:52 -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@spreadtrum.com, orson.zhai@spreadtrum.com, mathieu.poirier@linaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, broonie@kernel.org, baolin.wang@linaro.org Subject: [PATCH 2/7] arm64: dts: Add ADI device node for Spreadtrum SC9860 Date: Tue, 6 Feb 2018 17:28:21 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <410b2f2d3f3f019c96ec31213647c41cd7f1174d.1517908478.git.baolin.wang@linaro.org> References: <410b2f2d3f3f019c96ec31213647c41cd7f1174d.1517908478.git.baolin.wang@linaro.org> In-Reply-To: <410b2f2d3f3f019c96ec31213647c41cd7f1174d.1517908478.git.baolin.wang@linaro.org> References: <410b2f2d3f3f019c96ec31213647c41cd7f1174d.1517908478.git.baolin.wang@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We will access the PMIC through ADI controller, thus this patch adds the ADI device node for Spreadtrum SC9860 platform. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/sp9860g-1h10.dts | 1 + arch/arm64/boot/dts/sprd/whale2.dtsi | 9 +++++++++ 2 files changed, 10 insertions(+) -- 1.7.9.5 diff --git a/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts b/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts index 0362ecd..550f323 100644 --- a/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts +++ b/arch/arm64/boot/dts/sprd/sp9860g-1h10.dts @@ -22,6 +22,7 @@ serial1 = &uart1; /* UART console */ serial2 = &uart2; /* Reserved */ serial3 = &uart3; /* for GPS */ + spi0 = &adi_bus; }; memory{ diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2.dtsi index b9cc0fb..63fe89e 100644 --- a/arch/arm64/boot/dts/sprd/whale2.dtsi +++ b/arch/arm64/boot/dts/sprd/whale2.dtsi @@ -113,6 +113,15 @@ #size-cells = <2>; ranges; + adi_bus: spi@40030000 { + compatible = "sprd,sc9860-adi"; + reg = <0 0x40030000 0 0x10000>; + hwlocks = <&hwlock 0>; + hwlock-names = "adi"; + #address-cells = <1>; + #size-cells = <0>; + }; + hwlock: hwspinlock@40500000 { compatible = "sprd,hwspinlock-r3p0"; reg = <0 0x40500000 0 0x1000>; From patchwork Tue Feb 6 09:28:22 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: 126966 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp2741310ljc; Tue, 6 Feb 2018 01:30:14 -0800 (PST) X-Google-Smtp-Source: AH8x224dNONMkdq8o2owGAHqeauKqPRVqWcUkFPnt0VaBi1LXmDUyFpXKNkKzY012le12M/Be17A X-Received: by 10.98.207.6 with SMTP id b6mr1818340pfg.187.1517909414601; Tue, 06 Feb 2018 01:30:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517909414; cv=none; d=google.com; s=arc-20160816; b=InTV6QD0YQwoHlw91pKf2FnA+4qk6vVhdn2ptZqukNjBrmhHeulEdmvBacd90Zbq8K +fE9ygh4DYzFlYZznJT6Zx8Iq/fUTLL6Osj4JoEiie3NtlOSZXflBeeTtcq5gIE+WySJ o6Zl62p+EpLNmjB0auu98JYJl7TS/YcYK7cUNcrUKX4XGgQNHNBYx1sIm2AzHkyBeGpw mrBWsEI92cU7W5GaNP3sM9C27hf6r+u8g6zp2o4meeDTqR59FP3H66KlqLQUQPP34DA1 zCEOMhUNg3Ttg+00kRoMJ9At4S8Dcx5WCDN+E6NiW/dG3V6pUIwv4rvgw0UUX8bFmsds Oywg== 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=4HxcZH0DtV4NcaXnZLkC43Ia5hO1UX3XhfgQAp7Y+rk=; b=WV3ePgPcORA0k77GMubO9wqPQGIzL/+3Sou0eFCFTgb4tMjWmr2fcLzvpI6MoN+syL yLc9DRVu3V3xBfrlUm+L/9f+Iy0Oxt2or5m4yx83jpI/F9l7nBAKIc+stEzHggDVf6fF DjgQfs5XrZQxSLE/kKvTf7HwqkcILDn5d5HDkPdgvDFrVxb1sKlctzSyWkvxFFH80yiu f6VR+N1yOqFYhJh+uK76erZdYceqfAsS5qCEJeFNhJ1yCQmMRNqVgmp1lTRdfPp+KZET eawc+H66LcWi7DYM0qZqQS5sNPmD3qum2PhCzGcDjNMF1r+3cdc8WsHLESJZ+o6iR8gI f0dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZcFGOGFh; 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 s84si2649677pfi.366.2018.02.06.01.30.14; Tue, 06 Feb 2018 01:30:14 -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=ZcFGOGFh; 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 S1752804AbeBFJaM (ORCPT + 21 others); Tue, 6 Feb 2018 04:30:12 -0500 Received: from mail-pg0-f67.google.com ([74.125.83.67]:45110 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752674AbeBFJ24 (ORCPT ); Tue, 6 Feb 2018 04:28:56 -0500 Received: by mail-pg0-f67.google.com with SMTP id m136so850725pga.12 for ; Tue, 06 Feb 2018 01:28:56 -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=4HxcZH0DtV4NcaXnZLkC43Ia5hO1UX3XhfgQAp7Y+rk=; b=ZcFGOGFh4MuW/eLSXOW7hZi9sFr2gDJ9yQofjRGj9tWarUzlKKD4QRYu/2C2a4Oif4 0x/nP86fwshcAcZzygjfsF15arFJ9/dMMvaJao1LzHecZudef4LDon7zF231tgpayeKQ sFUXnXO+FbezLZjZ3TtGEcwpwzK857P4CUqck= 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=4HxcZH0DtV4NcaXnZLkC43Ia5hO1UX3XhfgQAp7Y+rk=; b=ryso5ul1l4poZ88XU/9+/WmTs7/Yk2Pa4SpovPutKpTkJZCS4nBDu//3fr66z5NWwT k3Ce8bon6NEu2e7tqhhvwXmf6P83u9YzJjbuNDXqq6lcINh7FIdysfCi3WS+0DxGbOhz cS8b8Z0KZb5fKyPjfMLkDmXwalT+GYrpfcoK8rE00tzwHEUAMeybocMBQ6E8s/IAJnef /EssigmzINoI9fvnXMY47N+9VpOkY+Uhhwa7ExL3hnA9o1m1CY7+FnRuHRiVzzuESfph q2VXKiCpIp/ylUha7r/vsckNA4QIWq0zv3Ch8kEi/kcW+KwDOXuQpb5GjSx3uisDPbgi wpbQ== X-Gm-Message-State: APf1xPBCiZOehpsWg2yqeAclZcGsTPBD/hNgBz6DlokHTrjkEOzn9bqU MaCKExDD1b0C1QFMYLIF5rMUpSkOcDA= X-Received: by 10.98.87.144 with SMTP id i16mr1833528pfj.176.1517909335989; Tue, 06 Feb 2018 01:28:55 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id t16sm18618429pfh.131.2018.02.06.01.28.52 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Feb 2018 01:28:55 -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@spreadtrum.com, orson.zhai@spreadtrum.com, mathieu.poirier@linaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, broonie@kernel.org, baolin.wang@linaro.org Subject: [PATCH 3/7] arm64: dts: Add pin controller node for Spreadtrum SC9860 Date: Tue, 6 Feb 2018 17:28:22 +0800 Message-Id: <07e3668174e3000be036da54dd5435e9ed2fd91a.1517908478.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <410b2f2d3f3f019c96ec31213647c41cd7f1174d.1517908478.git.baolin.wang@linaro.org> References: <410b2f2d3f3f019c96ec31213647c41cd7f1174d.1517908478.git.baolin.wang@linaro.org> In-Reply-To: <410b2f2d3f3f019c96ec31213647c41cd7f1174d.1517908478.git.baolin.wang@linaro.org> References: <410b2f2d3f3f019c96ec31213647c41cd7f1174d.1517908478.git.baolin.wang@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds the pin controller device node for Spreadtrum SC9860 platform. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/whale2.dtsi | 5 +++++ 1 file changed, 5 insertions(+) -- 1.7.9.5 diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2.dtsi index 63fe89e..23cedbd 100644 --- a/arch/arm64/boot/dts/sprd/whale2.dtsi +++ b/arch/arm64/boot/dts/sprd/whale2.dtsi @@ -129,6 +129,11 @@ clock-names = "enable"; clocks = <&aon_gate CLK_SPLK_EB>; }; + + pin_controller: pinctrl@402a0000 { + compatible = "sprd,sc9860-pinctrl"; + reg = <0 0x402a0000 0 0x10000>; + }; }; }; From patchwork Tue Feb 6 09:28:26 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: 126964 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp2740889ljc; Tue, 6 Feb 2018 01:29:38 -0800 (PST) X-Google-Smtp-Source: AH8x226qz/EF+0BMyuKlAotPpEbn+h14wY5wTnSGGIa2uijlIFAZmp4eACcwapW0WivxrIi8QXwW X-Received: by 2002:a17:902:2be4:: with SMTP id l91-v6mr1764068plb.387.1517909378159; Tue, 06 Feb 2018 01:29:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517909378; cv=none; d=google.com; s=arc-20160816; b=a3+dIcEGlncx7U7KUI66P1H3vyZoHtaC1BO++YOBQSOw1h6TGt/Lru2MQqe/090MJO PnwNViyUBEfzsi6ldeoD3NyzjG1FNgyiGdNa4ql9FHUtwUZxIPQeMrCpcW3qNkq9eWej NfQ6ZP0Aj8BoFOH+O2JI6VL3qTEJBpYaTrPJ913MhlU8LbfvKmk3vuNj0O1xoh1Vdd5I rw7T6YNwyJlgTgFUHqOsAriTopfWDDfqUo25mZWsETa4x9q3pyt0mBDn9B/f0bHw0z6z uKor6XLHjlSgp6HDAgc/svP2k1RRWTGqxkNEyD9iaJRa6qak2xA+v+yuUylubeD2miSD VrYg== 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=E/Pmxz8opcinycKWB+3egiwX+FkdyEI/Vl4m8mbsAT7erzw8+i4tw/T0SUm0+3UgMd NXdxW6vELMQ5Hjus/beLZmaRfJUWTB/vy8wvppxDN4twgEmQ57p6NFvCjIdztkRb7QJj 1JjgOopkEYJ8Sf7Gz5Msfnqzw2oKAA+vAu+OqcSustrtc88hgribaKVM6sA57bLDbT8O U/uSui3Hg96cQZJ2igvAgLeUzP+mtq36NBv4zofXMiyKdjDVvfbjiOs5JmNgL3n7se4s hCjD8zU8slJtomjarKNvvYHK7jlltMcRcSc82JBf49bxz/nqTXW2Imx7IDkH3oOSP+bl WtqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R7sBexiM; 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 s127si4058748pfc.215.2018.02.06.01.29.37; Tue, 06 Feb 2018 01:29:38 -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=R7sBexiM; 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 S1752335AbeBFJ3g (ORCPT + 21 others); Tue, 6 Feb 2018 04:29:36 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36510 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752314AbeBFJ3L (ORCPT ); Tue, 6 Feb 2018 04:29:11 -0500 Received: by mail-pf0-f193.google.com with SMTP id k5so353632pff.3 for ; Tue, 06 Feb 2018 01:29:11 -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=R7sBexiMFXEOtTC8zkF85PytGXR1pxecCLhglNerA4zj/md3Qzsv2VRyJ/LitcP0Vx h9x3vA5h0ZdzsmeF/Ew3ltwXjrVmA7MfEAjMMD8bEWxNGcYLWk2cVGTxQayzZVXRIVQh 8n/4UJz4D9cxsGw1yITXrUgE0J3nxzkRt5drU= 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=cPpvaDlvJWnxvCBAq5wKH3VhUAmvN45NNqy0PDADHPp4WEGu2VvxajwThiJ/Mwdu8C THBQ3zguEU8EaOOFq9Ktzon7TdlnFzGFsoDJ5pGEqvMmlhc0tzA7EanCMyF6N1sFXvNo hOqmaeqnouE2D7QIn19Rs8GdScoOG/BkByaaRAp3x8Z9I6LRRBT8C5sbvqFLglfn65XU thKK6ZBYR8nwatYodQm5NxuC2FkEE1Biu606fYsL5Fooql/ACNX3/ipBOJj5w96+mXKi unsbTcIMtX+MvWeee+J9oBNgVwVLIb8uil6DUcw1ndHPTFDyNxyz35S24kQ83sQ0xzqw wxOQ== X-Gm-Message-State: APf1xPCX/ho6kuCfuoiRdsAgNNeelPedV1zc5H/C4YetuYijNqMQCEsY WwF9a/jMuO4VO2Jp8NrZfeuEgw== X-Received: by 10.99.43.13 with SMTP id r13mr1439178pgr.338.1517909351034; Tue, 06 Feb 2018 01:29:11 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id t16sm18618429pfh.131.2018.02.06.01.29.06 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 06 Feb 2018 01:29:10 -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@spreadtrum.com, orson.zhai@spreadtrum.com, mathieu.poirier@linaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, broonie@kernel.org, baolin.wang@linaro.org Subject: [PATCH 7/7] arm64: dts: Add SC2731 PMIC dts file for Spreadtrum SC9860 Date: Tue, 6 Feb 2018 17:28:26 +0800 Message-Id: <46ddcf7e35d89c232b13f80234ceb05ae254da2a.1517908478.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <410b2f2d3f3f019c96ec31213647c41cd7f1174d.1517908478.git.baolin.wang@linaro.org> References: <410b2f2d3f3f019c96ec31213647c41cd7f1174d.1517908478.git.baolin.wang@linaro.org> In-Reply-To: <410b2f2d3f3f019c96ec31213647c41cd7f1174d.1517908478.git.baolin.wang@linaro.org> References: <410b2f2d3f3f019c96ec31213647c41cd7f1174d.1517908478.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";