From: Akashdeep Kaur <a-kaur@ti.com>
To: Sebin Francis <sebin.francis@ti.com>, <praneeth@ti.com>,
<nm@ti.com>, <afd@ti.com>, <vigneshr@ti.com>, <d-gole@ti.com>,
<kristo@kernel.org>, <robh@kernel.org>, <krzk+dt@kernel.org>,
<conor+dt@kernel.org>, <linux-arm-kernel@lists.infradead.org>,
<devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: <vishalm@ti.com>
Subject: Re: [PATCH v3 3/3] arm64: dts: ti: k3-pinctrl: Add the remaining macros
Date: Thu, 4 Sep 2025 17:01:43 +0530 [thread overview]
Message-ID: <61954361-6aad-4761-967e-629cd288e33d@ti.com> (raw)
In-Reply-To: <c5dd1c02-8538-4b9f-a453-d18e7a30ae30@ti.com>
Hi Sebin,
On 04/09/25 11:32, Sebin Francis wrote:
> Hi Akash,
>
> On 02/09/25 12:49, Akashdeep Kaur wrote:
>> Add the drive stregth, schmitt trigger enable macros to pinctrl file.
>> Add the missing macros for DeepSleep configuration control referenced
>> from "Table 14-6172. Description Of The Pad Configuration Register Bits"
>> in AM625 TRM[0].
>> Add some DeepSleep macros to provide combinations that can be used
>> directly in device tree files example PIN_DS_OUTPUT_LOW that
>> configures pin to be output and also sets its value to 0.
>>
>> [0] https://www.ti.com/lit/ug/spruiv7b/spruiv7b.pdf
>>
>> Signed-off-by: Akashdeep Kaur <a-kaur@ti.com>
...
>> +#define WKUP_ON_EDGE (0 << WKUP_LVL_EN_SHIFT)
>> +#define WKUP_LEVEL_LOW (0 << WKUP_LVL_POL_SHIFT)
>> +#define WKUP_LEVEL_HIGH (1 << WKUP_LVL_POL_SHIFT)
>> +
>> +#define WKUP_DISABLE (0 << WKUP_EN_SHIFT)
>
> This can be moved below WKUP_ENABLE macro to be consistent
Moved. Thanks
>
>> +
>> /* Only these macros are expected be used directly in device tree
>> files */
>> #define PIN_OUTPUT (INPUT_DISABLE | PULL_DISABLE)
>> #define PIN_OUTPUT_PULLUP (INPUT_DISABLE | PULL_UP)
...
> ...
>> +#define DS_STATE_VAL (1 << DS_EN_SHIFT)
>> +#define ACTIVE_STATE_VAL (0 << DS_EN_SHIFT)
>
> These can be moved to the top before PIN_* and can be renamed to
> DS_STATE_EN and DS_STATE_DIS
Moved and renamed.>> +
>> +#define PIN_DS_OUTPUT_LOW (DS_STATE_VAL |
>> DS_INPUT_DISABLE | DS_OUT_VALUE_ZERO)
...
>> +#define PIN_WKUP_EN_LEVEL_HIGH (WKUP_ENABLE | WKUP_ON_LEVEL
>> | WKUP_LEVEL_HIGH)
>> +#define PIN_WKUP_EN WKUP_EN_EDGE
>
> As EDGE wake is used commonly we can use the PIN_WKUP_EN_EDGE in this case
That's a good idea. Changed.
>
>> /* Default mux configuration for gpio-ranges to use with pinctrl */
>> #define PIN_GPIO_RANGE_IOPAD (PIN_INPUT | 7)
>
> Thanks
> Sebin
Regards,
Akashdeep Kaur
next prev parent reply other threads:[~2025-09-04 13:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-02 7:19 [PATCH v3 0/3] Remove unused bits from dts and add support for remaining pinctrl macros Akashdeep Kaur
2025-09-02 7:19 ` [PATCH v3 1/3] arm64: dts: ti: k3-am62p5-sk: Remove the unused cfg in USB1_DRVVBUS Akashdeep Kaur
2025-09-04 8:29 ` Dhruva Gole
2025-09-02 7:19 ` [PATCH v3 2/3] arm64: dts: ti: k3-am62x-sk-common: " Akashdeep Kaur
2025-09-04 8:28 ` Dhruva Gole
2025-09-02 7:19 ` [PATCH v3 3/3] arm64: dts: ti: k3-pinctrl: Add the remaining macros Akashdeep Kaur
2025-09-04 6:02 ` Sebin Francis
2025-09-04 11:31 ` Akashdeep Kaur [this message]
2025-09-04 8:57 ` Kumar, Udit
2025-09-04 11:39 ` Akashdeep Kaur
2025-09-04 12:36 ` Kumar, Udit
2025-09-04 13:46 ` Akashdeep Kaur
2025-09-05 4:57 ` Kumar, Udit
2025-09-05 5:18 ` Akashdeep Kaur
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=61954361-6aad-4761-967e-629cd288e33d@ti.com \
--to=a-kaur@ti.com \
--cc=afd@ti.com \
--cc=conor+dt@kernel.org \
--cc=d-gole@ti.com \
--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=praneeth@ti.com \
--cc=robh@kernel.org \
--cc=sebin.francis@ti.com \
--cc=vigneshr@ti.com \
--cc=vishalm@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