Combine all ingredients EXCEPT walnuts in a 6 quart Instant Pot. Lock on the lid, set to sealing, and cook at high pressure for 8 minutes. The pot will take about 10 minutes to come to pressure.
If including the walnuts, while the lentils cook, pulse walnuts in a food processor until the texture of crumbs. Set aside.
When the Instant Pot beeps at the end of the 8 minutes, carefully quick release the pressure. Once it's safe to do so, remove the lid. Strain away any excess liquid left in the pot (there shouldn't be much). Stir in the ground walnuts. Let stand for a few minutes, and serve.
Preheat a soup pot or large saute pan over medium heat. Saute the onion and jalapeño for about 5 minutes or until softened. Add the garlic and spices, and cook for about 30 seconds, stirring constantly.
Add the lentils, 3 ¼ cups water, and salt, and bring to boil. Reduce heat to a gentle simmer, and cook uncovered until tender, about 20 minutes.
If including the walnuts, while the lentils cook pulse walnuts in a food processor until the texture of crumbs. Set aside.
When the lentils are done, strain away excess liquid. Stir in the ground walnuts, and let stand for a few minutes before serving.
