From nobody Sun Dec 08 02:05:38 2024 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 4Y5Syy4KCCz5frNH for ; Sun, 08 Dec 2024 02:06:18 +0000 (UTC) (envelope-from furaisanjin@gmail.com) Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y5Syy2L13z4kkm for ; Sun, 8 Dec 2024 02:06:18 +0000 (UTC) (envelope-from furaisanjin@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-3862df95f92so1443773f8f.2 for ; Sat, 07 Dec 2024 18:06:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733623576; x=1734228376; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MnkagG7EzRpVi5+Me1cPBgXV/AvZ8Z+cs55cSG7c3So=; b=IT6sV49PbQH/Y0aRbux9UFqRKT7jXgQxlCvvhBs9seYjEMpLIlH5gz/SeKcJ7rKytC iQUOf09PpyREA7Z1fBc+SxRrRtCIEhVv5L7FP8DyDaWzNLUQ4kXJy2TTX+4q6Rn9xTtY nHlYCDp31G+S5oDVzoUmqEAYjV0ag0dd9NJRb8slo1eUwRkObRkJgMF2dq7UvlBv3hxq OL4p90o9LQiw7d1qVNmTFF/H7Em5Kc6mJHJT1XMDeNEd415Pr1CfIlLjBgLn8skuN1// k8+hrJh0boQIHexAfBBfXCMGZU0vWJgd+UqUMgZIfoM1efmTAJVDzRbDfMeXcQbfZ237 0X3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733623576; x=1734228376; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MnkagG7EzRpVi5+Me1cPBgXV/AvZ8Z+cs55cSG7c3So=; b=Z0bhvkf0IgpuE1XENFguAT7Vui3A+2A9r0RvgQd/GNpK7YzjAA2Elwb98+0qj9ngQ9 DcII8T6gskEG2rJRW5HAd9J61CrBWih/4UNC+QW/58j52yKrQbb4qvGYa6SK2U6hPM17 lRtC6H8HJmb63xysKk4Mvp2CtzjHKQHY86XbcmoYSyvkcB18wR3OSAIrEbYRWVQM2nqt SCo1Nt4fEVBhenwcZQ01VtOpfpl7GjxtYQyUVXMNSB1qy1OxhodT/T9/ZE7nf/9BZER5 xg+s1t4jWnzIrNUPup9+iwqCkiMnYeAxRZXFJFPpAVivUxOL3crT0SiKlKIGOUtdpspw 4DvA== X-Gm-Message-State: AOJu0YzQMRULI3ajOtEwTTaSDOpRgL34QsLbIucSb6UCBw1m1Kijue5e 57eUjMnWZzTvdXWm6VRVEJzuAI//ejzVoq7u8vJEIPCGv97h6TR83epQuPsjCDEGMK/+tzNMkmc pnBHUm/+Tc3a7/dlExMwuJju72ljm+Lqr0xM= X-Gm-Gg: ASbGncuEZ/VgO9J6wYjdlS7lEBLk7PBng1Ru4E7kv7O/IOlr78/+puSzE+lKZCBG8jI VHb9rF99ODZOZJLxPb7tG97y7oTaYm+S9 X-Google-Smtp-Source: AGHT+IF+5qzEqt62wqNrKIpUzexFGlUv0Qj1eI5P+wT5ASTwCM76TMTLYpg5kH9iIUrEpvaI+sFe3FmFcDt3DXssRhM= X-Received: by 2002:a05:6000:144a:b0:385:f8bd:6e80 with SMTP id ffacd0b85a97d-3862b3e4458mr6377038f8f.56.1733623575362; Sat, 07 Dec 2024 18:06:15 -0800 (PST) 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 References: <431FB386-F515-4D77-A855-18055A48E432@dons.net.au> In-Reply-To: <431FB386-F515-4D77-A855-18055A48E432@dons.net.au> From: =?UTF-8?B?6aKo5L6G5pWj5Lq6?= Date: Sun, 8 Dec 2024 11:05:38 +0900 Message-ID: Subject: Re: DS1307 on rpi4B To: "Daniel O'Connor" Cc: FreeBSD ARM List Content-Type: multipart/alternative; boundary="00000000000062497a0628b8b186" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4Y5Syy2L13z4kkm X-Spamd-Bar: ---- --00000000000062497a0628b8b186 Content-Type: text/plain; charset="UTF-8" Hello Daniel. Thank you for the suggestion. I created dtso file for my HW configuration like this. /dts-v1/; /plugin/; / { compatible = "brcm,bcm2835"; fragment@0 { target = <&i2c5>; __overlay__ { #address-cells = <1>; #size-cells = <0>; status = "okay"; ds1307: ds1307@68 { compatible = "dallas,ds1307"; reg = <0x68>; status = "okay"; }; }; }; __overrides__ { ds1307 = <&ds1307>,"status"; }; }; I modified config.txt to load this dtbo and add one more line to set GPIO pins in [pi4] gpio=12,13=a5,pu This works fine and RTC starts working. One strange thing is that "gpioctl -l -v" doesn't show correct pin setting somehow. I assumed there should be PU on pin 12 and 13. pin 12: 1 pin 12<>, caps: pin 13: 1 pin 13<>, caps: Best regards, furaisanjin --00000000000062497a0628b8b186 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: base64 PGRpdiBkaXI9Imx0ciI+PGRpdiBkaXI9Imx0ciI+PGRpdj5IZWxsbyBEYW5pZWwuPC9kaXY+PGRp dj48Y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