User Tools

Site Tools


aml-s905x-cc


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
aml-s905x-cc [2023/11/02 15:01] – [PPS] 69.53.43.57aml-s905x-cc [2024/11/14 02:30] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Libre Computer Le Potato AML-S905X-CC ====== ====== Libre Computer Le Potato AML-S905X-CC ======
 +Pretty much everything here should apply to the v2, as well.
  
-===== PPS =====+Pinout: 
 +https://docs.google.com/spreadsheets/d/1U3z0Gb8HUEfCIMkvqzmhMpJfzRqjPXq7mFLC-hvbKlE/edit#gid=0
  
-<file c pps_pin13.dts>+ 
 +==== 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 ==== 
 +<file c i2c-ao-rv3032.dts>
 /dts-v1/; /dts-v1/;
 /plugin/; /plugin/;
Line 10: Line 18:
  compatible = "libretech,cc", "amlogic,s905x", "amlogic,meson-gxl";  compatible = "libretech,cc", "amlogic,s905x", "amlogic,meson-gxl";
  
- fragment@+ fragment@
- target-path "/";+ target = <&i2c_AO>; 
  __overlay__ {  __overlay__ {
- pps_gpio: pps-gpio + rtc@52 
- compatible = "pps-gpio"; + compatible = "microcrystal,rv3032"; 
- interrupt-parent = <&gpio_intc>+ reg = <0x51>;
- interrupts = <98 1>; +
- assert-rising-edge; +
- status = "okay";+
  };  };
  };  };
Line 24: Line 30:
 }; };
 </file> </file>
 +
 +
 +==== PPS Pin 7 ====
 +
 +<file c 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";
 +      };
 +    };
 +  };
 +};
 +</file>
 +
 +==== Build & Merge ====
 +
 +<code>
 +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
 +</code>
 +
 +copy:
 +<code>sudo cp *.dtbo \
 +/opt/librecomputer/libretech-wiring-tool/libre-computer/aml-s905x-cc-v2/dt/.</code>
 +
 +merge:
 +<code>
 +sudo ldto merge i2c-ao ;
 +sudo ldto merge uart-a ;
 +sudo ldto merge i2c-ao-rv3032 ;
 +sudo ldto merge pps-pin7 ;
 +sudo reboot
 +</code>
 +
 +Disable the SW RTC
 +<code>
 +echo "blacklist rtc_meson_vrtc" | sudo tee -a /etc/modules >/dev/null
 +</code>
aml-s905x-cc.1698937317.txt.gz · Last modified: 2024/11/14 02:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki