From nobody Mon Aug 22 17:04:29 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MBJcd0YV9z4Z94X for ; Mon, 22 Aug 2022 17:04:33 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MBJcc1g3Tz3SlV for ; Mon, 22 Aug 2022 17:04:32 +0000 (UTC) (envelope-from bakul@iitbombay.org) Received: by mail-qv1-xf34.google.com with SMTP id d1so8609239qvs.0 for ; Mon, 22 Aug 2022 10:04:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iitbombay-org.20210112.gappssmtp.com; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc; bh=Je0V/s8S0Rrn6Ag520p+sTabviZxxrTCW4CtbjNcKII=; b=IoDT9QW5Bc3T7fcDdOKhW2/JYMQby0I8sG6jet1TY1oeMFMmCf0KcU0oxmI0oVcREG Tzn36L0zo3RJcGY5vVQN61oAd4h25Vf3c8IVzluSqLwtZZmkEeWqLa1kD/tV5YexOYyf yEbs2LUPYGB2mEmWGYc92KoACBr0nDHcSvw7btTlbe7mqbRswzkcac6wOMe3muPEVj9V MAWcW8dMd/ukzr6MjpbhXJT7/FLjVitZL/BRzdpratb1xwLk6OsYlQ31DHqs8Bgm43GR 1/Lvoi+K26EfRjn/NeCUcxzhAj8HuukRVVugQGLBzR8tKcN6Dy2tFO8ZluIh4Lf80o8M D/XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc; bh=Je0V/s8S0Rrn6Ag520p+sTabviZxxrTCW4CtbjNcKII=; b=l3dNG8gim/Kbj8cxrPGW40E+W6T7fYq/LOoMPWg519x3TCWtCf2PQABO0cmqfA6tkC kAyaYQKYyYg/WV03bGiEpZz+0V9rjC/7zuig9NkVA+N/ZhYEc8Ljr5qA3CXRiOzHQ1PI IXzKCCtktpz4EjJCqOXRuclPDeMu46HfeEVfUz7CRbhrqO3LBf82axrChVmHkxAOK6KG RAvyaDzMKwFUzyhXd7So737mJ0M8wksIxnex6VxZBqpvQJzmpNPQXkS8deCuL89vkEd1 eJh8iTOCMZAiOymgRmRvqHq01qIc96NkBj1zFnmqFuAAyTXJvOPdRBMOchyEG+TruHKz N05A== X-Gm-Message-State: ACgBeo1C2YLkRgoe/L7BfaSjxvjSnA1iJIYFx5r6CFyA4DoGERdDFAmP TDFxU8nWXQUhtD9j0C3ObBOvhjjnl18/wA== X-Google-Smtp-Source: AA6agR7bWZhdC4TF9e/D/7itAsr1VsQARXyv6SIVRhtCO1RTqFFGGKG53BsvePaN8GdgYntaJQqtfA== X-Received: by 2002:a05:6214:5181:b0:478:69bd:38c5 with SMTP id kl1-20020a056214518100b0047869bd38c5mr16099763qvb.59.1661187871167; Mon, 22 Aug 2022 10:04:31 -0700 (PDT) Received: from smtpclient.apple (107-215-223-229.lightspeed.sntcca.sbcglobal.net. [107.215.223.229]) by smtp.gmail.com with ESMTPSA id dt47-20020a05620a47af00b006b8619a67f4sm11341104qkb.34.2022.08.22.10.04.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Aug 2022 10:04:30 -0700 (PDT) From: Bakul Shah Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: gpio-pps on pi4 Message-Id: <675FC932-B61E-40DB-A446-BF55F8AB9DA3@iitbombay.org> Date: Mon, 22 Aug 2022 10:04:29 -0700 To: freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MBJcc1g3Tz3SlV X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=iitbombay-org.20210112.gappssmtp.com header.s=20210112 header.b=IoDT9QW5; dmarc=none; spf=pass (mx1.freebsd.org: domain of bakul@iitbombay.org designates 2607:f8b0:4864:20::f34 as permitted sender) smtp.mailfrom=bakul@iitbombay.org X-Spamd-Result: default: False [-3.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[iitbombay-org.20210112.gappssmtp.com:s=20210112]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f34:from]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[iitbombay-org.20210112.gappssmtp.com:+]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[bakul]; ARC_NA(0.00)[]; DMARC_NA(0.00)[iitbombay.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Are there instructions on how to use gpio-pps on a pi4? Or a working gpio-pps.dtbo file I can use? Ideally without having to recompile anything. Instructions in /sys/contrib/device-tree/Bindings/pps/pps-gpio.txt are not clear to me.=20 I suppose I can try to create one using the following as a template and fix things up.... = https://github.com/raspberrypi/linux/blob/rpi-5.10.y/arch/arm/boot/dts/ove= rlays/pps-gpio-overlay.dts And is there a way to mmap the gpio address space? Thanks!