Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755476AbdLVBGd (ORCPT ); Thu, 21 Dec 2017 20:06:33 -0500 Received: from mail-dm3nam03on0044.outbound.protection.outlook.com ([104.47.41.44]:42048 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752385AbdLVBG2 (ORCPT ); Thu, 21 Dec 2017 20:06:28 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=andrew.cooks@opengear.com; Subject: Re: pinctrl-amd: What hardware does it apply to? To: Tobias Diedrich , Linus Walleij Cc: Mika Westerberg , linux-gpio@vger.kernel.org, "linux-kernel@vger.kernel.org" , Nehal Shah , Shyam Sundar S K , Ken Xue , Tobias Diedrich , Sudheesh Mavila , platypus-sw , Timur Tabi References: <6c675643-45ec-c57f-f1b2-afb25f3e947e@opengear.com> From: Andrew Cooks Message-ID: <5dacc682-bc50-b6d1-5a38-e9d571b351c0@opengear.com> Date: Fri, 22 Dec 2017 11:05:58 +1000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [59.167.150.161] X-ClientProxiedBy: HK2PR04CA0082.apcprd04.prod.outlook.com (10.170.154.154) To CY1PR15MB0030.namprd15.prod.outlook.com (10.162.45.16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0ee834ae-9680-4e32-9d25-08d548d83821 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060);SRVR:CY1PR15MB0030; X-Microsoft-Exchange-Diagnostics: 1;CY1PR15MB0030;3:RVl910QxuakfjAJR6fBih8Yn2nICEiPcf5CR7hovsVPTGQbnis5I6Rx6B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PGcj8R3UE90b3vwzhEPB5V7rFLmQegFYDB0TWdCis26RAebztL+5vMZ/8s1ZRVDKNzIOH9BMyoq5ifQHaLLZGiOCt4ALAh6cZWWZs86zAW0fnZIU507y17DwVlhseUXcpb/Rm0Y8t2p0c5sWTifeIsV2MumzqeYDibJfwq8MRuFJ/2RcJ58xvtsTwxfx7f0Op13bRyPd19IlUAU7/glvE5+2CIYXovot8YXhAwS5GYTvWC39IWGKbGfqYwF3PqR5VZAQmSAlCwJ15dzRjCjQ7Kw27cgV X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(166708455590820); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(5005006)(8121501046)(3002001)(3231023)(93006095)(93001095)(10201501046)(6041268)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(6072148)(201708071742011);SRVR:CY1PR15MB0030;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CY1PR15MB0030; X-Forefront-PRVS: 05299D545B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(376002)(396003)(39380400002)(39830400003)(346002)(366004)(24454002)(199004)(189003)(8936002)(4326008)(31686004)(6306002)(2870700001)(64126003)(305945005)(53546011)(90366009)(7416002)(2906002)(68736007)(8666007)(76176011)(81166006)(81156014)(52116002)(83506002)(36756003)(229853002)(77096006)(8676002)(2486003)(52146003)(23676004)(6486002)(386003)(316002)(16576012)(66066001)(3846002)(65956001)(65806001)(6116002)(117156002)(25786009)(7736002)(97736004)(6246003)(53936002)(16526018)(47776003)(110136005)(86362001)(5660300001)(58126008)(54906003)(478600001)(65826007)(50466002)(106356001)(105586002)(31696002)(966005)(6666003)(39060400002)(2950100002);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR15MB0030;H:[192.168.254.67];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-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6Mad872el1I8Huzno6gTAaHLVlh47l66PdadAyZM9gsxxvSFCmBOjxQ2PTAnehWh9uU7sMpW3FR5jWt+9olQGHWm0UKB7ART8dgfH493bUSAMIRnU3Nblagk5jUuCKxLaDNFacZ0RnXtsitaKHxo583Yu5s6Lj1xWgmhWiBGFwTghcxgNXXMbKwYuzYmpYKrtzJ7a9PxJj9XT6H9iyD2t9VkA+tuQQy6sytGxvvBDAvTuahVIAQ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: opengear.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2017 01:06:14.7467 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0ee834ae-9680-4e32-9d25-08d548d83821 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a6251c26-d21f-4164-a225-1f4eaebf5f9a X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR15MB0030 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1331 Lines: 22 Hi Tobias On 21/12/17 23:06, Tobias Diedrich wrote: > > > Another driver (gpio-sb8xx) was submitted for upstream inclusion, but was > > knocked back with the suggestion that pinctrl is the way forward[3]. > > Hm I cannot follow link [3] right now. And I don't remember the submission :( > It doesn't seem to be in my mail archives either. > > > FWIW I wrote the gpio-sb8xx driver mostly to allow toggling the (board-specific) APU1 leds and didn't have time to rewrite it for the pinctrl api (also it was more of a "would be neat to have", so I didn't push it much). > It would actually be neat to have ACPI support for arbitrary leds in some better way (toggling the pinctrl bits could easily be implemented in ACPI if there was some method called to enabled/disable the led).> > The coreboot bits were submitted: > https://github.com/coreboot/coreboot/blob/master/src/mainboard/pcengines/apu1/acpi/leds.asl > https://github.com/coreboot/coreboot/blob/master/src/mainboard/pcengines/apu1/acpi/gpio.asl > The latter is specifically asking forĀ "gpio-sb8xx" (or compatible) (this is essentially an ACPI-provided devicetree snippet). Our ACPI LED support is on a I2C GPIO expander, but looks similar. I'll submit that to coreboot after the holidays. We use the SoC gpios for buttons and other peripherals. a.