From patchwork Wed Sep 21 20:58:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 9344217 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 736A7601C2 for ; Wed, 21 Sep 2016 21:01:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 644B72A841 for ; Wed, 21 Sep 2016 21:01:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 582F12A85B; Wed, 21 Sep 2016 21:01: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=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 091B92A841 for ; Wed, 21 Sep 2016 21:01:18 +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 1bmoch-0005SA-FS; Wed, 21 Sep 2016 21:00:07 +0000 Received: from mail-lf0-x242.google.com ([2a00:1450:4010:c07::242]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bmocB-0005Dp-8A for linux-arm-kernel@lists.infradead.org; Wed, 21 Sep 2016 20:59:36 +0000 Received: by mail-lf0-x242.google.com with SMTP id l131so3041297lfl.0 for ; Wed, 21 Sep 2016 13:59:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JMPyubUidJ4YE9LOeAHSJNkka4mgg+pl9n1deeLLgVU=; b=UoxBlbNRIotZwhsq+ZnZGnb0XcDbdxFSfMnRnP0cSxu2zLq3hgh0W3X5tMAr+v27yi u0qMbFwyBJvTVq/Qck0u4RfB6fg6w94fP0Veusb1ylm5m7caidZc8GNNjrEtfyIrVPX9 WdJj+oXa/1cmRoqyK8LJS4Duy98/3nPKClUex5Y9hfLBOgXvX7WnyQ3MDpy4TKwbONHg R1tCLsb4mdTwfNuEoED9z/eijB/hgb6Ds8CK2ZYKU5x6RY2xmSrv99ev/W6OU1ISzTPP BoE7Yqn0/t9N0iabl80oV5m2tBdWqCGkuRAebxu1dBnpYukyN3F/Fr6dxHlmAVgfYAIx pdpA== 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:mime-version:content-transfer-encoding; bh=JMPyubUidJ4YE9LOeAHSJNkka4mgg+pl9n1deeLLgVU=; b=fc9qD4JCZrXTsctRDcrI2X8OtNBlVEhTMCd8fYLKCJI9zwAQjXaJ/bjfmjMbgJSSHN DX7Hj4vgsq4ZKRQNJ0H/hxNkM9Wvuy2mA3m++6xjBexuFA6R1atbbEd6YD+vQkLb1CQp oHCYaEnSDW/0xno0N+3Jk60KjwGN+5eciK1QtCNKb8GNsmPx4DcfgZyVZaCZHzxVJBs+ B1BDrzei/0iy2+YbdJP3BuuWCggUIiE0MKfW2C/eQokaPXM3EqTisczGYehCk355l3e9 95Qj8jJ0LEKR0CqIOji72QOLZy6NOw2vHYKEjVaqONVTd06c5zAHff5XmDGf4AZdlnkg 5wMg== X-Gm-Message-State: AE9vXwPwHk9faRSwablumor5kQVrnyi/s5a7UlFsNt6VtG4nlGwB7VWSURcWYSlubCC+eQ== X-Received: by 10.46.9.81 with SMTP id 78mr10777738ljj.2.1474491553175; Wed, 21 Sep 2016 13:59:13 -0700 (PDT) Received: from linux-samsung.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id o84sm890440lfi.34.2016.09.21.13.59.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Sep 2016 13:59:12 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Florian Fainelli Subject: [PATCH 2/3] ARM: BCM5301X: Enable UART on Netgear R8000 Date: Wed, 21 Sep 2016 22:58:33 +0200 Message-Id: <20160921205838.15627-2-zajec5@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20160921205838.15627-1-zajec5@gmail.com> References: <20160921205838.15627-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160921_135935_578639_4FEA00CF X-CRM114-Status: GOOD ( 15.42 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Hauke Mehrtens , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Russell King , open list , Rob Herring , "maintainer:BROADCOM BCM5301X ARM ARCHITECTURE" , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , "open list:BROADCOM BCM5301X ARM ARCHITECTURE" 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: Rafał Miłecki It was tested by LEDE users, all we need is to adjust clock frequency. While we're at it create a separated DTS include file to share code with other BCM4709 devices easier. Signed-off-by: Rafał Miłecki --- arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts | 2 +- arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts | 2 +- arch/arm/boot/dts/bcm4709-netgear-r7000.dts | 2 +- arch/arm/boot/dts/bcm4709-netgear-r8000.dts | 6 +++++- arch/arm/boot/dts/bcm4709.dtsi | 11 +++++++++++ 5 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 arch/arm/boot/dts/bcm4709.dtsi diff --git a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts index 8ade7de..eac0f52 100644 --- a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts +++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts @@ -9,7 +9,7 @@ /dts-v1/; -#include "bcm4708.dtsi" +#include "bcm4709.dtsi" #include "bcm5301x-nand-cs0-bch8.dtsi" / { diff --git a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts index 0653e7e..aab39c9 100644 --- a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts +++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts @@ -9,7 +9,7 @@ /dts-v1/; -#include "bcm4708.dtsi" +#include "bcm4709.dtsi" #include "bcm5301x-nand-cs0-bch8.dtsi" / { diff --git a/arch/arm/boot/dts/bcm4709-netgear-r7000.dts b/arch/arm/boot/dts/bcm4709-netgear-r7000.dts index a22ed14..fd38d2a 100644 --- a/arch/arm/boot/dts/bcm4709-netgear-r7000.dts +++ b/arch/arm/boot/dts/bcm4709-netgear-r7000.dts @@ -9,7 +9,7 @@ /dts-v1/; -#include "bcm4708.dtsi" +#include "bcm4709.dtsi" #include "bcm5301x-nand-cs0-bch8.dtsi" / { diff --git a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts index ca18151..92f8a72 100644 --- a/arch/arm/boot/dts/bcm4709-netgear-r8000.dts +++ b/arch/arm/boot/dts/bcm4709-netgear-r8000.dts @@ -9,7 +9,7 @@ /dts-v1/; -#include "bcm4708.dtsi" +#include "bcm4709.dtsi" #include "bcm5301x-nand-cs0-bch8.dtsi" / { @@ -107,6 +107,10 @@ }; }; +&uart0 { + status = "okay"; +}; + &usb2 { vcc-gpio = <&chipcommon 0 GPIO_ACTIVE_HIGH>; }; diff --git a/arch/arm/boot/dts/bcm4709.dtsi b/arch/arm/boot/dts/bcm4709.dtsi new file mode 100644 index 0000000..f039765 --- /dev/null +++ b/arch/arm/boot/dts/bcm4709.dtsi @@ -0,0 +1,11 @@ +/* + * Copyright (C) 2016 Rafał Miłecki + * + * Licensed under the ISC license. + */ + +#include "bcm4708.dtsi" + +&uart0 { + clock-frequency = <125000000>; +};