From patchwork Mon Nov 5 07:48:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10667533 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 1151913B5 for ; Mon, 5 Nov 2018 07:49:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0278B29699 for ; Mon, 5 Nov 2018 07:49:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EAA83296A7; Mon, 5 Nov 2018 07:49:16 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 73E0729699 for ; Mon, 5 Nov 2018 07:49:15 +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=zCEsYbz6n3ylOFaSuxoC46HI57uHEKI/grOkRuHbTN8=; b=h+eUDXtBFw1EVi im/P6HTLytTZqBNRV+0cYRziNZqSU8S9aAVBP3vZU7xoVnzUnfNRKKU/TFQFV7q6q02agk3N9aJ3r qx+AMXLYTw1uMUkmQZ1YTdLsCr1Bn1elEcmYxYH5nSCZ4ebUwBHgpapMqWQLN7eJgjhtKR6gROgaZ G1MTff0JXqhboUjjtdyu0/UQ0RHODub3mgjEA9wV8bHqlQRq+6WkvJBjSv1b1oqB1TF170slhcAuC oDBKEuJiO4HoRbH5NuhdvtDtyonIZDYysDhAkOT8nuFokYLt3Ed0olW4SuxeVs7jSDfwDnMkPk4mb KbTN3eZ6TvHC78ocwgnA==; 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 1gJZdJ-0000CR-HA; Mon, 05 Nov 2018 07:49:13 +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 1gJZdG-0000AM-8S for linux-arm-kernel@lists.infradead.org; Mon, 05 Nov 2018 07:49:11 +0000 Received: by mail-pf1-x441.google.com with SMTP id e22-v6so4006295pfn.8 for ; Sun, 04 Nov 2018 23:48:59 -0800 (PST) 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=GMamYhMEle5zZRUIf2BW/VRpXWPE7SAmpDCvvm5fmss=; b=fmxZV8EivFc6tMqWgoH5DCh1kjiuYNZMKQRc4quu/86Wh7Iur7KKE53qldYyIee2mm ta+d044h7EXLeedFZ7a8xOtIEkDF26I5KP8Kto649jmGRbJT3ZIrBNGehpQdzJWXIUEI f99BuoGD30T9L4jjH8S7lEGAWp5spgd76wkjw= 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=GMamYhMEle5zZRUIf2BW/VRpXWPE7SAmpDCvvm5fmss=; b=cV31xkPhTrf0m5YKJTUBCDLeRKguPCEvy+cReU6C/lFko1wYCeK2oo49vbOZVBiRoD ChCDv3NlKeD1PdD7jS/R9a4oTL2KVPSyF5uHGui4W3biIqgKHCVr+uUnyDdiuTdMgq2Z nDRdwAZx5Ckcbulq8gA7zbYRqpm8tJJzAkRjHWlJfxrg2+Y01S+mfB/JXG6os7cUcLd2 oKgA3onsqPKiUhz9YCorhZDjiTwIIoMQKlPmNZGiDfXLaeTPaxye8TfAsNmScpUUeFHp 9/pKBqkeysjmg9gzTPfMHPkajYqlG5F/fXjrTu0m+xHKAJctHEHwFep3JB/8Xg9eVNzG 92Wg== X-Gm-Message-State: AGRZ1gLQ37Ud6Li/JtP76Y4z0Vdbt+xohxjTk2YRsOD/EvDIOt2N9HgP S5+ueTGfNhLZeDz0kqpc6ro3QW3KWvQ= X-Google-Smtp-Source: AJdET5c9hXAbw7HtfKN5cVpK67Jarr05cpGFCab5CK0IMijp+7I/sQ4hns6dfWbr4tIppStjYaJyQw== X-Received: by 2002:a63:a001:: with SMTP id r1mr19383019pge.268.1541404138738; Sun, 04 Nov 2018 23:48:58 -0800 (PST) Received: from localhost.localdomain ([2405:204:638e:987d:4588:e264:3e7b:ee8]) by smtp.gmail.com with ESMTPSA id n189-v6sm14790630pfn.163.2018.11.04.23.48.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Nov 2018 23:48:58 -0800 (PST) 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 v2 1/3] clk: sunxi-ng: sun50i: h6: Fix MMC clock mux width Date: Mon, 5 Nov 2018 13:18:40 +0530 Message-Id: <20181105074842.21988-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-20181104_234910_300501_68645F70 X-CRM114-Status: GOOD ( 13.15 ) 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 Reviewed-by: Chen-Yu Tsai --- Changes for v2: - none 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 Mon Nov 5 07:48:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10667535 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 4BB2913B5 for ; Mon, 5 Nov 2018 07:49:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3BA902968C for ; Mon, 5 Nov 2018 07:49:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2EA86296A4; Mon, 5 Nov 2018 07:49:29 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 8D4602968C for ; Mon, 5 Nov 2018 07:49: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=pg4QrRCePKRwkldHztSjEHtg6A+pr+qL+RDs9/dxEQU=; b=M8PtjEUoZqgBH+ 19R6AQF7YHyHHvybM0oKPJbro7+CsS44Zmis44QqYrcVT3NyGjdwUEkOxj/I+RuYsU9IPpFyr1g2l uQGBKT38E3rPuQ0KM2gl3HQX9TR5+aY0hXeW/OmMTx8aAEN8aY5ZYx736n3Oi49+CcrZ4GDT8gVEK cZLGSghTIfb2H2sJacCjnxPChk6CtvbV8AmbHZnBIWvjnEu2Hd92EZV+lMZHd5/rRpUSD8yoAcoTu w20z3b+OEP2ZMZ4itx647gnV4HL0nFvIZkekhX20dlu1ze2d8DfPDFIW6UVCR49+XXY3eeQDg3wlt U69hvGUtQc2nE8OphmeQ==; 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 1gJZdT-0000PS-HU; Mon, 05 Nov 2018 07:49:23 +0000 Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gJZdM-0000Ao-Bl for linux-arm-kernel@lists.infradead.org; Mon, 05 Nov 2018 07:49:20 +0000 Received: by mail-pg1-x542.google.com with SMTP id r9-v6so3833044pgv.6 for ; Sun, 04 Nov 2018 23:49:04 -0800 (PST) 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=C5Q+sdCSN0WuQeiZXB4pTMtXM5r578o/UZpfe4ERYhA=; b=qDZ7zJNECXbROK9OrrJJjcASSPbX3cwDR24sUCc7bBjVEfXLQ60xUsU4U3qL1/yh0n 3XC3TZWPMAeYp8Xke6dBOeoR3heJqgOFR2i0RI+HmAHdENf+OsG+WhXSrm5yMze5Kyd+ VnilRvMgy6CNnqOweVp9bkL3keStjJERMukYs= 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=C5Q+sdCSN0WuQeiZXB4pTMtXM5r578o/UZpfe4ERYhA=; b=IRsGSpm9cl0lW5MI66sQBB+I/K7xj8n4n5qgffZ0h5lssRXyTNn3USRwfcgLrgC4xg i2APjRxxaUstRbPrCiSjAJRSK3DqHePcjQnrm9/XVoFPTDWkO4QQq0Gmk0hcp/g0V8BO lTG2jchxaJn/AlnIwp5pYlJymZcViyFBNOcoHWcg+Vag7KKL1tCB12vHqhxyvwJgUqnI FvUhPT3bYKTy/bPw9ewp6/E7bXk7y8rg0xJWD2p5UNgRjZyZ4Rwhsf1WII1Lsq/yEjyJ 3yhQZTg94Tvq4Y/jWfhSIvzq3UYpnhxrxLqLes3AxOuEYBMu6v1Voz0jRRuzFa5rDy5N nlpg== X-Gm-Message-State: AGRZ1gL/sHQHQUB4x8FSCG2jFgY27gB8gZnE0yikd31Tt4nHKv0rzoo8 wKMMUc8d6lET80ay4mvHY6jXWw== X-Google-Smtp-Source: AJdET5ebRo2+I5AumN37wSrm/4607ZUrFjWLJeTtY71tlVYVFEeJEEuMg2k1Afc+S9acZ/lYCM3Eqw== X-Received: by 2002:a62:8647:: with SMTP id x68-v6mr21981464pfd.252.1541404143428; Sun, 04 Nov 2018 23:49:03 -0800 (PST) Received: from localhost.localdomain ([2405:204:638e:987d:4588:e264:3e7b:ee8]) by smtp.gmail.com with ESMTPSA id n189-v6sm14790630pfn.163.2018.11.04.23.48.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Nov 2018 23:49:02 -0800 (PST) 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 v2 2/3] arm64: allwinner: h6: Add common orangepi nodes into dtsi Date: Mon, 5 Nov 2018 13:18:41 +0530 Message-Id: <20181105074842.21988-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181105074842.21988-1-jagan@amarulasolutions.com> References: <20181105074842.21988-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181104_234916_656503_DAF0946A X-CRM114-Status: GOOD ( 15.61 ) 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 , zhaoyifan 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 Based on the information from hardware schematics and orangepi vendor orangepi H6 boards, One Plus and Lite2 shares common nodes like axp805, uart, mmc0 etc. The common differences between them is - One Plus, has Ethernet - Lite2, has Wifi, USB3, CSI port. So, add common orangepi nodes into sun50i-h6-orangepi.dtsi so-that it case use on respective orangepi h6 board dts files. Cc: zhaoyifan Signed-off-by: Jagan Teki --- Changes for v2: - Add proper commit message about vendor intention on board differences. .../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 Mon Nov 5 07:48:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10667537 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 86C9713A4 for ; Mon, 5 Nov 2018 07:49:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 75B432968C for ; Mon, 5 Nov 2018 07:49:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6719F296A4; Mon, 5 Nov 2018 07:49:36 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW 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 142592968C for ; Mon, 5 Nov 2018 07:49:36 +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=W8M7dpkalcDp1WX4eU1p0oKLbgIZReuNVWmPE9uf7NY=; b=dHCRJpt+IGDMnL jJfAbY4+eD3BhwhZ9TDesn68ErXbG9MSY6YaKQ0Gbcxc3iPe/ICqSZoEBGsnFtoie/ei4mQyAUFK6 wWH0x6tuQ3UoS8S1Nw4D3FuYdN05XnW3EuPDLu9l1xLMphHOOpvvxOPvD27asMBP2u71Ojk1VtNkC h2H0DRU0ipgsZCTI0nzKkAcGMHbV9OQOPUhm7Mtqnw+ulFj/5wqMLMmDV+n8seWitkLd5y342AFPE O65T6Dbt4xpUifXMMIbh2O6NdmRZKo9+2PjyvqI7zABGCoyyMoBks98c8nYmoU5ipIVbkLAFmE3A7 5/kSupKlkZJItqDsDXBA==; 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 1gJZde-0000eo-Jj; Mon, 05 Nov 2018 07:49:34 +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 1gJZdQ-0000Bo-0U for linux-arm-kernel@lists.infradead.org; Mon, 05 Nov 2018 07:49:22 +0000 Received: by mail-pg1-x544.google.com with SMTP id z10so1957749pgp.7 for ; Sun, 04 Nov 2018 23:49:09 -0800 (PST) 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=bDli50Ufc215J41my+ABoEfiwBdmTRhNnLSYGE4kbB8=; b=W81cXauWw/ZYaDjuwOPtxBJERba4jvWmcTZkwjAMWjEqFb5ssHVgD6gTBtPQyFL4mT 68701bTqVHs1mNlbQso+3njpeN2B9bi4fI4v6g05vxA8zWAhcImihbbFbcgUeqEkLlEi HMDt8iJpBSqGHVVfzKGVRrBwcCy6UEy0xhyjM= 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=bDli50Ufc215J41my+ABoEfiwBdmTRhNnLSYGE4kbB8=; b=FWPbJUU5OQPdQ12J31m/zoG9K441ZhhIwvg60+wGCxtXLpetKMyF5XioNdIbUHuhg0 aPmtcG2NGhw8ueNnle5gAyUeqUv/xL4yMhgPlygTibY6rtYL54VEAMtR4brgS3R+K1Vd zUbplXXADbfmo44wf40e1+Dnvs5g33mY8Gh5KbBlO00qfDTfVi7HWFUsjn5Z6jZaldyj 5UWHEIdfq5ApcoXB/5yEOQ03paOeTkttHJm8dMQ4dfJ/E6z//kNtvFVxmc2iYCvsnyAx eyvB+l9aZlO+KtBeKLQIl94G0Jda/VIbUvueijudmB/6VLclPOSC/MXw3pPPZdO1Kir0 srSA== X-Gm-Message-State: AGRZ1gIX8W93a2WUqSK9BC7DNV0aGxenO678kOXr0yCLpWovUjAl85Ap Q9Ozoxd4yjm1cYFplWwOl/3LVVaJItY= X-Google-Smtp-Source: AJdET5fPeoC/0/hhCFddAq393wHNkiKJA/ZsgfYini041ZbeZ33sbxfPNUNBySEjLld1EWemg0Slrg== X-Received: by 2002:a63:c141:: with SMTP id p1mr15718809pgi.424.1541404149412; Sun, 04 Nov 2018 23:49:09 -0800 (PST) Received: from localhost.localdomain ([2405:204:638e:987d:4588:e264:3e7b:ee8]) by smtp.gmail.com with ESMTPSA id n189-v6sm14790630pfn.163.2018.11.04.23.49.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Nov 2018 23:49:08 -0800 (PST) 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 v2 3/3] arm64: allwinner: h6: Add OrangePi Lite2 initial support Date: Mon, 5 Nov 2018 13:18:42 +0530 Message-Id: <20181105074842.21988-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181105074842.21988-1-jagan@amarulasolutions.com> References: <20181105074842.21988-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181104_234920_520777_3B04CC69 X-CRM114-Status: GOOD ( 14.75 ) 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 --- Changes for v2: - none 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"; +};