From patchwork Mon Jul 23 06:10:16 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: 10539651 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2FCC4112B for ; Mon, 23 Jul 2018 06:11:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19F21284C8 for ; Mon, 23 Jul 2018 06:11:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0DE5E284CE; Mon, 23 Jul 2018 06:11:37 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI 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 94877284C8 for ; Mon, 23 Jul 2018 06:11:36 +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: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:In-Reply-To: References:List-Owner; bh=jzsGwBVLDGzw2EE81iNkE9rv9xdaWIsdFdhNBBzAEPU=; b=Be0 /qkno8LZixcJ+L8yqUdB5Pr86E9MiSfmQS6nPBW1vw6VBkEkEYZj+yLdp1vKGQ1BpculvBtfWzwzs Egt0z1MMdXrVLbujV85McFZ/8g5Vej8J4LGSRxmjah9SF5OJiCUFMwngYXE2sXAJGY5kjxBSuj9Sz 6W3ULKtQ2hPk2LN7Ydm4+Cn8QoMKrIxxdAtIVR0PF9ZkF/0oKhkLKaf5cgrQl6t5yd79qBttBT7MY oV1L6bZ8lUQMeFqu+cEoZZU7fLGSNAQurG50CqGMOphT7xUU02A+bVMp0VvMU4THeOEy/Sjyuzeld WJZeYV/pY689+lyc6PuzN1vexo9rEyQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhU4C-0000kp-5K; Mon, 23 Jul 2018 06:11:32 +0000 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhU49-0000i2-AH for linux-arm-kernel@lists.infradead.org; Mon, 23 Jul 2018 06:11:30 +0000 Received: by mail-pl0-x241.google.com with SMTP id s17-v6so7796214plp.7 for ; Sun, 22 Jul 2018 23:11:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=eLh+RCGI7jFU97vFKRaGVHWFxDScjVDx/ObeOqcYMEs=; b=IHIRFn2cNf+IdHPbtqzBxrOkghdQMjgCcMFDyQ2SqAoeLVMNQbqV4/jOmDX8TfNhv3 FnmBi/5YIsFynIqQEXerR/Worv1d6XgDr6AhpWjR00mJZdcHWxCaBYxWcdrThc16I3bH dorOU+Y++hgH1nzIGKDixKsqG1SLC1E0qkC9o= 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=eLh+RCGI7jFU97vFKRaGVHWFxDScjVDx/ObeOqcYMEs=; b=UV8LBaij8uoUbVsz0phKpT/r0MjElXTU2b/p0gobXYnrDUrG/1IXGepsIvp3usG/il In8J76SNPD3kE652H0rtvwHa3t3QvYU+Bm64m7BC4JBfc0RAZgyEHufOC87BL6cuuB1x WIkiWxmrMbG/44jZ6O5IUbQy38AZ6m3cFsAQmJZotlZqdczdKSrUOPoU5KdvwrsbYHop ydbkuzljKDbgzOxBigxrVCE1gZZV7GVJCHuxERX/0bu4Q32J8yjn2IsnQLSfWwUZYdAB /xeLaFBpc5MVq9sPs2vzibcrNtlpubW64u/WeYu0dd+ec55577If+OU2RUq8hGumB17N 9lJA== X-Gm-Message-State: AOUpUlFCowDBPjfJu1aX0SKCXoU7c+Si6trnitnRikGNske5eu00KF/H 8X5X74gCs/wyNUiqI9FETSV2Mw== X-Google-Smtp-Source: AAOMgpcuEHWO/mR8LrSOEK9nKHUqqLmZI634oyefC9pZ4i1rSoie5GrjYEp/kqMwMIQ9cHBoUIoYYg== X-Received: by 2002:a17:902:968c:: with SMTP id n12-v6mr11574828plp.15.1532326277673; Sun, 22 Jul 2018 23:11:17 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id 8-v6sm11972303pfk.132.2018.07.22.23.11.14 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Jul 2018 23:11:17 -0700 (PDT) From: Baolin Wang To: robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de, orsonzhai@gmail.com, zhang.lyra@gmail.com Subject: [PATCH 1/5] arm64: dts: sprd: Add SC27XX breathing light controller device Date: Mon, 23 Jul 2018 14:10:16 +0800 Message-Id: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180722_231129_361716_A3C5478E X-CRM114-Status: UNSURE ( 8.09 ) X-CRM114-Notice: Please train this message. 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, arm@kernel.org, baolin.wang@linaro.org, linux-kernel@vger.kernel.org, broonie@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 The SC27xx breathing light controller can support 3 outputs: red LED, green LED and blue LED. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/sc2731.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi index 98d3b4f..7d53ca6 100644 --- a/arch/arm64/boot/dts/sprd/sc2731.dtsi +++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi @@ -17,6 +17,28 @@ #address-cells = <1>; #size-cells = <0>; + led-controller@200 { + compatible = "sprd,sc27xx-bltc", "sprd,sc2731-bltc"; + reg = <0x200>; + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + label = "red"; + reg = <0x0>; + }; + + led@1 { + label = "green"; + reg = <0x1>; + }; + + led@2 { + label = "blue"; + reg = <0x2>; + }; + }; + rtc@280 { compatible = "sprd,sc27xx-rtc", "sprd,sc2731-rtc"; reg = <0x280>; From patchwork Mon Jul 23 06:10:17 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: 10539655 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C1B65112B for ; Mon, 23 Jul 2018 06:12:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC1D8284C8 for ; Mon, 23 Jul 2018 06:12:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9FED5284CE; Mon, 23 Jul 2018 06:12:09 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI 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 5E88B284C8 for ; Mon, 23 Jul 2018 06:12:09 +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=AXG7FhpZtq9is8mC1yu+NOZBCETcSC+oFZa2VVX6gyo=; b=F5ttyGyvED/O836mr254S25obV 0ek21q9EM69BFI8q6k2tsL+JvJguAve+6KApxDrp4LS5Ahadlib1qqyRphBYmTPAzlNg53IOeZVlY oxZh1h94ralejkgSff2U1fqs5D6VvVlEQWDLcHec1/o3iiii1w2o78JzuebX75b+VRGbMSJN3Z9Du YYwbzifPVNZvEtvmi1IPgqsvZm4fvTzxR2b58sXZqHDty1IT8biZUMIp7pjQ/TT/Knggz03DQ4zsd 0eUHNnp0NBROmEs8yHBnglvHKC+E4saUmU4VzHkFbUTv+aBwfVK1/J8pVDv827bJvc9gZbh51G+ZG S86ZaF/A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhU4i-0001KN-GF; Mon, 23 Jul 2018 06:12:04 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhU4C-0000iO-8V for linux-arm-kernel@lists.infradead.org; Mon, 23 Jul 2018 06:11:34 +0000 Received: by mail-pg1-x544.google.com with SMTP id v13-v6so11468261pgr.10 for ; Sun, 22 Jul 2018 23:11:21 -0700 (PDT) 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=ydmpnNQYPJ+WI+Vy9yUwgfnF1GS46OKvKnbkAGAw+rc=; b=C2Yef3lhJPhCJZ03Au4XX2maTBZbkj4pUdstpxyZcARXLS1NWn4k8tU9ARLAi+Zkc/ kKEfGoJnCOcMn5Af9gCCsXAe9/h6PXhGaV6IUelmKjoRDyA989dvXhKjt08r761OdeHR oOkDTzxywL8AD8b9C5c7khBd2oVp/qx3kJe7o= 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=ydmpnNQYPJ+WI+Vy9yUwgfnF1GS46OKvKnbkAGAw+rc=; b=j2W5k+Q01+ekdTrAXq/WdsCO/ieexJlQ/UxxwFSzhIM2vXX/a7ZplPUcvg3LRuE/u9 ocpuTg36gYS0yIznweReIVUA8xlKd1GlX8Mcvvl/uRkgz6msRF3VV/cRJB3GNR7whl2B XcmjaHd2kgDVHDMlEEb8HMJ7zDm2hB4qwPxZypiC/DuZiW1yuVOBfeNwQFmsIqiT+Gs7 tM27Yu9ml2ua6jiSl7jrGAV7MluUlO05dVQqgO1wosQWQb33wiGXaOgXGtQCWRmU6Pd/ qkcLckYxnDWMah5qKfhf/uO7OBr0uO3kewBXupRlmFGRNkq2MfUnEfVrG3lRf3LHSOH6 DGAA== X-Gm-Message-State: AOUpUlGjFBxcMuoYXap7QA0M5wkVYp/YfQO2I9CGg9d4Ki2T8JJIhaeo VoCFRY+1Wluz8D4jQrwtyWPNlQ== X-Google-Smtp-Source: AAOMgpfI2NGdBw2z/Mjg1CcYN6GhLUnkheioSwpFoyLAuAdSWT1qjBaNONo8xVSV/tb3c/ralmZE+w== X-Received: by 2002:a63:743:: with SMTP id 64-v6mr11272828pgh.216.1532326281553; Sun, 22 Jul 2018 23:11:21 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id 8-v6sm11972303pfk.132.2018.07.22.23.11.17 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Jul 2018 23:11:21 -0700 (PDT) From: Baolin Wang To: robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de, orsonzhai@gmail.com, zhang.lyra@gmail.com Subject: [PATCH 2/5] arm64: dts: sprd: Add SC27XX vibrator device Date: Mon, 23 Jul 2018 14:10:17 +0800 Message-Id: <30609aebce340ad7051323e45f989db80811e6e0.1531881619.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> References: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> In-Reply-To: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> References: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180722_231132_443349_85DCC49E X-CRM114-Status: GOOD ( 10.38 ) 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, arm@kernel.org, baolin.wang@linaro.org, linux-kernel@vger.kernel.org, broonie@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 This patch adds the vibrator device node for Spreadtrum SC27XX PMICs. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/sc2731.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi index 7d53ca6..650bd68 100644 --- a/arch/arm64/boot/dts/sprd/sc2731.dtsi +++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi @@ -57,6 +57,11 @@ #interrupt-cells = <2>; }; + vibrator@ec8 { + compatible = "sprd,sc27xx-vibrator", "sprd,sc2731-vibrator"; + reg = <0xec8>; + }; + regulators { compatible = "sprd,sc27xx-regulator"; From patchwork Mon Jul 23 06:10:18 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: 10539653 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1C9DC112B for ; Mon, 23 Jul 2018 06:11:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0713F284C8 for ; Mon, 23 Jul 2018 06:11:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EFB99284CE; Mon, 23 Jul 2018 06:11:43 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI 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 AEF37284C8 for ; Mon, 23 Jul 2018 06:11:43 +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=vOwjyBonsV3BsWJdvDbNNW1lbifWRTNJzhis52ie/pk=; b=cW/dJPH85ug1Q/XGwyS9KTyVjV /pRr8ABJV2aFsGr8nzZtIXqU6IgEhHhpFmIBh0nqBeJNCFXt9etrR/s4f0G2pPE16t4mjenmayr+Y ZnAoMriKwGCBtEx3CVstH7mrWxX3PcLgf8ITctcFDMpQt2CE2R16FLvtCjZH66d8Set6VL7skJqEH uQIJKvr/qXJRPgiZ0+5SLrKj/lA792dJHmM6R2rbpRlg1OPZYoOcTLLleC2DKH5/euG4gVuBwga1X FjAYMsC81vJkJLhAKHX/1Iwrvy6iqDhVz/65IeINZaahJndYk1fGQausNbJ+vFiChoekPt9mA3q9H FPyNyRqg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhU4J-0000t1-7R; Mon, 23 Jul 2018 06:11:39 +0000 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhU49-0000j6-AJ for linux-arm-kernel@lists.infradead.org; Mon, 23 Jul 2018 06:11:30 +0000 Received: by mail-pl0-x241.google.com with SMTP id m16-v6so7797301pls.11 for ; Sun, 22 Jul 2018 23:11:25 -0700 (PDT) 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=LWxppdcTaKp3RkRdNBkHXwKcTm4kfWve60Wtgv2mUMI=; b=TVstDRnfD2iKsF/kQv1pOiQuoQ4ta7ArYXuSuhlVKlcvx82bzpkKOpUiisqEkvty79 sSBtBc1rFOQyJ86PvNV+GyllJsdjI07TDjVp24VhuQqDfG+VqQ1AvABommKdnDq7yRYx QAK3xRSd1nT89TpbXcgA3+gH1bHQHRWhMOP+8= 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=LWxppdcTaKp3RkRdNBkHXwKcTm4kfWve60Wtgv2mUMI=; b=JgVSnNPSpE5MawFQN7TtUMIC89URdzmJxJWSoyXQfOYkzaKJiyG7lVIEDc12+Y2eFN U9xuX9xriktiTO3VilVaRjP35uHGfMvP0tYQnU09C6J8iyaXGkHkLbAx9zCkobjTNZ2I LZI5N40A6EkUlGyXqls2agyoKei63NxWInJj8/Zmb3znY1JIfKuK2UzEdA/lkPdxAjkG 2eYmPcPfa82uGnfRZ2xvO2uObFlgE9Te+Vl+v955auAhLzLYqowri85cPGb+PIB7za8M IFSEm6qMtMdPdu2Qicj2R8Zeda9hUjYf0iQLrp66bZ6tLnwCoIJzcnIlAvLOUieYSQHf gArA== X-Gm-Message-State: AOUpUlFwDfKXJpWNthMxM03bEszLIXI681uJs16A7A2r5U1bQMTGwzoZ yYBYQLqz6pqxmLSVQR/Rlw5ueQ== X-Google-Smtp-Source: AAOMgpd0q4fqXlxdr4YJNVGYXLqDXg9eeFEqL2/2EsDIEqX8QNYJloDFwGXUouYrtNCgktQ/zy2yqQ== X-Received: by 2002:a17:902:4381:: with SMTP id j1-v6mr11660175pld.104.1532326285498; Sun, 22 Jul 2018 23:11:25 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id 8-v6sm11972303pfk.132.2018.07.22.23.11.21 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Jul 2018 23:11:25 -0700 (PDT) From: Baolin Wang To: robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de, orsonzhai@gmail.com, zhang.lyra@gmail.com Subject: [PATCH 3/5] arm64: dts: sprd: Add SC27XX eFuse device Date: Mon, 23 Jul 2018 14:10:18 +0800 Message-Id: <9cfac30ae483e1ee1d7e3519b542d50a583f0b8d.1531881619.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> References: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> In-Reply-To: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> References: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180722_231129_361031_E9478464 X-CRM114-Status: GOOD ( 10.27 ) 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, arm@kernel.org, baolin.wang@linaro.org, linux-kernel@vger.kernel.org, broonie@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 This patch adds the eFuse device node for Spreadtrum SC27XX PMICs. The SC27XX eFuse contains 32 blocks and each block's data width is 16 bits. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/sc2731.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi index 650bd68..fc68076 100644 --- a/arch/arm64/boot/dts/sprd/sc2731.dtsi +++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi @@ -57,6 +57,14 @@ #interrupt-cells = <2>; }; + efuse@380 { + compatible = "sprd,sc27xx-efuse", "sprd,sc2731-efuse"; + reg = <0x380>; + #address-cells = <1>; + #size-cells = <1>; + hwlocks = <&hwlock 12>; + }; + vibrator@ec8 { compatible = "sprd,sc27xx-vibrator", "sprd,sc2731-vibrator"; reg = <0xec8>; From patchwork Mon Jul 23 06:10:19 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: 10539657 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B36F217FD for ; Mon, 23 Jul 2018 06:12:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9DFBF284C8 for ; Mon, 23 Jul 2018 06:12:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 924B9284CE; Mon, 23 Jul 2018 06:12:18 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI 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 3CCC0284C8 for ; Mon, 23 Jul 2018 06:12: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=RjwqsGqZZ+/b0sa1VUrN7x4KG5/CjemAO2r6G7sQE/c=; b=b66/T7v4LMW1a9KjJxGgZEwThV rwDw6BkmKLpC6bvw3ngdU+IQ4wGbQU+SZnjDNXSr6cvx/8aLwT2PxXm+rtIO03pAA+bLPf3RcbPik hFn7EC4F3mimkl3UJsjA0euYUYsTTlve7k83BdDlkLh1IE+dmSbdjYtnLPBDEKwIJbdzgF2V9+KTo pXZK4GV7lkZHgOFMwLQYHL759xOUgPtBrM4hiyefia39tuvIHWeLrujx72uj9KhWQF9ptthQMhyCj bfwCnzDNO4byPuf5xxO2rqzID3nboqlDKpgc7V20x0Af55rqK2kiAPFW5EfAjHrcAXuGun8U4aI+8 36CSoXtw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhU4t-0001am-F1; Mon, 23 Jul 2018 06:12:15 +0000 Received: from mail-pl0-x241.google.com ([2607:f8b0:400e:c01::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhU4J-0000k8-QO for linux-arm-kernel@lists.infradead.org; Mon, 23 Jul 2018 06:11:44 +0000 Received: by mail-pl0-x241.google.com with SMTP id b1-v6so7797067pls.5 for ; Sun, 22 Jul 2018 23:11:29 -0700 (PDT) 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=xmVG/3H/SqHkjHCnVbBdoRYLrJINBOgTFoQQWr7Ye/E=; b=fALK6TmSm9Biy+erkbFPV0bEPlgrRaGAJyqDfjI5tXSGgdv7pzHXg22uS1eLAtHdOk MKG5BVwvZhZUCZFXoSU50TrzRizFlLEz1UulOsiEtPn/IMPMmrfWctopn40RV2mU04Tn OmRiHFnfchm4X+AO9+Wvz8MtzIXkseBSsKHRA= 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=xmVG/3H/SqHkjHCnVbBdoRYLrJINBOgTFoQQWr7Ye/E=; b=qpZcWMkArkJ5JMh+jo46g9mttnw1RYqk3PjNp5m8s7EBSScD1EqBtyyafCNUguuAxO cL1axIywwcZh8SFXJ/852rb4+udlucPtErdiUD0iJYYqMbKUOacuAqrfZE2ckvGjtm+R 78fqiQ+QGUzY7fgBKRfDHOOGkAQIGLxA3YIXAhZKG+7EVUOS548quP8Oba+vV3Da+/8P u8y3uErMy1cNJWvN9QBoQa2doFnsnEgCplj21LqSYHUuuuaS2mikBnUUAfMnREVzBE7y FA32dpddZwbA4NbS1b5MZCZlEiyfUUiYPlRZ3e1Q6myRbOAnNqHogFrvtEQpeH/Eipy+ 9xqQ== X-Gm-Message-State: AOUpUlEXdXhadU97mJMCIOFMNlRSz/kAbnDo1h3kE7zHFTNr7xAsJzBy srAoek3/E2XBuM007OBUhr4IEQ== X-Google-Smtp-Source: AAOMgpdOAyFFRykA3BL9ijfVgzU0kQnX1E19H1h3EjGQ3JjBPu7aOOB8WWqGUIKACfpCoEpFeUfF0w== X-Received: by 2002:a17:902:b7c5:: with SMTP id v5-v6mr11806523plz.30.1532326289474; Sun, 22 Jul 2018 23:11:29 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id 8-v6sm11972303pfk.132.2018.07.22.23.11.25 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Jul 2018 23:11:28 -0700 (PDT) From: Baolin Wang To: robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de, orsonzhai@gmail.com, zhang.lyra@gmail.com Subject: [PATCH 4/5] arm64: dts: sprd: Add SC27XX ADC device Date: Mon, 23 Jul 2018 14:10:19 +0800 Message-Id: <1b98cf860c86f745a1efea21f39abb2ba4d5493f.1531881619.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> References: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> In-Reply-To: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> References: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180722_231140_278137_05B4BE56 X-CRM114-Status: UNSURE ( 8.74 ) X-CRM114-Notice: Please train this message. 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, arm@kernel.org, baolin.wang@linaro.org, linux-kernel@vger.kernel.org, broonie@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 Add the Spreadtrum SC27XX PMICs ADC device node which contains 32 channels. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/sc2731.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/sc2731.dtsi b/arch/arm64/boot/dts/sprd/sc2731.dtsi index fc68076..82bd642 100644 --- a/arch/arm64/boot/dts/sprd/sc2731.dtsi +++ b/arch/arm64/boot/dts/sprd/sc2731.dtsi @@ -65,6 +65,15 @@ hwlocks = <&hwlock 12>; }; + pmic_adc: adc@480 { + compatible = "sprd,sc27xx-adc", "sprd,sc2731-adc"; + reg = <0x480>; + interrupt-parent = <&sc2731_pmic>; + interrupts = <0 IRQ_TYPE_LEVEL_HIGH>; + #io-channel-cells = <1>; + hwlocks = <&hwlock 4>; + }; + vibrator@ec8 { compatible = "sprd,sc27xx-vibrator", "sprd,sc2731-vibrator"; reg = <0xec8>; From patchwork Mon Jul 23 06:10:20 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: 10539661 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C6CEE1822 for ; Mon, 23 Jul 2018 06:26:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6C9322F3E for ; Mon, 23 Jul 2018 06:26:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 98050284E4; Mon, 23 Jul 2018 06:26:23 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI 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 5282722F3E for ; Mon, 23 Jul 2018 06:26:23 +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=WyUOfpAlsz6ZnMqAQwPX4sbagQhEwpk3xeXUTk8oHzM=; b=O2nSQm23q6lpJySG7PElK9E7yC oVIQN4R/RS2W1rtugRrPom6oKs0fYSSEYwVATtWyOsX+sQ+flGLRFGaFjju4/eiyI88i4pX/EksQn JKmPO7TQlhHY0UCL4gN2KsQap+KmI0iNvxpUm331PeNYwZTe6kB0X7Uta647R5k4e492FGanmG2b8 Izn87G1cN4JT57YsVakDUr2HwnoK+L13O3VRe4oA85YYJQk5tPa8ZS480ejrSMP025F08DZQrivP7 t6gZPMKBmapq2iL4vknPIT5yyshLDhD7/h7cjWGniLnCuZrshB5wOsGvq75PUDpYrAnAvN32N3y7s FYdrE6vQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhUIV-00073H-RP; Mon, 23 Jul 2018 06:26:19 +0000 Received: from mail-pl0-x242.google.com ([2607:f8b0:400e:c01::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fhU4O-0000mU-7S for linux-arm-kernel@lists.infradead.org; Mon, 23 Jul 2018 06:11:48 +0000 Received: by mail-pl0-x242.google.com with SMTP id 94-v6so7801801ple.12 for ; Sun, 22 Jul 2018 23:11:34 -0700 (PDT) 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=NkthwwEMi7a4yyrhFCNi+MJpK1lyOUPQFCvHpXCK/FI=; b=ehSvf2q4bgyD1rOtVRN85iwNczGNSEnX1XdpFKm5kw8STBiIQljxglLbgbqfr4itot sDoXqFsHYvmeVEIdloeA6glXv0Y6uIYrZYt5RD08oT2Y6ldVOBN9VqSOYRJGLs2zk/CB d89H7qxQETsHil+ozUS5zvv3SAJGLlBRWn02w= 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=NkthwwEMi7a4yyrhFCNi+MJpK1lyOUPQFCvHpXCK/FI=; b=lIlXV2unQcMt1caTcRlkm23c+n+LhNfz8o/PkaQNH2YHg3F4JPn6dzhzIEfi//fDdT Tf8pAAMoYa0HFAvieDP5z5PInZQM2jTTj7ZlLL9qi/QKIUmWPJL3LwqtaW/d4sZd6ePT 7H2Acr4c7Tic+Xs4LbtbAF8ayrh5kPwWkx87zaQuGpsWsHg1Zb50PTQz3L3Z0se83gny HnKp9X6uxEgzcUGVGXfpc4DhX6x0g2/me6ZpJvHtTBkg7F/aH/+bRdmYfqCXcY2rof5H 6AfGFaUEcwq/RvPxfpZMCl7+sKFO6FNHwDW/StsqcUNqz32+6qiVWMZoY3tOgdZnJOEQ 85Wg== X-Gm-Message-State: AOUpUlH6aj33qA3qg9nwsJlpGJ+aUO/WoGnnxeyJFQymj8ul4fFwbi8V xLRFfDLGMZ9Ve1pzsDZVnS8bSg== X-Google-Smtp-Source: AAOMgpeGPVND+tdvQCXDTElPIXzfIq2aWGJiQVxN1QZVq22+CPSdGHOGJYfHl9kC6KwrgKExHjdwxg== X-Received: by 2002:a17:902:18a:: with SMTP id b10-v6mr11826486plb.62.1532326293671; Sun, 22 Jul 2018 23:11:33 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id 8-v6sm11972303pfk.132.2018.07.22.23.11.29 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 22 Jul 2018 23:11:33 -0700 (PDT) From: Baolin Wang To: robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, arnd@arndb.de, orsonzhai@gmail.com, zhang.lyra@gmail.com Subject: [PATCH 5/5] arm64: dts: sprd: Add one suspend timer Date: Mon, 23 Jul 2018 14:10:20 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> References: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> In-Reply-To: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> References: <2531014d066e61063b3d7906e6df55caa028e17c.1531881619.git.baolin.wang@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180722_231144_694931_010A8EAD X-CRM114-Status: UNSURE ( 9.86 ) X-CRM114-Notice: Please train this message. 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, arm@kernel.org, baolin.wang@linaro.org, linux-kernel@vger.kernel.org, broonie@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 On Spreadtrum platform, the current clocksource for timekeeping will be stopped in suspend state, thus add one always-on timer to calculate the suspend time. Signed-off-by: Baolin Wang --- arch/arm64/boot/dts/sprd/whale2.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/sprd/whale2.dtsi b/arch/arm64/boot/dts/sprd/whale2.dtsi index e9db910..eb6be56 100644 --- a/arch/arm64/boot/dts/sprd/whale2.dtsi +++ b/arch/arm64/boot/dts/sprd/whale2.dtsi @@ -146,6 +146,12 @@ clocks = <&ext_32k>; }; + timer@40050020 { + compatible = "sprd,sc9860-suspend-timer"; + reg = <0 0x40050020 0 0x20>; + clocks = <&ext_32k>; + }; + hwlock: hwspinlock@40500000 { compatible = "sprd,hwspinlock-r3p0"; reg = <0 0x40500000 0 0x1000>;