Libre Computer Le Potato AML-S905X-CC

Pretty much everything here should apply to the v2, as well.

Pinout: https://docs.google.com/spreadsheets/d/1U3z0Gb8HUEfCIMkvqzmhMpJfzRqjPXq7mFLC-hvbKlE/edit#gid=0

TimePotato

Pretty much everything here is standard, the main difference is loading the overlays for UART, RTC, and PPS. RTC and PPS must be manually compiled.

RV-3032-C7

i2c-ao-rv3032.dts
/dts-v1/;
/plugin/;
 
/ {
	compatible = "libretech,cc", "amlogic,s905x", "amlogic,meson-gxl";
 
	fragment@1 {
		target = <&i2c_AO>;
 
		__overlay__ {
			rtc@52 {
				compatible = "microcrystal,rv3032";
				reg = <0x51>;
			};
		};
	};
};

PPS Pin 7

pps_pin7.dts
/dts-v1/;
/plugin/;
 
/ {
  compatible = "libretech,cc", "amlogic,s905x", "amlogic,meson-gxl";
 
  fragment@0 {
    target-path = "/";
    __overlay__ {
      pps_gpio: pps-gpio {
        compatible = "pps-gpio";
        gpios = <&gpio 98 0>;
        interrupt-parent = <&gpio_intc>;
        interrupts = <98 1>;
        assert-rising-edge;
        status = "okay";
      };
    };
  };
};

Build & Merge

dtc -I dts -O dtb pps_pin7.dts -o pps-pin7.dtbo ;
dtc -I dts -O dtb i2c-ao-rv3032.dts -o i2c-ao-rv3032.dtbo

copy:

sudo cp *.dtbo \
/opt/librecomputer/libretech-wiring-tool/libre-computer/aml-s905x-cc-v2/dt/.

merge:

sudo ldto merge i2c-ao ;
sudo ldto merge uart-a ;
sudo ldto merge i2c-ao-rv3032 ;
sudo ldto merge pps-pin7 ;
sudo reboot

Disable the SW RTC

echo "blacklist rtc_meson_vrtc" | sudo tee -a /etc/modules >/dev/null
aml-s905x-cc.txt · Last modified: 2024/03/23 14:20 by admin
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0