From patchwork Mon Mar 18 10:04:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10857235 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 8DD93139A for ; Mon, 18 Mar 2019 10:07:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CAC929326 for ; Mon, 18 Mar 2019 10:07:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 612C529329; Mon, 18 Mar 2019 10:07: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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 EA35E29326 for ; Mon, 18 Mar 2019 10:07:07 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=j7+Ht9HUcBETeHHN8J44z6zqetYSvQCRTcxGne2Rj+4=; b=lHaBrJ0krxpWv6 kLIXAi1gqDTVaBA5XlPshdZfoaTnHWrP39jZY4XrqpX3pGKTkk5lP/1+VGXzgdEL/mk6MWYa6MlnD 3aRtAfFfGHDD2gxXIY+JitmkfuwDFf3VBSfFVszih4ow8bs/5Hylf0fn0NAD/INDghYTb583bgeDR i4QW51IhMV5Bxlz+wZBmZpxQ5oRMC2lfQ2k1BKP29sbLb4BFaaIvJa6TPrkW+wsie9PLJhol3wV1Z 2cLl7G92LGtkqVHJyURf0uWFGOtqAEzw8kGpxBUvTWM6TZqZFilFu8wsBCVyFmToemelNJWsVsPP3 x33ykTL/lzDV1Ycy/ZNg==; 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 1h5pAf-00036E-W3; Mon, 18 Mar 2019 10:07:06 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h5p8n-0000LX-Hj for linux-arm-kernel@lists.infradead.org; Mon, 18 Mar 2019 10:05:15 +0000 Received: by mail-wm1-x344.google.com with SMTP id f65so12314884wma.2 for ; Mon, 18 Mar 2019 03:05:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yTSmlAuPBb+wFgaEuXPpRyLK6j0/0XQ2Tmwdu0EaftU=; b=Q2mm25yPZpTAixhSBfuM11tBTZPawjVW8RLyhlZgr2LkqG/ArXBMqfPBD8oi0Cnf/M 7WWOa2anbdQL7CoOhBlI6bV3FEeSAEBOXYnIbZjz+ovmroP9dC8HxQTvsMcYEzS2p3ro U7Kojl2qWPzl+NcA353n0+CEA6qe7I9SnZdYg6IDM/uQ/C4egsu3GBiR6y5Hag44szEE dP16aRBajcIr6ad/M1Oed689/4lS8/Uq8klpoYKxEboDDGn3ADCXhE/15HdNe/74+Vvh UPO3EjpZe8+ijiH4vrc+Q9UemFUIOUTUQY6d0I03WW/ZosBg1xvjYf835Njdp98BESbt Q2fg== 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:mime-version:content-transfer-encoding; bh=yTSmlAuPBb+wFgaEuXPpRyLK6j0/0XQ2Tmwdu0EaftU=; b=jRxFIhlnju+Bhk1TcYF0JCIhiyFzBWVWHJelXKjubVr+4Is4uPaqYLheCnu72EREFT Ae+UU9A/TMCIGhEc77/u8gC44lKSIlwQbRgOiOZUkgZudrx9iFAcYd9PbKPyOu0j2JXZ 4zK5t+6c6ZZ5zDyWDAOveZrF9Lza6Y2deDCFaGqB6yRi1jvE6LWUS0/Wr3Uv0xqSc824 JReXL0I1DbJATSpPqkj7bVLcNhs5nQ3LoXm3v8gZh0O86rft9hLi5j5drTfKdKWl1X1i pbmVzCD5grXGnfrUTxNjyPrcy2IyqI/sydTrQNXZPgRaE4xO0JEv3/51V3miXXu2OVyk rwMA== X-Gm-Message-State: APjAAAVWI1GisxNsKHjMNCu0jRthN6Fy0JOLGv2ponGQeWW8TbSEcey2 GTd6+eYlnnHGX370LlV1gAP41qU6JiDncg== X-Google-Smtp-Source: APXvYqwVQ1pVzmsB48agHDckPFiHVmwqyBVJ5BGRS7CkFn3MEPbM1qlEtrwYIxu8AYXsdVtnrT5dDw== X-Received: by 2002:a1c:eb17:: with SMTP id j23mr10073625wmh.86.1552903508027; Mon, 18 Mar 2019 03:05:08 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id i11sm5216800wrp.40.2019.03.18.03.05.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Mar 2019 03:05:07 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com Subject: [PATCH v2 08/11] arm64: dts: meson-g12a-sei510: Add ADC Key and BT support Date: Mon, 18 Mar 2019 11:04:55 +0100 Message-Id: <20190318100458.5619-9-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190318100458.5619-1-narmstrong@baylibre.com> References: <20190318100458.5619-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190318_030509_988336_C9D82411 X-CRM114-Status: GOOD ( 12.17 ) 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: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong 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 support for the : - ADC Touch key - Bluetooth Module on UART A Signed-off-by: Neil Armstrong Acked-by: Martin Blumenstingl --- .../boot/dts/amlogic/meson-g12a-sei510.dts | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts index 43d57e20294a..ebdad5a192f1 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts @@ -7,6 +7,7 @@ #include "meson-g12a.dtsi" #include +#include #include / { @@ -17,6 +18,19 @@ serial0 = &uart_AO; }; + adc_keys { + compatible = "adc-keys"; + io-channels = <&saradc 0>; + io-channel-names = "buttons"; + keyup-threshold-microvolt = <1800000>; + + button-onoff { + label = "On/Off"; + linux,code = ; + press-threshold-microvolt = <1700000>; + }; + }; + ao_5v: regulator-ao_5v { compatible = "regulator-fixed"; regulator-name = "AO_5V"; @@ -87,7 +101,23 @@ vin-supply = <&vddao_3v3>; regulator-always-on; }; +}; + +&saradc { + status = "okay"; + vref-supply = <&vddio_ao1v8>; +}; + +&uart_A { + status = "okay"; + pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; + pinctrl-names = "default"; + uart-has-rtscts; + bluetooth { + compatible = "brcm,bcm43438-bt"; + shutdown-gpios = <&gpio GPIOX_17 GPIO_ACTIVE_HIGH>; + }; }; &uart_AO {