]> www.infradead.org Git - users/hch/misc.git/commitdiff
arm64: dts: apple: s5l8960x: Add I2C nodes
authorNick Chan <towinchenmi@gmail.com>
Tue, 10 Jun 2025 13:45:21 +0000 (21:45 +0800)
committerSven Peter <sven@kernel.org>
Sun, 10 Aug 2025 18:21:50 +0000 (20:21 +0200)
Add I2C nodes for Apple A7 SoC.

Signed-off-by: Nick Chan <towinchenmi@gmail.com>
Link: https://lore.kernel.org/r/20250610-i2c-no-t2-v2-2-a5a71080fba9@gmail.com
Signed-off-by: Sven Peter <sven@kernel.org>
arch/arm64/boot/dts/apple/s5l8960x.dtsi

index 5b5175d6978c45052ded495fc0d18ee3a8fbfdcb..462ffdd348fc893d8e1d597b11d063dc5f88bdf3 100644 (file)
                        status = "disabled";
                };
 
+               i2c0: i2c@20a110000 {
+                       compatible = "apple,s5l8960x-i2c", "apple,i2c";
+                       reg = <0x2 0x0a110000 0x0 0x1000>;
+                       clocks = <&clkref>;
+                       interrupt-parent = <&aic>;
+                       interrupts = <AIC_IRQ 154 IRQ_TYPE_LEVEL_HIGH>;
+                       pinctrl-0 = <&i2c0_pins>;
+                       pinctrl-names = "default";
+                       power-domains = <&ps_i2c0>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+               };
+
+               i2c1: i2c@20a111000 {
+                       compatible = "apple,s5l8960x-i2c", "apple,i2c";
+                       reg = <0x2 0x0a111000 0x0 0x1000>;
+                       clocks = <&clkref>;
+                       interrupt-parent = <&aic>;
+                       interrupts = <AIC_IRQ 155 IRQ_TYPE_LEVEL_HIGH>;
+                       pinctrl-0 = <&i2c1_pins>;
+                       pinctrl-names = "default";
+                       power-domains = <&ps_i2c1>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+               };
+
+               i2c2: i2c@20a112000 {
+                       compatible = "apple,s5l8960x-i2c", "apple,i2c";
+                       reg = <0x2 0x0a112000 0x0 0x1000>;
+                       clocks = <&clkref>;
+                       interrupt-parent = <&aic>;
+                       interrupts = <AIC_IRQ 156 IRQ_TYPE_LEVEL_HIGH>;
+                       pinctrl-0 = <&i2c2_pins>;
+                       pinctrl-names = "default";
+                       power-domains = <&ps_i2c2>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+               };
+
+               i2c3: i2c@20a113000 {
+                       compatible = "apple,s5l8960x-i2c", "apple,i2c";
+                       reg = <0x2 0x0a113000 0x0 0x1000>;
+                       clocks = <&clkref>;
+                       interrupt-parent = <&aic>;
+                       interrupts = <AIC_IRQ 157 IRQ_TYPE_LEVEL_HIGH>;
+                       pinctrl-0 = <&i2c3_pins>;
+                       pinctrl-names = "default";
+                       power-domains = <&ps_i2c3>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+               };
+
                pmgr: power-management@20e000000 {
                        compatible = "apple,s5l8960x-pmgr", "apple,pmgr", "syscon", "simple-mfd";
                        #address-cells = <1>;
                                     <AIC_IRQ 112 IRQ_TYPE_LEVEL_HIGH>,
                                     <AIC_IRQ 113 IRQ_TYPE_LEVEL_HIGH>,
                                     <AIC_IRQ 114 IRQ_TYPE_LEVEL_HIGH>;
+
+                       i2c0_pins: i2c0-pins {
+                               pinmux = <APPLE_PINMUX(81, 1)>,
+                                        <APPLE_PINMUX(80, 1)>;
+                       };
+
+                       i2c1_pins: i2c1-pins {
+                               pinmux = <APPLE_PINMUX(83, 1)>,
+                                        <APPLE_PINMUX(82, 1)>;
+                       };
+
+                       i2c2_pins: i2c2-pins {
+                               pinmux = <APPLE_PINMUX(101, 1)>,
+                                        <APPLE_PINMUX(100, 1)>;
+                       };
+
+                       i2c3_pins: i2c3-pins {
+                               pinmux = <APPLE_PINMUX(172, 1)>,
+                                        <APPLE_PINMUX(171, 1)>;
+                       };
                };
        };