Power saving method and device
By receiving SPMI write commands in the SPMI slave device to control the on and off of the system clock, the problem that the SPMI slave device cannot perform functions when the system clock is turned off is solved, and power consumption is saved when idle and allows external devices to communicate Effect.
Patent Information
- Application Number
- CN202311813589.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-12
- Filing Date
- 2023-12-26
- Publication Date
- 2024-11-12
AI Technical Summary
In the SPMI protocol, the SPMI slave cannot perform functions when the system clock is turned off, resulting in power consumption not being effectively saved when idle.
Receive commands from external devices via the SPMI bus, adaptively turn off and on the system clock, and allow external devices to communicate when the system clock is off, controlling the on and off of the clock using a predefined index.
It realizes adaptively shutting down the system clock when the device is idle, reducing power consumption, and still communicating with external devices when the system clock is turned off, improving the power saving efficiency and flexibility of the system.
Smart Images

Figure CN118939102A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to a method and apparatus for saving power. More specifically, aspects of the present disclosure relate to a method and apparatus for saving power in a system power management interface (SPMI) slave device. Background Art
[0002] Computing devices are ubiquitous in modern society. The proliferation of computing devices is at least partially due to the rise of mobile computing devices such as smartphones. Computing devices often rely on different application-specific integrated circuits (ICs) that perform specific functions for the computing device. When there are multiple ICs, there must be an accepted protocol or standard by which the ICs can communicate with each other. Just as ICs may be specialized in the tasks they are able to perform, specialized protocols are also created. One such protocol is the system power management interface (SPMI) proposed by the MIPI Alliance.
[0003] In the SPMI protocol, a simple SPMI slave device can only operate when the master device provides the SPMI clock (SCLK) signal. When the SPMI slave device has only a single clock domain (such as the system clock), once the SPMI access is stopped and the system clock in the SPMI slave device is turned off, the SPMI slave device cannot perform any function.
[0004] In order to save power consumption of the system-on-chip (SOC) of the SPMI slave device, the high-speed system clock will be adaptively turned off when the SPMI slave device is idle. However, the function-related registers in the SPMI slave device that use the system clock are only updated when the system clock is valid. Once the system clock is turned off, these registers may not be updated through SPMI access, and when the system clock is turned off, other devices on the SPMI bus cannot communicate with the SPMI slave device.
[0005] Therefore, a power saving method and device are needed to solve this problem. Summary of the invention
[0006] The following summary is illustrative only and is not intended to be limiting in any way. That is, the following summary is provided to introduce the concepts, highlights, benefits, and advantages of the novel and non-obvious technologies described herein. Selected, but not all, implementations are further described in the detailed description below. Therefore, the following summary is not intended to identify essential features of the claimed subject matter, nor is it intended to be used to determine the scope of the claimed subject matter.
[0007] Therefore, the main purpose of the present invention is to provide a power saving method and device, so that the system clock can be adaptively turned off when the device is idle, and external devices can still communicate with the device during the period when the system clock is turned off.
[0008] In an exemplary embodiment, a method for saving power in a slave device is provided. The method is for a slave device. The method includes receiving a first system power management interface (SPMI) write command from an external device via an SPMI bus when the slave device is in a sleep mode. The method includes turning on a system clock in response to a first SPMI write command indicating turning on a system clock. The method includes allowing an external device to access the slave device.
[0009] In some embodiments, the method further includes sending an SPMI acknowledgement (ACK) command to the external device to notify the external device that the system clock has been turned on.
[0010] In some embodiments, the method also includes comparing a second SPMI write command received from an external device via the SPMI bus. The method also includes shutting down the system clock in response to the second SPMI write command instructing to shut down the system clock.
[0011] In some embodiments, the first SPMI write command includes a predefined index, where the predefined index of 0 indicates turning on the system clock, and the predefined index of 1 indicates turning off the system clock.
[0012] In some embodiments, the second SPMI write command includes a predefined index, where the predefined index of 0 indicates turning on the system clock, and the predefined index of 1 indicates turning off the system clock.
[0013] In some embodiments, when the slave device is in sleep mode, the slave device is clocked by the SPMI clock (SCLK).
[0014] In some embodiments, the slave device is a SPMI slave device and the external device is a SPMI master device.
[0015] In some embodiments, the first SPMI write command is an extended register write long command, an extended register write command, a register write command, or a register 0 write command.
[0016] In some embodiments, the second SPMI write command is an extended register write long command, an extended register write command, a register write command, or a register 0 write command.
[0017] In some embodiments, the SPMI ACK command is an extended register write long command, an extended register write command, a register write command, a register 0 write command, or a host write command.
[0018] In an exemplary embodiment, a device for power saving is provided. The device includes a system clock circuit, a control circuit, and a processor. The control circuit is coupled to the system clock circuit and is configured to receive a first system power management interface (SPMI) write command from an external device via an SPMI bus when the device is in a sleep mode. The control circuit is also configured to turn on the system clock circuit in response to a first SPMI write command indicating turning on the system clock circuit. The processor is coupled to the system clock circuit and the processor is configured to allow the external device to access the device. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings are included to provide a further understanding of the present disclosure and are incorporated into and constitute a part of the present disclosure. The accompanying drawings illustrate embodiments of the present disclosure and together with the description are used to explain the principles of the present disclosure. It should be understood that the drawings are not necessarily drawn to scale, as some components may be shown out of proportion to the dimensions in actual implementation in order to clearly illustrate the concepts of the present disclosure.
[0020] Figure 1 is a block diagram of an SPMI system having multiple master devices and multiple slave devices attached to a two-wire SPMI bus.
[0021] Figure 2 is a schematic diagram of an example slave device for saving power according to an embodiment of the present invention.
[0022] Figure 3 FIG. 4 is a flow chart of a power saving method of a slave device according to an embodiment of the present invention.
[0023] Figures 4A to 4B FIG. 4 is a timing diagram of a power saving operation of a slave device according to an embodiment of the present invention.
[0024] Figure 5 An exemplary operating environment for implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0025] The various aspects of the present disclosure are described more fully below with reference to the accompanying drawings. However, the present disclosure can be embodied in many different forms and should not be construed as being limited to any particular structure or function presented throughout the present disclosure. On the contrary, these aspects are provided so that the present disclosure will be thorough and complete, and the scope of the present disclosure will be fully conveyed to those with ordinary knowledge in the art. Based on the teachings herein, it should be understood by those skilled in the art that the scope of the present disclosure is intended to cover any aspect of the present disclosure disclosed herein, whether implemented independently or in combination with any other aspect of the present disclosure. For example, a plurality of aspects set forth herein may be used to implement a device or a practical method. In addition, the scope of the present disclosure is intended to cover a device or method that is practiced using another structure, function, or structure and function other than or in addition to the various aspects of the present disclosure set forth herein. It should be understood that any aspect of the disclosure disclosed herein may be embodied through one or more elements of the claims.
[0026] The word "exemplary" is used herein to mean "serving as an example, instance, or illustration." Any aspect described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other aspects. Furthermore, unless otherwise indicated in the specification, like numerals refer to like elements throughout the several views, and the articles "a," "an," and "the" include plural references.
[0027] It should be understood that when an element is referred to as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In contrast, when an element is referred to as being "directly connected" or "directly coupled" to another element, there are no intermediate elements. Other words used to describe the relationship between elements should be interpreted in a similar manner. (e.g., "between" versus "directly between," "adjacent" versus "directly adjacent," etc.).
[0028] In order to better describe the embodiments of the present invention, the specific terms used in the present invention are first defined as follows.
[0029] Master device: A device on the SPMI bus that can drive the SCLK line.
[0030] Slave device: A device on the SPMI bus that cannot drive the SCLK line, that is, it is not a master device.
[0031] The System Power Management Interface (SPMI) is a two-wire serial interface that connects the integrated power controller (PC) of a System-on-Chip (SoC) processor system to one or more Power Management Integrated Circuits (PMIC) voltage regulation systems. SPMI enables the system to dynamically adjust the power and substrate bias of the internal voltage domains of the SoC using a single SPMI bus.
[0032] In a PC, SPMI-related functions are called "master" devices. In a PMIC, SPMI-related functions are called "slave" devices. A single SPMI bus can have up to 4 masters and 16 slaves. Multiple SPMI masters and slaves can reside on a single IC, on separate ICs, or any combination of the two.
[0033] Figure 1 1 is a block diagram of an SPMI system 100 having a plurality of master devices and a plurality of slave devices attached to a two-wire SPMI bus 102. In this regard, the SPMI system 100 includes a plurality of master devices 104(1)-104(N) and a plurality of slave devices 106(1)-106(M). As shown, N=3 and M=2, but it should be understood that the SPM standard allows for up to four master devices 104 and up to sixteen slave devices 106. The SPMI bus 102 may include a clock line 108 and a data line 110 (in Figure 1 1 and 11. The SPMI interfaces 112(1)-112(2) are also referred to as SCLK and SDATA, respectively, in the master device 104(1). A given master device 104(1) may have multiple (in this case two) SPMI interfaces 112(1)-112(2) coupled to the SPMI bus 102. More commonly, a master device such as master device 104(N) may have a single SPMI interface 114 coupled to the SPMI bus 102. Similarly, a slave device such as slave device 106(1) may have a single SPMI interface 116, and a slave device such as slave device 106(M) may have multiple (in this case two) SPMI interfaces 118(1)-118(2).
[0034] Figure 22 is a schematic diagram of an exemplary slave device 200 for power saving according to an embodiment of the present invention. The slave device 200 may include a central processing unit (CPU) 210 and an SPMI slave subsystem 240. The SPMI slave subsystem 240 includes an SPMI receiver 242 (sometimes referred to as SPMI RX in the drawings), a system clock control circuit 244, a request capability slave (RequestCapable Slave, RCS) function 246 and a transmission (TX) function 2462, and an always-on function 248, wherein the always-on function 248 may include a non-always-on function 2482.
[0035] like Figure 2 As shown, the CPU 210 is coupled to the system clock circuit 230, the TX function 2462 and the always-on function 248, the always-on function 248 is coupled to the SPMI receiver 242, the TX function 2462 and the CPU 210, and the system clock control circuit 244 is coupled to the SPMI receiver 242, the RCS function 246 and the system clock circuit 230.
[0036] In the slave device 200, the SPMI receiver 242, the system clock control circuit 244, the RCS function 246, and the always-on function 248 belong to the SCLK domain, while the CPU 210, the system clock circuit 230, the TX function 2462, and the non-always-on function 2482 belong to the system clock domain. Specifically, the SPMI receiver 242, the system clock control circuit 244, the RCS function 246, and the always-on function 248 operate when the SCLK operates or the system clock circuit 230 is turned on, and the SCLK operates only when data is transmitted on the SPMI bus 250. The CPU 210, the TX function 2462, and the non-always-on function 2482 operate when the system clock circuit 230 is turned on.
[0037] It is worth noting that although Figure 2 In the figure, the SPMI receiver 242, the system clock control circuit 244, the RCS function 246 and the always-on function 248 are drawn as belonging to the SCLK domain, but the present invention is not limited to this. Figure 2 As shown, those skilled in the art will appreciate that the SPMI receiver 242, the system clock control circuit 244, the RCS function 246, and the always-on function 248 may also operate when the system clock circuit 230 is enabled.
[0038] When the slave device 200 is in sleep mode, the external device ( Figure 2246 ) can send a first SPMI write command to the SPMI receiver 242 via the SPMI bus 250 (step 1), where the external device is the SPMI master device. It is worth noting that the slave device 200 being in sleep mode means that the system clock circuit 230 is turned off and the slave device is clocked by the SPMI clock (SCLK). Since the SPMI receiver 242, the system clock control circuit 244, the RCS function 246 and the always-on function 248 belong to the SCLK domain, the SPMI receiver 242, the system clock control circuit 244, the RCS function 246 and the always-on function 248 still operate when the system clock circuit 230 is turned off.
[0039] Then, the SPMI receiver 242 transmits the first SPMI write command to the system clock control circuit 244. The system clock control circuit 244 detects the first SPMI write command. In response to the first SPMI write command instructing to turn on the system clock circuit 230, the system clock control circuit 244 sends a signal to turn on the system clock circuit 230 (step 2).
[0040] Next, the CPU 210 sends an SPMI confirmation (ACK) command to the external device via the RCS function 246, the TX function 2462 and the SPMI bus 250 to notify the external device that the system clock circuit 230 has been turned on (step 3). Specifically, the TX function 2462 is triggered by the CPU 210 to convert the SPMI ACK command into a command that complies with the SPMI protocol, and then the RCS function 246 transmits the SPMI ACK command to the external device via the SPMI bus 250.
[0041] The CPU 210 may allow the external device to access the slave device 200 (step 4 ), such as registering with the non-always-on function 2482 in the SPMI slave subsystem 240 .
[0042] Once the external device does not need to use the system clock circuit 230, the external device can send a second SPMI write command to the slave device 200. The SPMI receiver 242 receives the second SPMI write command via the SPMI bus 250 and transmits the second SPMI write command to the system clock control circuit 244. The system clock control circuit 244 detects the second SPMI write command. In response to the SPMI write command indicating to shut down the system clock circuit 230, the system clock control circuit 244 sends a signal to shut down the system clock circuit 230 (step 5).
[0043] In another embodiment, since more than one external slave / master device communicates with the slave device 200 via the SPMI bus 250, the SPMI receiver 242 may receive multiple first SPMI write commands indicating to start the system clock (i.e., the SPMI receiver 242 may receive multiple first SPMI write commands within a period of time). Therefore, the system clock control circuit 244 provides a voting mechanism, wherein the voting mechanism may be executed through software, firmware, or hardware commands implemented on a computer implemented through software. The first SPMI write command sent by each external slave / master device is regarded as an action similar to raising a hand. In other words, as long as there is an external slave / master device that has transmitted the first SPMI write command and has not yet transmitted the second SPMI write command, the system clock control circuit 244 may not shut down the system clock circuit 230.
[0044] As an example, assume that slave device 1 sends a first SPMI write command to request to turn on the system clock. After receiving the first SPMI write command, CPU 210 sends an SPMI ACK command to slave device 1. Then, slave device 2 also sends a first SPMI write command to request to turn on the system clock. CPU 210 sends an SPMI ACK command to slave device 2 after receiving the first SPMI write command. When slave device 1 transmits a second SPMI write command to request to turn off the system clock, the system clock control circuit 244 determines whether there are other external devices that have transmitted the first SPMI write command but have not yet transmitted the second SPMI write command (according to the voting mechanism, i.e., raising hands). When the system clock control circuit 244 determines that slave device 2 has not yet transmitted the second SPMI write command, the system clock will still be turned on. The system clock control circuit 244 will not turn off the system clock until slave device 2 sends the second SPMI write command.
[0045] Figure 3 FIG. 3 is a flowchart 300 showing a method for saving power in a slave device according to an embodiment of the present disclosure. In this embodiment, the method is applied to Figure 2 The slave device 200 in .
[0046] In step S305 , when the slave device is in the sleep mode, the SPMI receiver of the slave device receives a first SPMI write command from an external device via the SPMI bus, wherein the slave device is an SPMI slave device and the external device is an SPMI master device.
[0047] Then, the system clock control circuit of the slave device detects the first SPMI write command from the SPMI receiver. In step S310, the system clock control circuit turns on the system clock in response to the first SPMI write command instructing to turn on the system clock. In one embodiment, the first SPMI write command includes a predefined index, wherein the predefined index of 0 indicates turning on the system clock, and the predefined index of 1 indicates turning off the system clock. The system clock control circuit can turn on / off the system clock according to the predefined index. Further, the first SPMI write command is an extended register write long command, an extended register write command, a register write command, or a register 0 write command (register 0 write command), and the predefined index, the register write command, or the register 0 write command is sent in the data frame in the extended register write command.
[0048] In another embodiment, the predefined index can be changed at any time through software. The system clock control circuit can use the current setting of the software as a criterion for determining whether to change the predefined index.
[0049] In step S315, the CPU of the slave device allows the external device to access the slave device.
[0050] In some embodiments, after step S310, the CPU of the slave device may also send an SPMI confirmation (ACK) command to the external device through the SPMI bus to inform the external device that the system clock has been turned on, wherein the SPMI ACK command is an extended register write long command, an extended register write command, a register write command, a register 0 write command, or a host write command.
[0051] In some embodiments, the SPMI receiver may also receive a second SPMI write command from an external device via the SPMI bus after step S320. The system clock control circuit detects the second SPMI write command from the SPMI receiver, wherein the second SPMI write command includes a predefined index, wherein the predefined index is 0 indicating that the system clock is turned on, and the predefined index is 1 indicating that the system clock is turned off. The system clock control circuit turns off the system clock in response to the second SPMI write command indicating that the system clock is turned off. Further, the second SPMI write command is an extended register write length command, an extended register write command, a register write command, or a register 0 write command, and the predefined index is sent in the data frame of the extended register write command, the register write command, or the register 0 write command.
[0052] In another embodiment, after the external device sends the first SPMI write command, the external device may count a predetermined time period, wherein the predetermined time period may be a stabilization time required for the system clock to start, and when the predetermined time period expires, the external device may directly access the slave device.
[0053] Figures 4A to 4B 4 is a timing diagram 400 illustrating power saving operations in a slave device according to an embodiment of the present disclosure. Figures 4A to 4B In the figure, time increases from left to right in arbitrary units. The bottom power represents the minimum power required by the slave device in sleep mode.
[0054] Figure 4A The invention describes that the slave device sends an SPMI ACK command to the external device to notify the external device that the system clock has been started after receiving the first SPMI write command.
[0055] In time interval 401, since the slave device is initially in a sleep state, the slave device uses only bottom power. At 402, the slave device receives a first SPMI write command from an external device indicating to turn on the system clock. At 403, the slave device sends an SPMI ACK command to the external device to notify the external device that the system clock has been turned on. In time interval 404, the external device performs SPMI access with the slave device while the system clock is running. At 405, the slave device receives a second SPMI write command from the external device indicating to turn off the system clock.
[0056] Figure 4B Describes the case where a slave device is accessed when a predetermined period of time counted by an external device expires. Figure 4A Compared with the slave device in Figure 4B The slave device in does not need to send the SPMI ACK command to the external device.
[0057] In time interval 401, since the slave device is initially in a sleep state, the slave device uses only bottom power. At 402, the slave device receives a first SPMI write command from an external device indicating to turn on the system clock. At time interval 403, the external device counts a predetermined time period. In time interval 404, the external device performs SPMI access with the slave device after the predetermined time period expires. At 405, the slave device receives a second SPMI write command from the external device indicating to turn off the system clock.
[0058] As described above, the power saving method and device of the present invention can adaptively turn off the system clock when the slave device is idle. That is to say, only when the SPMI related functions are operating normally, rather than the entire slave device operating normally, can the purpose of power saving be achieved more effectively. In addition, the method of triggering the system clock in the slave device through other external devices can increase the flexibility of use.
[0059] It should be noted that Figure 2 The CPU 210, the system clock circuit 230, the SPMI receiver 242, the system clock control circuit 244, the RCS function 246, the TX function 2462, and the always-on function 248 in the embodiment can be implemented in hardware, software, firmware, or any combination thereof. For example, the CPU 210, the system clock circuit 230, the SPMI receiver 242, the system clock control circuit 244, the RCS function 246, the TX function 2462, and the always-on function 248 can be implemented as computer program codes set to execute in one or more processors. Alternatively, the CPU 210, the system clock circuit 230, the SPMI receiver 242, the system clock control circuit 244, the RCS function 246, the TX function 2462, and the always-on function 248 can be implemented as hardware logic / circuitry.
[0060] The embodiments described herein, including systems, methods / processes and / or devices, may use well-known servers / computers (such as Figure 5 For example, the slave device 200 may be implemented using one or more electronic devices 500. For illustrative purposes, the electronic device 500 is described below.
[0061] Reference now Figure 5 , an exemplary operating environment for implementing embodiments of the present disclosure is shown, and is generally referred to as electronic device 500. Electronic device 500 is merely an example of a suitable computing environment and is not intended to limit the scope of its use or functionality. Electronic device 500 should also not be interpreted as having any dependency or requirement relating to any one or combination of elements illustrated.
[0062] The present disclosure may be implemented through computer program code or machine-usable commands, including computer executable commands, such as program modules, executed by a computer or other handheld device (e.g., a personal digital assistant (PDA) or other machine). In general, a program module may include routines, programs, objects, components, data structures, etc., and refers to program code that performs a specific task or implements a specific abstract data type. The present disclosure may be implemented in a variety of system configurations, including handheld devices, consumer electronics, general-purpose computers, more specialized computing devices, etc. The present disclosure may also be implemented in a distributed computing environment, where tasks are performed by remote processing devices connected via a communication network.
[0063] like Figure 5 As shown, electronic device 500 may include a bus 510 that is directly or indirectly coupled to the following devices: one or more memories 512, one or more processors 514, one or more display elements 516, one or more input / output (I / O) ports 518, one or more input / output elements 520, and an example power supply 522. Bus 510 may represent one or more buses (e.g., an address bus, a data bus, or any combination thereof). Although Figure 5 The blocks are different. For clarity, Figure 5 The components in the figure are shown with lines, but in reality, the boundaries of the components are not specific. For example, a display element such as a display device can be considered as an I / O element, and a processor can include a memory.
[0064] The electronic device 500 generally includes various computer-readable media. Computer-readable media can be any available media that can be accessed by the electronic device 500, and include volatile and non-volatile media, removable and non-removable media. As an example and not limitation, computer-readable media can include computer storage media and communication media. Computer storage media can include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer-readable commands, data structures, program modules or other data. Computer storage media can include, but are not limited to, random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other storage technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical disk storage, cassette tape, magnetic tape, magnetic disk storage or other magnetic storage device, or any other device that can be used to store the required information and can be accessed by the electronic device 500. The computer storage media itself may not include signals.
[0065] Communication media typically embodies computer readable commands, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and includes any information delivery media. The term "modulated data signal" refers to a signal that has one or more characteristics set or changed in a manner that encodes the information in the signal. By way of example and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media or any combination thereof.
[0066] Memory 512 may include computer storage media in the form of volatile and / or non-volatile memory. Memory may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disks, optical drives, etc. Electronic device 500 includes one or more processors that read data from various entities such as memory 512 or I / O elements 520. Display element 516 presents data indications to a user or another device. Exemplary presentation elements include display devices, speakers, printing elements, vibrating elements, etc.
[0067] I / O port 518 allows computing device 500 to be logically coupled to other devices including I / O element 520, some of which may be embedded. Exemplary elements include microphones, joysticks, game handles, satellite antennas, scanners, printers, wireless devices, etc. I / O element 520 may provide a natural user interface (NUI) that processes gestures, sounds, or other interactive inputs generated by a user. For example, the input may be transmitted to an appropriate network element for further processing. NUI may be implemented to implement speech recognition, touch and stylus recognition, facial recognition, biometric recognition, gesture recognition on and near the screen, air gestures, head and eye tracking, touch recognition associated with a display on electronic device 500, or any combination thereof. Electronic device 500 may be equipped with a depth camera, such as a stereo camera system, an infrared camera system, an RGB camera system, or any combination thereof, to enable gesture detection and recognition. In addition, electronic device 500 may be equipped with an accelerometer or gyroscope to enable motion detection. The output of the accelerometer or gyroscope may be provided to the display of electronic device 500 to perform immersive augmented reality or virtual reality.
[0068] Furthermore, the processor 514 in the electronic device 500 may execute program code in the memory 512 to perform the actions and steps described above or otherwise described herein.
[0069] It should be understood that any particular order or hierarchy of steps in any disclosed process is an example of an example method. Based on design preferences, it should be understood that the specific order or hierarchy of steps in a process can be rearranged while remaining within the scope of the present disclosure. The attached method claims present elements of the various steps in an example order and are not meant to be limited to the specific order or hierarchy presented.
[0070] The use of ordinal terms such as "first", "second", "third" and the like in the claims to modify claim elements does not in itself imply any priority, precedence or order of one claim element over another claim element or a temporal order of performing method actions, but serves merely as a label to distinguish one claim element with a particular name from another element with the same name (but using an ordinal term) to distinguish the claim elements.
[0071] Although the present disclosure has been described by way of example and according to preferred embodiments, it should be understood that the present disclosure is not limited to the disclosed embodiments. On the contrary, it is intended to cover various modifications and similar arrangements (as will be apparent to those skilled in the art). Therefore, the scope of the attached claims should be given the broadest interpretation to cover all such modifications and similar arrangements.
Claims
1. A power saving method for a slave device, comprising: When the slave device is in a sleep mode, receiving a first system power management interface (SPMI) write command from an external device via a SPMI bus; In response to the first SPMI write command instructing to start the system clock, starting the system clock; as well as The external device is allowed to access the slave device.
2. The method according to claim 1, characterized in that Also included: An SPMI acknowledgement (ACK) command is sent to the external device to notify the external device that the system clock has been turned on.
3. The method according to claim 1, characterized in that Also included: receiving a second SPMI write command from the external device via the SPMI bus; as well as In response to the second SPMI write command instructing to turn off the system clock, the system clock is turned off.
4. The method according to claim 1, wherein The first SPMI write command includes a predefined index, where the predefined index being 0 indicates turning on the system clock, and the predefined index being 1 indicates turning off the system clock.
5. The method according to claim 3, characterized in that The second SPMI write command includes a predefined index, where the predefined index being 0 indicates turning on the system clock, and the predefined index being 1 indicates turning off the system clock.
6. The method according to claim 1, wherein When the slave device is in the sleep mode, the slave device is clocked by the SPMI clock (SCLK).
7. The method according to claim 1, characterized in that The slave device is an SPMI slave device, and the external device is an SPMI master device.
8. The method according to claim 1, characterized in that The first SPMI write command is an extended register write long command, an extended register write command, a register write command or a register 0 write command.
9. The method according to claim 3, characterized in that The second SPMI write command is an extended register write long command, an extended register write command, a register write command or a register 0 write command.
10. The method according to claim 1, characterized in that The SPMI ACK command is an extended register write long command, an extended register write command, a register write command, a register 0 write command or a master write command.
11. A power-saving device, comprising: System clock circuit; A control circuit coupled to the system clock circuit, wherein the control circuit is configured to: When the device is in sleep mode, receiving a first system power management interface (SPMI) write command from an external device via the SPMI bus; In response to a first SPMI write command instructing to turn on the system clock circuit, turning on the system clock circuit; and a processor coupled to the system clock circuit, wherein the processor is configured to: Allow external devices to access this device.
12. The power saving device according to claim 11, characterized in that The processor is also configured to: An SPMI acknowledgement (ACK) command is sent to the external device to notify the external device that a system clock circuit has been turned on.
13. The power saving device according to claim 11, characterized in that The control circuit is also used to: receiving a second SPMI write command from the external device via the SPMI bus; and In response to the second SPMI write command instructing to shut down the system clock circuit, the system clock circuit is shut down.
14. The power saving device according to claim 11, characterized in that The first SPMI write command includes a predefined index, where the predefined index being 0 indicates turning on the system clock circuit, and the predefined index being 1 indicates turning off the system clock circuit.
15. The power saving device according to claim 13, characterized in that The second SPMI write command includes a predefined index, where the predefined index being 0 indicates turning on the system clock circuit, and the predefined index being 1 indicates turning off the system clock circuit.
16. The power saving device according to claim 11, characterized in that When the device is in the sleep mode, the device is clocked by the SPMI clock (SCLK).
17. The power saving device according to claim 11, characterized in that The device is an SPMI slave device, and the external device is an SPMI master device.
18. The power saving device according to claim 11, wherein: The first SPMI write command is an extended register write long command, an extended register write command, a register write command or a register 0 write command.
19. The power saving device according to claim 13, wherein: The second SPMI write command is an extended register write long command, an extended register write command, a register write command or a register 0 write command.
20. The power saving device according to claim 11, wherein: The SPMI ACK command is an extended register write long command, an extended register write command, a register write command, a register 0 write command, or a master write command.
