Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp472941ybl; Wed, 11 Dec 2019 02:42:56 -0800 (PST) X-Google-Smtp-Source: APXvYqygKoAt0VzVSzbQoEQVcNeFa83SNeXwze4ys2LPkOfyj03EydB+dq1GNPBoPmAGDe2rjZuG X-Received: by 2002:a9d:6c06:: with SMTP id f6mr1836919otq.318.1576060976904; Wed, 11 Dec 2019 02:42:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576060976; cv=none; d=google.com; s=arc-20160816; b=NP7IofhqGBkZBqdk82dlimv4/qq7kbTuBHENBNP/8bh1dyYeJPHylJnIm5eMI3hxCO 1NzobT8xpWUgWgyigImbLJWlP1FmhVdO2ptFh3JaSrMiSEPIdXfFoxtzZqqQbxbUg9fa AzayvvwrwVVHQupEQmxC7Phz+o3DYGqjJ5jb4Q42EdsDz3qOpVSejgsekxqLNSJGrU3C 7CktHduRt23Sj5tvejZXf2CpGLMgMzZn8JddKwbb+3+rmTcQgYYYaF+sRlIW3B1eMDO2 w9jfFP5I1kUeYosbJg3vK7O/+Uv1LGqlfknNxy+Tthh+RwO3/63THfTroOtovvQumXeB mQKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ytdBVhk/qhHIU0f1ejIbJ7Mj79TlpQjDmvTTuwp3S/w=; b=JkrdQKEvWY+P57cueBtiguZtUrQrjTGoYY1thKbvn7kdtPfL7AALXt4SjwlZUSfCQB oDwxBGEeEfyiqruaNBiyX2Z3/G5iScrrR0+xh1Yxf6NXJ/s7A0MhGbBEezoHJ3yFr2Q9 iLVBv6zvHaoSHpHiWTig1CN3m793w2T7NLTi8Rsu487N0w7xVPrhAbBtOMF0kafgjO95 zF5KmigFbwlCVUD6OSm9cRqNNjMfOKbpIW4zaTDFVNCZbQtVn7JJNh2UbdIHvYotsaQf NCwM0NIepL6kqTCIpbvL5MbJ1p/2fmSBowk6OPwXmde52gekENpisVuNbTFxX2mNbJA/ Zr6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kOm19GDw; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m1si784016otf.174.2019.12.11.02.42.43; Wed, 11 Dec 2019 02:42:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kOm19GDw; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728839AbfLKKmD (ORCPT + 99 others); Wed, 11 Dec 2019 05:42:03 -0500 Received: from mail-il1-f195.google.com ([209.85.166.195]:40665 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728030AbfLKKmD (ORCPT ); Wed, 11 Dec 2019 05:42:03 -0500 Received: by mail-il1-f195.google.com with SMTP id b15so18997471ila.7; Wed, 11 Dec 2019 02:42:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ytdBVhk/qhHIU0f1ejIbJ7Mj79TlpQjDmvTTuwp3S/w=; b=kOm19GDwtrHwCIEW2BVH8UFPDw9yPqTLsunbaXqDGj8DbJC4FeLahCOjAkBmfU8jdq wlCP5QKmvhJzEGgRObxhFZqvpWiWfgbhA2rJQlVa+c1qcr2VGMOunxaVzcb3B//KeX32 oVP5L12yfCwgZGBOrX5n7wnQ/mW3lEUH84HuypEIDoZGMUiAOtWCSqL/4qjn8Cu5Xbvd UUFyq0WuaYJTyaQ+qFnFZM/ag7JkZE0chQK0S8iH5rc+sv4RJxXT9VFTBhYsd4Xj5xmE jku0y7RZm8ZfYNo2z8sqpTmN3POmLJaolkukjqI89zqQsqf1wMaqekHud4CRRVefPxFa 6XXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ytdBVhk/qhHIU0f1ejIbJ7Mj79TlpQjDmvTTuwp3S/w=; b=b0iZUfnNZeEN30Q0FDH3ml5rMT2uStFnV0r9C3IPyOI8YlauugLVmK3ou9+7Zln21i gvVqTDAMp4y9Gowh9VAMlmWRg88QuFRL7QwkI91fwlaQuc1KJf9bsXO50kcdph2KRmSS 8GhNpQzIui4oAw3zPy31a+nfhfhkF0d7crAFXbwdDyu0lAqQufkeDO2D7bqaTKpeMZz4 3SudhUoOQpe+G2zSBu55YV3Qd4qVgzujDcUw4T1PSy3+X99ZNMhrNZ8zVUVfDHC+tY8o 2BVaL3B/7ruS7Fm1LeH8TJxPJVLKCMzoyE3TZj4PAIP0f/UAMJ8VJusU1Fh+DTJBt2Gg f7Fg== X-Gm-Message-State: APjAAAW7VWKmOqIlOIMcbU7DD9e6zd1SEM72J0XjEoXEFbyDv8UC1KYF k09nhva/Rd3opx/icsicSlrN9T0K6AotSTaygMg= X-Received: by 2002:a92:5d92:: with SMTP id e18mr2311277ilg.75.1576060922553; Wed, 11 Dec 2019 02:42:02 -0800 (PST) MIME-Version: 1.0 References: <20191211084112.971-1-linux.amoon@gmail.com> <20191211084112.971-2-linux.amoon@gmail.com> In-Reply-To: <20191211084112.971-2-linux.amoon@gmail.com> From: Anand Moon Date: Wed, 11 Dec 2019 16:11:51 +0530 Message-ID: Subject: Re: [PATCHv1 1/3] arm64: dts: amlogic: adds crypto hardware node for GXBB SoCs To: Rob Herring , Mark Rutland , Corentin Labbe , Kevin Hilman , Martin Blumenstingl , Neil Armstrong , Herbert Xu , "David S . Miller" Cc: devicetree , linux-arm-kernel , linux-amlogic@lists.infradead.org, Linux Kernel , linux-crypto@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Neil, On Wed, 11 Dec 2019 at 14:11, Anand Moon wrote: > > This patch adds the crypto hardware node for all GXBB SoCs. > > Cc: Corentin Labbe > Cc: Martin Blumenstingl > Cc: Neil Armstrong > Signed-off-by: Anand Moon > --- > Tested on Odroid C2 GXBB > --- > arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi > index 0cb40326b0d3..bac8fbfd4f01 100644 > --- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi > +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi > @@ -14,6 +14,16 @@ / { > compatible = "amlogic,meson-gxbb"; > > soc { > + crypto: crypto@c883e000 { My mistake I got this reg value wrong, as per the "S905_Public_Datasheet_V1.1.4" [0] it should be *0xda832000 + offset*4* I changes this at my end but I get kernel panic on loading the module. # sudo modprobe tcrypt sec=1 mode=500 It's looks like the crypto node is wrongly configured. > + compatible = "amlogic,gxbb-crypto"; > + reg = <0x0 0xc883e000 0x0 0x36>; > + interrupts = , > + ; > + clocks = <&clkc CLKID_BLKMV>; > + clock-names = "blkmv"; > + status = "okay"; > + }; > + > usb0_phy: phy@c0000000 { > compatible = "amlogic,meson-gxbb-usb2-phy"; > #phy-cells = <0>; > -- > 2.24.0 > [0] https://dn.odroid.com/S905/DataSheet/S905_Public_Datasheet_V1.1.4.pdf -Anand