From patchwork Fri Dec 28 16:18:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pawe=C5=82_Chmiel?= X-Patchwork-Id: 10744573 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 73C2D13BF for ; Fri, 28 Dec 2018 16:33:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56FCB287E5 for ; Fri, 28 Dec 2018 16:33:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 48E0628B53; Fri, 28 Dec 2018 16:33:52 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 DCB2A287E5 for ; Fri, 28 Dec 2018 16:33:51 +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=LFf4YGwIP7v/EZi5J8vr/64RkJhjbZ0nI8IyfEjN9wc=; b=J1pjTy9TO7ACSr CNBQeO3E//L2K+ZGFPBhQxfr8HgrWB58BWRK/JTBNx1zeKuOSqh+CnYt84JcuhyRclmUsBtpxDUjP kvLRi8WMvvm9aD2Xl9daA/l4iJD7YPJLvPRfSbAkOtC6KAU/GiuuPrWghxfPQbvGFGVGxZK9ihIQF M2ER8x90U6NqucMYtKsDcBluAKZo813BWY6Pdwl8nYWI+wdZEQ0rT+3UUR/nm4x5/JVzyiui59ee6 rTmzwiOntuoCLNdnA8jVZeyaa7PhfXxzFoSjFhbAjXdfyavVqUOVDlAUtbxsoaHCL4c/ZLFkJMAzt e4YqIuEpLKE1ies8QX4Q==; 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 1gcv54-0001pa-Ef; Fri, 28 Dec 2018 16:33:50 +0000 Received: from mail-lf1-x143.google.com ([2a00:1450:4864:20::143]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gcuqV-0004F1-Jt for linux-arm-kernel@lists.infradead.org; Fri, 28 Dec 2018 16:18:54 +0000 Received: by mail-lf1-x143.google.com with SMTP id n18so14846322lfh.6 for ; Fri, 28 Dec 2018 08:18:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9w1ZLlGE2cGCBHYzebw54rG+E3I6QSZ6vGjxLu+2/ag=; b=DlTubREKfeCa9aZ7+uXRCp2OLRHkwN+4g7dbtuv/t8IW0kHRCAzVGpZAlWOD5+Yn1A yv2snEKvGbmkKWmpx0jDX7pRwfQ9q5DfRTDDwsVTj2wxAQU/Bc/EkU4mPrNf3weRgJBZ uBsRFGZ43flBbW330lKkcF7m09ZYiccQJVmYz+b7D6rC2IbXssH2bYqzaYWgRslRQPwo tswxDZRZ3IAOG0oYxqPNIZlBy1D2bwvTOjrlWUmUpvTxu+dn0rw5QDGQKgQPSV/cFYZ0 QjZNFpQyU1rbQd5AEmhc0WR4i1ZIZZFOTMJgO7aPOOcp+6IB4JCEWv8IX7/QnajnqYD9 3NFw== 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=9w1ZLlGE2cGCBHYzebw54rG+E3I6QSZ6vGjxLu+2/ag=; b=QZwxgUfQqRfBEOSMKmMyN498/v8lwz9STuAc5Mux7tOpv0shJr7pUyRFB+xWsR4iXu d0VkTaaRKH+meZb9UY3d6Ah6vdvMRdl+LsXqL7CP1NAHgccpZYhhH6rDx7EoVmukxO4j 80XYeag8f9aC2bhgwk4J8r02gDdJHdgP9GqHComPWkSJQhhSorGAAbPLOR4g20AKQIqu my4gyhN0D9OhP4tPAX6OWBdYGE6+j5zECAsW+jiNfqU4YLNUqoVETBQflONhIwnwi69x eHi5Xzpz3GCM7pI6nPlvijC8xexY/QClqjoTr6G6RVwLgck2iVp37CSwlbebBlFetvf1 DKYw== X-Gm-Message-State: AA+aEWb1PtQlBZRwrUZCfSD6ka3WdKLr004POfIL2bgo8UNC8HHiR9Do 3nNvinPvvYARSOqXv/DOkxc= X-Google-Smtp-Source: AFSGD/VqNmnd7QxMAHgjYqgsVPVR0SfathW41kJZPHSuNDz4Oh6rUjU/2v25yVz+Bc22fhDMHJwtyw== X-Received: by 2002:a19:982:: with SMTP id 124mr13778240lfj.138.1546013919384; Fri, 28 Dec 2018 08:18:39 -0800 (PST) Received: from localhost.localdomain ([2a02:a315:5445:5300:7146:fd07:48ff:9665]) by smtp.googlemail.com with ESMTPSA id r4sm8136502lfe.60.2018.12.28.08.18.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Dec 2018 08:18:38 -0800 (PST) From: =?utf-8?q?Pawe=C5=82_Chmiel?= To: krzk@kernel.org Subject: [PATCH 5/6] ARM: dts: s5pv210: aries: Support for more devices present on Aries Date: Fri, 28 Dec 2018 17:18:18 +0100 Message-Id: <20181228161819.18931-6-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181228161819.18931-1-pawel.mikolaj.chmiel@gmail.com> References: <20181228161819.18931-1-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181228_081848_009016_B3F3D572 X-CRM114-Status: GOOD ( 13.42 ) 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: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, xc-racer2@live.ca, linux@armlinux.org.uk, robh+dt@kernel.org, linux-kernel@vger.kernel.org, kgene@kernel.org, linux-arm-kernel@lists.infradead.org, pawel.mikolaj.chmiel@gmail.com 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 From: Jonathan Bakker This commit enables following devices present on Aries based phones: - pwm-vibrator attached to PWM 1 - poweroff support - Atmel maXTouch touchscreen. It's connected to i2c2 - Broadcom BCM4329 bluetooth over uart0 Signed-off-by: Jonathan Bakker Signed-off-by: Paweł Chmiel --- arch/arm/boot/dts/s5pv210-aries.dtsi | 68 ++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm/boot/dts/s5pv210-aries.dtsi b/arch/arm/boot/dts/s5pv210-aries.dtsi index 35ba009a1a33..b7246f879648 100644 --- a/arch/arm/boot/dts/s5pv210-aries.dtsi +++ b/arch/arm/boot/dts/s5pv210-aries.dtsi @@ -41,6 +41,13 @@ }; }; + vibrator_pwr: regulator-fixed-0 { + compatible = "regulator-fixed"; + regulator-name = "vibrator-en"; + enable-active-high; + gpio = <&gpj1 1 GPIO_ACTIVE_HIGH>; + }; + wifi_pwrseq: wifi-pwrseq { compatible = "mmc-pwrseq-simple"; reset-gpios = <&gpg1 2 GPIO_ACTIVE_LOW>; @@ -314,6 +321,22 @@ reg = <0x36>; }; }; + + vibrator: pwm-vibrator { + compatible = "pwm-vibrator"; + pwms = <&pwm 1 44642 0>; + pwm-names = "enable"; + vcc-supply = <&vibrator_pwr>; + pinctrl-names = "default"; + pinctrl-0 = <&pwm1_out>; + }; + + poweroff: syscon-poweroff { + compatible = "syscon-poweroff"; + regmap = <&pmu_syscon>; + offset = <0x681c>; /* PS_HOLD_CONTROL */ + value = <0x5200>; + }; }; &fimd { @@ -347,6 +370,23 @@ status = "okay"; }; +&i2c2 { + samsung,i2c-sda-delay = <100>; + samsung,i2c-max-bus-freq = <400000>; + samsung,i2c-slave-addr = <0x10>; + status = "okay"; + + touchscreen@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + interrupt-parent = <&gpj0>; + interrupts = <5 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&ts_irq>; + reset-gpios = <&gpj1 3 GPIO_ACTIVE_HIGH>; + }; +}; + &mfc { memory-region = <&mfc_left>, <&mfc_right>; }; @@ -372,6 +412,13 @@ samsung,pin-drv = ; }; + bt_host_wake: bt-host-wake { + samsung,pins = "gph2-5"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + tf_detect: tf-detect { samsung,pins = "gph3-4"; samsung,pin-function = ; @@ -384,6 +431,17 @@ samsung,pin-function = ; samsung,pin-pud = ; }; + + ts_irq: ts-irq { + samsung,pins = "gpj0-5"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; +}; + +&pwm { + samsung,pwm-outputs = <1>; }; &sdhci1 { @@ -421,6 +479,16 @@ &uart0 { status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + max-speed = <115200>; + pinctrl-names = "default"; + pinctrl-0 = <&uart0_data &uart0_fctl &bt_host_wake>; + shutdown-gpios = <&gpb 3 GPIO_ACTIVE_HIGH>; + device-wakeup-gpios = <&gpg3 4 GPIO_ACTIVE_HIGH>; + host-wakeup-gpios = <&gph2 5 GPIO_ACTIVE_HIGH>; + }; }; &uart1 {