From patchwork Wed Feb 28 10:47:04 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: 129935 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp872674lja; Wed, 28 Feb 2018 02:48:00 -0800 (PST) X-Google-Smtp-Source: AH8x226FgCkMehqTgCbH1SGxS7ej4uhYfHjene6ThZrelTc8AYV//zNQdc76ZgNuWp1rbGOe49k8 X-Received: by 10.99.124.68 with SMTP id l4mr13840102pgn.225.1519814879916; Wed, 28 Feb 2018 02:47:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519814879; cv=none; d=google.com; s=arc-20160816; b=jY3ighMU4ipWZGZ2YbR9GjO+cBP3qN7h8L1cUEmHPfUkXLzoKMujIVOz69RIkNNQGc CssHzoyYbglFa4rIIzTygiCpJWUk17mwRYvNwTZzin7C2Hz/hEXQ8Vs8534gxet2HXy3 +GQxb+XB+iSpHJb5zw/eZE88g9ruKLP/yxmgvgdRnhnzTvK2zRbaq5leZ2B4fDlmI9Cr gF7RDNq+CU1zfpV3oUKerjZcAhW6kFxIetrcfOJCpmuvSpLDb6nEQpkJ/7E59Ts3xIJR xANUbOemiB76hZ7sCA40kDQYXy7Tyh+QU1gKrwy/8OgaY0gev1Zfxz8OmUoTMGtNtTZu NWXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=ZxrG12OKWB4Lae8OO2iBPm3wSddfnEatRlxiJPBxwz0=; b=FKXOs3c5qbp4SEtmFp20uFUAoKtp1D1M152NhhX/0SVbdfQNODwNaCzDNTJ9ZxeuSV ueqkGd6W5ERRGw+be08ENlrQ9dlDYXAFG6Y6uR8pdDJtO5CFw17T/D8orMVvRQ7YSwY0 QxBqlHNLp9ZVk+RAo/ZA6GIDFp6b4+aUuD4mRJrmKcn6FG/Gkc3G7F5XBGRnuDEk5oLI uw+dMrfJMT7J35NMuiYKXS68cpXYr70zVn8ZzbdjnrHBS1uXtmaIIGt5dIjYFn2Qsmyr I9gbjMowAZKRlXt91Gx+7tB0j/5yfSrhxsdmGvkMip28F8rVUhOyZfag3/se1JI+iegU Lnhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LAAOqKNu; 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 m12-v6si1099013pln.400.2018.02.28.02.47.59; Wed, 28 Feb 2018 02:47:59 -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=LAAOqKNu; 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 S1752556AbeB1Krz (ORCPT + 28 others); Wed, 28 Feb 2018 05:47:55 -0500 Received: from mail-pl0-f67.google.com ([209.85.160.67]:38557 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752291AbeB1Krw (ORCPT ); Wed, 28 Feb 2018 05:47:52 -0500 Received: by mail-pl0-f67.google.com with SMTP id d4-v6so1268809pll.5 for ; Wed, 28 Feb 2018 02:47: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; bh=ZxrG12OKWB4Lae8OO2iBPm3wSddfnEatRlxiJPBxwz0=; b=LAAOqKNu4UlpBpkRRgBBhugmB4SvIhdJ2NQTiWfY/xLgbidr0OdB4mjjmIMtmMT6ft jNITAHnOl5zm0AcwJnFoo+/U1PQatlgzy7Ope4UYpQyUTNw1pBAKD62FW3ZoJf4ksMBH pPrnfct2LidEJRZnXAaKYZkPKudfVfFdGtpX0= 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; bh=ZxrG12OKWB4Lae8OO2iBPm3wSddfnEatRlxiJPBxwz0=; b=AxphbKi6kr2HBJo/cIeeQnKN+xoBV4LHUVAz9adeRJenupEWse+kHBtMYGUoS8ghsS hNPHpfxryjLnjnHgsEJXXkBFuYjXEY0D8kbWsPk3HU4EY378SasWKyAvnj/GgPyPqsm+ THO0umZtN3XaTtEAtt3mpq3QI+cyxyAZU4mtrHV6oCl6zxIM4NiMQOIbVmyB0ibQcB8L bWpKt0KRP2Yxo1J9hAI3XN1K1C2+b75dzDu2pvHE/MN73NLyO4HFw2nWcETlje/Kov4X mo14DtJ2w19GUvijWvZlGn6VYtTvvoTQIdfCNK+Fst6zLnrsu/+qJE1Ozdox4Q+rGJqH y5qQ== X-Gm-Message-State: APf1xPALktPxVdLgF7j9PbDu6sRQF4cek/kWBV9DJHYDoSBQw68XL6Yv 31u45kYC/t5Gki2n63Y9bsyg7ZDqCPY= X-Received: by 2002:a17:902:4c88:: with SMTP id b8-v6mr17450199ple.0.1519814872127; Wed, 28 Feb 2018 02:47:52 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id v14sm3636129pfi.8.2018.02.28.02.47.48 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Feb 2018 02:47:51 -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 1/7] arm64: dts: Add hwspinlock node for Spreadtrum SC9860 Date: Wed, 28 Feb 2018 18:47:04 +0800 Message-Id: <5ec790b43c6fea9f36e06b5b20233b2adebd7d50.1519814593.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Spreadtrum SC9860 platform only has one hardware spinlock device, which is located on AON system of Spreadtrum SC9860 platform. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/whale2.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) -- 1.7.9.5 diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2.dtsi index 328009c..b9cc0fb 100644 --- a/arch/arm64/boot/dts/sprd/whale2.dtsi +++ b/arch/arm64/boot/dts/sprd/whale2.dtsi @@ -6,6 +6,8 @@ * SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ +#include + / { interrupt-parent = <&gic>; #address-cells = <2>; @@ -104,6 +106,21 @@ status = "disabled"; }; }; + + aon { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + hwlock: hwspinlock@40500000 { + compatible = "sprd,hwspinlock-r3p0"; + reg = <0 0x40500000 0 0x1000>; + #hwlock-cells = <1>; + clock-names = "enable"; + clocks = <&aon_gate CLK_SPLK_EB>; + }; + }; }; ext_32k: ext_32k { From patchwork Wed Feb 28 10:47:06 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: 129937 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp872795lja; Wed, 28 Feb 2018 02:48:08 -0800 (PST) X-Google-Smtp-Source: AG47ELuEiNMvXenJ7hrU7I+xZNM1KnUkaCJGGcJb/yrumGFHppNXsOikLUXHU9EbXytfIsMD6S1I X-Received: by 10.98.238.2 with SMTP id e2mr9337127pfi.68.1519814888680; Wed, 28 Feb 2018 02:48:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519814888; cv=none; d=google.com; s=arc-20160816; b=ke7M0JnkYf6B02JRJ+0fBJ0AE14ywn21h92aT8FzXbh7WHanzPsyHT6eTj10kSfdTS r+VBBGNTTvJEnhzKUnQ0BDC/XeLPoJi3+KThr3q5hTYG5sh9LCxHaCFCeZHcfMqp3RP/ Xj3wF388Knw/dPcRc9Boxj09IXwSf/s2wjwBflrcey1HzhYwlAirEjCq4jDB3qOqWxE3 06ctZjO5CB4fVQqkFrZFYjn0wLg4/B9/ULm307LK4efzLzz/Nlq4pSW537pyL3uaws31 qnpP5SfphMfwpJI1TBfiOCgKtZMmSaPEcY4a10EbXExDVcy844yvhoDUDgunlcd8ST4A fG6w== 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=YhcSj6iJrBacEsDFyp7Z+sSauNR8ssBi7QzpPR97v3kIB4h6d2Eqi0is9HhibtN5s2 Nlo67/zuztI086ZLU//qICRIAjfcRtASMqL5X+m7czYXOfBefq5Ycz8p+VzQBsdSwLSf HAQo8sj6veD0e/yXiWVzYRsu6UD5coP2fQEd0Q1LS/ynOiG2BCndmFCVIWF9fzicFhK+ 9eEqhGzMwUUrozlP3Zae8GaR4rR53JbIdghTck+ESP8hDdWrfAxfOLC83gafkA8Ewgjh 5A3+9s9BevAu7E+kAcVbSZCQGsAq+/3qrGBmDfobjlwLcOZy7oD/FKRuSq/s8FnuRQgp 2zcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Kd5o/r85; 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 k91-v6si1095884pld.361.2018.02.28.02.48.08; Wed, 28 Feb 2018 02:48:08 -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=Kd5o/r85; 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 S932124AbeB1KsD (ORCPT + 28 others); Wed, 28 Feb 2018 05:48:03 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:45250 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752571AbeB1KsA (ORCPT ); Wed, 28 Feb 2018 05:48:00 -0500 Received: by mail-pf0-f196.google.com with SMTP id j24so828455pff.12 for ; Wed, 28 Feb 2018 02:48:00 -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=Kd5o/r85Y5cag7QvQFNngyMMFIQHXfSrg9ogqzBQdtT2sbX/+OKHplGRJ9UOU+UdQu j1Y3SrkRWON0zDqxM4SXhvBsBTfLgw/nMA3jBHqozNSBxQNlZidEb0eXtqrXFKQxT9g4 qc9lG1vni9CeOYZcno93Cvwhh6KBnJNouAsFs= 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=gjV5GZB9CXd2JYDPdiw2ySFFI5S0V1ltNflDRCdV3UpPuwV9ncg64RssL4WjNfjDq0 s9pzWu5OIppOKrqYIlnOt7LE7KxSKdMJmtPKJ6yKIDbn3w9Hsyl8EoePy3y+7MOpPI5o MJWxiAXNa2butAu7JnPPCpn/OIWC7ySJfsVYK9nb4PBMpMdegf56lhVsMhNrcHFMeKnv 3oPt6VFflmDzwYydZdgGbVMJ0Bo8ojwnqYlIsWnTRHfUSxfTA7ggdO3DqU723W59CESf +BAJQ4ZUs7NcvyK5638APheKE3bj5haae4ofNwFSxBTEHfmGwIQEv7LiM74r2hJCrc+s 00Qw== X-Gm-Message-State: APf1xPD9v8iY1mLDvgRitwf+oE9RwsAQJN1fCw4VX+eUAzBc3ygU75NH hCsIcPmdJUwyiBkj5Ywz0w+rAg== X-Received: by 10.98.153.157 with SMTP id t29mr17430909pfk.201.1519814879954; Wed, 28 Feb 2018 02:47:59 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id v14sm3636129pfi.8.2018.02.28.02.47.56 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Feb 2018 02:47:59 -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 3/7] arm64: dts: Add pin controller node for Spreadtrum SC9860 Date: Wed, 28 Feb 2018 18:47:06 +0800 Message-Id: <378c75289917a9686814f2870752f953977f564c.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 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 Wed Feb 28 10:47:07 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: 129938 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp872850lja; Wed, 28 Feb 2018 02:48:12 -0800 (PST) X-Google-Smtp-Source: AH8x224Rn5fGIFGom6k19hVCp9BjV0NCiY1s3+iDrWq0q0IV+19aN3hQz0alXT+xt5WnRapcnOxw X-Received: by 2002:a17:902:7c87:: with SMTP id y7-v6mr17747190pll.112.1519814892722; Wed, 28 Feb 2018 02:48:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519814892; cv=none; d=google.com; s=arc-20160816; b=djdwnho64QEOhCkrm81Zi/DjSWTe5Muqn5DZB4plLDczjA9dUX4I5YHM9mqqFGRlb8 L0naR+7YcaD+qhNqKbRsnpgb/wW89LYhDztGF1eqsy/pO0rjqqFkHa/773EKpABaRoaH 6r8xnKmwMjEcs7fpiUXMMxkwr+3mqAGd8AxFAJCNt7YlHblWzLfI7GK65l/UnALOC8uJ WPOyAnGueuX4MOVtvszlr/9wjdpIAyOfcqv9nsiojQ6Tjlg00Tx02Ed2NUUcvb/G800m rVzn+W0/o8hpKRDJeCex29v9hx+ubXv4oo8F1cisWdSYrs5CUGvLpvFTp6eS3smTSLjZ vmjg== 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=Y4y2pmVGznn6N4anB2AEPr5FdyE8pJhkYo5+rr/RPIo=; b=q3moHvHI4TmBX0sobwLTm0nY8KbwLmV4sh1R2oY5fYm19w3A4WeziDSUE+qlaAIdtZ BO5NHzUtZ4r/NEwzOgYfveu1wkCwMAocaNB0yBp0xH7GyH5mHlVPFjys7FqGq5YlQM29 jjnj6+uXUYTdZebEJ83PdDYKSKrLmUo9zz6ABsp8uM+iMitWGA+dS2BRS31ntt3tgsb7 3QGjWIMrn0Nigfe8ggZoPDEK/p8HlcPo4ZW/7J2PNqZeYmJ0/6xHXORTdzXEwDi9csBg RK+zQIVKOAXrqILUaZKgFjCH0x/CfYL/KdTPY6toCJ5d3IkwQG/XPZ5Vu9A+ODsZLP57 In5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LzITA8Kd; 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 88-v6si1115831ple.298.2018.02.28.02.48.12; Wed, 28 Feb 2018 02:48:12 -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=LzITA8Kd; 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 S932143AbeB1KsH (ORCPT + 28 others); Wed, 28 Feb 2018 05:48:07 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:38228 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932127AbeB1KsE (ORCPT ); Wed, 28 Feb 2018 05:48:04 -0500 Received: by mail-pg0-f65.google.com with SMTP id l24so793818pgc.5 for ; Wed, 28 Feb 2018 02:48:04 -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=Y4y2pmVGznn6N4anB2AEPr5FdyE8pJhkYo5+rr/RPIo=; b=LzITA8KdXfsieV+WOJofTavbkUYReuZ9DByYtrBl6imafwkbGRDGM0fK2V7pbyPVIj Fk8Gzkulp5mtm71+ik7bKfgCzEPz0uhmCv433LBdGIF+YCaXnC4aN21V48gBZSX032BW ea8bsWYGkLBdV80OqRxxdiCQif6F+M7SKrfkc= 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=Y4y2pmVGznn6N4anB2AEPr5FdyE8pJhkYo5+rr/RPIo=; b=QH9/k1OOYrzKspk/Pyo6PtVw2aR3KqZ4uX2Pc9nWBjsID7JCcQjUwYgVaMV+TQrQcv oOoUj8ieVF2HnqkJyU9gF+J5jAFMRKA1uC4bJJAD3D1zJIE5W9NEuy54DmmhQR24ZrRq zRklIUWrCO4fdFYPmziVkSi42w6QINDyH39ZtgrFKqO/SskzcT0Ff7yi+ylm0JGfs7D+ ovH/K7RuIut6kLSBh7lELRIAsWwhZjabaBWNG7tZNmBQZnoGVQ/SroFUa+mIj+jlLiLj 3B8KTX2soU3ZSp9Vm287EMEYvXifR1D+OxHcBKJBS6VO1BBJP7xNuHA4IE4t9sM44ksi OyGg== X-Gm-Message-State: APf1xPDBUCiAoKeTQL+M6Lze1lTUug6ADT5QViMWCtiYSKCf9/pQZDl6 FoDo9JNVTKUqh3T4l2VSRfNdkA== X-Received: by 10.98.141.205 with SMTP id p74mr12534115pfk.211.1519814883755; Wed, 28 Feb 2018 02:48:03 -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.00 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Feb 2018 02:48:03 -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 4/7] arm64: dts: Add timer node for Spreadtrum SC9860 Date: Wed, 28 Feb 2018 18:47:07 +0800 Message-Id: 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 We will use one always-on timer to be the broadcast device, thus add the timer device node for Spreadtrum SC9860 platform. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/whale2.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) -- 1.7.9.5 diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2.dtsi index 23cedbd..3dc6389 100644 --- a/arch/arm64/boot/dts/sprd/whale2.dtsi +++ b/arch/arm64/boot/dts/sprd/whale2.dtsi @@ -122,6 +122,13 @@ #size-cells = <0>; }; + timer@40050000 { + compatible = "sprd,sc9860-timer"; + reg = <0 0x40050000 0 0x20>; + interrupts = ; + clocks = <&ext_32k>; + }; + hwlock: hwspinlock@40500000 { compatible = "sprd,hwspinlock-r3p0"; reg = <0 0x40500000 0 0x1000>; From patchwork Wed Feb 28 10:47:08 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: 129939 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp872881lja; Wed, 28 Feb 2018 02:48:16 -0800 (PST) X-Google-Smtp-Source: AH8x224lqDN5BpT7fw67sa8ZBiXzhJ5aIZTphv74+Dt0AJS3ckHPCAFjkiH4G6ytcTQcy/SIqdre X-Received: by 10.98.23.136 with SMTP id 130mr17146360pfx.43.1519814896116; Wed, 28 Feb 2018 02:48:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519814896; cv=none; d=google.com; s=arc-20160816; b=MKBYHwgIa15GiGAgK6tISzQ0LJPree4AWNYItk3ZW6E88D/UbG26oWJ4WnVuiCnCab zGk5bATsIOevnab+zwRY35OcN76rWNkOsZhbwglV0qG+6Z0m/JhKMLqLvaT3RMAmlvEw 9FLfy/+w+6T4AUSEWatA3+TudqL+4Nqb9cTeL64d7ueH0DJWc0RFILNBeUCAszhw+daR WFf2H+q752WiDNd6eAZvQ0H/iZXQ58QTUPx2qwc5iYj74n0lGYHe6B4ADW9iryNvQ+pk Gg4NTVKW5CvdxBGyD9yWO0//tpdrqc0Hbs3ry8I5eW4e/CJc+gs19NDkia4Io/MBHNka lVZA== 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=UQ4dvVGbOrK5gAWTh08iYOAHt1Wa4SqoUQtNNsDA0Ow=; b=b8CZeyr06s1Nt4+nMkBgvGoSNCgtKmxJlKfbpCAslmPxVK9gJz0hgArsgqNZMi8BnH n9YZHWeXmD99PzbVdH2YE6/pVQ5rkUwjsVvQGs1H08HirFvvsTP6cx95epZTuV/EPCkQ PZLzzxxEuKi5k+X0NrecR/wauPWapuDPDShKIgkHEGO9oF/oIij/JDq6LmtzEtpcP1jA JJmtfkDbTgZHGMU3L5EEYPnb5PpN432vor5X0AfMWAVJ4NTrP6HqFvQsO/rPegZ1/FAZ xWq8bhysJgxDnGT1YW6GYeJb2gcT7IGat2QBtwxLMqit8INDBEdUstBrGSCRlq505Im1 XudQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SZvbzLEj; 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.15; Wed, 28 Feb 2018 02:48:16 -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=SZvbzLEj; 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 S932165AbeB1KsL (ORCPT + 28 others); Wed, 28 Feb 2018 05:48:11 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:35958 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932145AbeB1KsJ (ORCPT ); Wed, 28 Feb 2018 05:48:09 -0500 Received: by mail-pl0-f65.google.com with SMTP id 61-v6so1272735plf.3 for ; Wed, 28 Feb 2018 02:48:08 -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=UQ4dvVGbOrK5gAWTh08iYOAHt1Wa4SqoUQtNNsDA0Ow=; b=SZvbzLEjOtPsRWaTyvWd22a9l9urftJv19kzqRXoF/27ODxaIHargnKjqDgw7u9b87 2xPTAoIXEbJdpATmNI655H0v9kQGOuoUyToaA5IunbWFCp3xXv+a5cgbCSDN19QGA7+7 Mulrx3W5RbqmXMIOfBs0tqF+7vgjWn8W5MvXw= 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=UQ4dvVGbOrK5gAWTh08iYOAHt1Wa4SqoUQtNNsDA0Ow=; b=k/GIRnfiqqgfqiNBiezjNZ52OVGV259XU2izxEy/WoD6CCyy1042hcx5roMkf2+hib FHkJGeUzi8BwN1iaSf+6xZKvfuEOJOTUb0akqNBCvHNe+sGbtWvnU+m+1/cVWd1xaukG 1IqDg507atHtfwpd695j9F8E3wXR0+qvI5zXfcehGbfZG3ggc2/1DQt5fopiKkgUv8h6 U573rXuS6SGjWf/dWJtSdAnbE7E9l/obrhm7fmHdXXO7zDN5GJersUW8A4Pg+026woL6 sg2Gh33YD3EcunX0uJxlp6dUsejIQKyH4YsjWsYmGasj8Z113Guypt2SDIvim7piQVDb YF1A== X-Gm-Message-State: APf1xPB/sj2oj5lP/eertO5ThZJGaeNuovC/BMY+u8qE1UcGwZwLuOam hw2Et08yvBTeUoQIxoIL+24vvN+WLtY= X-Received: by 2002:a17:902:40a:: with SMTP id 10-v6mr17548622ple.245.1519814888530; Wed, 28 Feb 2018 02:48:08 -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.03 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Feb 2018 02:48:07 -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 5/7] arm64: dts: Add watchdog device node for Spreadtrum SC9860 Date: Wed, 28 Feb 2018 18:47:08 +0800 Message-Id: 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 Add the watchdog device node for Spreadtrum SC9860 platform to watch the system's stability. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/whale2.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) -- 1.7.9.5 diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2.dtsi index 3dc6389..f2cdf4d 100644 --- a/arch/arm64/boot/dts/sprd/whale2.dtsi +++ b/arch/arm64/boot/dts/sprd/whale2.dtsi @@ -141,6 +141,15 @@ compatible = "sprd,sc9860-pinctrl"; reg = <0 0x402a0000 0 0x10000>; }; + + watchdog@40310000 { + compatible = "sprd,sp9860-wdt"; + reg = <0 0x40310000 0 0x1000>; + interrupts = ; + timeout-sec = <12>; + clock-names = "enable"; + clocks = <&aon_gate CLK_APCPU_WDG_EB>; + }; }; }; From patchwork Wed Feb 28 10:47:09 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: 129940 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp872963lja; Wed, 28 Feb 2018 02:48:23 -0800 (PST) X-Google-Smtp-Source: AG47ELsbeHUqBfYKpHF+rA6t3aISrgh2RyDTTZLfjBnxc+iEB/awrzFqAcrsxCNuKQdEfzLbUJpj X-Received: by 2002:a17:902:467:: with SMTP id 94-v6mr2336668ple.57.1519814903220; Wed, 28 Feb 2018 02:48:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519814903; cv=none; d=google.com; s=arc-20160816; b=OadDPG9xEpzJy7DPaBxtwjSmPVzvDBwfuUAiVfV6+Pi26c/PlFS9u0Ry5l/92EOEqZ awiMF8iua1CfqtsyTS9BsUKaXOl9qS9Bq4AeogOJUUnXXfe1ffnl/YCHTni9hX3e61ya c2+OT+ANNr21KIxstukYpb/6suEtjWrNJck2UfzPUxFhrLqPqOWB06bu2UGDTZR5Cz5P agqTXLhr53JFqDZQnDOyHjx+b1eN4fIqaurK/XtcPFD/HFZ/EuA7TkH5UoZwr2ogZ6GY 4HzafGlHiNrJ5xnWgXuovGEPUR8duebhQkPVcc4r0U1IitCvqY8pLH9QP9QSlPS8TGvO ohOQ== 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=JwMn1cJjIW2a+GAu5uAbJ91Y0dD3JY2bzNP7/hoAaYM=; b=linkecfH8jVNXmzivbjcaQEthHt8nlNMGy7xppgghKO5GDU9TBcQoWdgscD6esoT2I Juh+bnxXrWhXc5QiMxlaJGCQ+deaBDCnet0UOnO8uzoBvi8E+Ksh+mLBrkEDlVFL/EBE zvQjJ3DpOUyY+5DM2+Ye0n1AVBzBmsi4XxtLgP6ALyAJ34Iaa1aICYxOHrNGD3GMY4OU 1/wL+rRv3ErAx2QIXqNFXF2RzLOAv0KX8nqQkOVzWg0vJ3Sj0fXQZ2ZAxMrAW7OSXMpM AlRVK/kEHIRWFno6hs6fLj/Jj6ai9QpDcpPE1ReFiZoLHNOSOfelV/Pl11hmxmrE60Ma hhWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=U4nDmYj8; 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.22; Wed, 28 Feb 2018 02:48:23 -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=U4nDmYj8; 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 S932190AbeB1KsS (ORCPT + 28 others); Wed, 28 Feb 2018 05:48:18 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:38234 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932145AbeB1KsN (ORCPT ); Wed, 28 Feb 2018 05:48:13 -0500 Received: by mail-pg0-f65.google.com with SMTP id l24so793924pgc.5 for ; Wed, 28 Feb 2018 02:48:13 -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=JwMn1cJjIW2a+GAu5uAbJ91Y0dD3JY2bzNP7/hoAaYM=; b=U4nDmYj8xpJLf7vfeaA8dXvElB37z7NhH+ZGrHIkdy/vYXOaDFuCS0uKvpx2QXCqsJ pS5+pB3HpAVl0FghcEuclvXiJDSEPDiL5/o+Mp2C8RCtHkiIb+1Z/tu5NUCA3Qgg/G6N OoJKm3pWs1vuToRigNWAzSd1w7NMuyEV+Hl48= 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=JwMn1cJjIW2a+GAu5uAbJ91Y0dD3JY2bzNP7/hoAaYM=; b=sX9u/9qBWk+7QVUdNTvz6YT7f7b8dd20cYG614els39OlWlggs+4K5fnVsDJdqmrjQ 9BNH4U+is7YApfi2N0jq9QaAUpoXiqiXNd+K0JAG5Rjy/Sy1CGmsult7rxrX1RTy0K0c 7xvnau3zzncfIc5TCIMUxf13PDfH/CNzfImqJXLmorxdL4wFSSZiOtcq7hcBUZDpvxKC mPfbDqLEsium1yuOzx17I3STfvhUkuOczKT5jGZGcfO3PiweAYJI84iYTBTondWmkd5D 3UOEYMlHZFTs8R6UXJS8Kl1m78IgezZnyPSUCs8MYulJF5k8BnbGXH6cbaobtxggtR+C nplA== X-Gm-Message-State: APf1xPAf7Q+xsDxTk9EcpnVfQc3c4XFk/vcHSy9tA6yGkxpm3ecrMY+T bYx/fTx/s4Vl+LfF0SUWQjLiFw== X-Received: by 10.99.56.83 with SMTP id h19mr9772056pgn.230.1519814892607; Wed, 28 Feb 2018 02:48:12 -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.08 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Feb 2018 02:48:12 -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 6/7] arm64: dts: Add DMA device node for Spreadtrum SC9860 Date: Wed, 28 Feb 2018 18:47:09 +0800 Message-Id: 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 two DMA controllers, one is located on the ap-ahb system, and another one is located on the agcp system. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/whale2.dtsi | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) -- 1.7.9.5 diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2.dtsi index f2cdf4d..66a881e 100644 --- a/arch/arm64/boot/dts/sprd/whale2.dtsi +++ b/arch/arm64/boot/dts/sprd/whale2.dtsi @@ -107,6 +107,23 @@ }; }; + ap-ahb { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ap_dma: dma-controller@20100000 { + compatible = "sprd,sc9860-dma"; + reg = <0 0x20100000 0 0x4000>; + interrupts = ; + #dma-cells = <1>; + #dma-channels = <32>; + clock-names = "enable"; + clocks = <&apahb_gate CLK_DMA_EB>; + }; + }; + aon { compatible = "simple-bus"; #address-cells = <2>; @@ -151,6 +168,23 @@ clocks = <&aon_gate CLK_APCPU_WDG_EB>; }; }; + + agcp { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + agcp_dma: dma-controller@41580000 { + compatible = "sprd,sc9860-dma"; + reg = <0 0x41580000 0 0x4000>; + #dma-cells = <1>; + #dma-channels = <32>; + clock-names = "enable", "ashb_eb"; + clocks = <&agcp_gate CLK_AGCP_DMAAP_EB>, + <&agcp_gate CLK_AGCP_AP_ASHB_EB>; + }; + }; }; ext_32k: ext_32k { 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";