〜だけ(の)
as much as (possible); enough to
Potential / たい / Verb + だけ · だけの + Noun
Sign up free to review this point on a spaced schedule.
だけ also means "as much as", setting the limit by what's possible or wanted: やれるだけのことはやった, "I did everything I could". 持てるだけ持って帰っていいよ, "take home as much as you can carry".
It's common after potential verbs (できる, 持てる, 食べられる), after たい (言いたいだけ言う, "say as much as you want") and after 好きな (好きなだけ, "as much as you like").
だけの before a noun means "enough to": 歌手になるだけの才能がある, "she has enough talent to become a singer".
This is the same だけ as "only"; here it marks the full extent rather than a narrow limit.
Examples
やれるだけのことはやった。
I did everything I could.
持てるだけ持って帰っていいよ。
Take home as much as you can carry.
好きなだけ食べてください。
Eat as much as you like.
言いたいだけ言って、帰ってしまった。
He said everything he wanted to say, then left.
彼女は歌手になるだけの才能がある。
She has enough talent to become a singer.