Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752267AbbFHKMF (ORCPT ); Mon, 8 Jun 2015 06:12:05 -0400 Received: from mail-la0-f52.google.com ([209.85.215.52]:34182 "EHLO mail-la0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751232AbbFHKL6 convert rfc822-to-8bit (ORCPT ); Mon, 8 Jun 2015 06:11:58 -0400 Date: Mon, 8 Jun 2015 13:17:58 +0300 From: Antony Pavlov To: Alban Bedel Cc: linux-mips@linux-mips.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Thomas Gleixner , Jason Cooper , Ralf Baechle , Andrew Bresticker , Qais Yousef , Gabor Juhos , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 12/12] MIPS: Add basic support for the TL-WR1043ND version 1 Message-Id: <20150608131758.9d76be074998ea3de0e976a4@gmail.com> In-Reply-To: <1433031506-7984-5-git-send-email-albeu@free.fr> References: <1433029955-7346-1-git-send-email-albeu@free.fr> <1433031506-7984-5-git-send-email-albeu@free.fr> X-Mailer: Sylpheed 3.5.0beta1 (GTK+ 2.24.25; i586-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1952 Lines: 96 On Sun, 31 May 2015 02:18:26 +0200 Alban Bedel wrote: > Add a DTS for TL-WR1043ND version 1 and allow to have it built in the > kernel to circumvent the broken u-boot found on these boards. > Currently only the UART, LEDs and buttons are supported. > > Signed-off-by: Alban Bedel > --- /dev/null > +++ b/arch/mips/boot/dts/qca/ar9132.dtsi > +++ b/arch/mips/boot/dts/qca/ar9132_tl_wr1043nd_v1.dts > @@ -0,0 +1,112 @@ > +/dts-v1/; > + > +#include > +#include > + > +#include "ar9132.dtsi" > + > +/ { > + compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132"; > + model = "TP-Link TL-WR1043ND Version 1"; > + > + alias { > + serial0 = "/ahb/apb/uart@18020000"; > + }; > + > + memory@0 { > + device_type = "memory"; > + reg = <0x0 0x2000000>; > + }; > + > + extosc: oscillator { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <40000000>; > + }; > + > + ahb { > + apb { > + uart@18020000 { > + status = "okay"; > + }; > + > + pll-controller@18050000 { > + clocks = <&extosc>; IMHO AR9132 SoC can't work without external oscilator. Can we just move basic extosc declaration to SoC dt file (ar9132.dtsi)? So board dt file ar9132_tl_wr1043nd_v1.dts will contain only oscilator clock frequency value. E.g. ar9132.dtsi: ============ extosc: oscillator { compatible = "fixed-clock"; #clock-cells = <0>; clock-frequency = <40000000>; }; ... ahb { apb { ... pll-controller@18050000 { ... clocks = <&extosc>; ... ar9132_tl_wr1043nd_v1.dts: ========================== ... &extosc { clock-frequency = <40000000>; }; --? Best regards, ? Antony Pavlov -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/