From: Martin Botka <martin.botka@somainline.org>
To: Andre Przywara <andre.przywara@arm.com>
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Conor Dooley <conor+dt@kernel.org>, Chen-Yu Tsai <wens@csie.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>,
Maxime Ripard <mripard@kernel.org>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
Alan Ma <tech@biqu3d.com>,
Marijn Suijten <marijn.suijten@somainline.org>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@somainline.org>,
Konrad Dybcio <konrad.dybcio@somainline.org>
Subject: Re: [PATCH 2/3] nvmem: sunxi_sid: Add support for H616 SID
Date: Fri, 11 Aug 2023 15:12:34 +0200 [thread overview]
Message-ID: <Y0A8ZR.WOK201QL3WRP1@somainline.org> (raw)
In-Reply-To: <20230811121754.3a4dc270@donnerap.manchester.arm.com>
On Fri, Aug 11 2023 at 12:17:54 PM +01:00:00, Andre Przywara
<andre.przywara@arm.com> wrote:
> On Fri, 11 Aug 2023 13:02:35 +0200
> Martin Botka <martin.botka@somainline.org> wrote:
>
> Hi Martin,
>
>> Add support for the H616 SID controller.
>
> thanks for upstreaming this!
>
>>
>> The config can be reused from A64.
>>
>> Signed-off-by: Martin Botka <martin.botka@somainline.org>
>> ---
>> drivers/nvmem/sunxi_sid.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/nvmem/sunxi_sid.c b/drivers/nvmem/sunxi_sid.c
>> index a970f1741cc6..df6fb5e0b724 100644
>> --- a/drivers/nvmem/sunxi_sid.c
>> +++ b/drivers/nvmem/sunxi_sid.c
>> @@ -216,6 +216,7 @@ static const struct of_device_id
>> sunxi_sid_of_match[] = {
>> { .compatible = "allwinner,sun50i-a64-sid", .data =
>> &sun50i_a64_cfg },
>> { .compatible = "allwinner,sun50i-h5-sid", .data =
>> &sun50i_a64_cfg },
>> { .compatible = "allwinner,sun50i-h6-sid", .data = &sun50i_h6_cfg
>> },
>> + { .compatible = "allwinner,sun50i-h616-sid", .data =
>> &sun50i_a64_cfg },
>
> You don't need a new compatible string, then.
> Just use
> compatible = "allwinner,sun50i-h616-sid",
> "allwinner,sun50i-a64-sid";
> in the DT, and add that combo to the binding, then you don't need any
> driver patches at all - with the added benefit of that already working
> with existing kernels.
I added it cause H5 and A83T were added after their DT binding was in
and they also use A64 config.
But I will drop this patch and use a64 compatible if that is the
prefered way :)
>
> Though I wonder if that has really only 256 bytes of fuses? Do we
> have any
> evidence of that?
Datasheet has 0 info regarding this. The way i got the size and offset
was to check the vendor code.
The values matched A64.
>
> Cheers,
> Andre
>
>> {/* sentinel */},
>> };
>> MODULE_DEVICE_TABLE(of, sunxi_sid_of_match);
>>
>
next prev parent reply other threads:[~2023-08-11 13:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-11 11:02 [PATCH 0/3] Enable Security ID for H616 Martin Botka
2023-08-11 11:02 ` [PATCH 1/3] dt-bindings: nvmem: SID: Add binding for H616 SID controller Martin Botka
2023-08-11 15:23 ` Conor Dooley
2023-08-11 15:25 ` Martin Botka
2023-08-11 11:02 ` [PATCH 2/3] nvmem: sunxi_sid: Add support for H616 SID Martin Botka
2023-08-11 11:17 ` Andre Przywara
2023-08-11 13:12 ` Martin Botka [this message]
2023-08-11 22:42 ` Andre Przywara
2023-08-11 11:02 ` [PATCH 3/3] arm64: dts: allwinner: h616: Add SID controller node Martin Botka
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=Y0A8ZR.WOK201QL3WRP1@somainline.org \
--to=martin.botka@somainline.org \
--cc=andre.przywara@arm.com \
--cc=angelogioacchino.delregno@somainline.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jernej.skrabec@gmail.com \
--cc=konrad.dybcio@somainline.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=marijn.suijten@somainline.org \
--cc=mripard@kernel.org \
--cc=robh+dt@kernel.org \
--cc=samuel@sholland.org \
--cc=srinivas.kandagatla@linaro.org \
--cc=tech@biqu3d.com \
--cc=wens@csie.org \
/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