From owner-freebsd-current@freebsd.org Fri Nov 16 08:52:11 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 EEDDC112BD94 for ; Fri, 16 Nov 2018 08:52:10 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 682A176D9D; Fri, 16 Nov 2018 08:52:09 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-wm1-x336.google.com with SMTP id f10-v6so21197817wme.3; Fri, 16 Nov 2018 00:52:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=R2UKmJNV5UFVYVdy0lKiGox/XoGOoeeuVUbXWIQ7iQc=; b=tg0ApKCGVjuNs+SH9We6UzLSp9Ftu3/Tjpc5VZ86YVwSYyR2QULUrULAmveHNpaOKD Iic7l73F1gSlrWOndrMxEaca5jG+TaJqbtKofwxVuxvxivMlbfqf0tehEMStx2xas/T2 +NVeapIY0R/MRL1/XurnF67GSM1d34CSivxLcetxNEzQ9G8le9YSdiPRhMSNczsancG2 c+MeSsly3BBxkAA3vLSD7TXd8EJGo7GzKNQvzisHR2J+tRH1FYBArOk5dnlDevSYWU6Y wKTsTsl8kx2wcI25Qz2iPs0JbdEHkGEUJdo0cwg0wz482cQLHM/Y2r0hRV6s4M98y2MY dzRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=R2UKmJNV5UFVYVdy0lKiGox/XoGOoeeuVUbXWIQ7iQc=; b=Dg421bbVGklqKYDNFSrauHFDrhtogOiWuxNJMOpqzCOBjjJkfu3jYae8Eik3KHZtli j4lKUJW3leceEyo2GE6HVYOrdRUo/1slLN1J/Nc48xv+d7b3avtMprT6GF9tizYcO0ue tFArlP5OXxG9hNpXEuZm0iIGP5jfPkoJolwHnZiBJxS+SlgTzhkAEOq9E/Pd1/huhuhm SwispfmqBRdJ7RFL0TqgzW3ixBD7KMgLM19mVcAh9qpNTmLEqxvB74cC3zQmJgg1DFDO Ft7mLvU1NL1jdIamWLZFYsSFfcAMMfXrxmU/n18F0Y4hd5hRFz2Ahh5r1ISWgugOqWaT LPXA== X-Gm-Message-State: AGRZ1gJMAIEgstaNnuiIs7/R9rjZNnXkrj3U2CMHkgxqoihPj8QcR+/J JuGo1iWs9/u3ctj+x01l+qWkI4zYDReKdOVhQhe4O9/T X-Google-Smtp-Source: AJdET5fY9WM3TFW9hc+BNMcwZhfKNaSukjXSRtEXIHlVDQNruI65bqeIE31YiLu6EeP2eT0TNQ5/UI8o33tnILY9WSM= X-Received: by 2002:a1c:c40e:: with SMTP id u14-v6mr1835981wmf.150.1542358327393; Fri, 16 Nov 2018 00:52:07 -0800 (PST) MIME-Version: 1.0 From: Johannes Lundberg Date: Fri, 16 Nov 2018 08:51:31 +0000 Message-ID: Subject: axp288 on Intel HW To: freebsd-current Cc: manu@freebsd.org X-Rspamd-Queue-Id: 682A176D9D X-Spamd-Result: default: False [-4.37 / 40.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-0.75)[ipnet: 2a00:1450::/32(-1.87), asn: 15169(-1.81), country: US(-0.10)]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[6.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.61)[-0.609,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Server: mx1.freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Fri, 16 Nov 2018 08:52:11 -0000 Hi I have a Lenovo Ideapad Miix 310 that has a Intel CherryTrail CPU and it runs FreeBSD quite nicely (with accelerated graphics). What I'm missing is battery life status.. I can get this information using smb (for some reason i2c just returns error sending start condition) smbmsg -f /dev/smb6 -s 0x68 -c 0xB9 -i 1 -F %d In emergency this works but it would be nice to have a kernel driver for it. I found the axp2xx driver for Allwinner in the tree. Would it be possible to share this with amd64 with not too much effort? If not, all I'm really interested in is battery status so I might just hack together a simple driver for that report values to hw.acpi.battery (because I don't think there is a sysctl for battery info that aggregates different sources?) Datasheet for the pmic can be found here http://download.bbs.ickey.cn/201707/cfe88ee7ef01eed7a4586ce340165da0.pdf Cheers