To use USB support on AR9331 please apply additional Alban Bedel's patches: * https://patchwork.linux-mips.org/patch/11497/ * https://patchwork.linux-mips.org/patch/11495/ Changes since RFC v3: * clk: get pll registers base address from devicetree node * MIPS: dts: qca: ar9132: use short references for usb too * MIPS: dts: qca: ar9331: add usb support * MIPS: ath79: Dragino MS14: enable usb support TODO: * usb does not work on MR3020: the board just reboots after USB host initialization; AFAIR we have to use GPIO 8 for USB power activation (see https://dev.openwrt.org/browser/trunk/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-mr3020.c?rev=32454); * test usb on Onion Omega; * clk: clk-ath79.c: take into account [1] and [2] [1] https://www.linux-mips.org/archives/linux-mips/2016-01/msg00555.html [2] https://www.linux-mips.org/archives/linux-mips/2016-01/msg00736.html * ar9132_tl_wr1043nd_v1.dts -> tl_wr1043nd_v1.dts * can we use appended DTB? see https://www.linux-mips.org/archives/linux-mips/2016-01/msg00577.html Changes since RFC v2: * add Onion Omega board support; * add AR9132 SoC clock driver; * add AR9132 devicetree fixes. Changes since RFC v1: * add Dragino MS14 board support; * add "ref" oscillator input clock for pll-controller; add necessary nodes to board dts files. Antony Pavlov (15): WIP: clk: add Atheros AR724X/AR913X/AR933X SoCs clock driver MIPS: ath79: use clk-ath79.c driver for AR913X/AR933X WIP: MIPS: ath79: setup.c: disable platform code for OF boards MIPS: dts: qca: ar9132: use dt-bindings/clock/ath79-clk.h macros MIPS: dts: qca: ar9132: make extosc-related description shorter MIPS: dts: qca: ar9132_tl_wr1043nd_v1.dts: drop unused alias node MIPS: dts: qca: ar9132: use short references for uart, usb and spi nodes MIPS: dts: qca: simplify Makefile MIPS: dts: qca: introduce AR9331 devicetree MIPS: ath79: add initial support for TP-LINK MR3020 devicetree: add Dragino vendor id MIPS: ath79: add initial support for Dragino MS14 (Dragino 2) devicetree: add Onion Corporation vendor id MIPS: ath79: add initial support for Onion Omega WIP: MIPS: ath79: add devicetree defconfigs .../devicetree/bindings/vendor-prefixes.txt | 2 + arch/mips/ath79/Kconfig | 15 ++ arch/mips/ath79/clock.c | 7 +- arch/mips/ath79/setup.c | 17 +- arch/mips/boot/dts/qca/Makefile | 8 +- arch/mips/boot/dts/qca/ar9132.dtsi | 23 ++- arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts | 104 +++++----- arch/mips/boot/dts/qca/ar9331.dtsi | 158 +++++++++++++++ arch/mips/boot/dts/qca/dragino_ms14.dts | 80 ++++++++ arch/mips/boot/dts/qca/omega.dts | 54 ++++++ arch/mips/boot/dts/qca/tl_mr3020.dts | 72 +++++++ arch/mips/configs/dragino-ms14-dt-raw_defconfig | 93 +++++++++ arch/mips/configs/onion-omega-dt-raw_defconfig | 85 ++++++++ arch/mips/configs/tl-mr3020-dt-raw_defconfig | 85 ++++++++ arch/mips/configs/tl-wr1043nd_defconfig | 95 +++++++++ drivers/clk/Makefile | 1 + drivers/clk/clk-ath79.c | 214 +++++++++++++++++++++ include/dt-bindings/clock/ath79-clk.h | 22 +++ 18 files changed, 1055 insertions(+), 80 deletions(-) create mode 100644 arch/mips/boot/dts/qca/ar9331.dtsi create mode 100644 arch/mips/boot/dts/qca/dragino_ms14.dts create mode 100644 arch/mips/boot/dts/qca/omega.dts create mode 100644 arch/mips/boot/dts/qca/tl_mr3020.dts create mode 100644 arch/mips/configs/dragino-ms14-dt-raw_defconfig create mode 100644 arch/mips/configs/onion-omega-dt-raw_defconfig create mode 100644 arch/mips/configs/tl-mr3020-dt-raw_defconfig create mode 100644 arch/mips/configs/tl-wr1043nd_defconfig create mode 100644 drivers/clk/clk-ath79.c create mode 100644 include/dt-bindings/clock/ath79-clk.h -- 2.7.0