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>;