From patchwork Wed Feb 28 10:47:05 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: 10247187 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 5E42460362 for ; Wed, 28 Feb 2018 10:48:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61B9728C0C for ; Wed, 28 Feb 2018 10:48:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5668128C56; Wed, 28 Feb 2018 10:48:59 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 B8B4D28C0C for ; Wed, 28 Feb 2018 10:48:58 +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=c0l1dd01swCVPgvU1o+nPXYDCD rtMKaFJQjwnWvyTsxXbrxnc2M+Q+MMbcCYEP7kj0TmgvTHjoEjYWN3omYCNpXffvM+1E56AuLHBC+ i6FFhWlhfDqKYKm6zlQcOGyFWbN3P3GBeiO/R4KkAW+24AI3+NVqrWlm5fg/VtiqKozwEQt6klIys hYfKbQmzY6EKtt/ixrsza6V+8Y0bx97W8E12NkuJd8xvlgZ8HMrStDIJdVrGU6txfNPCTrzMUIvKp TDqCfBnIa15DK1snF7hHu/GuHchotHW8GKNZIEJik87VSQ300mYd65JH2XfXL8xKZHQPXjpzpJNQM DrlZWHMw==; 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 1eqzI3-0003Sv-4v; Wed, 28 Feb 2018 10:48:51 +0000 Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eqzHK-00032j-Gu for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2018 10:48:10 +0000 Received: by mail-pg0-x243.google.com with SMTP id l24so793692pgc.5 for ; Wed, 28 Feb 2018 02:47: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=uXtOrH/3wEeov1HCqZof2FKW5mNllrtWg/pBITWbr6U=; b=ehBDASjfKhAvRhBFfqUG3ZfV/ZkvC+TlDEOwk42GaRZdSg3IkyLY9v01LsNLtxIGpB V89jNBcEcNy7F3ODWvMwKYKAZkdTmZEgP1qbrNPrSbpjt/f/OENmMNj7BHcMhVCJG2WH 1YXTHITbEsthym2YQGcYttGulZN8KdHoWUC4E= 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=X0w19gANaCmkxPP4lBajCoLUmHPkOVl7h/M2PtP64i1ommQVEky3LAzdwaC7796VsY D2HVogSAq1NRIrvZR4ZV0VpoX2TQthjNyGyDJWnT2Rm+1w4Ucqycq2p1b8RlVNogZq40 OZ+J1Am6awqweSUBQaEZV7QxIovNJdNURWGFAN1/cvL4iU5G1vnh+qzOZJam5uS+Mdem WXsrcm+UdRIJBOla+9zGOAzzZpbP6Df5F2MCfDpO10bcxiDDvCuzBXsm4dPuHQyhOkLA 2IIkL1sPg2lBvWmOSmOH8hpJ6OcorNxVyN0sJe9RT2FRd5r1TpvDxuZkSDAKqOevy2Bk /erg== X-Gm-Message-State: APf1xPBrBXVS7IXHOjrGK0ZKWFcpzDvmUR++uCNWqeEXMpj69qgAs/zk y7L0v3rsDxX7eZsfgQ0N8SsIdg== X-Google-Smtp-Source: AH8x225QnV6LPvwLjHPCd24NwXmIkL/n+OAfuDNcTXNTO3MUtAf3rWWMeHcOPZttMzzj4Rjr7GGZKw== X-Received: by 10.101.82.70 with SMTP id q6mr13680249pgp.67.1519814875822; Wed, 28 Feb 2018 02:47:55 -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.52 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Feb 2018 02:47: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 Subject: [RESEND PATCH 2/7] arm64: dts: Add ADI device node for Spreadtrum SC9860 Date: Wed, 28 Feb 2018 18:47:05 +0800 Message-Id: <459e248911c44411fcf5171d4cdf0058dea850cf.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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180228_024806_626526_BD54A3C3 X-CRM114-Status: GOOD ( 12.48 ) 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, chunyan.zhang@linaro.org, broonie@kernel.org, baolin.wang@linaro.org, linux-kernel@vger.kernel.org, arm@kernel.org, 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>;