From owner-freebsd-arm@freebsd.org Wed Nov 25 14:17:35 2020 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 73ABC46AB58 for ; Wed, 25 Nov 2020 14:17:35 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4Ch2z30JyYz3L44 for ; Wed, 25 Nov 2020 14:17:35 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: by mailman.nyi.freebsd.org (Postfix) id 088E846AB57; Wed, 25 Nov 2020 14:17:35 +0000 (UTC) Delivered-To: arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0737C46AE7A for ; Wed, 25 Nov 2020 14:17:35 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ch2z24nckz3KnL for ; Wed, 25 Nov 2020 14:17:33 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1606313850; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ae3orc23czSF3hzBw4WwbBiyybxJzxIHc52fUA4b08g=; b=gn5/iEEr0a50ejL6s0pqV5F2+4iS6p++c+zYLK1sq0Lr13B4ij0XUfLpe9HYfnQ0lAsl8/ 83jHlcQmYItipykkUx2BRrffvyFchjkMbKGDZRMG8FxTr9tqsHg4/Ooc6lMeirbUXsTXy/ S2jyoz71QS0W8KwFm5xBq8m/ZSIRp8Q= Received: from skull.home.blih.net (lfbn-idf2-1-288-247.w82-123.abo.wanadoo.fr [82.123.126.247]) by mx.blih.net (OpenSMTPD) with ESMTPSA id d66c4242 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 25 Nov 2020 14:17:30 +0000 (UTC) Date: Wed, 25 Nov 2020 15:17:30 +0100 From: Emmanuel Vadot To: =?ISO-8859-1?Q?S=F8ren?= Schmidt Cc: "freebsd-arm@freebsd.org" Subject: Re: EspressoBin PCI express driver Message-Id: <20201125151730.b3882737e4d20831e056136b@bidouilliste.com> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4Ch2z24nckz3KnL X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Nov 2020 14:17:35 -0000 Hi S=F8ren, On Wed, 25 Nov 2020 14:23:58 +0100 S=F8ren Schmidt wrote: > Hi gang >=20 > I?ve been looking at that empty PCI-express slot on my EspressonBin?s for= some time, and decided that it could be handy to either add a a SATA contr= oller for NAS purposes or a Wifi card for routers. >=20 > I?ve hacked together a simple driver that allows that, grantet its crude = but it works :) >=20 > pcib0: mem 0xd0070000-0xd008= ffff irq 5 on simplebus0 > pci0: on pcib0 > ath0: at device 1.0 on pci0 > ath0: AR9287 mac 384.2 RF5133 phy 15.15 > ath0: 2GHz radio: 0x0000; 5GHz radio: 0x00c0 >=20 > pcib0: mem 0xd0070000-0xd008= ffff irq 5 on simplebus0 > pci0: on pcib0 > atactlr1: irq 46 at device 1.0 on pci0 > atactlr1: AHCI v1.00 64bit controller, 4 6.0Gb/s ports, PM supported, NCQ= supported w/FBS > ata2: on atactlr1 > ata3: on atactlr1 > ata4: on atactlr1 > ata5: on atactlr1 >=20 > It has only been used on my own hacked up version of 12-stable but should= work on -current as well, YMMV.. >=20 >=20 >=20 > Enjoy! >=20 > PS: I do have a cpufreq driver for it as well if anyone?s interested, but= there is not much point in it since power savings are next to nothing?. You might want to host the code somewhere and send a link, ML is removing attachment (or even better put it on phab and add the arm64 group). Thanks, --=20 Emmanuel Vadot