Skip to content

Commit

Permalink
arm64: tegra: Separate AON pinmux from main pinmux on Tegra194
Browse files Browse the repository at this point in the history
The registers for the AON pinmux reside in a partition different from
the registers for the main pinmux. Instead of treating them as one and
the same device, split them up so that they are each their own devices.
Also add gpio-ranges properties to the corresponding GPIO controllers
such that the pinmux and GPIO controllers can be paired up properly.

Signed-off-by: Thierry Reding <[email protected]>
  • Loading branch information
thierryreding committed Nov 21, 2022
1 parent 794b834 commit 6f380a4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions arch/arm64/boot/dts/nvidia/tegra194.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
interrupt-controller;
#gpio-cells = <2>;
gpio-controller;
gpio-ranges = <&pinmux 0 0 169>;
};

cbb-noc@2300000 {
Expand Down Expand Up @@ -626,9 +627,7 @@

pinmux: pinmux@2430000 {
compatible = "nvidia,tegra194-pinmux";
reg = <0x2430000 0x17000>,
<0xc300000 0x4000>;

reg = <0x2430000 0x17000>;
status = "okay";

pex_rst_c5_out_state: pex_rst_c5_out {
Expand Down Expand Up @@ -1673,6 +1672,14 @@
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
gpio-range = <&pinmux_aon 0 0 30>;
};

pinmux_aon: pinmux@c300000 {
compatible = "nvidia,tegra194-pinmux-aon";
reg = <0xc300000 0x4000>;

status = "okay";
};

pwm4: pwm@c340000 {
Expand Down

0 comments on commit 6f380a4

Please sign in to comment.