From owner-freebsd-drivers@freebsd.org Mon Sep 24 14:21:21 2018 Return-Path: Delivered-To: freebsd-drivers@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 CF60C10AD684 for ; Mon, 24 Sep 2018 14:21:20 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (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 602E382A08 for ; Mon, 24 Sep 2018 14:21:20 +0000 (UTC) (envelope-from gurenchan@gmail.com) Received: by mail-io1-xd2f.google.com with SMTP id q5-v6so17736457iop.3 for ; Mon, 24 Sep 2018 07:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FjE6sH0Y5FR2yB8vVzV1wbbAZK6guUjY3fy0zCkShvE=; b=bF2b5WN0Bv6DJyT4VI41GegI+2Oe1O3S6Ujcd0/HK8L0mhTuicmcP7OBfwoB12O+Je ZwYQUGB360yev17wz9IsU/d/giW2yeMHeRiF9rh0L7XosqJ0BChSjAUdqLPtkA/Xg0Y9 K4xms24XS6mSfYxDOHaTc+/ykGQPrZu5dv1esjfTSDKcn9idICNcNQFdz6JZGwq5B+aP HolODvyTKjfqcqzHIGUdfNRl8+P1sdUOGKQFof+BCufjio9pVVbfJRz5bujf2kWkW4Ev DaOvVtGdpd1Neg3fsJFr79Ex/xgTIgwfFx1pBxc4ltkKvviVXXXGjKGvq3cTWWGfgNfD LSlA== 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=FjE6sH0Y5FR2yB8vVzV1wbbAZK6guUjY3fy0zCkShvE=; b=rMnDdSYK7MTSa6FsC9pZcxnRdCkLwO/esdIRHNBU2WArLcL6RWdWGxzwSsEmH1b45f eU/NBM07Pg9Um8NTOtxL3PkOPks7SXXwmsRDXNnZ4BdXGgxlZOh6Sx8h5ShXjhZBnpHE TI0ZlIcLoAG+Z81MeBQzjZaslXhN/rmKZxzaKv91EIGYP8evZ+Mz64EvGVzyT7DhDNgW CNWqoH8NOBX36gzwT6SlCrlWw844qWJyynWpBIobT5wLzWp4h2NMzo9/rynUlY1eSv9U udzqOSScctDy02bhwG/T6rkAYcqwdLL9bmSjw0Fz5rpZ1ac8A9Z9lF/0A0mEnQMQO9v0 NKQQ== X-Gm-Message-State: ABuFfohGQyC39ti9h4wAaF5hf40jG97mgudWdnqALsroeY/E0yzy1d+H jpikCB0NKgHHuKSL2YsKLnmgpMBh0mnnTCYwJlPXHg== X-Google-Smtp-Source: ACcGV624rN/cc9+ZN5k6iyc4/bgNkU7YTSjOVGKlFFrxZHQwW01l7RnXOD3KHL+EjrUsBCL7UPOEZgK+4sGxIC9nvuY= X-Received: by 2002:a5e:890c:: with SMTP id k12-v6mr7885071ioj.136.1537798879800; Mon, 24 Sep 2018 07:21:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: blubee blubeeme Date: Mon, 24 Sep 2018 22:22:17 +0800 Message-ID: Subject: Re: Do we have a equivalent for Linux pinctrl framework in FreeBSD? To: Rajesh Kumar Cc: freebsd-drivers@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Sep 2018 14:21:21 -0000 On Mon, Sep 24, 2018, 22:14 Rajesh Kumar wrote: > Thanks for your response Blubee. > > This show the usage of pinctrl framework with FDT attached devices with > ARM platform. I guess fdt_pinctrl will work with amd64 also, but will it > be working with ACPI attached devices? > > On Mon, Sep 24, 2018 at 7:10 PM blubee blubeeme > wrote: > >> >> >> On Mon, Sep 24, 2018, 21:23 Rajesh Kumar wrote: >> >>> Hi Everyone, >>> >>> Do we have a pinctrl subsystem in FreeBSD which is kind of equivalent to >>> the Linux Pinctrl subsystem? >>> >>> I have a GPIO controller which is attached on the ACPI bus (on amd64 >>> platform). I am trying to add the support to configure the pins as >>> interrupts. I looked to use the INTRNG framework, but that seems to be >>> not >>> available for amd64 platforms. So, I am exploring the pinctrl framework >>> available in FreeBSD, but that seems available only for FDT devices. So, >>> Is there any way I can use this pinctrl framework for my purpose (or) is >>> there anything else I need to look after? >>> >>> Thanks, >>> Rajesh. >>> _______________________________________________ >>> freebsd-drivers@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-drivers >>> To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.or >>> >> >> >> This might be helpful: https://reviews.freebsd.org/D14104?id=38750 >> >>> I'm not 100% certain on that, I am also doing some stuff with the gpio and decided to just get the pi running FreeBSD and do most of my work through that. Best, Owen