From owner-freebsd-arm@freebsd.org Sun Sep 18 14:29:40 2016 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 8F49EBDF3E9 for ; Sun, 18 Sep 2016 14:29:40 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 7AFD49FA for ; Sun, 18 Sep 2016 14:29:40 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: by mailman.ysv.freebsd.org (Postfix) id 7A513BDF3E8; Sun, 18 Sep 2016 14:29:40 +0000 (UTC) Delivered-To: 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 79F7CBDF3E6 for ; Sun, 18 Sep 2016 14:29:40 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 329019F9 for ; Sun, 18 Sep 2016 14:29:39 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from imac.bs.cs.huji.ac.il ([132.65.179.42]) by kabab.cs.huji.ac.il with esmtp id 1bld65-000AGH-AP; Sun, 18 Sep 2016 17:29:33 +0300 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: ALLWINNER/h3 malfunction From: Daniel Braniss In-Reply-To: Date: Sun, 18 Sep 2016 17:29:37 +0300 Cc: Emmanuel Vadot , arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <4F7891B0-FBD7-451C-BA42-50F872804C95@cs.huji.ac.il> References: <20160917171911.a2ec80da747ba373ba3d1b4a@bidouilliste.com> <5ADFE16E-FD60-45B1-8CF1-6FFC10BABBDE@cs.huji.ac.il> <20160917195544.a2a8bbdb113029700fa7642d@bidouilliste.com> <588E44BB-40BF-40B8-9C5A-BA025AB87E00@cs.huji.ac.il> To: Jared McNeill X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Sep 2016 14:29:40 -0000 > On 18 Sep 2016, at 3:34 PM, Jared McNeill = wrote: >=20 > On Sun, 18 Sep 2016, Daniel Braniss wrote: >=20 >> I couldn?t find any orange-one.dts, so I?m using the one I created, >> adding the a83t-sid and a83t-ts got both recognized: >=20 > Anything you add to the dts will be recognized if there is a driver = for it -- that doesn't mean it will work. >=20 > Here is an example of a thermal dt node for Allwinner H3 (note the = different compatible string, base address, etc): >=20 > = https://github.com/jaredmcneill/freebsd/blob/allwinner-h3/sys/boot/fdt/dts= /arm/orangepi-plus-2e.dts#L121 >=20 > Your best bet is to merge any changes from that file into your own = (working) dts. Copying from other SoCs dts files often doesn't work. >=20 the first thing I did was to add code to aw_sid.c so that sun8i-h3-sid = would be processed - according to the docs, a83t and h3 are the same wrt sid. from the results it seems = that the sid is indeed different on my 2 boards, and share some bits, do you know how to = =E2=80=98parse=E2=80=99 the sid? the thermal sensor, I just added the a83t,, but here thing look fishy, = i=E2=80=99ll try your h3. remember, mine are orangepi-one cheers, danny