From owner-freebsd-drivers@freebsd.org Mon Sep 24 17:10:53 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 86BF610B26FC for ; Mon, 24 Sep 2018 17:10:53 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (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 03A678A656 for ; Mon, 24 Sep 2018 17:10:53 +0000 (UTC) (envelope-from rajfbsd@gmail.com) Received: by mail-wm1-x32d.google.com with SMTP id n11-v6so10812061wmc.2 for ; Mon, 24 Sep 2018 10:10:52 -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=2YmYwjGVE0BUQAjkTZoOjS3AgavEobzD0YOqBHwQ7a0=; b=HW8FFtEN4EskemKa0uATZCYorKcMMRDoyEHT6evEbMi42BYxHLecIaM3j5VoxCQsej Fp5Z2/Pwn6rZBB69rmoAMtG/c25FDZbth+ZxW9P2n3R9luNdTmahQyMFGPAMnof77l5b F4dtyMoh3MZu+GmdTank1X3mW4+YonVRVuKE0Ngc231d28GsYMppiDon5s8IE3W6VBjT kAM8DcPG4v9mjSFmSwZsvm5iRjkWiyQr/akIn6VBGSeDVmluiF6CrA4MT6A0sDrS/rA2 ymjROShI5i9ZQbP2aybnt1SzJaEEQZImDUp2n9f94bsGNvWGkKY3D48Aq84JnIg2o3Qp F4IA== 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=2YmYwjGVE0BUQAjkTZoOjS3AgavEobzD0YOqBHwQ7a0=; b=mpFdsrkX/hdP590Ohp7T/sj42OCxWJgt+iI3Z60miONp42ONcKRID5vfs6R+vzyOyy Angx24n8Kcymh2DLQYYPYlfNUBSN+cLmh660ycvsn3XYLtzfGdZc0N5dj+ZBZ4n7Yvjf RnTnp1thONSf6YFafg0Td0ulkkW/bpwudT1USX9e7JDPn5KD5GdFLksLp7A/d6vcxin8 ObdYgJ1lhadU0Pgibyzm1UKZwJYwbWQhBkHiC1J8CsTH5jt2epgu3tKErxt5NqUy/5zu zfdu6jeSQzvr+b6Q7fW2YrLmJFcSL8fZw6sfreQmWe0bTU+ZoomwUaLTLQgQO9K5Zvde FM4Q== X-Gm-Message-State: APzg51CXWEa6arF7y6ECCRUyNGHsF0k17IkjeCrsD++A2TR08zxGLeeW RSB7rGM4nIm1kyBV5MKNOOuO3d2/Upt7r7Ng1dRhwQ== X-Google-Smtp-Source: ACcGV62pLokwQZdCUKsbp/RsJwve589Q1A0hc0mHdXc8QM/zC6Yr5rEGKFmgXjU5aa9LUCneb8llHTliBLvbQgnIaI4= X-Received: by 2002:a1c:9c56:: with SMTP id f83-v6mr7969462wme.135.1537809051760; Mon, 24 Sep 2018 10:10:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Rajesh Kumar Date: Mon, 24 Sep 2018 22:40:39 +0530 Message-ID: Subject: Re: Do we have a equivalent for Linux pinctrl framework in FreeBSD? To: blubee blubeeme 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 17:10:53 -0000 Fine Blubee. For ARM based platforms, necessary support like INTRNG, FDT etc., are in place. So, I hope things should be good to get FreeBSD running properly in Pi. All the best. Anyway, Thanks again for your time Blubee. On Mon, Sep 24, 2018 at 7:51 PM blubee blubeeme wrote: > > > 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 >