From patchwork Sun Apr 26 18:36:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Bakker X-Patchwork-Id: 213420 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.5 required=3.0 tests=FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8EDCAC55199 for ; Sun, 26 Apr 2020 18:36:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7EF8C21775 for ; Sun, 26 Apr 2020 18:36:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726381AbgDZSgt (ORCPT ); Sun, 26 Apr 2020 14:36:49 -0400 Received: from mail-bn8nam11olkn2063.outbound.protection.outlook.com ([40.92.20.63]:16543 "EHLO NAM11-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726422AbgDZSgr (ORCPT ); Sun, 26 Apr 2020 14:36:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TERBe3D71jc3bunqf3b3j33MSbHJbPgAeKc25UIAFUdn341xHAR1EtB7/yriksjiazr8xiSs2bJXp2husdD9g6XfDigtJ4k9QOOIkndY5xAj7lW367JAsKKdfNOsk+qMtH72qmECwd+XUh10siiQH5yiqOjhpxRNEvBC2t8f+X0/aJFSFlcAEUOUlxBog4Pr77fgPKCJb+WkQYerN7PaXOt1zGqhpFDqeS2n2VXhoq6x/jVtWF99Qr5offsor9pvh0mJSXAGu+XgA/jVWvxY1RtnTmXyUxay56POS4fxoPi2aMDqpMxYdFhIP1A5Alpl7+aZ7eBnJPkJPlGdrFh81w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+m3dwh5f0Yt0be+I7iJmpiKwHWmgtipkAYvpkcSrQkc=; b=T+a2sdR+CUT47Q+6aQQJ5DrXT1iCmZbC7XAu3thpB4Fa+z5GAUptP9yFDxG0DZBf7wQzUnFGO4Hh//xY+7KVFDZqKO7mclWCnfk5LAN1FAaKytgLv1GxpMIi6zN4bqUZymRTVCV9BPZpmsMrQBYmJLpE5qKG+TSemCd2azVZBGC7X9CE8kSCEekFwnHxBm3J+RlkZ93Qi9FrnIzjSmCDk8Ip3xvSGpGf9R+9PG8grUXm53hMSv2rhaArbEb05kSv4ZVnEJ5OT1oSNaDxHila5iVBmE+X/v1z4QKLlOFDJWkOeiXvH6yvOPNnjmL+sAUVngOGbweBjnco4ZCEw0LJ2Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=live.ca; dmarc=pass action=none header.from=live.ca; dkim=pass header.d=live.ca; arc=none Received: from CO1NAM11FT036.eop-nam11.prod.protection.outlook.com (2a01:111:e400:3861::49) by CO1NAM11HT014.eop-nam11.prod.protection.outlook.com (2a01:111:e400:3861::96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.15; Sun, 26 Apr 2020 18:36:44 +0000 Received: from BN6PR04MB0660.namprd04.prod.outlook.com (2a01:111:e400:3861::41) by CO1NAM11FT036.mail.protection.outlook.com (2a01:111:e400:3861::124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2937.15 via Frontend Transport; Sun, 26 Apr 2020 18:36:44 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:5CD6D4D16207B7894C369E80445E2697B7F28617A653BDF908B5ED5632BFA8A3; UpperCasedChecksum:F471A38B520661A4374721F22382B181E1014C3D44CF344B8D6E92B52526EFD3; SizeAsReceived:7791; Count:50 Received: from BN6PR04MB0660.namprd04.prod.outlook.com ([fe80::ad10:4127:4bc8:76fc]) by BN6PR04MB0660.namprd04.prod.outlook.com ([fe80::ad10:4127:4bc8:76fc%6]) with mapi id 15.20.2937.020; Sun, 26 Apr 2020 18:36:44 +0000 From: Jonathan Bakker To: kgene@kernel.org, krzk@kernel.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jonathan Bakker Subject: [PATCH 10/13] arm: dts: s5pv210: aries: Enable ADC node Date: Sun, 26 Apr 2020 11:36:01 -0700 Message-ID: X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200426183604.28494-1-xc-racer2@live.ca> References: <20200426183604.28494-1-xc-racer2@live.ca> X-ClientProxiedBy: CO2PR05CA0096.namprd05.prod.outlook.com (2603:10b6:104:1::22) To BN6PR04MB0660.namprd04.prod.outlook.com (2603:10b6:404:d9::21) X-Microsoft-Original-Message-ID: <20200426183604.28494-11-xc-racer2@live.ca> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from jon-hp-6570b.telus (2001:569:fb67:7300:9f89:4b96:de0b:cd14) by CO2PR05CA0096.namprd05.prod.outlook.com (2603:10b6:104:1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.7 via Frontend Transport; Sun, 26 Apr 2020 18:36:42 +0000 X-Mailer: git-send-email 2.20.1 X-Microsoft-Original-Message-ID: <20200426183604.28494-11-xc-racer2@live.ca> X-TMN: [bzUaWg3AxuzX8vfLE5Jefy9zOyf/LZAabWScnSgff1ezVYkMct+Sr8TrEUatlNzc] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 50 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 0fc24e42-3d71-46ad-e873-08d7ea10c4aa X-MS-TrafficTypeDiagnostic: CO1NAM11HT014: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xU7Uhor1IAjgG23ZuXIMZJwA+woOGrW4gXC8GgnA42EMdIhCq7XlzRmzaaDzRH6SNVp4DQHrg10zijsRd/8EKo+C/OziRG69rvH9XS0BoAPOFAvh8A57otJBVxA5+PI1PmcF+Nr0FgtU3k9ZnsrDZsRVPj+qKTfV77OGP6WzBmTAZFtcdz14CUESXqU05LcNLiRMVFtamMiRY3LmJTZ9IA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:0; SRV:; IPV:NLI; SFV:NSPM; H:BN6PR04MB0660.namprd04.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:; DIR:OUT; SFP:1901; X-MS-Exchange-AntiSpam-MessageData: PlYiwopuTVHgjP0FubkJflm7Vq7EDJjg7ooxDHAyMXU9onPUVxlU78acQhmZsCwISHSrWpUfBSfWovQHjqWmtfxNcCAS28+ps2QNjhg9MfXO7093QPZfENalXBzFwE2amZmFQu2Cf9ad/f0rXa2Gn8znLsgefb+TaecHAVYzsAf/nWvZLeCHean7tNYR3FIjdkPBoa58CyKD1KTYNGFZtg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0fc24e42-3d71-46ad-e873-08d7ea10c4aa X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2020 18:36:44.2792 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1NAM11HT014 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org On aries boards, the ADC is used for things such as jack detection and battery temperature monitoring. It is connected to ldo4 of max8998, so only enable that regulator when we are actually using the ADC. Signed-off-by: Jonathan Bakker --- arch/arm/boot/dts/s5pv210-aries.dtsi | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/s5pv210-aries.dtsi b/arch/arm/boot/dts/s5pv210-aries.dtsi index f30bdcb9c083..a103ddb0d720 100644 --- a/arch/arm/boot/dts/s5pv210-aries.dtsi +++ b/arch/arm/boot/dts/s5pv210-aries.dtsi @@ -193,11 +193,6 @@ regulator-name = "VADC_3.3V"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; - regulator-always-on; - - regulator-state-mem { - regulator-off-in-suspend; - }; }; ldo5_reg: LDO5 { @@ -530,6 +525,12 @@ }; }; +&adc { + vdd-supply = <&ldo4_reg>; + + status = "okay"; +}; + &fimd { pinctrl-names = "default"; pinctrl-0 = <&lcd_clk &lcd_data24>;