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: 10202525 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 41CBA60247 for ; Tue, 6 Feb 2018 09:29:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4098328ACB for ; Tue, 6 Feb 2018 09:29:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 357E028AFB; Tue, 6 Feb 2018 09:29:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B392728AE7 for ; Tue, 6 Feb 2018 09:29:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=RRBEvfrwNGY4m1cXYZQG7n2CG9dWg0q6pDqJED305f4=; b=aNKTgLnWhdXV1ZjXIdDv2DpUbE oeSdR9iWCTVvybjj2aJrp1ckpDnP4V+J8gma/Rp4XxvBfJyzJmyEsf0pwhBy173ukO09hbkDaeVOP LeJ08b0BSY7O4oC3IqxnKkvFVn4lzmHcjbj274unkRYs34EKCr6CO/D6C4TRf3jwIO2LVrTtNo6wN u1kpUWdas8GwvOcm+ju4tZ3yrKDCiTII+SR8ZW3a0zy7aXTddZG/T7P056sp0M8f/ssuZnug0N/QQ OWHaBhSQGGW1CewHxXASAktap2V7rra4MOcMLqkMJfUIdJD5Qd+n6blyqCkKPT7d/Crj/OMvDj0Qp e+ScEeLA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eizYy-0001tc-Gn; Tue, 06 Feb 2018 09:29:16 +0000 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eizYl-0001gj-AP for linux-arm-kernel@lists.infradead.org; Tue, 06 Feb 2018 09:29:04 +0000 Received: by mail-pl0-x242.google.com with SMTP id p5so891282plo.12 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=sUSs9LgRuwQGbnDiWzZCLXkr6LceTA00b0Y1KBFAigdN5GLLUFzi9ih5hw9Ubgzs5o /+Njp5s2JXeMRHaafgCGH4f8MB8QUTs5DkI9j/o0Ml29pXoSUsxUmMmJ/1pYn+gkV3wv ik2ulAZSvaWqumnbrNw4gPyeyvm/Dq+LnOBjoscVPHT9U6lfTSOTAAVSfg4gOCiYy163 p0a4LcVqGRLOr2WsmGONH2WeU8z944BBhauJKRaNSO2yyDOsF5K4yAVVBD21lthTsKHJ xUAYR1MGPeSvQ/5L8/1tZ4aK8/AfU6JTF2CmnIlEMBpnHhSjJv1gPdiFuSXFDwdnc4Bh xKbw== X-Gm-Message-State: APf1xPAeEdFoJcEUcoL8yBjlM/tUWaTXKtEKnja8a6NwJ2tnLYzPejpH nJm3UcdadVwM+jH+sl6GvD+aBw== X-Google-Smtp-Source: AH8x227Cv4cnZpqRsUzLrO9Mz9rGUlIVgChWegTWnKngKSvqRm5NYTPspUNVqZ4pc1E8AZutmrOVfw== 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 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> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, orson.zhai@spreadtrum.com, mathieu.poirier@linaro.org, baolin.wang@linaro.org, linux-kernel@vger.kernel.org, broonie@kernel.org, chunyan.zhang@spreadtrum.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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>;