Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Setup for current Armbian/Ubuntu (25.8.2) for PCF8563 RTC on C2

Featured Replies

Anybody got PCF8563 configured and running on current armbian (25.8.2 noble aarch64) on a C2?

 

i2cdetect -y 0 is seeing the device ID (0x51)  and I have added module rtc-pcf8563 but no joy.  HWCLOCK does not see the device.

 

Any help would be appreciated.

 

Scott

Solved by Scott Ksander

  • Author

I tried rebuilding the Device Tree as suggested in other forums.  No Joy!!  Still can't get it to work.  Also added i2c-dev module but that isn't showing in lsmod.

 

Help appreciated.  Clearly I am missing something here.   This shouldn't be difficult.  :-)

  • Author
  • Solution

Turns out the secret was getting the address and symbols right in the device tree.   I create the following as meson-pcf8563.dts, compiled into meson-pcf8563.dtbo, moved to /boot/dtb/amlogic/overlay, and added pcf8563 to the "overlays" line in armbianEnv.txt.

 

/dts-v1/;

 

/ {

            compatible = "amlogic,meson-gxbb";

 

            fragment@0 {

                  target-path = "/aliases";

 

                  __overlay__ {

                        i2cA = "/soc/bus@c1100000/i2c@8500";

                  };

            };

 

            fragment@1 {

                  target-path = "/soc/bus@c1100000/i2c@8500";

 

                  __overlay__ {

                        #address-cells = <1>;

                        #size-cells = <0>;

                        pcf8563: rtc@51 {

                              compatible = "nxp,pcf8563";

                              reg = <0x51>;

                              status = "okay";

                        };

                  };

            };

};

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.