Skip to content

Commit 4badf8d

Browse files
numbqqsuperna9999
authored andcommitted
arm64: dts: amlogic: meson-s4: add internal SARADC controller
Add the SARADC (Successive Approximation Register ADC) controller node to the Meson S4 SoC dtsi. It uses the S4-specific compatible string with a fallback to the G12A generation, as there are no known hardware differences. Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Nick Xie <nick@khadas.com> Link: https://patch.msgid.link/20260325070618.81955-4-nick@khadas.com Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
1 parent 8c45bf9 commit 4badf8d

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

arch/arm64/boot/dts/amlogic/meson-s4.dtsi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,20 @@
7777
};
7878
};
7979

80+
saradc: adc@fe026000 {
81+
compatible = "amlogic,meson-s4-saradc",
82+
"amlogic,meson-g12a-saradc";
83+
reg = <0x0 0xfe026000 0x0 0x48>;
84+
#io-channel-cells = <1>;
85+
interrupts = <GIC_SPI 181 IRQ_TYPE_EDGE_RISING>;
86+
clocks = <&xtal>,
87+
<&clkc_periphs CLKID_SAR_ADC>,
88+
<&clkc_periphs CLKID_SARADC>,
89+
<&clkc_periphs CLKID_SARADC_SEL>;
90+
clock-names = "clkin", "core", "adc_clk", "adc_sel";
91+
status = "disabled";
92+
};
93+
8094
soc {
8195
compatible = "simple-bus";
8296
#address-cells = <2>;

0 commit comments

Comments
 (0)