mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 18:19:02 +00:00
2252627b0e
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
93 lines
2.3 KiB
Diff
93 lines
2.3 KiB
Diff
From 3ede027b3dce2fca07350b7587c7c8f44706c94c Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
|
|
Date: Wed, 21 Sep 2016 22:58:33 +0200
|
|
Subject: [PATCH] ARM: BCM5301X: Enable UART on Netgear R8000
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
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 <rafal@milecki.pl>
|
|
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
|
---
|
|
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
|
|
|
|
--- 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"
|
|
|
|
/ {
|
|
--- 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"
|
|
|
|
/ {
|
|
--- 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"
|
|
|
|
/ {
|
|
--- 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>;
|
|
};
|
|
--- /dev/null
|
|
+++ b/arch/arm/boot/dts/bcm4709.dtsi
|
|
@@ -0,0 +1,11 @@
|
|
+/*
|
|
+ * Copyright (C) 2016 Rafał Miłecki <rafal@milecki.pl>
|
|
+ *
|
|
+ * Licensed under the ISC license.
|
|
+ */
|
|
+
|
|
+#include "bcm4708.dtsi"
|
|
+
|
|
+&uart0 {
|
|
+ clock-frequency = <125000000>;
|
|
+};
|