mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Raghavendra, Vignesh" <vigneshr@ti.com>
To: "Adivi, Sai Sree Kartheek" <s-adivi@ti.com>,
	"Menon, Nishanth" <nm@ti.com>, Tero Kristo <kristo@kernel.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>
Cc: "linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"Francis, Sebin" <sebin.francis@ti.com>
Subject: Re: [PATCH] arm64: dts: ti: k3-am625-sk-common: Add TPIC2810 LED expander support
Date: Tue, 24 Nov 2026 14:26:03 +0000	[thread overview]
Message-ID: <e64f7e2f-567e-46a9-ad67-696802e58e1d@ti.com> (raw)
In-Reply-To: <20261124-am62x-tpic2810-v1-1-2b9fcb76a3c3@ti.com>

On 24/11/26 19:30, Sai Sree Kartheek Adivi via B4 Relay wrote:
> From: Sai Sree Kartheek Adivi <s-adivi@ti.com>
> 
> The AM625 SK and AM62x SIP SK EVMs both have a TPIC2810 I2C GPIO
> expander at address 0x60 on WKUP_I2C0, driving 8 user LEDs. Describe it
> in the shared k3-am625-sk-common.dtsi, mirroring the AM642 SK support:
> 
> - add the WKUP_I2C0 pinmux
> - enable wkup_i2c0 with the TPIC2810 node
> - add a gpio-leds node for the 8 outputs
> 
> CONFIG_GPIO_TPIC2810 is already enabled in the arm64 defconfig.
> 
> Signed-off-by: Sai Sree Kartheek Adivi <s-adivi@ti.com>
> ---


Please run

./scripts/dtc/dt-check-style --mode=strict

and fix the issues reported for nodes being added newly

>  arch/arm64/boot/dts/ti/k3-am625-sk-common.dtsi | 93 ++++++++++++++++++++++++++
>  1 file changed, 93 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/ti/k3-am625-sk-common.dtsi b/arch/arm64/boot/dts/ti/k3-am625-sk-common.dtsi
> index 8e07d2c2e62fd..7d5b16568aa9c 100644
> --- a/arch/arm64/boot/dts/ti/k3-am625-sk-common.dtsi
> +++ b/arch/arm64/boot/dts/ti/k3-am625-sk-common.dtsi
> @@ -91,6 +91,74 @@ vcc_1v8: regulator-5 {
>  		regulator-always-on;
>  		regulator-boot-on;
>  	};
> +
> +	led-controller {
> +		compatible = "gpio-leds";
> +
> +		led-0 {
> +			color = <LED_COLOR_ID_GREEN>;
> +			function = LED_FUNCTION_INDICATOR;
> +			function-enumerator = <1>;
> +			gpios = <&exp2 0 GPIO_ACTIVE_HIGH>;
> +			default-state = "off";
> +		};
> +
> +		led-1 {
> +			color = <LED_COLOR_ID_RED>;
> +			function = LED_FUNCTION_INDICATOR;
> +			function-enumerator = <2>;
> +			gpios = <&exp2 1 GPIO_ACTIVE_HIGH>;
> +			default-state = "off";
> +		};
> +
> +		led-2 {
> +			color = <LED_COLOR_ID_GREEN>;
> +			function = LED_FUNCTION_INDICATOR;
> +			function-enumerator = <3>;
> +			gpios = <&exp2 2 GPIO_ACTIVE_HIGH>;
> +			default-state = "off";
> +		};
> +
> +		led-3 {
> +			color = <LED_COLOR_ID_AMBER>;
> +			function = LED_FUNCTION_INDICATOR;
> +			function-enumerator = <4>;
> +			gpios = <&exp2 3 GPIO_ACTIVE_HIGH>;
> +			default-state = "off";
> +		};
> +
> +		led-4 {
> +			color = <LED_COLOR_ID_GREEN>;
> +			function = LED_FUNCTION_INDICATOR;
> +			function-enumerator = <5>;
> +			gpios = <&exp2 4 GPIO_ACTIVE_HIGH>;
> +			default-state = "off";
> +		};
> +
> +		led-5 {
> +			color = <LED_COLOR_ID_RED>;
> +			function = LED_FUNCTION_INDICATOR;
> +			function-enumerator = <6>;
> +			gpios = <&exp2 5 GPIO_ACTIVE_HIGH>;
> +			default-state = "off";
> +		};
> +
> +		led-6 {
> +			color = <LED_COLOR_ID_GREEN>;
> +			function = LED_FUNCTION_INDICATOR;
> +			function-enumerator = <7>;
> +			gpios = <&exp2 6 GPIO_ACTIVE_HIGH>;
> +			default-state = "off";
> +		};
> +
> +		led-7 {
> +			color = <LED_COLOR_ID_AMBER>;
> +			function = LED_FUNCTION_HEARTBEAT;
> +			function-enumerator = <8>;
> +			linux,default-trigger = "heartbeat";
> +			gpios = <&exp2 7 GPIO_ACTIVE_HIGH>;
> +		};
> +	};
>  };
>  
>  &main_pmx0 {
> @@ -160,6 +228,15 @@ AM62X_IOPAD(0x01d4, PIN_INPUT, 7) /* (B15) UART0_RTSn.GPIO1_23 */
>  	};
>  };
>  
> +&mcu_pmx0 {
> +	tpic_pins_default: tpic-default-pins {
> +		pinctrl-single,pins = <
> +			AM62X_MCU_IOPAD(0x004c, PIN_INPUT, 0) /* (B9) WKUP_I2C0_SCL */
> +			AM62X_MCU_IOPAD(0x0050, PIN_INPUT, 0) /* (A9) WKUP_I2C0_SDA */
> +		>;
> +	};
> +};
> +
>  &main_gpio0 {
>  	bootph-all;
>  };
> @@ -196,6 +273,22 @@ exp1: gpio@22 {
>  	};
>  };
>  
> +&wkup_i2c0 {
> +	status = "okay";
> +	pinctrl-names = "default";
> +	pinctrl-0 = <&tpic_pins_default>;
> +	clock-frequency = <400000>;
> +
> +	exp2: gpio@60 {
> +		compatible = "ti,tpic2810";
> +		reg = <0x60>;
> +		gpio-controller;
> +		#gpio-cells = <2>;
> +		gpio-line-names = "LED0", "LED1", "LED2", "LED3",
> +				   "LED4", "LED5", "LED6", "LED7";
> +	};
> +};
> +
>  &sdhci0 {
>  	bootph-all;
>  	non-removable;
> 
> ---
> base-commit: 566085204d669ed4bd0d8d230b10f94f963e2481
> change-id: 20261124-am62x-tpic2810-5a8bebd6ba86
> 
> Best regards,
> --  
> Sai Sree Kartheek Adivi <s-adivi@ti.com>


      reply	other threads:[~2026-11-24 14:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 14:00 Sai Sree Kartheek Adivi via B4 Relay
2026-11-24 14:26 ` Raghavendra, Vignesh [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e64f7e2f-567e-46a9-ad67-696802e58e1d@ti.com \
    --to=vigneshr@ti.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=kristo@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nm@ti.com \
    --cc=robh@kernel.org \
    --cc=s-adivi@ti.com \
    --cc=sebin.francis@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®