From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86828C433ED for ; Mon, 26 Apr 2021 09:31:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4ED7160FD7 for ; Mon, 26 Apr 2021 09:31:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232520AbhDZJc2 (ORCPT ); Mon, 26 Apr 2021 05:32:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232078AbhDZJc1 (ORCPT ); Mon, 26 Apr 2021 05:32:27 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 487D9C061574 for ; Mon, 26 Apr 2021 02:31:46 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id j4so47791067lfp.0 for ; Mon, 26 Apr 2021 02:31:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AUK2VLb2h/aghhGuRyQu+vL3L73eWxKFqQuj5HuuBYQ=; b=CDdJaObR40rip9MxTz1LdVemkRQSvAkocNvoLrGdPfFD8OG1yQx/xe5OJPzMeYvm/A bi5Dt6n7tBEyePqlTy9ROiBzPlz4+VGL3lL3BbUV0fO7Upk5Aln0t8qp513/c/63MEjz SCwCyuNhOjxV6tPKZO+zfbw2yP8/kh4mr8F/OAN0yLKnBsZHlyBwILpjyWHWXXJ1NHAS UqyPZ3d858jg1mNhktP58Frt7fVhK9b0GQNQ8o63HWTWg81/f5xSMmNPCXBVoAqczXS/ mGTxkiO5+Pjtk5MQbln4g33IbXar0NI8fkFbT8bsA53wXkWDCCcGW8D8q7GKn490UgYl RyYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AUK2VLb2h/aghhGuRyQu+vL3L73eWxKFqQuj5HuuBYQ=; b=P6+kxviBVvvsDaSC8b61RLCqlvk9BhkerjX4QQDH98/c+50A5C1yf4b/Q/E5ITvcIi unt9RY82H3feX8o++hQ2vIrBULqjilFJ7K8XiRNA+Gh1Us4+C4wrQ1/anDx5KoocHWhe pQ+0RQ/eGsNSYthWyML2ghuUfD+7lGg9k/1iHB5IvjF4yhFu/syYAi78ZPhnjyPDaTjg kLH4WNYZJ1BPdBSLlrQ12BGh6lyiZ0YNZViuHIhiO+QosuEjyAO0iA/3jKd8LUdXNEzy YH2DaoC7q91x8L121ilD8rEP/gVY30fa4r041aUsn8r5iFoiPnvIqT3nh8Vp6WLfkfJE DqEQ== X-Gm-Message-State: AOAM532dULK9IcyGQzCf/n6qvoflGRchqfPdWf+mctZw8nDO9c/65jsy hkTUAMzhdeHk9IBtlCHq7zSeItKuHcQhwgVhKn+cTQ== X-Google-Smtp-Source: ABdhPJwj+NTYA7RNA+Fft20gDnLHQJ6Yl87q4n7aqAjFFgRBXX2MuSAUioyuFradzv9MIRK00Of03/JYZLoF/3yEBLE= X-Received: by 2002:ac2:4a87:: with SMTP id l7mr12474738lfp.586.1619429504851; Mon, 26 Apr 2021 02:31:44 -0700 (PDT) MIME-Version: 1.0 References: <01afcac0-bd34-3fd0-b991-a8b40d4b4561@enneenne.com> <1c4f1a83-835a-9317-3647-b55f6f39c0ba@enneenne.com> <87efe96c-3679-14d5-4d79-569b6c047b00@enneenne.com> <070fa558-6e20-0fbf-d3e4-0a0eca4fe82c@enneenne.com> <80bf1236-aacd-1044-b0e5-5b5718b7e9f0@enneenne.com> <87207962-5848-3e5c-4d8d-f4a66c864413@enneenne.com> In-Reply-To: <87207962-5848-3e5c-4d8d-f4a66c864413@enneenne.com> From: Linus Walleij Date: Mon, 26 Apr 2021 11:31:34 +0200 Message-ID: Subject: Re: [RFC v2 GPIO lines [was: GPIO User I/O] To: Rodolfo Giometti Cc: Andy Shevchenko , Geert Uytterhoeven , Geert Uytterhoeven , "open list:GPIO SUBSYSTEM" , Bartosz Golaszewski , Rob Herring , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Mon, Apr 26, 2021 at 10:44 AM Rodolfo Giometti wrote: > > On 20/07/20 10:17, Linus Walleij wrote: > > IIUC Rodolfo's idea is to provide this with a DT compatible. > > The use case will be industrial automation-ish tasks from userspace. > > > > Currently the only mechanism we have in the device tree to > > assign a use for a line is the "gpio-line-names" property, > > which creates a name that is reported upward to the character > > device. > > > > Rodolfo's patch is for scripting use cases, assigning some lines > > for some cases to be handled by scripts, not the character device. > > > > What I am a bit worried about is if this would be a Linuxism, as DT > > should be OS neutral. > > Hello Linus, > > I'm currently using my solution for GPIOs management as input or output lines > described in the DT on several systems. > > Are you re-thinking about this topic? Can we go further for inclusion or should > I continue doing out-of-tree? :( It is a system description question, and I think you will need to discuss it on the devicetree@vger.kernel.org mailing list. The people there are working with things like the system device tree which is intended to describe aspects of a system apart from what Linux or any operating system is doing with the hardware. I would send an RFC of the proposed DT bindings there. They have been Cced in the past but not addressed directly. Yours, Linus Walleij