From patchwork Wed Feb 3 04:12:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 8197711 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E045D9F38B for ; Wed, 3 Feb 2016 04:15:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 31CDA201B4 for ; Wed, 3 Feb 2016 04:15:27 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 58F3C20109 for ; Wed, 3 Feb 2016 04:15:26 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aQoqj-00061Z-ST; Wed, 03 Feb 2016 04:15:25 +0000 Received: from mail-pf0-f195.google.com ([209.85.192.195]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aQopj-0003m8-9Q; Wed, 03 Feb 2016 04:14:25 +0000 Received: by mail-pf0-f195.google.com with SMTP id n128so407976pfn.3; Tue, 02 Feb 2016 20:14:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eM9fVOP27QbW75JmRD5avtgI/iGb4L2yM6iluObNuY0=; b=DG94gX7NiNnNiD9qtBlYLIO/WF+7fHeTYDdRALqNW36Ds3/NcDg9DP2b9/eRUAWM7D M5w17bHcV+neexZil5M9RPb1KkzaD8036RTsdtCDvhI8dnOmsddYDWzQR2Rtl3pPP5oP c8noOLpopdG880PLBK02yIT+pJarsNPOc9gcFiaezltBX/+RlbcWvl2PrNxt2upwtjKx EhgiurVHEj8yVagk12luszqh3CjlQnQlKaK8QT1ASt6DAB7OitwKN4RcwLKXtqPYM4pM v1G5ZS7HcZkwWiSeKDZ+taB2FnEsRT45CX9obaoUrrLHR+Hz8TGLbbYYw6EHON9LyFAq 0bpQ== X-Gm-Message-State: AG10YORDf5nR6MPlDq0E4Q4Q52fTBYszZ5fUiXAwEzfL4K4OqDv8I0XT411nkFPF4Sy5pg== X-Received: by 10.98.89.215 with SMTP id k84mr53135050pfj.66.1454472842564; Tue, 02 Feb 2016 20:14:02 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id cf6sm5809274pad.41.2016.02.02.20.13.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Feb 2016 20:14:01 -0800 (PST) From: Caesar Wang To: Heiko Stuebner , edubezval@gmail.com Subject: [PATCH 7/8] ARM: dts: rockchip: enable the tsadc for rk3228 evb Date: Wed, 3 Feb 2016 12:12:46 +0800 Message-Id: <1454472767-5767-8-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1454472767-5767-1-git-send-email-wxt@rock-chips.com> References: <1454472767-5767-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160202_201423_585625_441B05CF X-CRM114-Status: GOOD ( 11.60 ) X-Spam-Score: -2.6 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huangtao@rock-chips.com, devicetree@vger.kernel.org, Dmitry Torokhov , Russell King , Pawel Moll , Ian Campbell , zhangqing@rock-chips.com, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Rob Herring , Kumar Gala , Mark Rutland , linux-arm-kernel@lists.infradead.org, Caesar Wang MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch enables the tsadc for rk3228 evb board. The rk3228 evb board uses the CRU to reset the chip since it hasn't the PMIC to connect it, and TSHUT is low active on evb board. Signed-off-by: Caesar Wang --- arch/arm/boot/dts/rk3228-evb.dts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/rk3228-evb.dts b/arch/arm/boot/dts/rk3228-evb.dts index e3898b8..c75cc41 100644 --- a/arch/arm/boot/dts/rk3228-evb.dts +++ b/arch/arm/boot/dts/rk3228-evb.dts @@ -61,6 +61,13 @@ status = "okay"; }; +&tsadc { + status = "okay"; + + rockchip,hw-tshut-mode = <0>; /* tshut mode 0:CRU 1:GPIO */ + rockchip,hw-tshut-polarity = <1>; /* tshut polarity 0:LOW 1:HIGH */ +}; + &uart2 { status = "okay"; };