From owner-freebsd-arm@freebsd.org Fri Dec 15 16:53:47 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1D385E863C6 for ; Fri, 15 Dec 2017 16:53:47 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8BEA27CD10 for ; Fri, 15 Dec 2017 16:53:45 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id 0205ca66; Fri, 15 Dec 2017 17:53:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=jYPloFV2W9Z1KsmwVMpW29HWro4=; b=J/DhQH1J2cJERNUOpHCL00ABx0qG davVCVB8JdGwfWPFoT2S0TpeN+w6Dk8oabXxVMz/b5fgLWWGZeo2FPf4aGcl1wYD Rbrj4MzmysKDm/180411Afq+iYtT7FDBo1XGFPJRxjGklE4AJdahjYy7Ny+s/azs hMxOv+Xt0dShf/Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=HubCB4Ra1u2P9wydhzDmIB68ujMGzPNmdrb0A1ej+oNyt7tbm5D4HSiv j4XISKjsYHdJPAFaCf72BbntXnxKhuYj5TLeIJj91BYi94Q9QQTHbsUGMcAaozCQ PCBEvRoRU+vBJ4A1v0CCMDkm46wUtQO6SfKrX7Ome91TsuVl1D4= Received: from arcadia (evadot.gandi.net [217.70.181.36]) by mail.blih.net (OpenSMTPD) with ESMTPSA id cdbbc884 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Fri, 15 Dec 2017 17:53:43 +0100 (CET) Date: Fri, 15 Dec 2017 17:53:43 +0100 From: Emmanuel Vadot To: Daniel Braniss Cc: Milan Obuch , freebsd-arm@freebsd.org Subject: Re: orangepi-zero serial (not the debug port) now working Message-Id: <20171215175343.c2e3cc3efc99f0a49f879942@bidouilliste.com> In-Reply-To: <3320CA1F-4019-4D16-AB0B-2D7DFEC71B96@cs.huji.ac.il> References: <20171215170457.e2fd35d8299c3825efffe3b8@bidouilliste.com> <3320CA1F-4019-4D16-AB0B-2D7DFEC71B96@cs.huji.ac.il> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Dec 2017 16:53:47 -0000 On Fri, 15 Dec 2017 18:13:49 +0200 Daniel Braniss wrote: > > > > On 15 Dec 2017, at 18:04, Emmanuel Vadot wrote: > > > > On Fri, 15 Dec 2017 17:51:55 +0200 > > Daniel Braniss > wrote: > > > >> hi, > >> after a week of failing to get the usb to work, this little change to the dts file did the trick: > > > > USB ? > long version: > my first attempt at using the serial port failed, I then tried using a serial to usb (which works fine on RPI and amd64) ^^^^^^^^^^^^^ This is the part I don't understand. > on all my allwinners and failed. > > > >> --- /r+d/vanilla/12/sys/gnu/dts/arm/sun8i-h2-plus-orangepi-zero.dts 2017-12-02 16:29:32.134790000 +0200 > >> +++ ./sun8i-h2-plus-orangepi-zero.dts 2017-12-15 17:34:25.742903000 +0200 > >> @@ -164,7 +164,7 @@ > >> &uart1 { > >> pinctrl-names = "default"; > >> pinctrl-0 = <&uart1_pins>; > >> - status = "disabled"; > >> + status = "okay"; > >> }; > >> > >> &uart2 { > >> > >> and now I have a working /dev/ttyu1! > >> BTW, this is with a resent CURRENT. > >> > >> danny > > > > This is expected, node aren't enabled if there is nothing using it on > > the board. > > For something like that you might want to look at overlays instead of > > modifying main dtb. > > this was a proof of concept, i will try doing the overlay thingy later. > thanks > danny > > > > > > -- > > Emmanuel Vadot > > > -- Emmanuel Vadot