Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751334AbdH3KzT (ORCPT ); Wed, 30 Aug 2017 06:55:19 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:53687 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751263AbdH3KzS (ORCPT ); Wed, 30 Aug 2017 06:55:18 -0400 Date: Wed, 30 Aug 2017 12:55:16 +0200 From: Pavel Machek To: Andrey Smirnov Cc: linux-kernel@vger.kernel.org, cphealy@gmail.com, Lucas Stach , Nikita Yushchenko , Lee Jones , Greg Kroah-Hartman Subject: Re: [PATCH v6 1/2] platform: Add driver for RAVE Supervisory Processor Message-ID: <20170830105515.GA4926@amd> References: <20170828163131.24815-1-andrew.smirnov@gmail.com> <20170828163131.24815-2-andrew.smirnov@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline In-Reply-To: <20170828163131.24815-2-andrew.smirnov@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3297 Lines: 101 --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > Add a driver for RAVE Supervisory Processor, an MCU implementing > varoius bits of housekeeping functionality (watchdoging, backlight > control, LED control, etc) on RAVE family of products by Zodiac > Inflight Innovations. >=20 > This driver implementes core MFD/serdev device as well as > communication subroutines necessary for commanding the device. > diff --git a/Documentation/ABI/testing/sysfs-platform-rave-sp b/Documenta= tion/ABI/testing/sysfs-platform-rave-sp > new file mode 100644 > index 000000000000..81bdc54ba857 > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-platform-rave-sp > @@ -0,0 +1,35 @@ > +What: /sys/devices/platform/*/serial*/serial*-*/reset_reason > +Date: Aug 2017 > +Contact: "Andrey Smirnov" > +Description: (RO) Indicates reason for last reset. > + > + The following values can be reported: > + * 0 -> Normal Power Off > + * 1 -> Hardware Watchdog > + * 2 -> Software Watchdog > + * 3 -> Input Voltage Out Of Range > + * 4 -> Host Requested > + * 5 -> Temperature Out Of Range > + * 6 -> User Requested (via long Power Button press) > + * 7 -> Illegal Configuration Word > + * 8 -> Illegal Insturction Typo here. > + * 9 -> Illegal Trap > + * 10 -> Unknown > + * 11 -> Crew Panel Requested Anyway... If you move management chip to .. I don't know, i2c, the path would change. Also it would be different path on N900. Userland should not have to deal with this. And... this should really be string, as the list will need to grow on different hardware. Plus we'll really need better explanations. What is difference between "normal power off" and "host requested"?=20 > +What: /sys/devices/platform/*/serial*/serial*-*/boot_source > +Date: Aug 2017 > +Contact: "Andrey Smirnov" > +Description: (RW) Indicates currently selected boot source. > + > + The following values are valid: > + * 0 -> SD card > + * 1 -> eMMC > + * 2 -> SPI NOR > + > + NOTE: Setting boot source on RDU1 hardware is > + currently not implemented Same comments apply here. > +RAVE_SP_DEFINE_SEQ_FILE_PRINT_FUNCTION(part_number_firmware); > +RAVE_SP_DEFINE_SEQ_FILE_PRINT_FUNCTION(part_number_bootloader); > +RAVE_SP_DEFINE_SEQ_FILE_PRINT_FUNCTION(copper_rev_deb); > +RAVE_SP_DEFINE_SEQ_FILE_PRINT_FUNCTION(copper_rev_rmb); > +RAVE_SP_DEFINE_SEQ_FILE_PRINT_FUNCTION(copper_mod_deb); > +RAVE_SP_DEFINE_SEQ_FILE_PRINT_FUNCTION(copper_mod_rmb); > +RAVE_SP_DEFINE_SEQ_FILE_PRINT_FUNCTION(silicon_devid); > +RAVE_SP_DEFINE_SEQ_FILE_PRINT_FUNCTION(silicon_devrev); Are these going to debugfs? Pavel =09 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --AqsLC8rIMeq19msA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlmmmZMACgkQMOfwapXb+vKkBACZAUbE8ZvQ2TENARGr2/pmTqbR GAsAniX6IyudBP1Tk2cpXkatKJKVzocO =zAG9 -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA--