From patchwork Wed Oct 31 18:36:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10663181 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 E6FAC14DE for ; Wed, 31 Oct 2018 18:37:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2E3E2B478 for ; Wed, 31 Oct 2018 18:37:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C75052B643; Wed, 31 Oct 2018 18:37: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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 AB8B12B63D for ; Wed, 31 Oct 2018 18:37:13 +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: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:In-Reply-To:References: List-Owner; bh=f/xxWogIYPZfhPNE8G58ObjHMQEl2usjjS2gTF/pVmg=; b=grLB4U7ikk10m3 ID/usLI6PCSx5alIEpiEJN70cCaobtb96aKYnR4TdTKszO/PHToHv5Ws9XjPlHgZdFA3CgpiG6J9u 8vWdbZ7Xow3crUx9Fr7xulbjYIOYdvf363CPoY4NksE7WcnqDrbJGHT2ECav36uGtfSuzpgLRQR8Y LpZ2U5SKIWgWBs00LG6rLrM6WW8ZnWw2mRpQBpiEFupXhJWQGpFYfAFLDj3r5A/P3Vfj1EM8rPzHU bXMQAQ9R/6p3WhsCRKEq+SQWdStAyw+R7VR9dC+FGHWyQSM8OuB9QT7Npp5OnVLsc7dOlT0Fq1NEd E3DlGxChbtm5Pa3T5QDQ==; 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 1gHvMY-0004kY-Pf; Wed, 31 Oct 2018 18:37:06 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHvMU-0004it-BE for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 18:37:04 +0000 Received: by mail-pf1-x441.google.com with SMTP id g21-v6so8025539pfi.7 for ; Wed, 31 Oct 2018 11:36:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=U7lbeeSvEnZI4wYO4AdsAOv6p+rSk6vo3glAOsyex2g=; b=M4ht3Mz5mve84T3gpNuDl6d1buS5287grui3JQvm1qQQ4jS3FAjjA2yrdGq5q8uySQ dkpAkJl8wCOSa+IqEfGxldrsqAVp5bgTQkQqFATzfGUn3q2kE4kPTJ0sGUZkHCSNW+wU 7P0UIgUq70mgkoxYR0ng1ntqZem/kdV9eXDTE= 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:mime-version :content-transfer-encoding; bh=U7lbeeSvEnZI4wYO4AdsAOv6p+rSk6vo3glAOsyex2g=; b=tMpogDL9HA2MzrkNWHO82R0nwL+YhLJYjjE9QHz9SM8Z4eDFl2hJ0//MLw4nvHORJZ A7yzB0pYQJzt6L6PTaL83Y18Y6r/QBCVyfCQCpzyRZt+HSljDXd+IpWD5uLMoyNiKx6Z vdEiRh4ggonZljmNZUN3OOkVPYHvb/+dAaYisy0phzhXB7+1ClbAWqyNlYWpwvzaBHRg GdkW3kg1n+ISSUi+JK5efc2pKjt0X7zuZuaq/NE6+czP3aG6yVzduS4pmAg1ozWLTSW4 sO/izJIa/eA/fLXoO3Gr2I9Iaq5y0dM5d3CoVFO4OxPkxqJxJGgdq+B92Y9+dQku0EE8 0j8g== X-Gm-Message-State: AGRZ1gIrFx9Yxbzz/rdz5WIyUqClWvMFDmc5F3p1HB/iPkXiXHLfG+cB sANYEFofrMl8gTiVKFde34TOjw== X-Google-Smtp-Source: AJdET5d6SDNBgqzm6vbzEWsm8SaMihOKNtoV9jru8Y8s1qsmoH/HIIrxRazbm2ZuXDr2CTouctckMA== X-Received: by 2002:a62:5e02:: with SMTP id s2-v6mr4713768pfb.146.1541011010932; Wed, 31 Oct 2018 11:36:50 -0700 (PDT) Received: from localhost.localdomain ([2409:4070:221e:94ae:dc27:379e:a542:5441]) by smtp.gmail.com with ESMTPSA id 72-v6sm37165627pfl.126.2018.10.31.11.36.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Oct 2018 11:36:50 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 1/7] clk: sunxi-ng: sun50i: h6: Fix MMC clock mux width Date: Thu, 1 Nov 2018 00:06:28 +0530 Message-Id: <20181031183634.29640-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181031_113702_384034_703FE23E X-CRM114-Status: GOOD ( 13.34 ) 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: Jagan Teki 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 MUX bits for MMC clock register range are 25:24 where 24 is shift and 2 is width So fix the width number from 3 to 2. Fixes: 524353ea480b ("clk: sunxi-ng: add support for the Allwinner H6 CCU") Signed-off-by: Jagan Teki --- drivers/clk/sunxi-ng/ccu-sun50i-h6.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun50i-h6.c b/drivers/clk/sunxi-ng/ccu-sun50i-h6.c index 2193e1495086..e2bc612f1d3e 100644 --- a/drivers/clk/sunxi-ng/ccu-sun50i-h6.c +++ b/drivers/clk/sunxi-ng/ccu-sun50i-h6.c @@ -411,7 +411,7 @@ static const char * const mmc_parents[] = { "osc24M", "pll-periph0-2x", static SUNXI_CCU_MP_WITH_MUX_GATE_POSTDIV(mmc0_clk, "mmc0", mmc_parents, 0x830, 0, 4, /* M */ 8, 2, /* N */ - 24, 3, /* mux */ + 24, 2, /* mux */ BIT(31), /* gate */ 2, /* post-div */ 0); @@ -419,7 +419,7 @@ static SUNXI_CCU_MP_WITH_MUX_GATE_POSTDIV(mmc0_clk, "mmc0", mmc_parents, 0x830, static SUNXI_CCU_MP_WITH_MUX_GATE_POSTDIV(mmc1_clk, "mmc1", mmc_parents, 0x834, 0, 4, /* M */ 8, 2, /* N */ - 24, 3, /* mux */ + 24, 2, /* mux */ BIT(31), /* gate */ 2, /* post-div */ 0); @@ -427,7 +427,7 @@ static SUNXI_CCU_MP_WITH_MUX_GATE_POSTDIV(mmc1_clk, "mmc1", mmc_parents, 0x834, static SUNXI_CCU_MP_WITH_MUX_GATE_POSTDIV(mmc2_clk, "mmc2", mmc_parents, 0x838, 0, 4, /* M */ 8, 2, /* N */ - 24, 3, /* mux */ + 24, 2, /* mux */ BIT(31), /* gate */ 2, /* post-div */ 0); From patchwork Wed Oct 31 18:36:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10663183 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 E58BB14DE for ; Wed, 31 Oct 2018 18:37:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D239F2B478 for ; Wed, 31 Oct 2018 18:37:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C647E2B647; Wed, 31 Oct 2018 18:37:28 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 2F89A2B478 for ; Wed, 31 Oct 2018 18:37:28 +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=RXRHvoEyNblSrYhUuDX8MH6JkZK0jbea1cu9K6O4yRg=; b=O33I/S94WJE67J JExPzbe1uzY3aMH0DhYvjqJRw/JKt6A2wvY1xuO2ecXbinjc8S7JasRLA0kHabJKxa5/MCMlJ9Z1s SsnZZdogIwRwqZUa9fTjj0DzyKOKYk5Tp3FnQO5Yy7whAFn0TUEbTIn/kWQ4lONADCNqqKLiN5eRh xR5tGHtldLzCuyhOLrzNTvripKBv7kJfqNhHcmGoL7B7mVsmcoUayRdoAFO851UCF4lJAbsyWDOAU /tubuTiZu3SWPm+XKSCzDVNEFfamEotZskiv7P1FKXqY2kk2b4Kn5L2bBtD4pUZs9DUUKZNsY9mF8 zxFMfAoVki2JzXrSLPwg==; 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 1gHvMk-0004zU-Mo; Wed, 31 Oct 2018 18:37:18 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHvMa-0004jI-3K for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 18:37:13 +0000 Received: by mail-pl1-x642.google.com with SMTP id p16-v6so1544670plr.8 for ; Wed, 31 Oct 2018 11:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dly3EdXwiM28tvPh6d6lKREUSJ1IEBQJuP8IQUNlkyM=; b=ihnl4FAC9v3WdVpJKl0SyPl7KBn6MOFqsqux0aBGJqyrxnd0smcrbfimWGmiDCSDw4 WrVfp7Wq4AF+/iDSeJ92uwkXR/gCkb2Jg4jzp3A1Uuto+Gkkqrgyym7WJtI4KfU3SNbH ToWyZ9NK7CxJ26YYA5QSSTX24nVQl3yrOn2Uc= 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=dly3EdXwiM28tvPh6d6lKREUSJ1IEBQJuP8IQUNlkyM=; b=KuRcIG2UgqLwhOiBpk7Pey+6NnIhqK1Eonw7QCnr8cGf/LL2QLjhYkHMxOi9w4Lvc3 NcKTEgZh26N19WQIQcxMM8Ryg8JJGVzn5N8Jz3neZEsLUFHxuoWFRLzsttLsovHACCCI ZvKzLgnTWyodHixwAwT8IQ1dlhHdQsKgZc1QgHTTbR0ETLGnk7hzuNt03ypQ65uLfe5A 69r9vCztHjSYDW3EQ/VTQyXvs+lZ2XO+OBhAh2lZ8tS8+UyEg55RWB81Prnqr+Y2KXEL XSe0S/9i67hDn7b7DAY+6qRmWVOmUmeGbmQRo4WWu7nZJkUQzcBCx/o8v0vy+HsLdQq2 OibQ== X-Gm-Message-State: AGRZ1gK6eIetYtT+T0PNtG45tnA+rc4XrrM6/H1DUeSNRsTQ5o2jdo8a HHUo6ikjyO1s0a0tHUpoWJHcpA== X-Google-Smtp-Source: AJdET5fypv2rgSROHDnKhcW66LSzIVKvihUqi8CGUWusk2dCQnpaZMRSzmaVnCs792hyW/1ZE9rLEg== X-Received: by 2002:a17:902:ea:: with SMTP id a97-v6mr4494665pla.164.1541011017390; Wed, 31 Oct 2018 11:36:57 -0700 (PDT) Received: from localhost.localdomain ([2409:4070:221e:94ae:dc27:379e:a542:5441]) by smtp.gmail.com with ESMTPSA id 72-v6sm37165627pfl.126.2018.10.31.11.36.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Oct 2018 11:36:56 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 2/7] arm64: allwinner: h6: Add common orangepi nodes into dtsi Date: Thu, 1 Nov 2018 00:06:29 +0530 Message-Id: <20181031183634.29640-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181031183634.29640-1-jagan@amarulasolutions.com> References: <20181031183634.29640-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181031_113708_364534_ACDB8A72 X-CRM114-Status: GOOD ( 14.95 ) 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: Jagan Teki 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 Orangepi H6 boards, One Plus and Lite2 shares common nodes like axp805, uart, mmc0 etc and the common differences between them is Ethernet is available in One Plus where as Wifi, USB3, CSI port is available in Lite2. So, add common orangepi nodes into sun50i-h6-orangepi.dtsi Signed-off-by: Jagan Teki --- .../allwinner/sun50i-h6-orangepi-one-plus.dts | 140 +--------------- .../dts/allwinner/sun50i-h6-orangepi.dtsi | 150 ++++++++++++++++++ 2 files changed, 151 insertions(+), 139 deletions(-) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts index 0612c19cd994..12e17567ab56 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts @@ -4,147 +4,9 @@ * Author: Jagan Teki */ -/dts-v1/; - -#include "sun50i-h6.dtsi" - -#include +#include "sun50i-h6-orangepi.dtsi" / { model = "OrangePi One Plus"; compatible = "xunlong,orangepi-one-plus", "allwinner,sun50i-h6"; - - aliases { - serial0 = &uart0; - }; - - chosen { - stdout-path = "serial0:115200n8"; - }; -}; - -&mmc0 { - pinctrl-names = "default"; - pinctrl-0 = <&mmc0_pins>; - vmmc-supply = <®_cldo1>; - cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; - bus-width = <4>; - status = "okay"; -}; - -&r_i2c { - status = "okay"; - - axp805: pmic@36 { - compatible = "x-powers,axp805", "x-powers,axp806"; - reg = <0x36>; - interrupt-parent = <&r_intc>; - interrupts = <0 IRQ_TYPE_LEVEL_LOW>; - interrupt-controller; - #interrupt-cells = <1>; - x-powers,self-working-mode; - - regulators { - reg_aldo1: aldo1 { - regulator-always-on; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-name = "vcc-pl"; - }; - - reg_aldo2: aldo2 { - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-name = "vcc-ac200"; - }; - - reg_aldo3: aldo3 { - regulator-always-on; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-name = "vcc25-dram"; - }; - - reg_bldo1: bldo1 { - regulator-always-on; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-name = "vcc-bias-pll"; - }; - - reg_bldo2: bldo2 { - regulator-always-on; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-name = "vcc-efuse-pcie-hdmi-io"; - }; - - reg_bldo3: bldo3 { - regulator-always-on; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-name = "vcc-dcxoio"; - }; - - bldo4 { - /* unused */ - }; - - reg_cldo1: cldo1 { - regulator-always-on; - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-name = "vcc-3v3"; - }; - - reg_cldo2: cldo2 { - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-name = "vcc-wifi-1"; - }; - - reg_cldo3: cldo3 { - regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; - regulator-name = "vcc-wifi-2"; - }; - - reg_dcdca: dcdca { - regulator-always-on; - regulator-min-microvolt = <810000>; - regulator-max-microvolt = <1080000>; - regulator-name = "vdd-cpu"; - }; - - reg_dcdcc: dcdcc { - regulator-min-microvolt = <810000>; - regulator-max-microvolt = <1080000>; - regulator-name = "vdd-gpu"; - }; - - reg_dcdcd: dcdcd { - regulator-always-on; - regulator-min-microvolt = <960000>; - regulator-max-microvolt = <960000>; - regulator-name = "vdd-sys"; - }; - - reg_dcdce: dcdce { - regulator-always-on; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <1200000>; - regulator-name = "vcc-dram"; - }; - - sw { - /* unused */ - }; - }; - }; -}; - -&uart0 { - pinctrl-names = "default"; - pinctrl-0 = <&uart0_ph_pins>; - status = "okay"; }; diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi new file mode 100644 index 000000000000..0612c19cd994 --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi @@ -0,0 +1,150 @@ +// SPDX-License-Identifier: (GPL-2.0+ or MIT) +/* + * Copyright (C) 2018 Amarula Solutions + * Author: Jagan Teki + */ + +/dts-v1/; + +#include "sun50i-h6.dtsi" + +#include + +/ { + model = "OrangePi One Plus"; + compatible = "xunlong,orangepi-one-plus", "allwinner,sun50i-h6"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; +}; + +&mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins>; + vmmc-supply = <®_cldo1>; + cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; + bus-width = <4>; + status = "okay"; +}; + +&r_i2c { + status = "okay"; + + axp805: pmic@36 { + compatible = "x-powers,axp805", "x-powers,axp806"; + reg = <0x36>; + interrupt-parent = <&r_intc>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + interrupt-controller; + #interrupt-cells = <1>; + x-powers,self-working-mode; + + regulators { + reg_aldo1: aldo1 { + regulator-always-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-pl"; + }; + + reg_aldo2: aldo2 { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-ac200"; + }; + + reg_aldo3: aldo3 { + regulator-always-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc25-dram"; + }; + + reg_bldo1: bldo1 { + regulator-always-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc-bias-pll"; + }; + + reg_bldo2: bldo2 { + regulator-always-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc-efuse-pcie-hdmi-io"; + }; + + reg_bldo3: bldo3 { + regulator-always-on; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-name = "vcc-dcxoio"; + }; + + bldo4 { + /* unused */ + }; + + reg_cldo1: cldo1 { + regulator-always-on; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-3v3"; + }; + + reg_cldo2: cldo2 { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-wifi-1"; + }; + + reg_cldo3: cldo3 { + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-name = "vcc-wifi-2"; + }; + + reg_dcdca: dcdca { + regulator-always-on; + regulator-min-microvolt = <810000>; + regulator-max-microvolt = <1080000>; + regulator-name = "vdd-cpu"; + }; + + reg_dcdcc: dcdcc { + regulator-min-microvolt = <810000>; + regulator-max-microvolt = <1080000>; + regulator-name = "vdd-gpu"; + }; + + reg_dcdcd: dcdcd { + regulator-always-on; + regulator-min-microvolt = <960000>; + regulator-max-microvolt = <960000>; + regulator-name = "vdd-sys"; + }; + + reg_dcdce: dcdce { + regulator-always-on; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-name = "vcc-dram"; + }; + + sw { + /* unused */ + }; + }; + }; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_ph_pins>; + status = "okay"; +}; From patchwork Wed Oct 31 18:36:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10663185 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 F2DCE13A4 for ; Wed, 31 Oct 2018 18:37:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE6AE2B478 for ; Wed, 31 Oct 2018 18:37:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D2E612B643; Wed, 31 Oct 2018 18:37:30 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 7D68B2B478 for ; Wed, 31 Oct 2018 18:37:30 +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=gW1yfkH9Zj2LboylzBUkFrKrQ0a8CZfeD1fbnkzxZGo=; b=vCjjbUayYImvV5 MN8ty21Ba4CVTcCN28CHBSipB5jBM6C/KlMMOK33szbcj9+iQwKghpqE1/LX3BNDB2i6u7rJ0O44J VIleXKDXdBuk005JOS7+eBLCg+el5jiMaRTgcXL281Pb1nLycyicwUEpaMGi8G5rjcb//SmvxrSok +ODeXubQt7tsn1PuC+qqxVMKmHV1DyM22NgmBz5NJBtWmTPEn6HW/uBRvzm82jduSEp/zd6JkU9k3 REf/+2dyBbzGP1zNy+1XPVc5Qmrc1CkmzL8y5yXKjjv/Hq4KkNg73gxxlLSc1lt/6lx8Gadn2WdZx lBMOZLUhGvx59eN0vhVg==; 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 1gHvMu-0005Cg-GD; Wed, 31 Oct 2018 18:37:28 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHvMf-0004k3-Fn for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 18:37:16 +0000 Received: by mail-pf1-x441.google.com with SMTP id g21-v6so8025801pfi.7 for ; Wed, 31 Oct 2018 11:37:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2+xatb7GAYf1iPx9vohAUt8Lkjw2k2aXyj3u/SwygA8=; b=FBH3nMdqmuhgmU1teKrPqo+RPZdy7woz3XpS+xDhLiYfZqFsZpnN3Ko/FlUgfN6uRy mFjjj0xfiAvlITH8y/kWVADzGMIA0pevfjLh6ZPHlG+VD0dUwPnmYV31qC5biuJGNDem 87h02ur1s2ENI+feTXe5we7NkQ8QYxvoqC2CE= 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=2+xatb7GAYf1iPx9vohAUt8Lkjw2k2aXyj3u/SwygA8=; b=A1ekbDwEkuyjIN4sdAyNuSGptuhbriGNsS+AXum5JR+Afm6dlrgBv/q7dc1CBhHDA4 8s1vSRipidgUQz8YSSEmm/L70jkUlnX0/A6qWC0oW1YfENB7xqfVM544WaRi6Y2R7fSv jq3ajmXa6q9XxKEmRBjcLAChvnyMw62LPzbAHVMB/ofQkWhXKm2aItauyFJMpAus9CdZ +8Gzhm4hm3vrQnFAJ0q4SYDUfAcdO+LrxpnEnN6+LwR4xr0LR+0kAl7b+j7wp518K3aj 0MMfjgGG4HDSM0q7OLi7PDCagBEQBAI9FLSXxgjfARfQYPbWIRCiDIUV6+ufczZyoCxm MHoQ== X-Gm-Message-State: AGRZ1gJgqzuINa2OwLrYcDsmkXHhc30dSUZ+1GvEb3BMtGG5Rh8+Wecb /9FXrnLXfKHV32ZCZWnhzOPmBw== X-Google-Smtp-Source: AJdET5efM5Q9/RJtG3RBShKS55fQY3ny3lPoH5UqMxqt7cpndnVTUIFA3saEXkkcCrEQooxFGqLicg== X-Received: by 2002:a62:1803:: with SMTP id 3-v6mr4538052pfy.21.1541011022962; Wed, 31 Oct 2018 11:37:02 -0700 (PDT) Received: from localhost.localdomain ([2409:4070:221e:94ae:dc27:379e:a542:5441]) by smtp.gmail.com with ESMTPSA id 72-v6sm37165627pfl.126.2018.10.31.11.36.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Oct 2018 11:37:02 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 3/7] arm64: allwinner: h6: Add OrangePi Lite2 initial support Date: Thu, 1 Nov 2018 00:06:30 +0530 Message-Id: <20181031183634.29640-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181031183634.29640-1-jagan@amarulasolutions.com> References: <20181031183634.29640-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181031_113713_920857_31180C00 X-CRM114-Status: GOOD ( 14.54 ) 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: Jagan Teki 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: Jagan Teki OrangePi Lite2 is Allwinner H6 based open-source SBC, which support: - Allwinner H6 Quad-core 64-bit ARM Cortex-A53 - GPU Mali-T720 - 1GB LPDDR3 RAM - AXP805 PMIC - AP6356S Wifi/BT - USB 2.0, USB 3.0 Host, OTG - HDMI port - 5V/2A DC power supply Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/allwinner/Makefile | 1 + .../boot/dts/allwinner/sun50i-h6-orangepi-lite2.dts | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-lite2.dts diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile index 8d4f97f279e0..38f4a015637c 100644 --- a/arch/arm64/boot/dts/allwinner/Makefile +++ b/arch/arm64/boot/dts/allwinner/Makefile @@ -18,5 +18,6 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-pc2.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-prime.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h5-orangepi-zero-plus2.dtb +dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-lite2.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-one-plus.dtb dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64.dtb diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-lite2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-lite2.dts new file mode 100644 index 000000000000..e098a2475f2d --- /dev/null +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-lite2.dts @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: (GPL-2.0+ or MIT) +/* + * Copyright (C) 2018 Jagan Teki + */ + +#include "sun50i-h6-orangepi.dtsi" + +/ { + model = "OrangePi Lite2"; + compatible = "xunlong,orangepi-lite2", "allwinner,sun50i-h6"; +}; From patchwork Wed Oct 31 18:36:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10663187 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 C981813A4 for ; Wed, 31 Oct 2018 18:37:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B70492B478 for ; Wed, 31 Oct 2018 18:37:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB5B72B647; Wed, 31 Oct 2018 18:37:59 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 52AC92B478 for ; Wed, 31 Oct 2018 18:37:59 +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=bR1YYvALjgJAmYw52ig+9rryCNQc9z618LDS3alM48c=; b=RjcrRJj/RB+vYb 9+MAe27rZaZQvethPTL52ykYVD3xc/HbLguVFc/FDzI+eNemT+21jI+H7/p2bgyM5yzQwiRNESk1q Y7M4qGQHoGdTHSV0H5RsA+T0RH6SvxZkOwm9HAmKpXkIssSyltHZTVdraPwpamKa+fMLjAle559cL 4Ye7b2EUTYIhhEA22EFFU5f221oAcXWIhhuVQRWKoobThwDFMkTpp0Qyg/AikMWe1kwhxKIgsA6fn coJSkUi6J6JwbcMlD6EGGHXwRRscdsl370zMTV2ynn7sFs8Ai9Vm26igM6d+T8OKhSo6PJqH/aBFj CeToeeWgZVvRsiwL6/Pg==; 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 1gHvNO-0005aF-Gb; Wed, 31 Oct 2018 18:37:58 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHvMl-0004oF-OS for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 18:37:23 +0000 Received: by mail-pf1-x444.google.com with SMTP id h4-v6so8015134pfi.10 for ; Wed, 31 Oct 2018 11:37:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VtDP696hbO19uToYRi7oM6dHh9NSDT61nMATPXIXC/I=; b=b/O3jfQmePj1DX/wEvh1E1sHCiG32OHdJYfc5fz9LSkWXnNMwf09WHXyR0jQkUfy9K O9kqLyiY0Hz0Q3uIszZdCCTygWpegMfg5pcGGAf3o7Ja/AMAT9ZP8UZq/sBnDBFXTiJg ctjfIaeCukgbr1uI+C981hVVq7CdrsxUdLqVc= 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=VtDP696hbO19uToYRi7oM6dHh9NSDT61nMATPXIXC/I=; b=mrNpjOzHAoi3IjdbCzuzKrGg0RwUDnVbtAzJ4I/wrv0Vqnp2n3AmpE9QbysTHkScLX QyFLwyWRfnriCM8HasGvggckS1M6YmAeBfHDih6KRbXNYo/NyJpCX3dkluDCOBfmGL7d h/9++H/8iibwc6wzUVUvLMSVQYizp2GFSFncSaFtk8BbML9Ufgj7Co/McK/8ekvtgcgM iwMiiLH87xU1eP9G/MynpweA7eJUYCsPHtf3Sp8MfIBahJ7OstFl5bON3VcZdktYOVvG pSZyZBeYYcti3Z2OyE/Jkua4hAsuEkQZUQYrRAHEBt5/DPR+B4qFJfvZA3CVbOwJEe9Z w8fA== X-Gm-Message-State: AGRZ1gKlpEJFBVJlfq4XaRJnfxIGqgfuzZ0MOYgHH96Zqrav9/GmdmrV zJC4p1bzh2q+bQMxzwcK060SPA== X-Google-Smtp-Source: AJdET5cMSIuSoFjnbVwXw2d+D/0rORXJnxBTh1/oH9UGMwTm03/QvOSMluE4MeLZ0SEkToopfzZN+Q== X-Received: by 2002:a63:27c1:: with SMTP id n184-v6mr4209217pgn.334.1541011029505; Wed, 31 Oct 2018 11:37:09 -0700 (PDT) Received: from localhost.localdomain ([2409:4070:221e:94ae:dc27:379e:a542:5441]) by smtp.gmail.com with ESMTPSA id 72-v6sm37165627pfl.126.2018.10.31.11.37.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Oct 2018 11:37:09 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 4/7] arm64: allwinner: h6: Add MMC1 pinmux Date: Thu, 1 Nov 2018 00:06:31 +0530 Message-Id: <20181031183634.29640-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181031183634.29640-1-jagan@amarulasolutions.com> References: <20181031183634.29640-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181031_113720_150938_4960D64B X-CRM114-Status: GOOD ( 11.58 ) 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: Jagan Teki 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 MMC1 controlled is already added, but mmc1 pinmux would need to function SDIO. So, add support for it. Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index 040828d2e2c0..3b9da12e65db 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -157,6 +157,14 @@ bias-pull-up; }; + mmc1_pins: mmc1-pins { + pins = "PG0", "PG1", "PG2", "PG3", + "PG4", "PG5"; + function = "mmc1"; + drive-strength = <30>; + bias-pull-up; + }; + mmc2_pins: mmc2-pins { pins = "PC1", "PC4", "PC5", "PC6", "PC7", "PC8", "PC9", "PC10", From patchwork Wed Oct 31 18:36:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10663189 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 E59A914DE for ; Wed, 31 Oct 2018 18:38:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2F6D2B665 for ; Wed, 31 Oct 2018 18:38:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6CC22B66F; Wed, 31 Oct 2018 18:38:13 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 6E3CA2B665 for ; Wed, 31 Oct 2018 18:38:13 +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=EsIU/fp8TxhMKnS3ugsiF3bsZFGFSxZ33x0tDgDMy30=; b=NxYfDCqr/Wytzd XRtFvsfA8ghRyeupYr3RpYf0uLiUnucoa/wLkBpSWLicxqund7dzPO1vy4BvU2ZwE46sLMHxk+tZK tK0go/rHqtAUFC5ZkdjB7+g1w/xZ2rX0pL/DAReESREstnAKQLAs5uMKX6lTDmMud4qqnL1MNo3y2 8OuF/t5H+UEYP1kP0oHrHaK9WDcb6PunHrZPF+bsjZTUi3cXFLt2Z897vhnkjBH5uiOWoqMJh+Jal /m9M/MLUJ7VbPrZioLbCAtEZALFRC5gj1n8Kfhiw5FGQEQ0pb0Z7O87UqJt6IvwNMITIqTpTc2eVr AsANuy8FHjASNXjCyA0Q==; 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 1gHvNY-0005k6-3t; Wed, 31 Oct 2018 18:38:08 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHvMr-0004w8-SV for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 18:37:30 +0000 Received: by mail-pg1-x544.google.com with SMTP id f8-v6so7783783pgq.5 for ; Wed, 31 Oct 2018 11:37:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LuPFzBFJYmQDdcKvcHZoo+z52fBWOTrb1jNgMZtyKLE=; b=Q7CA6jhJVuT07mB/3wXk9EBPHZcbabe6qDsUlQvZUd1vIWvScQD3hyyPs5Zl7CzvpF JMdpohhxNkf+46RDFGxwoXMtoLRRaeCNmCOsTpfEWe2egKKm5mXn69SVBC4uar5EFAmF 07zZO7F9Lwn7Ky9D/wMCNT07A6SvqgPy+xq4Y= 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=LuPFzBFJYmQDdcKvcHZoo+z52fBWOTrb1jNgMZtyKLE=; b=QPSWBsr+5MJ2iLfRvAAo/ei/V8wzwTVLb0DDQ1g8Fb+4wKEHRjPbGtLg55IpeUU28e rKBgMfiok61KIgqTv29yNoOO7My0aB2i+6lf5bOKDK5WvCmV5Nuf1tkhQKgXE3wT+pO/ Hu4IQhEzFbD6j1PORHr9PMqexclDfwGuRcemkCI/qJqvF3Tu12J5Iwykkfozxe4c3cax XiSL7eCaAeDX5VmMi2RoTC66hi7gGhUiZNAT+AcLoaZP1EMmi9BiRPbTDd59qDrQDibN JgmX7gsBvlHmCSOxI0yY/CgfSxE7U6bPL3AiEUHVpFjAl5em9i3H1+SJKuGF0ryV/Xbk fHIA== X-Gm-Message-State: AGRZ1gJjQjILJ6kkBINV2Njbm6dC0NkQPJSdHeAkSHpU0aWT3r0wStz+ vv8mFxUz4sHqZlZu4PZ3UtPGVdju+A8= X-Google-Smtp-Source: AJdET5djJihiUTM5a9Bbgzivl1eC+jiCcWDATBpCxIbLcjaXHqQKWripnNK5N2wJgU+hbww0p356hQ== X-Received: by 2002:a62:6383:: with SMTP id x125-v6mr4481066pfb.13.1541011035218; Wed, 31 Oct 2018 11:37:15 -0700 (PDT) Received: from localhost.localdomain ([2409:4070:221e:94ae:dc27:379e:a542:5441]) by smtp.gmail.com with ESMTPSA id 72-v6sm37165627pfl.126.2018.10.31.11.37.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Oct 2018 11:37:14 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 5/7] arm64: allwinner: h6: Add RTC node Date: Thu, 1 Nov 2018 00:06:32 +0530 Message-Id: <20181031183634.29640-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181031183634.29640-1-jagan@amarulasolutions.com> References: <20181031183634.29640-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181031_113726_408719_614885C3 X-CRM114-Status: GOOD ( 11.28 ) 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: Jagan Teki 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: Jagan Teki RTC controller is similar to A31, so use the same compatible for H6 and update interrupt numbers as per manual. Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index 3b9da12e65db..c8d2fe76da7e 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -266,6 +266,13 @@ status = "disabled"; }; + rtc: rtc@7000000 { + compatible = "allwinner,sun6i-a31-rtc"; + reg = <0x7000000 0x400>; + interrupts = , + ; + }; + r_ccu: clock@7010000 { compatible = "allwinner,sun50i-h6-r-ccu"; reg = <0x07010000 0x400>; From patchwork Wed Oct 31 18:36:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10663191 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 E04D514DE for ; Wed, 31 Oct 2018 18:38:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CBB492B3D2 for ; Wed, 31 Oct 2018 18:38:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC56E2B3DB; Wed, 31 Oct 2018 18:38:32 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 715F62B3D2 for ; Wed, 31 Oct 2018 18:38:32 +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=/llYQHtvLVbFQQ+GslTONScchJwTbTKzvedmhUaSFbs=; b=OyaQa6XtPH5nyU XQxnxJLv4kQzqy358OudV7cgX6Rn/zk96mRBgZI/8StxYZsqSdQfe5vmIbdPmtFEGikIxECiSmIah vJZp+dI2uRqro5bel/gQw2gTJHPy6VLdL6VVhpn9zK/NVCPYoWzuof8fQR9KcCn1pIu35bmpsEJVP zcbhiguCxBN5dZ0UDClaD8nJ1QGQnMr5UhrBH2PAQB9T8SRHdZ42UR7ekhmDuEvGAIBS2P+3F9SYn DSUg77cTbAwzkByJ9flRSjVFzs+Xf8DKu2kihb8fN7r7FGoM28hKs1DeNcK25mBQXj92X+40aU+/d 7YUQn5zkVkeukTQL3w5Q==; 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 1gHvNk-0005ze-3n; Wed, 31 Oct 2018 18:38:20 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHvMw-00052d-UC for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 18:37:46 +0000 Received: by mail-pl1-x642.google.com with SMTP id s5-v6so6011353plq.11 for ; Wed, 31 Oct 2018 11:37:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gIRB5G3XsW3tJTCLvGiA9lY0I+P7n55uNj5h9NRT6WE=; b=ZXLZaI0+jRaO7bVSzpPu910lXuzCRg249Oq9+ztyHUz4KMyOsSzEimeCD3owzJWCMy 9sHkpfYZ0mpONOGqJddw7zPYfxTn+URuCUoyCZdOkQlS9zFSf/tXdALjxLsNsJySuM9i 9NJKRkn7iilOAMUbO6O3JTtgZdnVap/eN+5FY= 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=gIRB5G3XsW3tJTCLvGiA9lY0I+P7n55uNj5h9NRT6WE=; b=TP8rCdWeNuQEyFQsIs17Gjk/PsXPoU1VpmYw9mgCweczELjze3ptmCAXc30TG97hHQ A1o4ihHBBc6U0d20dE93hw3pLny9AvFivWaP4sgVikk9ohwO2T17bkV/qp1xGvhcyiaJ osMZmq0WBBT4KjKWt4xQSLDtP8o9qvcmUJN3+TEhjHmQRczII7PHveWDoKYBETNYn1PY ictTj+NGYYacBh1tRuP8Iv6K9IgO9dXt1ErUqmZAW1mThoF9oPUgqwaGp90BHiNP/v6M gzWWFmBlthd5d/PzhozixqNg2bmlxSmATNpBMMz3PWXwTfWyg9U5ReTmTdG3XtXJGzks 1MUA== X-Gm-Message-State: AGRZ1gJpFc0U9FKlUxSCZHDWaYFq6FYPyRvKPjPN4xHm9zEv4MnVf1WM 7yEKML1xxJEJJfiWgXPh6LDE9A== X-Google-Smtp-Source: AJdET5fivIN/NemrTnjIluz6pB0mzUySCyo847nvKJbACFGRW8iE9WYyxMcV/WTa1Sq68+++2Q2dxw== X-Received: by 2002:a17:902:be01:: with SMTP id r1-v6mr4384341pls.143.1541011040331; Wed, 31 Oct 2018 11:37:20 -0700 (PDT) Received: from localhost.localdomain ([2409:4070:221e:94ae:dc27:379e:a542:5441]) by smtp.gmail.com with ESMTPSA id 72-v6sm37165627pfl.126.2018.10.31.11.37.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Oct 2018 11:37:19 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 6/7] arm64: allwinner: h6: Add RTC clock to phandle 32kHz external oscillator Date: Thu, 1 Nov 2018 00:06:33 +0530 Message-Id: <20181031183634.29640-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181031183634.29640-1-jagan@amarulasolutions.com> References: <20181031183634.29640-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181031_113731_622102_37F6C535 X-CRM114-Status: GOOD ( 11.78 ) 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: Jagan Teki 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: Jagan Teki Outside of SOC few chips need external clock source through RTC example Wifi chip. So H6 RTC clock node need to phandle 32kHz external oscillator like A64 RTC. Add support for it. prefix rtc- with clock-output-names defined in dt-binding to avoid confusion with existing osc32k name. Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi index c8d2fe76da7e..028ec286aa0a 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi @@ -271,6 +271,9 @@ reg = <0x7000000 0x400>; interrupts = , ; + clock-output-names = "rtc-osc32k", "rtc-osc32k-out"; + clocks = <&osc32k>; + #clock-cells = <1>; }; r_ccu: clock@7010000 { From patchwork Wed Oct 31 18:36:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10663219 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 6CE0A13B5 for ; Wed, 31 Oct 2018 19:47:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D1C82ADAA for ; Wed, 31 Oct 2018 19:47:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 606D82B752; Wed, 31 Oct 2018 19:47:18 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 1D65E2ADAA for ; Wed, 31 Oct 2018 19:47:17 +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=7n1zWVTGQc2lnLvZ99GVROs+hlqJ/oqhaJ9OdNbXSG8=; b=HhnFKN752YyKgV 5EUanzoxxstw8oj1FdhVGmJn97GPMSmSMvlNGDu0w3OlMy5H+utuaI9FiwyPQwG2itzhbCXGmhJbf e2AaVsleNMYXmD9meN47nEe67NbuT7GN2RK9oTa8E/tYhtHpvPVs4a8NnQz5wYfRLj1WM1tVLh2jg k3hG3h8Yt1Ni46vNi+d7EqxU4dUXgEJVWt2pmWnLoHDLBkI1k3yrVkNMXFrwgCQCo0scGmVrnPhgG 0o54v+Ugiz+B9ldJi0o2SWGKxU0CnjdE/BteJ3ivpmJZLxW8PeSgTBnPBkvH2R234XlIT59I9kdMS pzv9Mdn8M3hgR/Vn0a6Q==; 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 1gHwSR-00008t-RT; Wed, 31 Oct 2018 19:47:15 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHwS8-0008Je-RR for linux-arm-kernel@bombadil.infradead.org; Wed, 31 Oct 2018 19:46:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wHPgnCxqq5e0L9jJ6bVuEGeSV4D7Kq7aHeh6/Y3ccbE=; b=C1+VtWLNQeVCVPAMo8DHZwvuXV cGKEG1gIUREV0sLUHFhz+AHyGk8nurR/iAW1gz98ICOG9JR5EpbGzlC8fTAgWzx3ZnxdbntlV2VuN dqL9NgHMsXpKRHWCcmxjW3PqFUgBkUUZ7cKOjJCfV0AiWbOTsdz4uIJiXyUv02paqX8WgqsalCAes cHnP2Jf/1WYT4pFpbWH+GkkBrGpl5bD5Ypom73sFHJybWygVSg8RQjMZ4e+kHkp9oZxObrGTwyztE MO6ssDYk+w1BNQoLkef44lgyrAfDlc33yp1Su5l2vUbovN0VVOEN2kN6N3PcFoMxqaeR4q0YJc/cK I2+gZfZA==; Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gHvN6-0006DX-JP for linux-arm-kernel@lists.infradead.org; Wed, 31 Oct 2018 18:37:41 +0000 Received: by mail-pf1-x430.google.com with SMTP id c25-v6so8028607pfe.6 for ; Wed, 31 Oct 2018 11:37:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wHPgnCxqq5e0L9jJ6bVuEGeSV4D7Kq7aHeh6/Y3ccbE=; b=EMrQreV6Yi1OdKVIn3mcavYfygx+uGfowj7ltEWaFFo/xLaQJwyrIxoH2cJz8YmfWt E12j4obY1c8NgMf2Snm2qrW0onUE3yiHPDjjUzkWuRaAi0r5jhxG7uIpR70XzIdmZSLe NQcs4ugCwBWxdEX1XFairG+vNsiA+cahpX9Mw= 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=wHPgnCxqq5e0L9jJ6bVuEGeSV4D7Kq7aHeh6/Y3ccbE=; b=Xe/u5ohe1R9ss6Ams+rph3Ma3pnxgIiZhD0QVGssAnpVHQLJTroU1+mGE8XulJeUyg 2Q8hBdhzsEgQXmpWDZh7qmjUdKh8c4MxRnRgJxulLTuA0vVDUgcJ/Unfh3brbCpP+xNN gRjMAJch7GwMHV7jmXd4QaUR5mgNT2vWBwJxOZOOP94oMYm8GIRddFCIYzJKddKRzI1k Ok9I4uLlkARVgAXX4h9YpOIn7eYHUtx+pPzcQyUZgRQbp07sVdRIFxeRgR1dJfQ4lZhI TpiBO5Gj5sRgSuWsCbINB1rWpqGwX7p7eVD1XSUIYsWaXNU0sjI/RuWqhPNVOmBVNt7s uCOQ== X-Gm-Message-State: AGRZ1gKn7Y1KlFn7zHG+LK2m+9QjAodugLFSQhWaUXUYScfm2M14uhrN UQpTT+uti+YHFPhkP/F75w6rPbOOdM4= X-Google-Smtp-Source: AJdET5dIKqaeL7zBZUtwMgEeuzpgCaemCrL4QomOCbt2bDBlLxFL6ksUdMv3tbqYH4SljTb2D3VWAw== X-Received: by 2002:a62:8145:: with SMTP id t66-v6mr4533951pfd.246.1541011045621; Wed, 31 Oct 2018 11:37:25 -0700 (PDT) Received: from localhost.localdomain ([2409:4070:221e:94ae:dc27:379e:a542:5441]) by smtp.gmail.com with ESMTPSA id 72-v6sm37165627pfl.126.2018.10.31.11.37.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 31 Oct 2018 11:37:25 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [RFC PATCH 7/7] arm64: allwinner: h6: orangepi-liet2: Enable AP6356S WiFi support Date: Thu, 1 Nov 2018 00:06:34 +0530 Message-Id: <20181031183634.29640-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181031183634.29640-1-jagan@amarulasolutions.com> References: <20181031183634.29640-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181031_143740_647097_0EA9BE5C X-CRM114-Status: GOOD ( 11.65 ) 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: Jagan Teki 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: Jagan Teki Enable AP6356S WiFi/BT combo chip on Orangepi Lite2 board: - WiFi SDIO interface is connected to MMC1 - WiFi WL-PMU-EN pin connected to gpio PM3: attach to mmc-pwrseq - WiFi WL-WAKE-AP pin connected to gpio PM0 - 32kHz external oscillator gate clock from RTC Signed-off-by: Jagan Teki --- Note: - chip detected, but failed to connect [ 129.084504] brcmfmac: brcmf_sdio_hostmail: mailbox indicates firmware halted [ 135.906409] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout .../allwinner/sun50i-h6-orangepi-lite2.dts | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-lite2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-lite2.dts index e098a2475f2d..b8012208c185 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-lite2.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-lite2.dts @@ -8,4 +8,31 @@ / { model = "OrangePi Lite2"; compatible = "xunlong,orangepi-lite2", "allwinner,sun50i-h6"; + + wifi_pwrseq: wifi-pwrseq { + compatible = "mmc-pwrseq-simple"; + clocks = <&rtc 1>; + clock-names = "ext_clock"; + reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* WL-REG-ON: PM3 */ + post-power-on-delay-ms = <200>; + }; +}; + +&mmc1 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc1_pins>; + vmmc-supply = <®_cldo2>; + vqmmc-supply = <®_bldo3>; + mmc-pwrseq = <&wifi_pwrseq>; + bus-width = <4>; + non-removable; + status = "okay"; + + brcmf: wifi@1 { + reg = <1>; + compatible = "brcm,bcm4329-fmac"; + interrupt-parent = <&r_pio>; + interrupts = <1 0 IRQ_TYPE_LEVEL_LOW>; /* WL-WAKE-AP: PM0 */ + interrupt-names = "host-wake"; + }; };