← Documents Documentation/devicetree/bindings/tpm/google,cr50.yaml GitHub 원문 ↗

Linux 6.18.37 · Devicetree Bindings / TPM

Google H1 Cr50 Security Chip

Google H1의 TPM 2.0 FIFO protocol과 SPI·I²C 연결을 설명합니다.

Source pathDocumentation/devicetree/bindings/tpm/google,cr50.yaml
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약과 해설

google,cr50.yaml:1-65

Google H1의 TPM 2.0 FIFO protocol과 SPI·I²C 연결을 설명합니다. 접을 수 있는 영어 원문 전체와 한국어 전문 번역을 함께 제공하며 compatible, interrupt, bus, register, phandle, 수치와 줄 좌표를 원형대로 보존합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/tpm/google,cr50.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Google Security Chip H1 (running Cr50 firmware)
8
9 maintainers:
10 - Andrey Pronin <apronin@chromium.org>
11
12 description: |
13 Google has designed a family of security chips called "Titan".
14 One member is the H1 built into Chromebooks and running Cr50 firmware:
15 https://www.osfc.io/2018/talks/google-secure-microcontroller-and-ccd-closed-case-debugging/
16
17 The chip provides several functions, including TPM 2.0 like functionality.
18 It communicates over SPI or I²C using the FIFO protocol described in the
19 TCG PC Client Platform TPM Profile Specification for TPM 2.0 (PTP), sec 6:
20 https://trustedcomputinggroup.org/resource/pc-client-platform-tpm-profile-ptp-specification/
21
22 properties:
23 compatible:
24 const: google,cr50
25
26 allOf:
27 - $ref: tpm-common.yaml#
28
29 anyOf:
30 - $ref: /schemas/spi/spi-peripheral-props.yaml#
31 - $ref: tcg,tpm-tis-i2c.yaml#/properties/reg
32
33 required:
34 - compatible
35 - reg
36
37 unevaluatedProperties: false
38
39 examples:
40 - |
41 spi {
42 #address-cells = <1>;
43 #size-cells = <0>;
44
45 tpm@0 {
46 reg = <0>;
47 compatible = "google,cr50";
48 spi-max-frequency = <800000>;
49 };
50 };
51
52 - |
53 #include <dt-bindings/interrupt-controller/irq.h>
54 i2c {
55 #address-cells = <1>;
56 #size-cells = <0>;
57
58 tpm@50 {
59 compatible = "google,cr50";
60 reg = <0x50>;
61 interrupts-extended = <&pio 88 IRQ_TYPE_EDGE_FALLING>;
62 pinctrl-names = "default";
63 pinctrl-0 = <&cr50_int>;
64 };
65 };
66

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

Google H1 security chip

1-21

GPL-2.0-only 또는 BSD-2-Clause 라이선스의 이 스키마는 Cr50 firmware를 실행하는 Google H1 security chip을 정의합니다. Google의 security chip family는 Titan이라 불리며 H1은 Chromebook에 내장된 구성원입니다. 관련 발표 링크는 `https://www.osfc.io/2018/talks/google-secure-microcontroller-and-ccd-closed-case-debugging/`입니다.

H1은 TPM 2.0과 유사한 기능을 포함한 여러 기능을 제공합니다. SPI 또는 I²C로 통신하며 TCG PC Client Platform TPM Profile Specification for TPM 2.0(PTP) section 6의 FIFO protocol을 사용합니다. Maintainer는 Andrey Pronin입니다.

공통 TPM과 SPI·I²C 선택

22-38

`compatible`은 `google,cr50`입니다. Node는 `tpm-common.yaml`의 공통 TPM 속성을 따르고, SPI peripheral 속성 또는 `tcg,tpm-tis-i2c.yaml`의 `reg` 속성 중 해당 bus 정의를 적용합니다. `compatible`과 `reg`가 필수이며 평가되지 않은 추가 속성은 허용하지 않습니다.

properties:
  compatible:
    const: google,cr50

allOf:
  - $ref: tpm-common.yaml#

anyOf:
  - $ref: /schemas/spi/spi-peripheral-props.yaml#
  - $ref: tcg,tpm-tis-i2c.yaml#/properties/reg

required:
  - compatible
  - reg

unevaluatedProperties: false

SPI 연결 예제

39-51

첫 예제는 `spi` bus의 chip select 0인 `tpm@0`에 CR50을 연결하고 `spi-max-frequency = <800000>`으로 최대 800 kHz를 지정합니다.

examples:
  - |
    spi {
        #address-cells = <1>;
        #size-cells = <0>;

        tpm@0 {
            reg = <0>;
            compatible = "google,cr50";
            spi-max-frequency = <800000>;
        };
    };

I²C interrupt 예제

52-65

둘째 예제는 I²C address 0x50의 `tpm@50`에 CR50을 연결합니다. GPIO controller `pio`의 line 88 falling-edge interrupt를 `interrupts-extended`로 지정하고 `cr50_int` pinctrl state를 default로 적용합니다.

- |
  #include <dt-bindings/interrupt-controller/irq.h>
  i2c {
      #address-cells = <1>;
      #size-cells = <0>;

      tpm@50 {
          compatible = "google,cr50";
          reg = <0x50>;
          interrupts-extended = <&pio 88 IRQ_TYPE_EDGE_FALLING>;
          pinctrl-names = "default";
          pinctrl-0 = <&cr50_int>;
      };
  };