Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755763AbdLVBRs (ORCPT ); Thu, 21 Dec 2017 20:17:48 -0500 Received: from mail-co1nam03on0063.outbound.protection.outlook.com ([104.47.40.63]:53374 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752165AbdLVBRn (ORCPT ); Thu, 21 Dec 2017 20:17:43 -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: Christian Lamparter Cc: Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Nehal Shah , Shyam Sundar S K , Ken Xue , Tobias Diedrich , Sudheesh Mavila , platypus-sw , alan@mizrahi.com.ve References: <6c675643-45ec-c57f-f1b2-afb25f3e947e@opengear.com> <2142688.oNeEzK9Weu@debian64> From: Andrew Cooks Message-ID: <5e17a846-b2c6-c078-3d90-bbf19aea2a8a@opengear.com> Date: Fri, 22 Dec 2017 11:17:25 +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: <2142688.oNeEzK9Weu@debian64> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [59.167.150.161] X-ClientProxiedBy: SYXPR01CA0089.ausprd01.prod.outlook.com (10.171.34.22) To CO2PR15MB0027.namprd15.prod.outlook.com (10.161.86.142) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 45a95209-408a-4873-f6e2-08d548d9cc76 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307)(7153060);SRVR:CO2PR15MB0027; X-Microsoft-Exchange-Diagnostics: 1;CO2PR15MB0027;3:mHvYlPZLd6dMBszRuRX67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GQkofvUKXG1LR8BdzoB4JcxhsEEBVBdcrfDO51fgXnBtyqbdSCUS9mH5Jd/tz8qeSiOLD5G5s1jYZa9joRFO1OAQDd1nuuYa2q49yItuVtx8j3WGaTr/1XOZQHFl4RPuU+KWoZkeQo7vDQECubAax3mpgqpJFE9fRVhdKg6PyOrW8EyikRI0eLkwbwlpTaHd1aoWAqLJT6MEUCqmMimb7uEYWoDsrTaJMkgMMW43Jx2TZup29Vyz6EEeJH8I+hQIBRPVE+nSzEqXVn5Z6440Q== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231023)(6041268)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:CO2PR15MB0027;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:CO2PR15MB0027; X-Forefront-PRVS: 05299D545B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(376002)(39380400002)(366004)(346002)(396003)(39840400004)(69234005)(189003)(199004)(24454002)(58126008)(83506002)(68736007)(76176011)(16576012)(53546011)(16526018)(65826007)(97736004)(6486002)(6246003)(305945005)(5660300001)(50466002)(90366009)(7736002)(23676004)(54906003)(52116002)(478600001)(2486003)(39060400002)(77096006)(64126003)(316002)(52146003)(386003)(53936002)(2950100002)(81166006)(86362001)(81156014)(36756003)(117156002)(8676002)(229853002)(47776003)(66066001)(31686004)(31696002)(4326008)(65956001)(3846002)(7416002)(1411001)(230700001)(6666003)(8666007)(8936002)(106356001)(6916009)(25786009)(6116002)(105586002)(65806001)(2906002);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR15MB0027;H:[192.168.254.67];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagn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ED3cduScylgudwFA0IujDwC3BgvsBO3CW71PR+RtjNLtEqtgAaLjcM5pv5gqN7Ixset1bN5IwOao/YLg/yMjceaxXUkIO++3S/BkwMe2v7bQcKSllle6auG/OoTWDg7KSzXkyKtj9Ii5pLE46ZGO2dhihI7sOKD/pBDIaT6OEXN2e6gr7BXiOniE5dTVID1itRaPtLnn8Q/HUIwQXWCokGRf5mevcaDo2+hSdanUJwqZ9yUorLHfu SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: opengear.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2017 01:17:38.9963 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 45a95209-408a-4873-f6e2-08d548d9cc76 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a6251c26-d21f-4164-a225-1f4eaebf5f9a X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR15MB0027 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1420 Lines: 35 Hi Christian On 21/12/17 23:02, Christian Lamparter wrote: > On Thursday, December 21, 2017 8:25:03 AM CET Andrew Cooks wrote: >> I'm working on gpio for an AMD Family 16h Model 30h system[1]. >> The SoC is the same as the GX412-TC used in the PC Engines APU2. >> >> There is an out-of-tree gpio driver (gpio-amd) for this SoC in the >> meta-amd yocto layer[2]. Another driver (gpio-sb8xx) was submitted >> for upstream inclusion, but was knocked back with the suggestion >> that pinctrl is the way forward[3]. >> >> I would much prefer to use a mainline driver for the system I'm >> working on, so I'm looking at the pinctrl-amd driver to see >> whether it applies to our SoC, or whether it could be extended, >> or used as starting point for a new driver. >> >> The out-of-tree drivers apply to the GX412-TC SoC and uses PCI >> for probing: > > Just a FYI: due to these difficulties with getting a gpio driver > upstream, Alan Mizrahi upstreamed an in-kernel led-apu.c driver [0] > that sort of bypasses the whole pinctrl vs gpio issue. Thanks, I saw that and was somewhat surprised to see it accepted. > > If you are just after LEDs or gpio-keys you probably can go the same > route? I could. The gpio-amd driver in the meta-amd yocto layer, which is already functional, is another workable alternative. However, I would prefer the more elegant mainline pinctrl solution, if it's attainable. Thanks Andrew