From patchwork Sat Oct 13 09:45:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: He Yangxuan X-Patchwork-Id: 10640081 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 7EB821869 for ; Sat, 13 Oct 2018 09:45:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 617B12B2BE for ; Sat, 13 Oct 2018 09:45:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 560952B2C1; Sat, 13 Oct 2018 09:45: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=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 F3A922B2BE for ; Sat, 13 Oct 2018 09:45: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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=Aw5ZLMfksKLImYGpQwMXTQfYrfEZx6W44WhrHMBQqP8=; b=S1n 685EmHl8181yBj4/EPP0TOmrXyyNOFsZCcxM4f46xPrtrWKJCl5NWm8A+vXLE7K+S5fbXPgzPjG8B 5HGvisHUBD1vlv8gznyELD7nG/1b1LzjA3BOmKHTjl7/qnmeovrO6UFktDxgWhr7r/9vV9+7IUJ3M mDnkY5VEsL0XpdDw+gOzc0XK14OCmeJGO0hJ0BRzOOysOG6nFfQH9F5tw4ZlREWrLGZAi9VYKxFOr NQpVz+oVzdHcNUTbNx54bkdvf4rYMz/mIK55ErUueH8DgpWYnCluJY0hPkAjWwf+iHwVHhUTl4rqr 3uNMltT1LTO1z/MhO5bqmZfS42bEFVw==; 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 1gBGUA-00038T-Cy; Sat, 13 Oct 2018 09:45:26 +0000 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gBGU7-0002bd-Bb for linux-amlogic@lists.infradead.org; Sat, 13 Oct 2018 09:45:25 +0000 Received: by mail-pg1-x541.google.com with SMTP id v133-v6so6960913pgb.2 for ; Sat, 13 Oct 2018 02:45:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=czoreoLjEd/avjWmGEsEg8MUjtXL1a4TOmJdba22T4c=; b=Rs+6XkOjx7jfFDxeCA1kysAj2oGEktzuvIt8GvdZsupmHq/QEfxZIOCcfJtH17DexE bJub+kTlx2rayrVujNofH0XkrKxW2BArKR2Db8vNL5qYZhRfdqMlEjj9SHDPz2S0SduI ydLtabnlXHc9V88L+EO3Olp3ItCgnI5xJNplirW9DMGa93rggPLaCyOQkaGB/+5GDefx xoKcFs59uCh+0p0hRmVKputA0mIXxRrpUX7sfDa4hDQawJFNDl+Sal8by3wcUHj3lIWp Np/flzSSPT8iOgxcceOBAkmBYQs2/F8oLSscHPqMceRiYjFbL9Bgj2eqEt5boejKCqV0 d1CA== 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; bh=czoreoLjEd/avjWmGEsEg8MUjtXL1a4TOmJdba22T4c=; b=Skh3x6BbyVrlpp5sznvRzoarZgffNytgJsfrPZY9my57CxVRKHz3+tfoI/UNgyuoGS RpMawSUiGwSPsUvEqIKNQr1F7h+g3JocuXzkHQyU1iCRXnT8GRw39u7nkNa300ssRYsK f1y5k0P3H+hUp2EFCzm9ilz0oOAsnMURuFHncBDTLkE+I8D4u72qDO2Bmha7qbOSn1Ws 7gBWLlYb4dE+59l2v/+TdxhDZaT8aQ3quZN3eRLISj4hAIjuDRDsISS5FB7DDHmu3TmY Bc6jFdCUpUSgnB9z8eqW4oxM9YLdk8fKAvGiNFhJMM7QE3Wd2sxhqWIBdWgULubQ2n8i ZNJg== X-Gm-Message-State: ABuFfojXIc6IYcTJd1OO0XrotTR8nWKgRG86UDgZq31mmugATCEiMOyt 5gr13aeKkUfxBzwlnxh/iugL6w9gUSmLWA== X-Google-Smtp-Source: ACcGV60aqGZVXCqcuYjsFL5cB60Uuq4PNR/YVc6Nd91Ks1uZTJ74ax9YJeBZVS1NH0TiB8PSthIEKg== X-Received: by 2002:a63:b95c:: with SMTP id v28-v6mr8696848pgo.221.1539423912001; Sat, 13 Oct 2018 02:45:12 -0700 (PDT) Received: from localhost.localdomain ([45.76.192.69]) by smtp.gmail.com with ESMTPSA id j14-v6sm5886076pgh.52.2018.10.13.02.45.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Oct 2018 02:45:11 -0700 (PDT) From: yangxuan8282@gmail.com To: linux-amlogic@lists.infradead.org Subject: [PATCH] arm64: dts: meson-gxl: add support for phicomm n1 Date: Sat, 13 Oct 2018 17:45:02 +0800 Message-Id: <20181013094502.7563-1-yangxuan8282@gmail.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181013_024523_401277_228B98E1 X-CRM114-Status: GOOD ( 13.65 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: carlo@caione.org, khilman@baylibre.com, yangxuan8282@gmail.com 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 From: He Yangxuan This patch adds support for the Phicomm N1. This device based on P230 reference design. The phy is RTL8211F, need to disable Energy Efficient Ethernet (EEE) to make it stable. And this box doesn't have cvbs, so disable related section in device tree. Signed-off-by: He Yangxuan --- arch/arm64/boot/dts/amlogic/Makefile | 1 + .../dts/amlogic/meson-gxl-s905d-phicomm-n1.dts | 32 ++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 arch/arm64/boot/dts/amlogic/meson-gxl-s905d-phicomm-n1.dts diff --git a/arch/arm64/boot/dts/amlogic/Makefile b/arch/arm64/boot/dts/amlogic/Makefile index a97c0e2d7..ebd96da2c 100644 --- a/arch/arm64/boot/dts/amlogic/Makefile +++ b/arch/arm64/boot/dts/amlogic/Makefile @@ -17,6 +17,7 @@ dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-nexbox-a95x.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905x-p212.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-p230.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-p231.dtb +dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905d-phicomm-n1.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s805x-p241.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-p281.dtb dtb-$(CONFIG_ARCH_MESON) += meson-gxl-s905w-tx3-mini.dtb diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-phicomm-n1.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-phicomm-n1.dts new file mode 100644 index 000000000..1daf58df0 --- /dev/null +++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905d-phicomm-n1.dts @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2018 He Yangxuan + */ + +/dts-v1/; + +#include "meson-gxl-s905d-p230.dts" + +/ { + compatible = "phicomm,n1", "amlogic,s905d", "amlogic,meson-gxl"; + model = "Phicomm N1"; + + cvbs-connector { + status = "disabled"; + }; +}; + +&cvbs_vdac_port { + status = "disabled"; +}; + +&external_mdio { + external_phy: ethernet-phy@0 { + compatible = "ethernet-phy-id001c.c916", "ethernet-phy-ieee802.3-c22"; + reg = <0>; + eee-broken-1000t; + max-speed = <1000>; + interrupt-parent = <&gpio_intc>; + interrupts = <29 IRQ_TYPE_LEVEL_LOW>; + }; +};