From patchwork Thu Oct 20 11:42:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9386645 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0803760487 for ; Thu, 20 Oct 2016 11:44:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB47829ABE for ; Thu, 20 Oct 2016 11:44:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E011129ADA; Thu, 20 Oct 2016 11:44:14 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id 9934729ABE for ; Thu, 20 Oct 2016 11:44:14 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bxBlY-00043l-HH; Thu, 20 Oct 2016 11:44:08 +0000 Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bxBky-0003i0-OY for linux-amlogic@lists.infradead.org; Thu, 20 Oct 2016 11:43:34 +0000 Received: by mail-lf0-x235.google.com with SMTP id l131so75299225lfl.2 for ; Thu, 20 Oct 2016 04:43:12 -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; bh=zspkhASc5uv6sXxZOQKUfTApKJbWkg0H8jCmpYCngzU=; b=bEoBkKNzFVHIbiJncBJ0U68M1qlxojhhU4tQEjZPAiQVfevgNHXw3bf+74McmOw4It N49N1AoxHGH6gj3EYxhqixzseY2x2e9a2V1xB8QbDgPRWg4oeT5C/hov8TyGR1JfIVcf oAKSIrdh22/L8Jq/HQn0nfK83XutHG3anuxmQTTBCsKACv5EXYq/1g+trGNcN8s23cyG I1wFJz7FRU6DFWOCSQIjMXlfDonupnV4mekBwO0v+7XmusQZlTFft5Mde4x2VRULI1/M YH9ELvHZ5ZA+x+1jXUZrLJl/Tb/w44xWckMRki6UMzJ1WrhUK6V0uYt0jepA4dTtMTQR +pvQ== 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=zspkhASc5uv6sXxZOQKUfTApKJbWkg0H8jCmpYCngzU=; b=coUDiOR5ucp6MP0vmT3sqCnx07kE5lKZCK4hSxZKXEj7TiDhPDDvEwbKmFZZwbBNXQ eG/0r4Wtn2LJ9UH3DevHfL2tDJLeDW2x3Nph+ZMlsuburtiTOvbb8uICLKgX+/cn8jcK i/ApWwrnqgguSJyF0V4cZ+tmax7gl2bXl9lp8VRZ1Si0mXbWMtAPjpnDaIl89V+TA1Yr IrP7RJcUprSYrsQbYY64wM+J6XPOOCfdjFaK3ynLZCb1TtVOrIF13aVqNCfm5QO7NZgv R5MqtS1EYcIOsE7DVEFDgMMjVsAUjrwjDhBhrewSrUFIQs9sq+YtpRM9QA+mowhMpKC0 G9xA== X-Gm-Message-State: AA6/9RnHiVCPDIkSs+eg2/AfYxcSawanb5YTv3YbKA+LnbPfr2OF7HXk42fmkoqV2P2/ahRF X-Received: by 10.28.68.8 with SMTP id r8mr5758503wma.28.1476963790050; Thu, 20 Oct 2016 04:43:10 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id wh3sm78121585wjb.49.2016.10.20.04.43.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Oct 2016 04:43:09 -0700 (PDT) From: Neil Armstrong To: carlo@caione.org, khilman@baylibre.com Subject: [PATCH 2/4] ARM64: dts: meson-gxbb: Add Wifi 32K clock for p20x boards Date: Thu, 20 Oct 2016 13:42:55 +0200 Message-Id: <1476963777-1804-3-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1476963777-1804-1-git-send-email-narmstrong@baylibre.com> References: <1476963777-1804-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161020_044333_123573_F9FF9060 X-CRM114-Status: GOOD ( 10.06 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add a 32768Hz clock generated by the PWM E port used by the WiFi module. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi index 86e740f..6861b0a 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-p20x.dtsi @@ -111,6 +111,13 @@ compatible = "mmc-pwrseq-emmc"; reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; }; + + wifi32k: wifi32k { + compatible = "pwm-clock"; + #clock-cells = <0>; + clock-frequency = <32768>; + pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ + }; }; /* This UART is brought out to the DB9 connector */ @@ -205,3 +212,11 @@ vmmc-supply = <&vcc_3v3>; vqmmc-supply = <&vddio_boot>; }; + +&pwm_ef { + status = "okay"; + pinctrl-0 = <&pwm_e_pins>; + pinctrl-names = "default"; + clocks = <&clkc CLKID_FCLK_DIV4>; + clock-names = "clkin0"; +};