From owner-freebsd-current@freebsd.org Wed Dec 12 03:36:56 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 88EC3132961D for ; Wed, 12 Dec 2018 03:36:56 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) Received: from sonic304-20.consmr.mail.ne1.yahoo.com (sonic304-20.consmr.mail.ne1.yahoo.com [66.163.191.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9A3966F203 for ; Wed, 12 Dec 2018 03:36:55 +0000 (UTC) (envelope-from Scoobi_doo@yahoo.com) X-YMail-OSG: JB4vTPwVM1lSWTdPJ4Q2.pXcs42reauvZtqjDkkLaYmzXSdSruBXfGRCHrcaew9 bn5lwPpdpRHuBusFR9wxLIHbGy7tj.vEmUQTzESsKFCADpmdknn59J2o0pPrEPJiaiwhTNqsVBPp EAvRK1USgs77w1KXUjNdO3HgkXtleBXt66Wg_JCIsKRef_X7btdqPEYjdDskUSTdFAdoYqMg4PeD Q6NOzb.D3NgwQtJtapJdw_SHOmmUW7L1TX24wMp3rCoZpfWwJTyCC1nZDLAuJKEkYM1qA22m2zN0 XzZtV9TUvHwac5UjHZu.B6hS0O_pUFjSorEY1n71qljDLt.hJmBA_gnbO19ZvSdgJd8A2_cXHhv2 EJvNYc3cQs42vvCi9TkGxdcQPA7DhsTmVmRab9mLwyQjV.4qZagnhceMVQJqVi1c85FsMWEWX2tm AfBZCPcDDCxnL06NhL6gMB85Zs0o5uXy.NXcBKHUYZ8KCtT4JwQBOeWXPgeAxG9ZLbE5PUjR0tlC Qd7fHtsl.Xqjj8ORNlX14nHMpCdfYHLfujob6CAALqj1zpWGEq1mxYsGGqCD6snyH9YVeITfQ8dj 2KwO3VBUP5B8SBLrpKf7CTpcZSMsrj38Ys9R4Sd_guFDM_yyYQMguFbVPbWDJEp.tP4eqRFw1OAa r20RS8qATHUlc1Vu8u8VNVkJSa8SzkftUwmVQNqACtrf328QjIC73.m7WAfBVFFP7iKjgw5z0Cud iYgva0YabkE8wx66ieAmYP4GUFvy6LLiPzqUHd5SyZ6xPTRGNQ16J97yWjyd3j4OigpAZ9RxL8X2 _nr44SCD9E9NfnHV7pIz1_3s4DISMBP7NBIdKhZ6dPKM7g2IwGmIVVgODxfA3mHrhvYOWpR8Jimf 0tWVQ5VFKssk.X7es8VeJ41eiUT739HIEhR0S3nfUsvNW3OrI432O8VxVUApnjhCQmtpJBfoZN_F 1ULGa0EC0cZojRDGJ_QKRGF.WMxWHuirubCEY3rGiskfOJqfa9aDdST9QX1_2FW4_e5zfllfRAIa O92AU4NynffWCCz0ESOw6XJvYTul7WNfN94UosA1jl7RGoBjgGc.GFDBm Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Wed, 12 Dec 2018 03:36:49 +0000 Received: from 76.205.202.86 (EHLO [192.168.1.76]) ([76.205.202.86]) by smtp403.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID bfa946cbae9e504744f86d2c7dc37c6a; Wed, 12 Dec 2018 03:26:37 +0000 (UTC) Subject: Re: Composite PCI devices in FreeBSD (mfd in Linux) To: Emiel Kollof Cc: FreeBSD CURRENT , owner-freebsd-current@freebsd.org References: From: Anthony Jenkins Message-ID: Date: Tue, 11 Dec 2018 22:26:36 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 9A3966F203 X-Spamd-Bar: + X-Spamd-Result: default: False [1.30 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.84)[0.838,0]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; DKIM_TRACE(0.00)[yahoo.com:+]; RCVD_IN_DNSWL_NONE(0.00)[146.191.163.66.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; IP_SCORE(1.47)[ip: (5.09), ipnet: 66.163.184.0/21(1.31), asn: 36646(1.05), country: US(-0.09)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Dec 2018 03:36:56 -0000 On 12/11/18 9:02 AM, Emiel Kollof wrote: > Anthony Jenkins schreef op 2018-12-10 18:00: > >> Hi all, >> >> I'm trying to port an Intel PCI I2C controller from Linux to >> FreeBSD.  Linux represents this device as an MFD (multi-function >> device), meaning it has these "sub-devices" that can be handed off to >> other drivers to actually attach devices to the system. The Linux >> "super" PCI device is the intel-lpss-pci.c, and the "sub" device is >> i2c-designware-platdrv.c, which represents the DesignWare driver's >> "platform" attachment to the Linux system. FreeBSD also has a >> DesignWare I2C controller driver, ig4(4), but it only has PCI and >> ACPI bus attachment implementations. > > Might this also be relevant for i2c-hid devices, like some touchpads > (Elantech for example)? Theoretically, yes.  Once this I2C controller is added, then the parallel effort to add support for I2C HID devices should add support for Elantech I2C touchpads. The bit I'm doing (support for an Intel MFD I2C controller) is based on an old thread on mobile@.  I just recently obtained a laptop that has a couple such I2C controllers (touchpad works, but touchscreen doesn't). Original Elantech touchpad support thread - https://lists.freebsd.org/pipermail/freebsd-mobile/2017-August/013617.html FreeBSD i2c-hid support - https://reviews.freebsd.org/D16698 Anthony > > Cheers, > Emiel